:root {
  --orange: #f6821f;
  --orange-light: #fbad41;
  --orange-dark: #e05d00;
  --bg-dark: #0d0d0d;
  --bg-section: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --text-primary: #ffffff;
  --text-secondary: #aaaaaa;
  --text-muted: #666666;
  --green: #3ecf8e;
  --red: #ff4d4f;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --border: rgba(246, 130, 31, 0.15);
  --glow: rgba(246, 130, 31, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  font-family: "Outfit", sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.7;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 100px 0;
  position: relative;
}
.section-alt {
  background: var(--bg-section);
}
.mono {
  font-family: "JetBrains Mono", monospace;
}
.orange {
  color: var(--orange);
}
.green {
  color: var(--green);
}
.red {
  color: var(--red);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--orange);
  color: var(--orange);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: "Outfit", sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: var(--orange);
  color: #000;
}
.btn-primary:hover {
  background: var(--orange-light);
  box-shadow: 0 0 40px var(--glow);
  transform: translateY(-2px);
}
.btn-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(0, 0, 0, 0.5);
}
.btn-ghost {
  background: rgba(246, 130, 31, 0.1);
  color: var(--orange);
  border: 1px solid rgba(246, 130, 31, 0.3);
}
.btn-ghost:hover {
  background: rgba(246, 130, 31, 0.2);
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}
.navbar.scrolled {
  background: rgba(13, 13, 13, 0.92);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 20px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: #000;
  box-shadow: 0 2px 12px rgba(246, 130, 31, 0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.nav-links a:hover {
  color: var(--text-primary);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* HERO */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* Dark overlay removed — hero image shows at full brightness */
.hero-bg::after {
  display: none;
}
.hero::before {
  display: none;
}
.hero::after {
  display: none;
}
/* hero-content positioning handled by .parallax-layer .hero-content */
/* will-change handled by .hero-line */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(246, 130, 31, 0.4);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-eyebrow .pulse {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.4);
  }
  50% {
    opacity: 0.8;
    box-shadow: 0 0 0 8px rgba(62, 207, 142, 0);
  }
}
/* Old h1 removed — hero uses individual .hero-line elements now */
.hero-text-shadow {
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 4px 40px rgba(0, 0, 0, 0.3);
}
.hero h1 .gradient-text {
  color: #2dd4bf;
  -webkit-text-fill-color: #2dd4bf;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 4px 40px rgba(0, 0, 0, 0.3);
}
.gradient-text.typewriter {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  animation: typewriter 3s steps(28) 0.8s forwards;
  border-right: none;
  position: relative;
  z-index: 2;
  padding: 10px 30px 12px 30px;
  margin: -10px -30px -12px -30px;
  line-height: 1.15;
}
@keyframes typewriter {
  0% {
    max-width: 0;
  }
  100% {
    max-width: calc(14ch + 60px);
  }
}
@keyframes blink-caret {
  0%,
  100% {
    border-color: #2dd4bf;
  }
  50% {
    border-color: transparent;
  }
}

/* ===== HERO LINE SYSTEM ===== */
.hero-line {
  display: block;
  width: 100%;
  text-align: center;
}

/* Responsive headline sizing per line */
.hero-headline {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: clamp(32px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: #fff;
  white-space: nowrap;
  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.6),
    0 4px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive sentence sizing */
.hero-sentence {
  display: block;
  font-size: clamp(14px, 1.8vw, 20px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  max-width: 100%;
  white-space: nowrap;
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.7),
    0 2px 24px rgba(0, 0, 0, 0.4);
}

/* Base spacing between lines — JS will expand this on scroll */
/* Eyebrow → headline gap */
.hero-line[data-depth="0"] {
  margin-bottom: clamp(20px, 3vw, 32px);
}
/* Headlines: tight equal spacing */
.hero-line[data-depth="1"] {
  margin-bottom: 0;
}
.hero-line[data-depth="2"] {
  margin-bottom: 0;
}
/* Headline → body gap */
.hero-line[data-depth="3"] {
  margin-bottom: clamp(14px, 2vw, 22px);
}
/* Body sentences: equal spacing */
.hero-line[data-depth="4"] {
  margin-bottom: clamp(4px, 0.8vw, 8px);
}
.hero-line[data-depth="5"] {
  margin-bottom: clamp(4px, 0.8vw, 8px);
}
/* Body sentences: equal spacing */
.hero-line[data-depth="6"] {
  margin-bottom: clamp(4px, 0.8vw, 8px);
}
/* Body → CTA gap */
.hero-line[data-depth="7"] {
  margin-bottom: clamp(14px, 2vw, 22px);
}
/* CTA → trust gap */
.hero-line[data-depth="8"] {
  margin-bottom: clamp(10px, 1.5vw, 18px);
}
.hero-line[data-depth="9"] {
  margin-bottom: 0;
}

/* Keep gradient-text and typewriter styles working on standalone line */
.hero-line .gradient-text {
  color: #2dd4bf;
  -webkit-text-fill-color: #2dd4bf;
}

.hero-sub {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
  text-shadow:
    0 1px 12px rgba(0, 0, 0, 0.7),
    0 2px 24px rgba(0, 0, 0, 0.4);
}
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust .dot {
  color: var(--orange);
}

/* ===== MULTI-LAYER PARALLAX ===== */
.parallax-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0); /* GPU compositing */
}
.parallax-layer:nth-child(1) {
  z-index: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
}
.parallax-layer:nth-child(2) {
  z-index: 1;
} /* grid */
.parallax-layer:nth-child(3) {
  z-index: 2;
} /* content */
.parallax-layer:nth-child(4) {
  z-index: 3;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120vh;
}

