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

:root {
  --bg-deep: #0a0f0d;
  --bg-card: #0f1612;
  --bg-glass: rgba(255,255,255,0.03);
  --accent: #10b981;
  --accent-dim: rgba(16,185,129,0.15);
  --accent-glow: rgba(16,185,129,0.25);
  --text-primary: #edf2ef;
  --text-muted: #6b8078;
  --border: rgba(255,255,255,0.06);
  --red: #e5534b;
  --orange: #d4873a;
  --dim: #3a4a42;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.mono { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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.85' 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");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 200;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* typography */
h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  text-wrap: balance;
}
h3 { font-weight: 600; }
.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 400;
  max-width: 580px;
  margin-bottom: 40px;
  letter-spacing: -0.005em;
  line-height: 1.55;
}
.text-gradient {
  color: var(--accent);
}
.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-block;
}
.accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-orange { color: var(--orange); }

/* nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10,15,13,0.85);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}
.navbar.scrolled { padding: 0.75rem 0; box-shadow: 0 4px 30px rgba(10,15,13,0.8); }
.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.nav-logo { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -0.03em; }
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: var(--bg-deep);
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 14px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nav-link:hover { color: var(--text-primary); }
.mobile-menu { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }

/* langs */
.lang-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,0.03); padding: 4px 8px; border-radius: 100px; border: 1px solid var(--border); }
.lang-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-family: inherit; font-weight: inherit; font-size: inherit; transition: color 0.2s; padding: 4px 6px; }
.lang-btn:hover, .lang-btn.active { color: var(--text-primary); }

/* buttons */
.btn-group { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  justify-content: center;
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn-sm { padding: 10px 24px; font-size: 14px; }
.btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
  border: none;
  font-weight: 700;
}
.btn-primary:hover {
  background: #0ea472;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.25);
}
.btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(16,185,129,0.05);
  transform: translateY(-1px);
}
.btn-outline:active {
  transform: translateY(0) scale(0.98);
}

/* layout */
section { padding: 120px 0; position: relative; z-index: 1; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* bg-mesh: subtle radial instead of AI gradient */
.bg-mesh {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(16,185,129,0.03) 0%, transparent 70%);
}

/* scroll-driven video section */
.scroll-video {
  padding: 0;
  position: relative;
}
.sv-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 400vh;
  position: relative;
}
.sv-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sv-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sv-video-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg-deep) 0%, transparent 8%, transparent 92%, var(--bg-deep) 100%),
    linear-gradient(to right, transparent 60%, var(--bg-deep) 100%),
    linear-gradient(to left, transparent 90%, var(--bg-deep) 100%);
}
.sv-dots {
  position: absolute;
  left: 32px;
  bottom: 40px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.sv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--dim);
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.sv-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(16,185,129,0.4);
  transform: scale(1.3);
}
.sv-texts {
  display: flex;
  flex-direction: column;
  justify-content: start;
  padding: 0 48px 0 24px;
}
.sv-stage {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.2;
  transition: opacity 0.5s ease;
}
.sv-stage.active {
  opacity: 1;
}
.sv-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: block;
}
.sv-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.sv-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 420px;
}

@media(max-width:768px) {
  .sv-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .sv-sticky {
    position: relative;
    height: 50vh;
  }
  .sv-video-fade {
    background:
      linear-gradient(to bottom, var(--bg-deep) 0%, transparent 8%, transparent 80%, var(--bg-deep) 100%),
      linear-gradient(to right, var(--bg-deep) 0%, transparent 10%, transparent 90%, var(--bg-deep) 100%);
  }
  .sv-texts {
    padding: 0 24px;
  }
  .sv-stage {
    height: auto;
    padding: 40px 0;
    opacity: 1;
  }
  .sv-dots { display: none; }
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-deep);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* video background */
.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

/* gradient mask: fades video into bg on all edges */
.hero-video-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 50% 45%, rgba(10,15,13,0.55) 0%, transparent 100%),
    linear-gradient(to bottom, var(--bg-deep) 0%, transparent 18%, transparent 55%, var(--bg-deep) 100%),
    linear-gradient(to right, var(--bg-deep) 0%, transparent 15%, transparent 85%, var(--bg-deep) 100%);
}

/* centered hero content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 140px;
  padding-bottom: 120px;
}
.hero-content .subtitle {
  margin-left: auto;
  margin-right: auto;
  color: rgba(237,242,239,0.7);
}
.hero-content .btn-group {
  justify-content: center;
}

/* cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 20px rgba(10,15,13,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(10,15,13,0.6), 0 0 0 1px var(--accent-dim);
}
.card-accent {
  border-color: rgba(16,185,129,0.2);
  background: linear-gradient(180deg, rgba(16,185,129,0.04) 0%, var(--bg-card) 100%);
}
.card-icon {
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 12px;
  border: 1px solid rgba(16,185,129,0.1);
  font-size: 24px;
  line-height: 1;
}
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* horizontal card layout (icon left, text right) */
.card-h {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
.card-h .card-icon {
  margin: 0;
  flex-shrink: 0;
}
.card-h .card-title { margin-bottom: 6px; }

/* center content in 3-col card grids */
.g3 > .card { text-align: center; display: flex; flex-direction: column; }
.g3 > .card .card-icon { margin: 0 auto 20px; }
.g3 > .card .prob-stat { margin-top: auto; }
.card-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.card-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* stat section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-top: 60px;
}
.stat-item { background: var(--bg-card); padding: 2.5rem 2rem; text-align: center; }
.stat-item .card-label { font-size: 0.875rem; color: var(--text-muted); font-weight: 500; }

