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

:root {
  --ink: #0a0a0f;
  --paper: #f5f3ee;
  --acid: #c8ff00;
  --mid: #1a1a2e;
  --muted: #9494a6;
  --card: #111118;
  --border: rgba(255,255,255,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: #fff;
  overflow-x: hidden;
}

/* FOCUS STATES */
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

/* DISABLED STATE */
a[aria-disabled="true"],
button[disabled],
button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: default;
}
a[aria-disabled="true"]:hover {
  color: inherit;
}
button[disabled]:hover,
button[aria-disabled="true"]:hover {
  background: inherit;
  transform: none;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  backdrop-filter: blur(20px);
  background: rgba(10,10,15,0.7);
  border-bottom: 1px solid var(--border);
  animation: slideDown 0.6s ease both;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  color: #fff; letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.875rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: #fff; color: var(--ink);
  padding: 8px 18px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 600;
  text-decoration: none; transition: transform 0.2s, background-color 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--paper); }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; transition: 0.3s; }
.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
  position: fixed; inset: 0; background: var(--ink); z-index: 99;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 24px; opacity: 0; pointer-events: none; transition: 0.3s;
}
.mobile-overlay.active { opacity: 1; pointer-events: auto; }
.mobile-overlay a { text-decoration: none; color: #fff; font-size: 1.5rem; font-weight: 500; }

/* HERO */
.hero {
  min-height: 95vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 140px 24px 80px;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(200,255,0,0.06) 0%, transparent 65%);
  z-index: 0; pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px; background-position: center top;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  z-index: 0; pointer-events: none;
}
.badge {
  position: relative; z-index: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; }
.hero h1 {
  position: relative; z-index: 1;
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 8vw, 6.5rem); line-height: 0.9;
  font-weight: 800; letter-spacing: -0.04em;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero h1 em { font-style: normal; color: var(--acid); }