/* Layer 1: grid field */
.parallax-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.grid-line {
  position: absolute;
  background: rgba(246, 130, 31, 0.06);
}
.gl-h {
  height: 1px;
  width: 100%;
}
.gl-h1 {
  top: 25%;
}
.gl-h2 {
  top: 50%;
}
.gl-h3 {
  top: 75%;
}
.gl-v {
  width: 1px;
  height: 100%;
}
.gl-v1 {
  left: 20%;
}
.gl-v2 {
  left: 50%;
}
.gl-v3 {
  left: 80%;
}

.grid-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(246, 130, 31, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(246, 130, 31, 0.2);
  animation: nodeGlow 4s ease-in-out infinite alternate;
}
.gn1 {
  top: 25%;
  left: 20%;
  animation-delay: 0s;
}
.gn2 {
  top: 25%;
  left: 50%;
  animation-delay: 0.8s;
}
.gn3 {
  top: 25%;
  left: 80%;
  animation-delay: 1.6s;
}
.gn4 {
  top: 50%;
  left: 20%;
  animation-delay: 0.4s;
}
.gn5 {
  top: 50%;
  left: 80%;
  animation-delay: 1.2s;
}
.gn6 {
  top: 75%;
  left: 50%;
  animation-delay: 2s;
}

@keyframes nodeGlow {
  0% {
    opacity: 0.3;
    transform: scale(1);
    box-shadow: 0 0 8px rgba(246, 130, 31, 0.15);
  }
  100% {
    opacity: 1;
    transform: scale(1.8);
    box-shadow: 0 0 20px rgba(246, 130, 31, 0.4);
  }
}

/* Layer 3: foreground glow orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: orbFloat 12s ease-in-out infinite alternate;
}
.orb-orange {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(246, 130, 31, 0.6), transparent 70%);
  top: 10%;
  right: -5%;
  animation-delay: 0s;
  animation-duration: 14s;
}
.orb-cyan {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.5), transparent 70%);
  bottom: 15%;
  left: -3%;
  animation-delay: -4s;
  animation-duration: 10s;
}
.orb-purple {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.4), transparent 70%);
  top: 40%;
  left: 30%;
  animation-delay: -8s;
  animation-duration: 16s;
}

@keyframes orbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(30px, -20px, 0) scale(1.1);
  }
  66% {
    transform: translate3d(-20px, 15px, 0) scale(0.95);
  }
  100% {
    transform: translate3d(15px, -30px, 0) scale(1.05);
  }
}

.perspective-stage {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.parallax-layer .hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) clamp(20px, 5vw, 60px)
    clamp(40px, 6vh, 80px);
}

.hero-line[data-depth="3"] {
  margin-bottom: clamp(24px, 3vh, 40px);
}
.hero-line[data-depth="7"] {
  margin-bottom: clamp(28px, 3.5vh, 44px);
}
/* hero-bg inside parallax layer - extend to fill + slight scale for parallax headroom */
.parallax-layer .hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.parallax-layer .hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .parallax-layer {
    transform: none !important;
  }
  .orb {
    animation: none;
  }
  .grid-node {
    animation: none;
  }
}

/* Sections after hero slide over the fixed background */
.hero ~ section,
.hero ~ footer {
  position: relative;
  z-index: 2;
  background: var(--bg-dark);
}