/* steps */
.steps { display: grid; gap: 24px; position: relative; margin-top: 60px; }
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 2px 20px rgba(10,15,13,0.4);
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border: 1px solid rgba(16,185,129,0.15);
  color: var(--accent);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}
.step-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.step-desc { color: var(--text-muted); font-size: 0.95rem; }

/* tables */
.tbl-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-top: 40px;
  box-shadow: 0 2px 20px rgba(10,15,13,0.4);
}
.tbl { width: 100%; border-collapse: collapse; min-width: 600px; }
.tbl th {
  text-align: left;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(0,0,0,0.15);
}
.tbl td { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 0.95rem; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,0.015); }
.tbl .hl td { background: rgba(16,185,129,0.04); }

/* pricing */
.plan {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 40px;
  border-radius: 20px;
  transition: transform 0.25s, box-shadow 0.25s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(10,15,13,0.6), 0 0 0 1px var(--border);
}
.plan-pop {
  border-color: rgba(16,185,129,0.25);
  box-shadow: 0 4px 24px rgba(16,185,129,0.08);
  background: linear-gradient(180deg, rgba(16,185,129,0.05) 0%, var(--bg-card) 100%);
}
.plan-pop:hover {
  box-shadow: 0 16px 40px rgba(16,185,129,0.12), 0 0 0 1px rgba(16,185,129,0.3);
}
.plan-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg-deep);
  padding: 5px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }
.plan-price { font-size: 3rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.03em; line-height: 1; }
.plan-sub { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 32px; min-height: 40px; }
.plan-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; flex: 1; }
.plan > .btn { margin-top: auto; }
.plan-feat { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; }
.plan-feat-icon { color: var(--accent); font-weight: bold; flex-shrink: 0; }

/* faq */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  padding: 24px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.2s;
  gap: 16px;
}
.faq-q:hover { color: var(--accent); }
.faq-arrow { transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.faq-a { padding-bottom: 24px; color: var(--text-muted); line-height: 1.65; max-width: 65ch; display: none; }
.faq-item.open .faq-a { display: block; animation: fade-in 0.3s ease; }

/* cta */
.cta-box {
  background: var(--bg-card);
  border: 1px solid rgba(16,185,129,0.12);
  padding: 80px 40px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 2px 40px rgba(10,15,13,0.5);
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 65%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

/* footer */
.footer { border-top: 1px solid var(--border); padding: 60px 0; background: #060a08; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; }
.footer-copy { color: var(--text-muted); font-size: 0.875rem; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-legal { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: center; gap: 24px; }
.footer-legal a { color: var(--dim); font-size: 0.8rem; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }

/* problem stat boxes */
.prob-stat {
  margin-top: 20px;
  padding: 16px;
  background: rgba(229,83,75,0.05);
  border-radius: 12px;
  text-align: center;
}
.prob-stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--red);
}

/* real numbers comparison */
.comparison-line {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.comparison-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* real numbers extras */
.real-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 32px;
}
.real-detail {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}
.real-detail-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  gap: 12px;
}
.real-detail-q:hover { color: var(--text-primary); }
.real-detail .faq-arrow { transition: transform 0.3s; color: var(--text-muted); flex-shrink: 0; }
.real-detail.open .faq-arrow { transform: rotate(180deg); color: var(--accent); }
.real-detail-a {
  display: none;
  padding-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}
.real-detail.open .real-detail-a { display: block; animation: fade-in 0.3s ease; }
.real-detail-tech {
  display: none;
  padding: 12px 16px;
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.6;
  border-left: 2px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}
.real-detail.open .real-detail-tech { display: block; animation: fade-in 0.3s ease; }
.real-footnote {
  margin-top: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* savings banner */
.savings-banner {
  margin-top: 24px;
  padding: 16px;
  background: var(--accent);
  border-radius: 12px;
  text-align: center;
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 16px;
}

/* code block in integration */
.code-block {
  background: #0c1210;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-align: left;
  overflow-x: auto;
  margin-top: 16px;
}
.code-block .code-label {
  color: var(--text-primary);
  margin-bottom: 4px;
}

/* anims */
.anim { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.anim.vis { opacity: 1; transform: translateY(0); }
.anim-scale { transform: scale(0.97); }
.anim-scale.vis { transform: scale(1); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; } .d5 { transition-delay: 0.4s; }

/* focus */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* responsive */
@media(max-width:768px){.desktop-only{display:none!important}}
@media(min-width:769px){.mobile-only{display:none!important}}
@media(max-width:768px){
  section { padding: 80px 0; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.8rem; }
  .navbar { padding: 1rem 0; }
  .stats-section { grid-template-columns: 1fr; border-radius: 12px; margin-top: 40px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .btn-group { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; gap: 24px; }
  .footer-links { flex-direction: column; gap: 16px; }
  .footer-legal { flex-direction: column; gap: 12px; align-items: center; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: rgba(10,15,13,0.98); backdrop-filter: blur(20px); flex-direction: column; padding: 24px; border-bottom: 1px solid var(--border); box-shadow: 0 12px 40px rgba(10,15,13,0.8); }
  .nav-links.open { display: flex; }
  .mobile-menu { display: block; }
  .hero-content { padding-top: 100px; padding-bottom: 80px; }
  .hero { min-height: auto; }
  .cta-box { padding: 40px 24px; border-radius: 16px; }
  .plan { padding: 32px 24px; }
}
@media(max-width:480px){
  .steps { grid-template-columns: 1fr; }
}
