:root {
  --bg: #07111f;
  --bg-soft: #0d1727;
  --panel: rgba(9, 18, 33, 0.78);
  --panel-strong: rgba(12, 24, 42, 0.96);
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(148, 163, 184, 0.26);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --muted-strong: #cad7ea;
  --accent: #8759ff;
  --accent-alt: #24d1ff;
  --accent-warm: #ff8a5b;
  --accent-gold: #ffcd57;
  --accent-green: #36d39a;
  --danger: #ff6e66;
  --shadow: 0 30px 80px rgba(2, 10, 22, 0.45);
  --radius: 28px;
  --radius-lg: 36px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(135, 89, 255, 0.24), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(36, 209, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #050d18 0%, #08111f 34%, #0a1524 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  position: relative;
  isolation: isolate;
}

.ambient {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(84px);
  opacity: 0.46;
  pointer-events: none;
  z-index: -3;
}

.ambient-one {
  top: -9rem;
  right: -8rem;
  background: rgba(135, 89, 255, 0.21);
}

.ambient-two {
  bottom: 18rem;
  left: -12rem;
  background: rgba(36, 209, 255, 0.15);
}

.noise {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.18;
  pointer-events: none;
  z-index: -2;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(6, 11, 20, 0.8);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  height: 30px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.brand-mark {
  width: 38px;
  display: inline-flex;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: auto;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

.codex-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.codex-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 209, 255, 0.34);
  background: rgba(255,255,255,0.065);
  box-shadow: 0 16px 34px rgba(6, 12, 24, 0.28);
}

.codex-badge-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  flex-shrink: 0;
}

.codex-badge-mark svg {
  width: 100%;
  height: 100%;
}

.codex-badge-copy {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.codex-badge-copy strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  color: var(--text);
  letter-spacing: 0.02em;
}

