@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --secondary: #06b6d4;
  --bg-dark: #0f172a;
  --card-bg: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #10b981;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%);
  background-attachment: fixed;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 24px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 23, 42, 0.8);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
}

.cta-button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.5);
}

.cta-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Features */
.features {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  font-weight: 700;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--secondary);
  font-size: 1.5rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}

.feature-card p {
  color: var(--text-muted);
}

/* App Showcase */
.showcase {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.showcase-text p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.showcase-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.mockup {
  width: 100%;
  max-width: 300px;
  border-radius: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 8px solid #1e293b;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 30px;
  margin-top: 80px;
  background: #0b1121;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  .showcase {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    padding: 120px 0 60px;
  }
}

.legal-content {
  padding: 120px 0 80px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.legal-content p.date {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 24px;
}

.legal-content ul li {
  color: var(--text-muted);
  margin-bottom: 12px;
  list-style-type: disc;
}

/* FAQ Accordion */
.faq {
  padding: 100px 0;
  max-width: 850px;
  margin: 0 auto;
}

.faq .section-title {
  background: linear-gradient(135deg, #fff 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 50px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(30, 41, 59, 0.6);
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, 0.1);
}

.faq-item[open] {
  border-color: rgba(79, 70, 229, 0.4);
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.2);
}

.faq-item summary {
  padding: 28px 32px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

/* Hide default arrow */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: var(--secondary);
  font-size: 1.25rem;
  font-weight: 400;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item summary::after {
  content: '+';
}

.faq-item[open] summary::after {
  content: '−';
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 32px 28px 32px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1.05rem;
  animation: faqFadeIn 0.4s ease-out;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  margin-top: -8px;
  padding-top: 20px;
}

@keyframes faqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* How It Works Steps */
.how-it-works {
  padding: 100px 0;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  position: relative;
}

.step-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 40px 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.2);
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}

.step-card p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Pricing / Comparison */
.pricing {
  padding: 100px 0;
  position: relative;
}

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-header .section-subtitle {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-top: -40px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  max-width: 950px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 
              0 0 50px 0px rgba(79, 70, 229, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
}

.comparison-table th,
.comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 1.05rem;
  transition: background-color 0.2s ease;
}

.comparison-table th {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  padding: 28px 24px;
  background: rgba(15, 23, 42, 0.8);
}

.comparison-table th.plan-free {
  color: #94a3b8;
}

.comparison-table th.plan-pro {
  color: var(--secondary);
  background: rgba(6, 182, 212, 0.06);
  border-left: 1px solid rgba(6, 182, 212, 0.1);
  border-right: 1px solid rgba(6, 182, 212, 0.1);
}

.comparison-table td.feat-name {
  color: #f1f5f9;
  font-weight: 600;
  text-align: left;
  width: 38%;
}

.comparison-table td.free-cell {
  color: var(--text-muted);
}

.comparison-table td.pro-cell {
  background: rgba(6, 182, 212, 0.03);
  font-weight: 600;
  color: #fff;
  border-left: 1px solid rgba(6, 182, 212, 0.08);
  border-right: 1px solid rgba(6, 182, 212, 0.08);
}

.comparison-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.comparison-table tr:hover td.pro-cell {
  background-color: rgba(6, 182, 212, 0.05);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Custom indicator styles */
.check-icon {
  color: #10b981;
  font-weight: bold;
  font-size: 1.2rem;
  margin-right: 6px;
}

.cross-icon {
  color: #ef4444;
  font-weight: bold;
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .comparison-table th, 
  .comparison-table td {
    padding: 16px 12px;
    font-size: 0.95rem;
  }
  .comparison-table td.feat-name {
    width: 45%;
  }
}


/* Navigation & Mobile Sidebar */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 20px;
}

.language-select {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  margin-left: 1rem;
  transition: border-color 0.2s;
}

.language-select:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Off-canvas Menu */
.sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #0f172a;
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar.active {
  right: 0;
}

.sidebar-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  margin-bottom: 40px;
  transition: color 0.2s;
}

.sidebar-close:hover {
  color: white;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-nav a {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.sidebar-nav a:hover {
  color: white;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 16px 0;
}

.sidebar-lang-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sidebar .language-select {
  margin-left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  font-size: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .menu-toggle {
    display: block;
  }
}
