/* ===========================
   CSS VARIABLES — LIGHT/DARK
   =========================== */
:root {
  --bg:           #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-card:      #ffffff;
  --border:       #e5e7eb;
  --text:         #111827;
  --text-muted:   #6b7280;
  --text-subtle:  #9ca3af;
  --primary:      #4f46e5;
  --primary-dark: #3730a3;
  --primary-light:#ede9fe;
  --accent:       #10b981;
  --accent-light: #d1fae5;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.12);
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    20px;
  --transition:   0.2s ease;
}

[data-theme="dark"] {
  --bg:           #0f172a;
  --bg-secondary: #1e293b;
  --bg-card:      #1e293b;
  --border:       #334155;
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-subtle:  #64748b;
  --primary:      #818cf8;
  --primary-dark: #6366f1;
  --primary-light:#1e1b4b;
  --accent:       #34d399;
  --accent-light: #022c22;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.3);
  --shadow-md:    0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.5);
}

/* ===========================
   RESET & BASE
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; }

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-sm  { font-size: .875rem; padding: 8px 18px; }
.btn-lg  { font-size: 1rem;    padding: 14px 28px; }
.btn-full { width: 100%; margin-top: 24px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-secondary); color: var(--text); }

/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; color: var(--primary); }
.logo-text { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: none; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.mobile-menu a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.mobile-menu.open { display: flex; }

/* ===========================
   HERO
   =========================== */
.hero {
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-note {
  font-size: .8rem;
  color: var(--text-subtle);
}
.hero-note .check { color: var(--accent); font-weight: 700; }

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 260px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 32px;
  padding: 24px 16px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.phone-screen { display: flex; flex-direction: column; gap: 12px; }

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.screen-title { font-size: .85rem; font-weight: 700; }
.screen-date   { font-size: .7rem; color: var(--text-subtle); }

.screen-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label { font-size: .65rem; color: var(--text-muted); }
.stat-value { font-size: .95rem; font-weight: 700; }

.screen-list { display: flex; flex-direction: column; gap: 6px; }
.list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  padding: 7px 10px;
  background: var(--bg-secondary);
  border-radius: 6px;
}
.item-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.item-dot.green  { background: #10b981; }
.item-dot.blue   { background: #3b82f6; }
.item-dot.orange { background: #f59e0b; }

.hero-float {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}
.float-1 { top: 10%;  left: -10%; color: var(--accent); }
.float-2 { bottom: 10%; right: -10%; color: var(--primary); }

/* ===========================
   SECTION SHARED
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

/* ===========================
   FEATURES
   =========================== */
.features {
  padding: 96px 0;
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.feature-card--highlight {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--bg-card) 100%);
  border-color: var(--primary);
}
.feature-card--highlight .feature-icon,
.feature-card--highlight h3 {
  grid-column: 1;
}
.feature-card--highlight p {
  grid-column: 1;
}
.feature-card--highlight .feature-list {
  grid-column: 2;
  grid-row: 1 / 5;
  align-self: center;
}

.feature-icon { font-size: 2rem; margin-bottom: 14px; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-list { display: flex; flex-direction: column; gap: 8px; }
.feature-list li {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===========================
   HOW IT WORKS
   =========================== */
.howto {
  padding: 96px 0;
}

.steps {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-number {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 14px;
}

.step h4 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; }
.step p  { font-size: .82rem; color: var(--text-muted); }

.step-arrow {
  font-size: 1.4rem;
  color: var(--text-subtle);
  flex-shrink: 0;
}

/* ===========================
   PLANS
   =========================== */
.plans {
  padding: 96px 0;
  background: var(--bg-secondary);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.plan-card--featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-header { margin-bottom: 12px; }

.plan-name {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.price-currency { font-size: 1.1rem; font-weight: 700; }
.price-value    { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.price-period   { font-size: .85rem; color: var(--text-muted); margin-left: 4px; }

.plan-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.plan-features li {
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-icon { color: var(--accent); font-weight: 700; flex-shrink: 0; }

.plans-note {
  text-align: center;
  margin-top: 40px;
  font-size: .83rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   FAQ
   =========================== */
.faq {
  padding: 96px 0;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--primary); }

.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 24px 18px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===========================
   CTA SECTION
   =========================== */
.cta-section {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-inner p  { color: rgba(255,255,255,.8); margin-bottom: 32px; font-size: 1.05rem; }

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  border-color: #fff;
  font-size: 1rem;
  padding: 14px 32px;
}
.cta-section .btn-primary:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: .85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-copy { font-size: .8rem; color: var(--text-subtle); }

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { text-align: center; }
  .hero-visual { display: none; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--highlight { grid-column: span 2; grid-template-columns: 1fr; }
  .feature-card--highlight .feature-list { grid-column: 1; grid-row: auto; }

  .plans-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps { justify-content: center; }
  .step-arrow { display: none; }

  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--highlight { grid-column: span 1; }
  .hero { padding: 60px 0 48px; }
  .features, .howto, .plans, .faq, .cta-section { padding: 64px 0; }
}
