:root {
  --bg: #080810;
  --surface: #0f0f1a;
  --card: #13131f;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(99, 102, 241, 0.35);
  --indigo: #6366f1;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --text: #ffffff;
  --muted: #71717a;
  --sub: #a1a1aa;
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --max: 1140px;
  --ease: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  line-height: 1.1;
}
h1 {
  font-size: clamp(40px, 6vw, 72px);
}
h2 {
  font-size: clamp(28px, 4vw, 48px);
}
h3 {
  font-size: 20px;
  font-weight: 600;
}
p {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.65;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
}
ul {
  list-style: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  font-family: "Syne", sans-serif;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: var(--ease);
  font-family: "Syne", sans-serif;
}
.btn-primary {
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

section {
  position: relative;
  z-index: 1;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 18px 0;
  background: rgba(8, 8, 16, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--ease);
}
nav.scrolled {
  border-bottom-color: var(--border);
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-icon svg {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14px;
  color: var(--sub);
  font-family: "DM Sans", sans-serif;
}
.nav-links a:hover {
  color: var(--text);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--ease);
}

/* ─── HERO ─── */
.hero {
  padding: 160px 0 90px;
  text-align: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(
    ellipse at center,
    rgba(99, 102, 241, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero .pill {
  margin-bottom: 28px;
}
.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}
.hero > .container > p {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 17px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
}

.hero-stats {
  display: inline-flex;
  gap: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.hero-stat {
  padding: 18px 32px;
  border-right: 1px solid var(--border);
  text-align: center;
}
.hero-stat:last-child {
  border-right: none;
}
.hero-stat-val {
  font-family: "Syne", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.hero-stat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── FEATURES ─── */
#features {
  padding: 90px 0;
}
.section-head {
  text-align: center;
  margin-bottom: 52px;
}
.section-head .pill {
  margin-bottom: 16px;
}
.section-head h2 {
  margin-bottom: 12px;
}
.section-head p {
  max-width: 500px;
  margin: 0 auto;
}

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

.feat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}
.feat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 20%,
    rgba(99, 102, 241, 0.07),
    transparent 60%
  );
  opacity: 0;
  transition: var(--ease);
}
.feat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}
.feat-card:hover::before {
  opacity: 1;
}

.feat-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--indigo);
}
.feat-icon svg {
  width: 20px;
  height: 20px;
}
.feat-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.feat-card p {
  font-size: 14px;
}

/* ─── CALCULATOR ─── */
#calculator {
  padding: 90px 0;
}

.calc-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.calc-inputs {
  padding: 48px 44px;
  border-right: 1px solid var(--border);
}

.calc-inputs h2 {
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.calc-inputs > p {
  margin-bottom: 36px;
  font-size: 14px;
}

.slider-group {
  margin-bottom: 28px;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.slider-label span:first-child {
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
}
.slider-val {
  font-family: "Syne", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo);
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  cursor: pointer;
  transition: var(--ease);
}
input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.2);
}

.calc-results {
  padding: 48px 44px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.07),
    rgba(139, 92, 246, 0.07)
  );
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-main {
  text-align: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 24px;
}
.result-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "Syne", sans-serif;
}
.result-amount {
  font-family: "Syne", sans-serif;
  font-size: 52px;
  font-weight: 800;
  background: linear-gradient(135deg, #f87171, #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 4px;
}
.result-period {
  font-size: 13px;
  color: var(--muted);
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.breakdown-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.breakdown-val {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.breakdown-lbl {
  font-size: 12px;
  color: var(--muted);
}

.calc-cta-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.calc-cta-note strong {
  color: #10b981;
}

/* ─── HOW IT WORKS ─── */
#howitworks {
  padding: 90px 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--indigo),
    transparent
  );
  z-index: 0;
}

.step {
  text-align: center;
  padding: 28px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  position: relative;
  z-index: 1;
  transition: var(--ease);
}
.step:hover {
  border-color: var(--border-glow);
}

.step-num {
  width: 48px;
  height: 48px;
  background: var(--grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 16px;
}
.step h3 {
  font-size: 15px;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
}

/* ─── ANALYTICS ─── */
#analytics {
  padding: 90px 0;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 52px;
}

.analytics-points {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.analytics-point {
  display: flex;
  gap: 16px;
}
.ap-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo);
}
.ap-icon svg {
  width: 16px;
  height: 16px;
}
.analytics-point h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.analytics-point p {
  font-size: 13px;
}

.dash-mock {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
}
.dash-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-r {
  background: #ff605c;
}
.dot-y {
  background: #ffbd44;
}
.dot-g {
  background: #00ca4e;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.stat-box-val {
  font-family: "Syne", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--indigo);
}
.stat-box-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.mini-chart {
  height: 70px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 8px;
}
.mini-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--indigo);
  opacity: 0.6;
}
.mini-bar.hi {
  opacity: 1;
}

/* ─── FAQ ─── */
#faq {
  padding: 90px 0;
}
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  font-family: "Syne", sans-serif;
  user-select: none;
}
.faq-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--muted);
  transition: var(--ease);
  pointer-events: none;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
}
.faq-a-inner {
  padding-bottom: 20px;
  font-size: 14px;
}
.faq-item.open .faq-a {
  max-height: 300px;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--indigo);
}

/* ─── CTA ─── */
#cta {
  padding: 90px 0 120px;
}
.cta-box {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.18),
    rgba(124, 58, 237, 0.18)
  );
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
}
.cta-box h2 {
  margin-bottom: 12px;
}
.cta-box > p {
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cal-wrap {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.2);
}
.cal-wrap iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  font-size: 13px;
  margin-top: 12px;
  max-width: 260px;
}
.footer-col h4 {
  font-family: "Syne", sans-serif;
  font-size: 14px;
  margin-bottom: 16px;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-size: 13px;
  color: var(--muted);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}

/* ─── REVEAL ─── */
.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.hidden {
  opacity: 0;
  transform: translateY(24px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .calc-wrap {
    grid-template-columns: 1fr;
  }
  .calc-inputs {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .steps::before {
    display: none;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
  }
  .hero-stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .hero-stat:last-child {
    border-bottom: none;
  }
  .hero-btns {
    flex-direction: column;
    align-items: center;
  }
  .result-breakdown {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 28px 24px;
  gap: 20px;
}

/* ─── SECURITY: no inline styles needed ─── */
.btn-sm {
  font-size: 14px;
  padding: 10px 20px;
}
.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.pill-mb {
  margin-bottom: 16px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-32 {
  margin-bottom: 32px;
}
.text-white {
  color: white;
}
/* ─── FOOTER ─── */
  height: 40%;
}
.bar-60 {
  height: 60%;
}
.bar-35 {
  height: 35%;
}
.bar-55 {
  height: 55%;
}
.bar-70 {
  height: 70%;
}
.bar-85 {
  height: 85%;
}
.bar-95 {
  height: 95%;
}