.codex-badge-copy span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.nav-cta,
.btn-primary {
  color: #081120;
  background: linear-gradient(135deg, var(--accent-gold), #ff9a5a);
  box-shadow: 0 16px 32px rgba(255, 154, 90, 0.28);
}

.btn-secondary {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border: 1px solid var(--line-strong);
}

.btn:hover,
.nav-cta:hover,
.logo-card:hover,
.proof-panel:hover,
.engine-card:hover,
.price-card:hover,
.service-module:hover,
.proof-card:hover,
.compare-card:hover,
.fader-card:hover {
  transform: translateY(-2px);
}

section {
  padding: 78px 0;
}

.hero {
  padding: 88px 0 50px;
}

.hero-grid,
.console-grid,
.pyramid-grid,
.engine-grid,
.audit-grid,
.cta-grid,
.faq-grid {
  display: grid;
  gap: 30px;
}

.hero-grid,
.audit-grid,
.cta-grid {
  grid-template-columns: 1.02fr 0.98fr;
}

.engine-grid,
.pyramid-grid,
.faq-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.eyebrow-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.eyebrow,
.section-kicker,
.card-tag,
.plan-tag,
.proof-label,
.module-type,
.card-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.plan-tag,
.card-badge {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #dce7ff;
}

.eyebrow-ghost {
  background: rgba(36, 209, 255, 0.09);
  color: #90ebff;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
  max-width: 11ch;
}

h1 span {
  display: block;
  color: #b8c8de;
}

.lead,
.section-heading p,
.cta-copy p,
.footer p {
  font-size: 1.04rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-copy .lead {
  max-width: 60ch;
  margin: 24px 0 28px;
}

.hero-points {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-point {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-point strong {
  color: #fff;
  font-size: 0.96rem;
}

.hero-point span {
  color: var(--muted-strong);
}

.hero-actions,
.audit-actions,
.tab-buttons,
.cta-statline,
.growth-legend,
.favicon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-bottom: 24px;
}

.hero-proof,
.logo-directions,
.proof-grid,
.pricing-grid,
.ownership-grid,
.services-grid {
  display: grid;
  gap: 18px;
}

.hero-proof {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.proof-card,
.visual-panel,
.logo-card,
.proof-panel,
.engine-card,
.price-card,
.service-module,
.ownership-grid article,
.cta-form,
.faq-list details,
.compare-card,
.side-proof,
.flow-card,
.rail-item {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.proof-card {
  padding: 16px;
}

.proof-card strong {
  display: block;
  margin-top: 7px;
  font-size: 1rem;
}

.hero-visual {
  position: relative;
}

.signal-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.panel-topline,
.proof-head,
.audit-topbar,
.display-top,
.console-top,
.surface-head,
.display-card .display-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.status-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 20px rgba(54, 211, 154, 0.8);
}

.status-pill,
.surface-label,
.console-mode,
.console-output,
.tiny-label {
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-pill {
  background: rgba(36, 209, 255, 0.12);
  color: #9feeff;
  padding: 6px 10px;
}

.surface-head {
  margin-top: 16px;
  align-items: end;
}

.surface-head strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  color: #fff;
}

.surface-label,
.console-mode {
  color: var(--muted);
}

.surface-readout,
.display-card,
.mini-chip,
.meter-value,
.fader-card,
.screen-stats > div {
  border-radius: 22px;
}

.surface-readout {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.surface-readout strong {
  display: block;
  margin-top: 4px;
  font-size: 1.1rem;
}

.mix-surface {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
  margin-top: 18px;
}

.mix-columns,
.module-faders {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.mix-channel,
.fader-card {
  padding: 14px 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.mix-name {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  text-transform: uppercase;
}

.mix-track,
.fader-slot {
  height: 150px;
  border-radius: 999px;
  margin: 12px auto;
  width: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  position: relative;
  overflow: hidden;
}

.mix-track span,
.fader-slot span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-gold), var(--accent-warm));
  box-shadow: 0 0 18px rgba(255, 138, 91, 0.35);
}

.mix-channel strong,
.fader-card strong,
.screen-stats strong,
.logo-copy h3,
.proof-panel strong {
  color: #fff;
}

.surface-display,
.console-screen {
  display: grid;
  gap: 14px;
}

.display-card,
.console-board,
.screen-chart,
.audit-card,
.pyramid-stack {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.display-card {
  padding: 16px;
}

.performance-wave,
.growth-chart {
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.wave-grid,
.chart-grid {
  stroke: rgba(255,255,255,0.08);
  stroke-width: 1;
}

.wave-line,
.chart-main {
  fill: none;
  stroke: url(#wave-stroke);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-secondary {
  fill: none;
  stroke: rgba(159, 176, 200, 0.4);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wave-tags span,
.legend-dot,
.mini-chip,
.icon-chip,
.swatches span,
.cta-statline span {
  border-radius: 999px;
}

.wave-tags span {
  background: rgba(255,255,255,0.06);
  padding: 8px 12px;
  font-size: 0.78rem;
  color: var(--muted-strong);
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.mini-chip {
  padding: 12px;
  background: rgba(255,255,255,0.04);
}

.mini-chip strong {
  display: block;
  margin-top: 4px;
}

.scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(36, 209, 255, 0.07) 50%, transparent 100%);
  animation: scan 5.8s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.cta-copy h2 {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1;
  margin: 16px 0;
}

.logo-directions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.logo-card {
  padding: 22px;
  display: grid;
  gap: 18px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.active-logo {
  border-color: rgba(255, 205, 87, 0.38);
}

.logo-preview {
  min-height: 210px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(255, 138, 91, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(135, 89, 255, 0.18), transparent 30%),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}

.logo-preview svg {
  width: min(78%, 260px);
  height: auto;
}

.alt-two {
  background:
    radial-gradient(circle at top, rgba(36, 209, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom, rgba(135, 89, 255, 0.18), transparent 28%),
    rgba(255,255,255,0.03);
}

.alt-three {
  background:
    radial-gradient(circle at top left, rgba(255, 205, 87, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(54, 211, 154, 0.14), transparent 28%),
    rgba(255,255,255,0.03);
}

.logo-copy p,
.side-proof p,
.flow-card p,
.roas-row,
.audit-copy p,
.after-step p,
.service-module p,
.price-card li,
.ownership-grid p,
.faq-list p,
.cta-form label,
.footer li,
.proof-panel p {
  color: var(--muted-strong);
  line-height: 1.75;
}

.favicon-demo {
  width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  padding: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.favicon-demo svg {
  width: 100%;
  height: auto;
}

.wordmark-demo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-system {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.brand-palette,
.brand-icons {
  padding: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.swatches span {
  color: #081120;
  font-weight: 800;
  padding: 10px 14px;
}

.icon-lineup {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 12px;
}

.icon-chip {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255, 205, 87, 0.14), rgba(135, 89, 255, 0.14));
  border: 1px solid rgba(255,255,255,0.08);
}

.console-grid {
  grid-template-columns: 1.08fr 0.92fr;
}

.console-board,
.pyramid-visual,
.audit-stack {
  padding: 22px;
  border-radius: 32px;
}

.console-top {
  margin-bottom: 18px;
}

.console-output {
  color: #9feeff;
}

.console-screen {
  margin-top: 16px;
  gap: 16px;
}

.screen-chart {
  padding: 16px;
  border-radius: 24px;
}

.screen-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.screen-stats > div {
  padding: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.screen-stats span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.screen-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 1.34rem;
}

.console-side {
  display: grid;
  gap: 18px;
}

.side-proof,
.engine-card,
.service-module,
.price-card,
.ownership-grid article,
.proof-panel,
.compare-card,
.flow-card {
  padding: 22px;
}

.proof-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.proof-panel {
  min-height: 100%;
}

.growth-panel {
  grid-row: span 2;
}

.growth-legend {
  margin-top: 12px;
}

.legend-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
}

.legend-dot.primary {
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
}

.legend-dot.secondary {
  background: rgba(159, 176, 200, 0.55);
}

.funnel-stack {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.funnel-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 22px;
  padding: 18px 20px;
  font-weight: 700;
}

.step-1 { background: linear-gradient(90deg, rgba(36, 209, 255, 0.25), rgba(36, 209, 255, 0.1)); }
.step-2 { background: linear-gradient(90deg, rgba(135, 89, 255, 0.25), rgba(135, 89, 255, 0.1)); width: 88%; }
.step-3 { background: linear-gradient(90deg, rgba(255, 205, 87, 0.25), rgba(255, 205, 87, 0.1)); width: 72%; }
.step-4 { background: linear-gradient(90deg, rgba(54, 211, 154, 0.25), rgba(54, 211, 154, 0.1)); width: 58%; }

.roas-table {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.roas-row {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
}

.roas-head {
  background: rgba(255,255,255,0.06);
  text-transform: uppercase;
  font-size: 0.78rem;
}

.roas-row strong {
  color: var(--accent-green);
}

.roas-row.weak strong {
  color: var(--danger);
}

.signal-list,
.price-card ul,
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.signal-list li,
.price-card li,
.footer li {
  position: relative;
  padding-left: 18px;
  margin-top: 12px;
}

.signal-list li::before,
.price-card li::before,
.footer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.82em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-warm));
}

.ai-signals li::before {
  background: linear-gradient(135deg, var(--accent-alt), var(--accent));
}

.sticky-heading {
  position: sticky;
  top: 108px;
  align-self: start;
}

.engine-cards,
.faq-list,
.after-audit,
.pyramid-flows {
  display: grid;
  gap: 16px;
}

.engine-card h3,
.side-proof h3,
.service-module h3,
.price-card h3,
.ownership-grid h3,
.flow-card strong,
.compare-card h3 {
  font-size: 1.34rem;
  margin: 14px 0 10px;
}

.compare-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(9, 18, 33, 0.82));
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-section .proof-grid,
.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.price-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 205, 87, 0.18), rgba(9, 18, 33, 0.92)),
    rgba(9, 18, 33, 0.92);
  border-color: rgba(255, 205, 87, 0.28);
}

.price-line {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 800;
}

.ownership-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.pyramid-visual {
  display: grid;
  gap: 18px;
}

.pyramid-stack {
  padding: 20px;
  display: grid;
  justify-items: center;
  gap: 10px;
  border-radius: 28px;
}

.pyramid-layer {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  min-height: 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(36, 209, 255, 0.18), rgba(135, 89, 255, 0.18));
  border: 1px solid rgba(255,255,255,0.1);
}

.layer-1 { width: 100%; }
.layer-2 { width: 90%; }
.layer-3 { width: 78%; }
.layer-4 { width: 66%; }
.layer-5 { width: 54%; }
.layer-6 { width: 42%; background: linear-gradient(135deg, rgba(255, 205, 87, 0.24), rgba(255, 138, 91, 0.2)); }

.flow-card {
  background: rgba(255,255,255,0.03);
}

.tab-buttons {
  margin: 20px 0 18px;
}

.tab-btn {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.03);
  color: var(--muted-strong);
  cursor: pointer;
}

.tab-btn.active {
  background: rgba(36, 209, 255, 0.14);
  color: #fff;
  border-color: rgba(36, 209, 255, 0.32);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.after-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
}

.after-step span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(135, 89, 255, 0.16);
  font-weight: 800;
}

.after-step strong {
  display: block;
  margin-bottom: 4px;
}

.audit-stack {
  position: relative;
  min-height: 780px;
}

.audit-card {
  position: absolute;
  inset: 0;
  border-radius: 28px;
}

.audit-card-back {
  transform: translate(26px, 28px) rotate(6deg);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
}

.audit-card-mid {
  transform: translate(12px, 14px) rotate(3deg);
  background: linear-gradient(180deg, rgba(36, 209, 255, 0.08), rgba(255,255,255,0.02));
  padding: 22px;
}

.audit-card-front {
  overflow: hidden;
  background: #dfe9f6;
  border: 1px solid rgba(255,255,255,0.14);
}

.audit-label {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.08);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.audit-lines {
  height: calc(100% - 48px);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 100% 18px, 18px 100%;
}

.audit-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.audit-grid-mini span {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  text-align: center;
}

.audit-topbar {
  padding: 12px 16px;
  background: #ffffff;
  color: #0f172a;
}

.audit-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fdba74;
}

.audit-topbar span:nth-child(2) { background: #f87171; }
.audit-topbar span:nth-child(3) { background: #4ade80; }

.audit-topbar strong {
  margin-left: auto;
}

.audit-card-front iframe {
  width: 100%;
  min-height: 730px;
  border: 0;
  background: #fff;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  margin: 10px 0 0;
}

.cta-form {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.cta-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
}

.cta-form input,
.cta-form select,
.cta-form textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

.cta-form input:focus,
.cta-form select:focus,
.cta-form textarea:focus {
  border-color: rgba(36, 209, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(36, 209, 255, 0.08);
}

.btn-submit {
  width: 100%;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cta-statline span {
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--muted-strong);
}

.footer {
  padding: 44px 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 24px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-mark {
  width: 34px;
}

.footer h3 {
  font-size: 1rem;
  margin-bottom: 12px;
}

.form-success .btn-submit {
  background: linear-gradient(135deg, var(--accent-green), #9affcf);
  box-shadow: 0 16px 32px rgba(54, 211, 154, 0.22);
}

.animated-path {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  transition: stroke-dashoffset 1.8s ease;
}

.animated-path.path-visible {
  stroke-dashoffset: 0;
}

@media (max-width: 1120px) {
  .hero-grid,
  .audit-grid,
  .cta-grid,
  .engine-grid,
  .pyramid-grid,
  .faq-grid,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .sticky-heading {
    position: static;
  }

  .proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 18px;
  }

  .codex-badge {
    order: 2;
  }

  .hero-proof,
  .logo-directions,
  .brand-system,
  .pricing-grid,
  .ownership-grid,
  .services-grid,
  .mix-surface,
  .proof-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .mix-columns,
  .module-faders,
  .screen-stats,
  .mini-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-point {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .hero {
    padding-top: 52px;
  }

  h1 {
    font-size: 2.6rem;
  }

  .section-heading h2,
  .cta-copy h2 {
    font-size: 2rem;
  }

  .nav-cta,
  .nav-links {
    display: none;
  }

  .codex-badge {
    order: 3;
    margin-top: 8px;
  }

  .brand {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .brand-sub {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .audit-actions,
  .tab-buttons {
    display: grid;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .mix-columns,
  .module-faders,
  .screen-stats,
  .mini-board {
    grid-template-columns: 1fr;
  }

  .audit-stack {
    min-height: 620px;
  }

  .audit-card-front iframe {
    min-height: 570px;
  }
}
