/* ─── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #EEF2FF;
  --accent: #06B6D4;
  --text: #111827;
  --text-muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.12);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 600;
  font-size: 0.9rem; cursor: pointer; transition: all .2s; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,.4); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }
.btn-ghost { color: var(--text-muted); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0; transition: all .3s;
  background: transparent;
}
.navbar.scrolled { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); box-shadow: 0 2px 16px rgba(0,0,0,.08); }
.nav-container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.2rem; color: #fff; }
.navbar.scrolled .nav-brand { color: var(--text); }
.brand-icon { width: 34px; height: 34px; background: var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }
.nav-menu { display: flex; align-items: center; gap: 1.5rem; }
.nav-menu a { color: rgba(255,255,255,.85); font-weight: 500; font-size: .95rem; transition: color .2s; }
.navbar.scrolled .nav-menu a { color: var(--text-muted); }
.nav-menu a:hover { color: #fff; }
.navbar.scrolled .nav-menu a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #fff; }
.navbar.scrolled .nav-toggle { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%);
  overflow: hidden; padding: 7rem 0 5rem;
}
.hero .container { position: relative; z-index: 2; max-width: 660px; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(79,70,229,.3) 0%, transparent 60%); }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.1); color: #a5b4fc; padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; margin-bottom: 1.5rem; border: 1px solid rgba(165,180,252,.2); }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.15; margin-bottom: 1.2rem; }
.gradient-text { background: linear-gradient(135deg, #a5b4fc, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: rgba(255,255,255,.7); font-size: 1.15rem; margin-bottom: 2rem; max-width: 500px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat span { font-size: .85rem; color: rgba(255,255,255,.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,.2); }
.hero-visual { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); z-index: 2; }
.dashboard-preview { background: rgba(255,255,255,.05); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 1.5rem; width: 280px; box-shadow: 0 32px 80px rgba(0,0,0,.4); }
.preview-header { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }
.preview-title { flex: 1; text-align: center; font-size: .75rem; color: rgba(255,255,255,.5); }
.preview-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.preview-row:last-child { border: none; }
.preview-label { font-size: .82rem; color: rgba(255,255,255,.5); }
.preview-val { font-size: .85rem; font-weight: 600; color: #fff; }
.badge-success { background: rgba(34,197,94,.2); color: #4ade80; padding: .2rem .6rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.badge-info { background: rgba(6,182,212,.2); color: #67e8f9; padding: .2rem .6rem; border-radius: 50px; font-size: .75rem; font-weight: 600; }

/* ─── Sections ──────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-dark { background: linear-gradient(135deg, #1a1a2e, #16213e); }
.section-light { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3.5rem; }
.section-header h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .8rem; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; }
.section-header.light h2 { color: #fff; }
.section-header.light p { color: rgba(255,255,255,.6); }
.section-tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: .3rem .9rem; border-radius: 50px; font-size: .8rem; font-weight: 600; margin-bottom: .8rem; }
.section-header.light .section-tag { background: rgba(79,70,229,.2); color: #a5b4fc; }

/* ─── Features ──────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.feature-icon.blue { background: #EFF6FF; color: #3B82F6; }
.feature-icon.purple { background: #F5F3FF; color: #8B5CF6; }
.feature-icon.green { background: #F0FDF4; color: #22C55E; }
.feature-icon.orange { background: #FFF7ED; color: #F97316; }
.feature-icon.teal { background: #ECFEFF; color: #06B6D4; }
.feature-icon.red { background: #FEF2F2; color: #EF4444; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--text-muted); font-size: .9rem; }

/* ─── Steps ─────────────────────────────────────────────────── */
.steps-grid { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.step-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem; flex: 1; min-width: 200px; max-width: 220px; }
.step-number { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: .8rem; }
.step-card h3 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p { color: rgba(255,255,255,.6); font-size: .88rem; }
.step-arrow { color: rgba(255,255,255,.3); font-size: 1.5rem; align-self: center; flex-shrink: 0; }

/* ─── Pricing ───────────────────────────────────────────────── */
.pricing-toggle { display: flex; justify-content: center; gap: 0; margin-bottom: 2.5rem; border: 2px solid var(--border); border-radius: 10px; width: fit-content; margin-left: auto; margin-right: auto; overflow: hidden; }
.toggle-btn { padding: .6rem 1.5rem; background: none; border: none; cursor: pointer; font-weight: 600; color: var(--text-muted); font-size: .9rem; transition: all .2s; }
.toggle-btn.active { background: var(--primary); color: #fff; }
.save-badge { background: #22C55E; color: #fff; font-size: .65rem; padding: .1rem .4rem; border-radius: 50px; margin-left: .3rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; max-width: 1000px; margin: 0 auto; }
.pricing-card { background: #fff; border: 2px solid var(--border); border-radius: 16px; padding: 2rem; position: relative; transition: transform .2s, box-shadow .2s; }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); }
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--primary); color: #fff; padding: .25rem 1rem; border-radius: 50px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.plan-name { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: .5rem; }
.plan-price .price { font-size: 2.2rem; font-weight: 800; color: var(--text); }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.billed-yearly { font-size: .8rem; color: var(--text-muted); margin-top: .2rem; }
.plan-desc { font-size: .85rem; color: var(--text-muted); margin: .8rem 0 1.2rem; }
.plan-features { margin-bottom: 1.5rem; }
.plan-features li { display: flex; align-items: center; gap: .5rem; font-size: .88rem; margin-bottom: .5rem; color: var(--text); }
.plan-features i { color: #22C55E; font-size: .9rem; flex-shrink: 0; }

/* ─── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.faq-question { width: 100%; background: #fff; border: none; padding: 1.2rem 1.5rem; text-align: left; font-weight: 600; font-size: .95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background .2s; }
.faq-question:hover { background: var(--bg-alt); }
.faq-question i { transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p { padding: 1rem 1.5rem 1.2rem; color: var(--text-muted); font-size: .9rem; }
.faq-answer code { background: var(--bg-alt); padding: .1rem .4rem; border-radius: 4px; font-size: .85rem; }

/* ─── CTA ───────────────────────────────────────────────────── */
.cta-section { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; }
.cta-section h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: .8rem; }
.cta-section p { color: rgba(255,255,255,.8); margin-bottom: 2rem; font-size: 1.1rem; }
.text-center { text-align: center; }

/* ─── Footer ────────────────────────────────────────────────── */
.footer { background: #111827; color: rgba(255,255,255,.6); padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer .nav-brand { color: #fff; }
.footer p { font-size: .88rem; }
.footer h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: .8rem; }
.footer ul li { margin-bottom: .4rem; }
.footer a { color: rgba(255,255,255,.5); font-size: .88rem; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; font-size: .82rem; }
.mb-3 { margin-bottom: .8rem; }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .hero .container { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .nav-menu { display: none; flex-direction: column; position: fixed; inset: 0 0 0 30%; background: #111827; padding: 5rem 2rem 2rem; gap: 1rem; z-index: 99; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; z-index: 100; }
  .nav-menu a { color: #fff; font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
}
