:root {
  --bg: #050607;
  --panel: rgba(13, 14, 18, 0.94);
  --panel-line: rgba(255, 255, 255, 0.12);
  --panel-soft: rgba(255, 255, 255, 0.06);
  --cream: #f4ebd8;
  --muted: rgba(244, 235, 216, 0.72);
  --lime: #b9d600;
  --lime-strong: #e3ff44;
  --lime-soft: rgba(185, 214, 0, 0.18);
  --terminal-green: #00ff41;
  --glow: rgba(190, 229, 0, 0.46);
  --page-pad: clamp(8px, 1.2vw, 18px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 74%, rgba(181, 207, 0, 0.12), transparent 28%),
    radial-gradient(circle at 78% 56%, rgba(181, 207, 0, 0.16), transparent 26%),
    linear-gradient(180deg, #050607 0%, #050607 52%, #090b0f 100%);
  color: var(--cream);
  font-family: "Inter", "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: auto -10% -18% -10%;
  height: 34vh;
  background: radial-gradient(circle at 50% 20%, rgba(193, 230, 0, 0.16), rgba(0, 0, 0, 0));
  filter: blur(18px);
  pointer-events: none;
}

.hero-page {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--page-pad);
  overflow: hidden;
}

.hero-shell {
  width: min(100%, calc((100vh - (var(--page-pad) * 2)) * 16 / 9), 1400px);
  aspect-ratio: 16 / 9;
}

.hero-board {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(12px, 1.4vw, 22px);
  padding: clamp(14px, 1.5vw, 20px);
}

.hero-copy {
  display: grid;
  gap: 0;
  justify-items: center;
  text-align: center;
}

.hero-pretitle,
.hero-subtitle {
  color: var(--cream);
  font-family: "Inter", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(0.72rem, 0.78vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  color: var(--lime);
  font-family: "Inter", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 3.65vw, 3.85rem);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 0 16px rgba(185, 214, 0, 0.18);
}

.comparison-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(52px, 5vw, 80px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(8px, 1vw, 12px);
  min-height: 0;
}

.browser-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 2px solid var(--panel-line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 21, 25, 0.98), rgba(9, 10, 14, 0.96));
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.after-card {
  border-color: rgba(185, 214, 0, 0.48);
  box-shadow: 0 0 0 1px rgba(185, 214, 0, 0.12), 0 26px 58px rgba(0, 0, 0, 0.42), 0 0 38px rgba(185, 214, 0, 0.18);
}

.after-card::after {
  content: "";
  position: absolute;
  top: 36px;
  right: -72px;
  width: 136px;
  height: 84%;
  background-image: radial-gradient(circle, rgba(185, 214, 0, 0.92) 0 1px, transparent 1.5px);
  background-size: 10px 10px;
  opacity: 0.34;
  filter: blur(0.1px);
  pointer-events: none;
}

.browser-tab {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 148px;
  height: 30px;
  padding: 4px 14px 0;
  border: 2px solid var(--panel-line);
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
  background: #14161a;
  color: var(--cream);
  font-family: "Inter", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
}