/* STATS STRIP */
.stats-strip {
  padding: 60px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item h3 {
  font-size: 48px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* PROBLEM */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}
.pain-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pain-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pain-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 75, 75, 0.15);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  transition: all 0.3s;
}
.pain-card:hover {
  border-color: rgba(255, 75, 75, 0.4);
}
.pain-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 75, 75, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.pain-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.pain-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* COST CALCULATOR */
.cost-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.cost-bar-group {
  margin-top: 24px;
}
.cost-bar-item {
  margin-bottom: 28px;
}
.cost-bar-item:last-child {
  margin-bottom: 0;
}
.cost-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 10px;
}
.cost-bar-label span:last-child {
  color: var(--red);
  font-weight: 600;
}
.cost-bar-track {
  height: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
}
.cost-bar-fill {
  height: 100%;
  border-radius: 6px;
}
.cost-bar-fill.red {
  background: linear-gradient(90deg, var(--red), #ff8080);
}
.cost-bar-fill.orange {
  background: linear-gradient(90deg, var(--orange-dark), var(--orange));
}
.cost-bar-fill.yellow {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.cost-total {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.cost-total h3 {
  font-size: 36px;
  font-weight: 800;
  color: var(--red);
}
.cost-total p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

/* STEPS */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  transition: all 0.4s;
}
.step-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(246, 130, 31, 0.1);
}
.step-number {
  width: 56px;
  height: 56px;
  background: rgba(246, 130, 31, 0.1);
  border: 2px solid var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--orange);
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-time {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 12px;
  background: rgba(62, 207, 142, 0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
}

/* DASHBOARD SHOWCASE */
.dash-section-bg {
  position: relative;
  overflow: hidden;
}
.dash-section-bg::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  background-image: url("/r2/home/v2/hero-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
  transform: translateY(var(--parallax-y, 0px));
}
.dash-section-bg > .container {
  position: relative;
  z-index: 1;
}
.dashboard-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.dash-header {
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dash-dot.r {
  background: #ff5f57;
}
.dash-dot.y {
  background: #ffbd2e;
}
.dash-dot.g {
  background: #28c840;
}
.dash-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-left: 12px;
}
.dash-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 500px;
}
.dash-sidebar {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.dash-nav-item {
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.dash-nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.dash-nav-item.active {
  color: var(--orange);
  background: rgba(246, 130, 31, 0.05);
  border-left-color: var(--orange);
}
.dash-content {
  padding: 32px;
}
.dash-content-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}
.dash-content-sub {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}
.toggle-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  transition: all 0.2s;
}
.toggle-row:hover {
  border-color: rgba(246, 130, 31, 0.2);
  background: rgba(255, 255, 255, 0.04);
}
.toggle-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.toggle-icon {
  width: 36px;
  height: 36px;
  background: rgba(246, 130, 31, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.toggle-name {
  font-size: 15px;
  font-weight: 600;
}
.toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.toggle-switch {
  width: 48px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}
.toggle-switch.on {
  background: var(--orange);
}
.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: all 0.3s;
}
.toggle-switch.on::after {
  left: 25px;
}

/* FEATURE CATEGORIES */
.feature-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.feat-cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}
.feat-cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.4s;
}
.feat-cat-card:hover::before {
  transform: scaleX(1);
}
.feat-cat-card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.feat-cat-icon {
  width: 48px;
  height: 48px;
  background: rgba(246, 130, 31, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}
.feat-cat-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feat-cat-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}
.feat-list {
  list-style: none;
}
.feat-list li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feat-list li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
  font-size: 12px;
}

/* VIDEO SHOWCASE */
.video-section {
  padding: 80px 0;
}
.video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow:
    0 0 80px rgba(246, 130, 31, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.4);
}
.video-frame-chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: linear-gradient(180deg, #1e1e1e 0%, #171717 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.video-frame-dots {
  display: flex;
  gap: 8px;
}
.video-frame-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.video-frame-dots span:nth-child(1) {
  background: #ff5f57;
}
.video-frame-dots span:nth-child(2) {
  background: #ffbd2e;
}
.video-frame-dots span:nth-child(3) {
  background: #28c840;
}
.video-frame-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  display: flex;
  align-items: center;
  gap: 8px;
}
.video-frame-url .lock {
  color: var(--green);
  font-size: 11px;
}
.video-frame-speed {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
}
.video-frame video {
  display: block;
  margin: 0 auto;
  background: #000;
}
.video-metrics {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 20px 24px;
  background: linear-gradient(180deg, #171717 0%, #1e1e1e 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.video-metric {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
}
.video-metric .vm-val {
  color: var(--green);
  font-weight: 600;
}
.video-metric .vm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}