.hero-sub {
  position: relative; z-index: 1;
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 600px; line-height: 1.6; margin: 24px 0 40px;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.hero-btns {
  position: relative; z-index: 1;
  display: flex; gap: 16px; align-items: center;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.btn-primary {
  background: var(--acid); color: var(--ink);
  padding: 14px 28px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-block; border: none; cursor: pointer; font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(200,255,0,0.25); }
.btn-ghost {
  background: transparent; border: 1.5px solid var(--border); color: #fff;
  padding: 13px 28px; border-radius: 8px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.15); }

.hero-stats {
  display: flex; gap: 56px; margin-top: 80px;
  position: relative; z-index: 1;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 700; color: #fff; }
.stat-lbl { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* DASHBOARD PREVIEW */
.preview-section { padding: 0 24px 100px; display: flex; justify-content: center; }
.dashboard-mockup {
  width: 100%; max-width: 1100px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.window-chrome {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px; display: flex; align-items: center; justify-content: space-between;
}
.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.tab-bar { display: flex; gap: 4px; background: rgba(255,255,255,0.02); padding: 3px; border-radius: 6px; border: 1px solid var(--border); }
.tab {
  padding: 6px 16px; border-radius: 4px; font-size: 0.75rem; font-weight: 500;
  color: var(--muted); cursor: pointer; transition: all 0.2s; background: none; border: none;
}
.tab:hover { color: #fff; }
.tab.active { background: rgba(255,255,255,0.05); color: #fff; font-weight: 600; }

.dashboard-body { display: grid; grid-template-columns: 200px 1fr; min-height: 500px; }
.dash-sidebar { border-right: 1px solid var(--border); padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.side-item { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.side-item.active { color: var(--acid); font-weight: 600; }
.side-item svg { opacity: 0.6; }
.side-item.active svg { opacity: 1; }

.dash-main { padding: 32px; background: #0c0c12; }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 20px; }
.kpi-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-val { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 700; color: #fff; margin: 8px 0 4px; }
.kpi-delta { font-size: 0.68rem; color: var(--acid); display: flex; align-items: center; gap: 4px; }
.kpi-delta.neg { color: #ff5f56; }

.charts-row { display: grid; grid-template-columns: 2fr 1.2fr; gap: 16px; }
.chart-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; }
.chart-title { font-size: 0.85rem; font-weight: 600; color: #fff; margin-bottom: 24px; }
.bar-chart { display: flex; align-items: flex-end; justify-content: space-between; height: 160px; padding: 0 10px; }
.bar-wrap { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 8%; }
.bar { width: 100%; background: var(--acid); border-radius: 4px 4px 0 0; opacity: 0.85; transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.bar-lbl { font-size: 0.65rem; color: var(--muted); font-family: 'DM Sans', sans-serif; }

.donut-chart { position: relative; width: 120px; height: 120px; margin: 20px auto; }
.donut-svg { transform: rotate(-90deg); }
.donut-bg { fill: none; stroke: var(--border); stroke-width: 14; }
.donut-val { fill: none; stroke: var(--acid); stroke-width: 14; stroke-dasharray: 251.2; stroke-dashoffset: 75.3; transition: stroke-dashoffset 1s ease; }
.donut-val-two { fill: none; stroke: #6366f1; stroke-width: 14; stroke-dasharray: 251.2; stroke-dashoffset: 200.9; }
.donut-val-three { fill: none; stroke: #f472b6; stroke-width: 14; stroke-dasharray: 251.2; stroke-dashoffset: 231.1; }
.legend { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; color: var(--muted); }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; }

/* SECTION COMMON */
.section-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acid); margin-bottom: 16px; text-align: center; font-weight: 600; }
.section-title {
  font-family: 'Syne', sans-serif; font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
  margin-bottom: 24px;
}

/* FEATURES */
.features-section { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 56px; }
.feature-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 40px 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(200,255,0,0.06); border: 1px solid rgba(200,255,0,0.15);
  font-size: 1.25rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 12px; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* TESTIMONIALS */
.testimonials { padding: 100px 24px; max-width: 1100px; margin: 0 auto; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card {
  background: var(--card); border: 1px solid var(--border);
  padding: 32px; border-radius: 12px; display: flex; flex-direction: column; justify-content: space-between;
}
.testimonial-text { font-size: 0.95rem; color: var(--paper); opacity: 0.9; line-height: 1.6; font-style: italic; }
.testimonial-author { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.author-name { font-size: 0.9rem; font-weight: 600; color: #fff; }
.author-title { font-size: 0.75rem; color: var(--muted); }

/* PRICING */
.pricing { padding: 100px 24px; }
.pricing-inner { max-width: 1100px; margin: 0 auto; }
.pricing-header { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 32px; margin-bottom: 60px; }
.pricing-toggle { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.02); border: 1px solid var(--border); padding: 4px; border-radius: 8px; }
.toggle-opt {
  background: none; border: none; color: var(--muted);
  padding: 8px 16px; border-radius: 6px; font-family: inherit;
  font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.toggle-opt.active { background: var(--acid); color: var(--ink); font-weight: 600; }
.toggle-save { font-size: 0.7rem; color: var(--acid); background: rgba(200,255,0,0.1); padding: 3px 8px; border-radius: 100px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plan {
  background: var(--card); border: 1px solid var(--border);
  padding: 36px; position: relative; transition: border-color 0.25s;
  border-radius: 12px; display: flex; flex-direction: column;
}
.plan:hover { border-color: rgba(255,255,255,0.12); }
.plan.featured { border-color: var(--acid); }
.plan-badge {
  position: absolute; top: 20px; right: 20px;
  background: rgba(200,255,0,0.1); color: var(--acid);
  font-size: 0.65rem; font-weight: 600; text-transform: uppercase;
  padding: 4px 8px; border-radius: 4px; letter-spacing: 0.05em;
}
.plan-name { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.plan-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.plan-price { font-family: 'Syne', sans-serif; font-size: 2.5rem; font-weight: 700; color: #fff; margin-bottom: 28px; }
.plan-price span { font-size: 0.95rem; color: var(--muted); font-family: 'DM Sans', sans-serif; font-weight: 400; }
.plan-btn {
  display: block; width: 100%; text-align: center;
  padding: 12px; border-radius: 6px; font-size: 0.9rem; font-weight: 600;
  text-decoration: none; margin-bottom: 32px; transition: all 0.2s;
  cursor: pointer; font-family: inherit;
}
.plan-btn.outline { border: 1.5px solid var(--border); color: #fff; background: none; }
.plan-btn.outline:hover { background: rgba(255,255,255,0.02); border-color: rgba(255,255,255,0.15); }
.plan-btn.solid { background: var(--acid); color: var(--ink); border: none; }
.plan-btn.solid:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(200,255,0,0.2); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: auto; }
.plan-features li { font-size: 0.825rem; color: var(--paper); opacity: 0.85; display: flex; align-items: center; gap: 10px; }
.check { color: var(--acid); flex-shrink: 0; font-family: var(--mono); }

/* FAQ */
.faq { padding: 100px 24px; max-width: 800px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: none; border: none; text-align: left;
  color: #fff; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.faq-trigger:hover { background: rgba(255,255,255,0.02); }
.faq-chevron { transition: transform 0.25s; color: var(--muted); }
.faq-trigger[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--acid); }
.faq-content {
  max-height: 0; overflow: hidden; transition: max-height 0.25s ease-out;
  padding: 0 24px; color: var(--muted); font-size: 0.875rem; line-height: 1.6;
}
.faq-trigger[aria-expanded="true"] + .faq-content {
  padding-bottom: 20px;
}

/* CTA */
.cta { padding: 100px 24px; max-width: 1100px; margin: 0 auto; text-align: center; }
.cta-inner {
  background: radial-gradient(circle at top right, rgba(200,255,0,0.06), transparent), var(--card);
  border: 1px solid var(--border); border-radius: 16px; padding: 80px 40px;
}
.cta-inner h2 { font-family: 'Syne', sans-serif; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; color: #fff; }
.cta-inner p { font-size: 1rem; color: var(--muted); max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* FOOTER */
footer { background: #050508; border-top: 1px solid var(--border); padding: 80px 24px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--border); }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { text-decoration: none; font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 0.75rem; color: var(--muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-stats { gap: 28px; }
  .dashboard-body { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .charts-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* SCROLL ANIMATIONS */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