.browser-tab.is-accent {
  border-color: rgba(185, 214, 0, 0.55);
  color: var(--lime);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 0;
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.browser-bar.is-accent span {
  background: var(--lime);
}

.browser-body {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: clamp(18px, 1.9vw, 24px) clamp(20px, 2.2vw, 30px) clamp(16px, 1.8vw, 22px);
  overflow: hidden;
}

.before-body {
  display: grid;
  align-content: center;
  gap: clamp(12px, 1.5vw, 20px);
}

.before-stack {
  font-family: "Bahnschrift", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(2.3rem, 3.35vw, 3.6rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

.before-accent {
  width: 60px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--lime), rgba(185, 214, 0, 0.2));
  box-shadow: 0 0 18px rgba(185, 214, 0, 0.18);
}

.before-note {
  max-width: 28ch;
  color: rgba(244, 235, 216, 0.78);
  font-size: clamp(0.72rem, 0.82vw, 0.88rem);
  line-height: 1.34;
}

.after-body {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: clamp(10px, 1.2vw, 16px);
}

.matrix-surface {
  position: absolute;
  inset: 16px;
  background:
    linear-gradient(180deg, rgba(185, 214, 0, 0.08), rgba(185, 214, 0, 0.02)),
    radial-gradient(circle at 14% 18%, rgba(185, 214, 0, 0.08), transparent 18%),
    radial-gradient(circle at 85% 72%, rgba(185, 214, 0, 0.12), transparent 22%),
    repeating-linear-gradient(0deg, rgba(185, 214, 0, 0.04) 0 1px, transparent 1px 11px),
    repeating-linear-gradient(90deg, rgba(185, 214, 0, 0.04) 0 1px, transparent 1px 11px);
  border-radius: 14px;
  opacity: 0.78;
}

.ascii-stack,
.after-microcopy {
  position: relative;
  z-index: 1;
}

.ascii-stack {
  display: grid;
  gap: 6px;
}

.ascii-word {
  width: 100%;
}

.ascii-word pre {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  font-size: clamp(5.8px, 0.54vw, 8.6px);
  line-height: 1;
  text-align: left;
  overflow: hidden;
  text-shadow: 0 0 12px rgba(248, 240, 208, 0.08);
  transition: color 180ms ease, text-shadow 180ms ease;
}

.ascii-word:hover pre {
  color: var(--terminal-green);
  text-shadow: 0 0 14px rgba(0, 255, 65, 0.38), 0 0 24px rgba(0, 255, 65, 0.18);
}

.after-microcopy {
  display: grid;
  gap: 6px;
  padding-top: 0;
  color: rgba(244, 235, 216, 0.82);
  font-size: clamp(0.7rem, 0.78vw, 0.82rem);
  line-height: 1.28;
}

.arrow-connector {
  position: relative;
  align-self: center;
  min-height: 0;
}

.arrow-glow,
.arrow-line,
.arrow-head {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.arrow-glow {
  left: 4px;
  right: 4px;
  height: 14px;
  background: radial-gradient(circle at 50% 50%, rgba(222, 255, 70, 0.48), transparent 70%);
  filter: blur(12px);
}

.arrow-line {
  left: 4px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(185, 214, 0, 0.18), var(--lime-strong) 52%, rgba(185, 214, 0, 0.16));
  box-shadow: 0 0 16px rgba(227, 255, 68, 0.32);
}

.arrow-head {
  right: 4px;
  width: 18px;
  height: 18px;
  border-top: 3px solid var(--lime-strong);
  border-right: 3px solid var(--lime-strong);
  transform: translateY(-50%) rotate(45deg);
  box-shadow: 0 0 16px rgba(227, 255, 68, 0.22);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 8px;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  padding: 4px 8px;
}

.feature-item + .feature-item {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(185, 214, 0, 0.1);
  color: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(185, 214, 0, 0.18);
}

.feature-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item h2 {
  color: var(--lime);
  font-family: "Inter", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
}

.feature-item p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

@media (max-width: 1100px) {
  .hero-title {
    font-size: clamp(1.95rem, 4vw, 3.2rem);
  }

  .comparison-row {
    grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  }

  .before-stack {
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  }

  .browser-body {
    padding: 16px 18px 16px;
  }

  .ascii-word pre {
    font-size: clamp(4.8px, 0.52vw, 7.4px);
  }

  .after-card::after {
    display: none;
  }
}

@media (max-width: 780px) {
  .hero-page {
    padding: 8px;
  }

  .hero-board {
    gap: 10px;
    padding: 10px;
  }

  .hero-pretitle,
  .hero-subtitle {
    font-size: 0.66rem;
    letter-spacing: 0.2em;
  }

  .hero-title {
    font-size: clamp(1.36rem, 5vw, 2.24rem);
    letter-spacing: 0.08em;
  }

  .comparison-row {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
    gap: 6px;
  }

  .browser-card {
    border-radius: 18px;
  }

  .browser-tab {
    top: -22px;
    min-width: 104px;
    height: 24px;
    padding-top: 4px;
    font-size: 0.72rem;
  }

  .browser-bar {
    gap: 6px;
    padding: 8px 10px 0;
  }

  .browser-bar span {
    width: 7px;
    height: 7px;
  }

  .browser-body {
    padding: 12px 12px 12px;
  }

  .before-stack {
    font-size: clamp(1.14rem, 3.5vw, 1.76rem);
  }

  .before-note,
  .after-microcopy,
  .feature-item p {
    font-size: 0.64rem;
  }

  .feature-icon {
    width: 28px;
    height: 28px;
    font-size: 0.76rem;
  }

  .feature-item {
    gap: 8px;
    padding: 4px 6px;
  }

  .feature-item h2 {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
}

body.is-embedded {
  --page-pad: 8px;
}

body.is-embedded .hero-board {
  gap: 12px;
  padding: 12px;
}

body.is-embedded .hero-title {
  font-size: clamp(1.88rem, 3.2vw, 3.2rem);
}

body.is-embedded .browser-tab {
  min-width: 132px;
  font-size: 0.82rem;
}

body.is-embedded .feature-item p {
  font-size: 0.68rem;
}