/* PAGESPEED */
.speed-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.speed-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--border);
  text-align: center;
}
.speed-card.before {
  border-color: rgba(255, 75, 75, 0.2);
}
.speed-card.after {
  border-color: rgba(62, 207, 142, 0.3);
}
.speed-score {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  font-weight: 900;
  margin: 0 auto 20px;
}
.speed-score.low {
  border: 6px solid var(--red);
  color: var(--red);
}
.speed-score.high {
  border: 6px solid var(--green);
  color: var(--green);
}
.speed-label {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.speed-metrics {
  text-align: left;
}
.speed-metric {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.speed-metric .val {
  font-weight: 600;
}
.speed-metric .val.bad {
  color: var(--red);
}
.speed-metric .val.good {
  color: var(--green);
}

/* CHART */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-top: 32px;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.chart-header h4 {
  font-size: 18px;
  font-weight: 600;
}
.chart-legend {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding-top: 20px;
}
.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}
.chart-bar.cached {
  background: var(--orange);
}
.chart-bar.edge {
  background: var(--green);
  opacity: 0.6;
}
.chart-bar-label {
  font-size: 10px;
  color: var(--text-muted);
}

/* GLOBE */
.globe-section {
  text-align: center;
}
.globe-visual {
  width: 360px;
  height: 360px;
  margin: 40px auto;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(246, 130, 31, 0.15) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 70%,
      rgba(246, 130, 31, 0.1) 0%,
      transparent 50%
    );
  border: 2px solid rgba(246, 130, 31, 0.2);
  overflow: hidden;
}
.globe-visual::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent,
    var(--orange),
    transparent,
    var(--orange),
    transparent
  );
  opacity: 0.3;
  animation: globeSpin 8s linear infinite;
}
@keyframes globeSpin {
  to {
    transform: rotate(360deg);
  }
}
.globe-inner {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.globe-inner h3 {
  font-size: 56px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
}
.globe-inner p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 4px;
}
.globe-inner .sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
}
.edge-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.edge-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}
.edge-stat h4 {
  font-size: 32px;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}
.edge-stat p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* TESTIMONIALS */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(246, 130, 31, 0.3);
}
.testimonial-stars {
  color: var(--orange);
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(246, 130, 31, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--orange);
  font-size: 16px;
}
.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}
.testimonial-role {
  font-size: 12px;
  color: var(--text-muted);
}
.testimonial-result {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: rgba(62, 207, 142, 0.1);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 60px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
}
.price-card.featured {
  border-color: var(--orange);
  background: linear-gradient(
    180deg,
    rgba(246, 130, 31, 0.08) 0%,
    var(--bg-card) 40%
  );
}
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--orange);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 1px;
}
.price-card:hover {
  transform: translateY(-4px);
}
.price-tier {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 8px;
}
.price-amount {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}
.price-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.price-features {
  list-style: none;
  margin-bottom: 32px;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.price-features li::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
}
.price-card .btn {
  width: 100%;
  justify-content: center;
}

/* COMPARISON TABLE */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}
.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
}
.comparison-table thead th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comparison-table tbody td:first-child {
  font-weight: 600;
}
.comparison-table .check {
  color: var(--green);
  font-size: 18px;
}
.comparison-table .cross {
  color: var(--red);
  font-size: 18px;
}
.comparison-table .partial {
  color: var(--orange-light);
  font-size: 14px;
}
.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 48px auto 0;
}
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
}
.faq-q {
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: "+";
  font-size: 24px;
  color: var(--orange);
  transition: transform 0.3s;
}
.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding-top: 16px;
}

/* FINAL CTA */
.final-cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--bg-section) 0%,
    var(--bg-dark) 100%
  );
}
.final-cta::before {
  content: "";
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(246, 130, 31, 0.12) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.final-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
}
.final-cta p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 40px;
}
.final-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.final-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* FOOTER */
.footer {
  padding: 60px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 12px;
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-secondary);
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: var(--orange);
}
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ANIMATIONS */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 {
  transition-delay: 0.1s;
}
.stagger-2 {
  transition-delay: 0.2s;
}
.stagger-3 {
  transition-delay: 0.3s;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .stats-grid,
  .feature-categories,
  .pricing-grid,
  .testimonials-grid,
  .edge-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-grid,
  .speed-comparison {
    grid-template-columns: 1fr;
  }
  .pain-cards-grid {
    grid-template-columns: 1fr;
  }
  .dash-body {
    grid-template-columns: 1fr;
  }
  .dash-sidebar {
    display: flex;
    overflow-x: auto;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .dash-nav-item {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 8px 16px;
    font-size: 13px;
  }
  .dash-nav-item.active {
    border-left-color: transparent;
    border-bottom-color: var(--orange);
  }
  .steps-container {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }
  .stats-grid,
  .feature-categories,
  .pricing-grid,
  .testimonials-grid,
  .edge-stats,
  .speed-comparison {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .hero h1 {
    letter-spacing: -1px;
  }

  /* Small screens: allow text wrapping */
  @media (max-width: 768px) {
    .hero-headline {
      white-space: normal;
      font-size: clamp(28px, 8vw, 48px);
    }
    .hero-sentence {
      white-space: normal;
      font-size: clamp(13px, 3.2vw, 18px);
    }
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .comparison-table {
    font-size: 12px;
  }
  .comparison-table th,
  .comparison-table td {
    padding: 10px 8px;
  }
}
