*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --blue: #2f6bff;
  --blue-dark: #1e50d4;
  --ink: #16181d;
  --ink-soft: #4b5563;
  --muted: #9ca3af;
  --bg-light: #f5f6f8;
  --card: #ffffff;
  --card-border: rgba(22, 24, 29, 0.07);
  --lavender: #e6e9f7;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1120px;
  --shadow-soft: 0 20px 60px rgba(22, 24, 29, 0.12);
  --shadow-card: 0 2px 10px rgba(22, 24, 29, 0.05);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
}

p {
  margin: 0;
}

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

.container--narrow {
  max-width: 820px;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.br-desktop {
  display: none;
}

@media (min-width: 720px) {
  .br-desktop {
    display: inline;
  }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 13.5px;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(47, 107, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn--light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.btn--light:hover {
  transform: translateY(-1px);
}

/* ============ Header ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header--solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(22, 24, 29, 0.06);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
}

.brand__logo {
  display: block;
  flex: none;
}

.site-header .brand {
  color: #fff;
}

.site-header .brand__logo--dark {
  display: none;
}

.site-header--solid .brand {
  color: var(--ink);
}

.site-header--solid .brand__logo--light {
  display: none;
}

.site-header--solid .brand__logo--dark {
  display: block;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.site-header--solid .site-nav {
  color: var(--ink-soft);
}

.site-nav a:hover {
  opacity: 0.7;
}

.site-header__inner > .btn {
  margin-left: auto;
}

@media (max-width: 620px) {
  .site-nav {
    display: none;
  }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 140px 24px 96px;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

@media (max-width: 720px) {
  .hero {
    padding-bottom: 60px;
  }
}

.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #2f6470 0%, #4a8390 30%, #93bcc2 62%, #dbe8ea 88%, #f5f6f8 100%);
}

/* Soft fade into the next section so the hero flows instead of cutting off */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0) 0%, rgba(245, 246, 248, 0.65) 55%, var(--bg-light) 100%);
}

.hero__mountain {
  position: absolute;
  bottom: -2%;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero__mountain--back {
  left: -18%;
  width: 75%;
  height: 34%;
  background: linear-gradient(180deg, rgba(62, 105, 115, 0.5), rgba(145, 180, 185, 0.15));
  filter: blur(6px);
}

.hero__mountain--front {
  right: -22%;
  width: 80%;
  height: 26%;
  background: linear-gradient(180deg, rgba(80, 125, 133, 0.4), rgba(170, 200, 203, 0.1));
  filter: blur(8px);
}

.hero__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(50px, 8vw, 92px);
  letter-spacing: -0.01em;
  text-shadow: 0 2px 30px rgba(16, 48, 52, 0.28);
}

.hero__lead {
  margin: 22px auto 0;
  max-width: 560px;
  font-size: clamp(14px, 1.5vw, 15px);
  color: rgba(255, 255, 255, 0.92);
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* Hero demo (fake desktop) */
.hero__demo {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 70px auto 0;
}

.desktop {
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 30px 90px rgba(16, 48, 52, 0.33),
    0 6px 24px rgba(16, 48, 52, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.desktop__chrome {
  min-height: 35px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.desktop__wallpaper {
  position: relative;
  min-height: 540px;
  background:
    radial-gradient(ellipse 90% 70% at 20% 100%, rgba(214, 150, 110, 0.5), transparent),
    linear-gradient(180deg, #e8956a 0%, #d4a789 25%, #9fbdc0 60%, #6f9aa2 100%);
  padding: 32px;
}

@media (max-width: 720px) {
  .desktop__wallpaper {
    min-height: 620px;
    padding: 18px 12px;
  }
}

/* Scenes behind the overlay — one per quick action, cross-fading */
.scenes {
  position: absolute;
  top: 36px;
  left: 36px;
  width: min(480px, 56%);
}

.scene {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.scene--active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.scene-window {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 48, 52, 0.26);
}

.scene-window__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f0f2f6;
  border-bottom: 1px solid rgba(22, 24, 29, 0.06);
}

.scene-window__title {
  margin-left: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Spreadsheet (Summarize) */
.sheet {
  display: grid;
  grid-template-columns: 28px repeat(4, 1fr);
  font-size: 11.5px;
}

.sheet__cell {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(22, 24, 29, 0.06);
  border-right: 1px solid rgba(22, 24, 29, 0.06);
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
}

.sheet__cell--corner,
.sheet__cell--head,
.sheet__cell--row {
  background: #f7f8fb;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.sheet__cell--label {
  font-weight: 600;
  color: var(--ink);
}

.sheet__cell--hl {
  background: rgba(47, 107, 255, 0.08);
  color: var(--blue);
  font-weight: 600;
}

/* Online math practice problem (Solve) */
.math-practice {
  background: #f5f7fb;
}

.math-practice__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 7px;
  color: #586274;
  font-size: 10.5px;
}

.math-practice__status strong {
  color: #273044;
  font-size: 10.5px;
}

.math-practice__progress {
  height: 4px;
  margin: 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe4ed;
}

.math-practice__progress span {
  display: block;
  width: 30%;
  height: 100%;
  border-radius: inherit;
  background: #4f75e8;
}

.math-practice__problem {
  margin: 12px 16px 16px;
  padding: 15px 18px;
  border: 1px solid #e1e5ed;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 42, 74, 0.06);
}

.math-practice__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: #8b95a7;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.math-practice__problem h4 {
  font-size: 13px;
  font-weight: 600;
  color: #252b38;
}

.math-practice__equation {
  margin: 9px 0 5px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px;
  color: #171b24;
}

.math-practice__problem p {
  color: #70798a;
  font-size: 10.5px;
}

.math-practice__answers {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: #3f4757;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
}

.math-practice__input {
  width: 46px;
  height: 28px;
  border: 1.5px solid #aeb7c7;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(22, 24, 29, 0.05);
}

.math-practice__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 13px;
}

.math-practice__hint {
  color: #65728a;
  font-size: 9.5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.math-practice__submit {
  padding: 6px 11px;
  border-radius: 6px;
  background: #4f75e8;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(79, 117, 232, 0.24);
}

/* Chat thread (Respond) */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.chat__msg {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.chat__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.chat__avatar--1,
.chat__avatar--2 {
  background: linear-gradient(140deg, #8f7ae8, #6a54c9);
}

.chat__bubble {
  padding: 9px 12px;
  border-radius: 4px 14px 14px 14px;
  background: #f2f3f8;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 44ch;
}

.chat__name {
  display: block;
  margin-bottom: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: #6a54c9;
}

.chat__reply {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 8px 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(22, 24, 29, 0.1);
}

.chat__reply-text {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
}

.chat__reply-send {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6a54c9;
  color: #fff;
}

/* Molecule (Explain) */
.molecule {
  position: relative;
  display: grid;
  place-items: center;
  padding: 22px 20px 26px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 40%, rgba(91, 127, 240, 0.06), transparent),
    #fff;
}

.molecule svg {
  width: min(300px, 80%);
  height: auto;
}

.molecule__formula {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

/* App demo — mirrors the real Instelo overlay (ghost-app/overlay/overlay.css) */
.app-demo {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: min(470px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #fff;
  text-align: left;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.42);
}

@media (max-width: 860px) {
  .scenes {
    top: 20px;
    left: 14px;
    width: calc(100% - 28px);
  }

  .app-demo {
    right: 12px;
    bottom: 14px;
    width: calc(100% - 24px);
  }
}

/* Quick actions: floating glass chips above the shell, exactly like the app */
.app-demo__quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.qa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(24, 26, 30, 0.82);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.28);
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.qa:hover,
.qa--active {
  background: rgba(24, 26, 30, 0.9);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.qa-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(12, 12, 14, 0.45);
}

/* Glass shell (expanded state of the app: 20px radius, blurred smoke glass) */
.app-demo__shell {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: rgb(24 26 30 / 0.79);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.06),
    0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
}

.app-demo__header {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 8px 4px;
}

.app-demo__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.55);
}

.app-demo__thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  padding: 8px 14px 12px;
}

.demo-msg[hidden],
.demo-thinking[hidden] {
  display: none;
}

.demo-msg--user {
  align-self: flex-end;
  max-width: 88%;
  display: flex;
  justify-content: flex-end;
}

.demo-msg__bubble {
  display: inline-block;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
  background: rgb(24 26 30 / 0.47);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 20px rgba(0, 0, 0, 0.22);
}

.demo-msg--assistant {
  align-self: stretch;
}

.demo-msg__bubble--assistant {
  display: block;
  width: 100%;
}

.demo-msg__bubble--assistant p {
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
}

/* Thinking pill: bulb + "Thinking..." exactly like the app's loading state */
.demo-thinking {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 7px 12px 7px 9px;
  border-radius: 999px;
  background: rgb(24 26 30 / 0.47);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 18px rgba(0, 0, 0, 0.22);
}

.demo-thinking__text {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.48);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.demo-thinking__text::after {
  content: '';
  display: inline-block;
  width: 1.1em;
  text-align: left;
  animation: thinkingEllipsis 1.35s steps(4, end) infinite;
}

@keyframes thinkingEllipsis {
  0% { content: ''; }
  25% { content: '.'; }
  50% { content: '..'; }
  75% { content: '...'; }
}

/* Composer: 999px pill with hairline border, like the app's expanded composer */
.app-demo__composer {
  padding: 10px 14px 12px;
}

.app-demo__pill {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 56px;
  padding: 8px 8px 8px 12px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.app-demo__input {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 36px;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
}

.app-demo__placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.app-demo__placeholder[hidden] {
  display: none;
}

.caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  margin-left: 1px;
  vertical-align: middle;
  background: #fff;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.app-demo__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
}

.app-demo__model {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
}

.app-demo__model svg {
  color: rgba(255, 255, 255, 0.65);
}

.app-demo__send {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(255, 255, 255, 0.85);
}

/* ============ Sections ============ */
.section {
  padding: 110px 0;
}

.section--light {
  background: var(--bg-light);
}

.section--tight {
  padding: 70px 0;
}

.section__title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section__lead {
  color: var(--ink-soft);
  margin-bottom: 40px;
  font-size: 17px;
}

.center.section__title,
.center.section__lead {
  margin-left: auto;
  margin-right: auto;
}

/* ============ Feature cards (2-up) ============ */
.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 40px;
}

@media (max-width: 820px) {
  .cards-2 {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  border-radius: var(--radius-lg);
  padding: 34px 34px 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card--blue {
  background: linear-gradient(170deg, #2f6470 0%, #4a8390 55%, #7fadb6 100%);
  color: #fff;
  border: none;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 650;
  margin-bottom: 12px;
}

.feature-card > p {
  font-size: 15px;
  opacity: 0.9;
  max-width: 42ch;
}

.chip {
  display: inline-block;
  padding: 1px 12px;
  border-radius: 999px;
  font-size: 0.85em;
  vertical-align: 2px;
}

.chip--glass {
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.chip--spark {
  background: rgba(47, 107, 255, 0.1);
  border: 1px solid rgba(47, 107, 255, 0.3);
  color: var(--blue);
}

.feature-card__visual {
  margin-top: 30px;
  padding-bottom: 34px;
}

/* Screen-context graphic in blue card */
.screen-context {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 36px rgba(23, 54, 130, 0.24);
  color: #202633;
}

.screen-context__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  background: #eef2fa;
  border-bottom: 1px solid #e2e7f1;
}

.screen-context__title {
  margin-left: 0;
  font-size: 9px;
  font-weight: 600;
  color: #7a8498;
}

.screen-context__body {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-height: 210px;
}

.screen-context__sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  background: #f6f8fc;
  border-right: 1px solid #e9edf4;
}

.screen-context__sidebar span {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: #dce3ef;
}

.screen-context__sidebar span:first-child {
  background: #6f91ef;
}

.screen-context__document {
  padding: 15px 18px;
}

.screen-context__document strong {
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
}

.screen-context__line,
.screen-context__selection-line {
  display: block;
  width: 88%;
  height: 6px;
  margin-bottom: 7px;
  border-radius: 999px;
  background: #dfe4ed;
}

.screen-context__line--short {
  width: 58%;
}

.screen-context__selection {
  position: relative;
  margin-top: 10px;
  min-height: 112px;
  padding: 18px 16px 22px;
  border: 1.5px solid #5f83ed;
  border-radius: 8px;
  background: rgba(95, 131, 237, 0.09);
  box-shadow: 0 0 0 3px rgba(95, 131, 237, 0.08);
}

.screen-context__selection-line {
  width: 92%;
  background: rgba(77, 104, 180, 0.28);
}

.screen-context__selection-line--short {
  width: 62%;
  margin-bottom: 0;
}

.screen-context__badge {
  position: absolute;
  right: 8px;
  bottom: -12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #315fcf;
  box-shadow: 0 5px 14px rgba(31, 70, 164, 0.28);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
}

/* Mini composer pill — the app's compact state (999px pill, dark glass) */
.mini-composer {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 14px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgb(24 26 30 / 0.92);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 12.5px;
}

.mini-composer--in-shell {
  margin-top: 12px;
  background: transparent;
  background-image: none;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  min-height: 40px;
}

.mini-composer__placeholder {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.38);
}

.mini-composer__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
}

.mini-composer__model {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
}

.mini-composer__send {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(255, 255, 255, 0.85);
}

/* Mini app mock in white card — quick actions + assistant bubble + pill, like the real overlay */
.mini-app {
  display: flex;
  flex-direction: column;
}

.mini-app__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 0 4px;
}

.mini-app__actions i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(12, 12, 14, 0.45);
}

.mini-qa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(24, 26, 30, 0.82);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
}

.mini-app__bubble {
  border-radius: 14px;
  padding: 10px 13px;
  background: rgb(24 26 30 / 0.88);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.22);
}

.mini-app__bubble p {
  font-size: 12.5px;
  line-height: 1.55;
  color: #fff;
}

/* ============ Models row ============ */
.model-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.model-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  font-weight: 600;
  font-size: 15px;
}

.model-badge__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.model-badge__dot--claude { background: #d97848; }
.model-badge__dot--gpt { background: #10a37f; }
.model-badge__dot--gemini { background: #4285f4; }

/* ============ Undetectable cards ============ */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 46px;
}

@media (max-width: 920px) {
  .cards-3 {
    grid-template-columns: 1fr;
  }
}

.u-card {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 26px;
}

.u-card > p {
  padding: 18px 10px 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.u-card > p strong {
  color: var(--ink);
}

.u-card__visual {
  border-radius: var(--radius-md);
  background: var(--lavender);
  min-height: 210px;
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: hidden;
}

/* participants mock */
.participants {
  width: 100%;
  max-width: 260px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(22, 24, 29, 0.12);
  padding: 12px;
  font-size: 11.5px;
}

.participants__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 10px;
}

.pill-ok {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 170, 90, 0.12);
  color: #1b8a4c;
  font-size: 10px;
  font-weight: 600;
}

.participants__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
}

.p-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.p-avatar--1 { background: linear-gradient(140deg, #7aa5f0, #4a6fd0); }
.p-avatar--2 { background: linear-gradient(140deg, #f0b47a, #d07f4a); }
.p-avatar--3 { background: linear-gradient(140deg, #8fd6a5, #4aa86a); }

.p-name {
  font-weight: 500;
}

.p-role {
  margin-left: auto;
  color: var(--muted);
  font-size: 10.5px;
}

/* split view mock */
.split-view {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  overflow: hidden;
}

.split-view__half {
  position: relative;
  padding: 12px;
}

.split-view__half--you {
  background: #fff;
}

.split-view__half--them {
  background: repeating-linear-gradient(45deg, #f0f1f6 0 8px, #e8eaf2 8px 16px);
}

.split-view__divider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #6ee79a;
  box-shadow: 0 0 12px rgba(110, 231, 154, 0.8);
}

.split-view__label {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.75);
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
}

.split-view__response {
  margin-top: 14px;
  border-radius: 12px;
  padding: 9px;
  background: rgb(24 26 30 / 0.9);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.25);
}

.split-view__line {
  display: block;
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

.split-view__line--short {
  width: 55%;
}

.split-view__pill {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 4px 4px 4px 8px;
  border-radius: 999px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.split-view__pill-text {
  flex: 1;
  font-size: 8.5px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
  overflow: hidden;
}

.split-view__pill-send {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

/* move demo mock */
.move-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
}

.move-demo__window {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: rgb(24 26 30 / 0.92);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.3);
  animation: drift 5s ease-in-out infinite;
}

.move-demo__placeholder {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.move-demo__model {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.58);
  white-space: nowrap;
}

.move-demo__send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(255, 255, 255, 0.85);
}

@keyframes drift {
  0%, 100% { transform: translate(-30px, 0); }
  25% { transform: translate(30px, -10px); }
  50% { transform: translate(20px, 14px); }
  75% { transform: translate(-25px, 8px); }
}

/* compat row */
.compat {
  margin-top: 60px;
  text-align: center;
}

.compat__label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.compat__row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.compat__item {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ============ Stats ============ */
.stats-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

/* Agentic auto-inject graphic */
.inject-demo {
  overflow: hidden;
  border: 1px solid rgba(22, 24, 29, 0.08);
  border-radius: var(--radius-lg);
  background: #e8ebf7;
  box-shadow: 0 18px 45px rgba(48, 61, 103, 0.12);
}

.inject-demo__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(22, 24, 29, 0.07);
}

.inject-demo__app {
  margin-left: 6px;
  color: #667084;
  font-size: 10px;
  font-weight: 600;
}

.inject-demo__body {
  padding: 18px;
}

.inject-demo__instruction {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  padding: 6px 6px 6px 13px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgb(24 26 30 / 0.92);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 9px 24px rgba(27, 31, 45, 0.24);
  color: rgba(255, 255, 255, 0.94);
  font-size: 11.5px;
}

.inject-demo__instruction-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.inject-demo__instruction-more,
.inject-demo__instruction-send {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.78);
}

.inject-demo__instruction-model {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10.5px;
  font-weight: 500;
}

.inject-demo__instruction-send {
  background: rgba(255, 255, 255, 0.1);
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(255, 255, 255, 0.85);
}

.inject-demo__path {
  position: relative;
  display: flex;
  justify-content: center;
  height: 31px;
  color: #7182ad;
}

.inject-demo__path-line {
  position: absolute;
  top: 0;
  bottom: 6px;
  width: 1.5px;
  background: linear-gradient(180deg, #6f8fe8, #b9c4e2);
}

.inject-demo__path svg {
  position: absolute;
  bottom: 0;
}

.inject-demo__agent-dot {
  position: absolute;
  top: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #4f75e8;
  box-shadow: 0 0 0 3px rgba(79, 117, 232, 0.17);
  animation: agentTravel 2.1s ease-in-out infinite;
}

@keyframes agentTravel {
  0%, 15% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  75% { transform: translateY(18px); opacity: 1; }
  90%, 100% { transform: translateY(18px); opacity: 0; }
}

.inject-demo__editor {
  padding: 12px 14px 11px;
  border: 1px solid rgba(22, 24, 29, 0.08);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(42, 52, 84, 0.1);
}

.inject-demo__field-row {
  display: flex;
  gap: 9px;
  padding: 5px 2px;
  border-bottom: 1px solid #edf0f5;
  font-size: 9.5px;
}

.inject-demo__field-row span {
  width: 38px;
  color: #98a0ae;
}

.inject-demo__field-row strong {
  color: #4b5465;
  font-weight: 500;
}

.inject-demo__message {
  min-height: 82px;
  padding: 11px 2px 8px;
  color: #333b4b;
  font-size: 11px;
  line-height: 1.55;
}

.inject-demo__caret {
  display: inline-block;
  width: 1.5px;
  height: 12px;
  margin-left: 1px;
  vertical-align: -2px;
  background: #4f75e8;
  animation: blink 0.8s steps(1) infinite;
}

.inject-demo__editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #edf0f5;
}

.inject-demo__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #687389;
  font-size: 9px;
  font-weight: 500;
}

.inject-demo__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4f75e8;
  box-shadow: 0 0 0 3px rgba(79, 117, 232, 0.12);
}

.inject-demo__status--done {
  color: #288657;
}

.inject-demo__status--done i {
  background: #35a76d;
  box-shadow: 0 0 0 3px rgba(53, 167, 109, 0.12);
}

.inject-demo__send {
  padding: 5px 12px;
  border-radius: 6px;
  background: #3d7a87;
  color: #fff;
  font-size: 9.5px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(61, 122, 135, 0.24);
}

.u-card__visual--inject {
  min-height: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.inject-demo--compact {
  width: 100%;
  border-radius: 18px;
}

.inject-demo--compact .inject-demo__bar {
  height: 28px;
  padding: 0 10px;
}

.inject-demo--compact .inject-demo__body {
  padding: 10px;
}

.inject-demo--compact .inject-demo__instruction {
  min-height: 38px;
  padding: 4px 4px 4px 10px;
  font-size: 9px;
}

.inject-demo--compact .inject-demo__instruction-more,
.inject-demo--compact .inject-demo__instruction-send {
  width: 27px;
  height: 27px;
}

.inject-demo--compact .inject-demo__instruction-model {
  padding: 0 3px;
  font-size: 8.5px;
}

.inject-demo--compact .inject-demo__path {
  height: 23px;
}

.inject-demo--compact .inject-demo__agent-dot {
  animation-name: agentTravelCompact;
}

@keyframes agentTravelCompact {
  0%, 15% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  75% { transform: translateY(10px); opacity: 1; }
  90%, 100% { transform: translateY(10px); opacity: 0; }
}

.inject-demo--compact .inject-demo__editor {
  padding: 8px 10px;
  border-radius: 10px;
}

.inject-demo--compact .inject-demo__field-row {
  padding: 3px 1px;
  font-size: 8px;
}

.inject-demo--compact .inject-demo__field-row span {
  width: 30px;
}

.inject-demo--compact .inject-demo__message {
  min-height: 55px;
  padding: 7px 1px 5px;
  font-size: 8.5px;
  line-height: 1.45;
}

.inject-demo--compact .inject-demo__editor-footer {
  padding-top: 6px;
}

.inject-demo--compact .inject-demo__status,
.inject-demo--compact .inject-demo__send {
  font-size: 7.5px;
}

.inject-demo--compact .inject-demo__send {
  padding: 4px 9px;
}

/* Traditional browser AI vs Instelo race */
.ai-race {
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(22, 24, 29, 0.07);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 4%, rgba(92, 129, 238, 0.15), transparent 32%),
    var(--lavender);
  box-shadow: 0 18px 45px rgba(48, 61, 103, 0.1);
}

.ai-race__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ai-race__header > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-race__eyebrow {
  color: #8792a8;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-race__header strong {
  color: #293143;
  font-size: 13px;
}

.ai-race [hidden] {
  display: none !important;
}

.ai-race__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.race-lane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(37, 48, 78, 0.07);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  transition: box-shadow 220ms ease, border-color 220ms ease;
}

.race-lane--done {
  border-color: rgba(55, 159, 104, 0.28);
  box-shadow: 0 0 0 3px rgba(55, 159, 104, 0.08);
}

.race-lane--instelo.race-lane--done {
  background: rgba(249, 255, 252, 0.82);
}

.race-lane__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: #5d687d;
  font-size: 9.5px;
  font-weight: 600;
}

.race-lane--instelo .race-lane__header span {
  color: #4267d0;
}

.race-lane__header strong {
  min-width: 46px;
  padding: 3px 7px;
  border: 1px solid rgba(79, 117, 232, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.75);
  color: #47546d;
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.race-lane--done .race-lane__header strong {
  border-color: rgba(55, 163, 109, 0.25);
  color: #2e875b;
}

.race-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
}

/* Shared mini window (matches the hero scene windows) */
.race-win {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(31, 41, 70, 0.08);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(42, 54, 88, 0.07);
}

.race-lane--browser .race-win {
  flex: 1;
}

.race-win__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  background: #f0f2f6;
  border-bottom: 1px solid rgba(22, 24, 29, 0.06);
}

.race-win__title {
  margin-left: 0;
  font-size: 8.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.race-win__bar--tabs {
  align-items: flex-end;
  gap: 4px;
  padding: 6px 8px 0;
  background: #eef1f6;
  border-bottom: 1px solid #e3e7ef;
}

.race-tab {
  padding: 4px 9px 5px;
  border-radius: 6px 6px 0 0;
  color: #9099aa;
  font-size: 8px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease;
}

.race-tab--active {
  background: #fff;
  color: #525d72;
}

.race-view {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.race-view[hidden] {
  display: none;
}

/* Mini math problem (matches the hero Solve scene) */
.race-math {
  flex: 1;
  padding: 10px;
  background: #f5f7fb;
}

.race-math__card {
  padding: 10px 12px;
  border: 1px solid #e1e5ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 42, 74, 0.06);
}

.race-math__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #8b95a7;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.race-math__prompt {
  color: #70798a;
  font-size: 9px;
}

.race-math__equation {
  margin: 6px 0 4px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 19px;
  color: #171b24;
}

.race-math__answers {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: #3f4757;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
}

.race-math__input {
  display: grid;
  place-items: center;
  width: 36px;
  height: 24px;
  border: 1.5px solid #aeb7c7;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(22, 24, 29, 0.05);
  color: #1d4ecc;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.race-math__input--filled {
  border-color: #4f75e8;
  box-shadow: 0 0 0 3px rgba(79, 117, 232, 0.12);
}

/* Snipping tool overlay (browser lane, step 1) */
.race-snip {
  position: absolute;
  inset: 0;
  background: rgba(23, 30, 48, 0.16);
}

.race-snip__rect {
  position: absolute;
  top: 32px;
  left: 16px;
  right: 16px;
  height: 66px;
  border: 1.5px dashed #4f75e8;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  transform-origin: top left;
  animation: raceSnip 1.5s ease forwards;
}

@keyframes raceSnip {
  0% { transform: scale(0.15); opacity: 0; }
  25% { opacity: 1; }
  70%, 100% { transform: scale(1); opacity: 1; }
}

.race-snip__label {
  position: absolute;
  right: 9px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #315fcf;
  box-shadow: 0 5px 14px rgba(31, 70, 164, 0.28);
  color: #fff;
  font-size: 8px;
  font-weight: 600;
}

/* Browser AI chat view (browser lane, steps 2–5) */
.race-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 9px;
}

.race-chat__msgs {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
}

.race-chat__msg {
  max-width: 88%;
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 9px;
  line-height: 1.45;
}

.race-chat__msg--user {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-end;
  gap: 5px;
  border-bottom-right-radius: 3px;
  background: #e3e9f8;
  color: #333c50;
}

.race-chat__shot {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid rgba(51, 60, 80, 0.14);
  border-radius: 6px;
  background: #fff;
  color: #3f4757;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 8.5px;
}

.race-chat__msg--ai {
  position: relative;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
  background: #f2f4f8;
  color: #2a3140;
  font-family: Georgia, 'Times New Roman', serif;
  transition: background 200ms ease, box-shadow 200ms ease;
}

.race-chat__msg--copied {
  background: #e9efff;
  box-shadow: 0 0 0 2px rgba(79, 117, 232, 0.3);
}

.race-chat__copied {
  position: absolute;
  top: -9px;
  right: -5px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #315fcf;
  box-shadow: 0 4px 10px rgba(31, 70, 164, 0.28);
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 7px;
  font-weight: 700;
}

.race-chat__typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 3px;
  padding: 8px 9px;
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  background: #f2f4f8;
}

.race-chat__typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9aa4b8;
  animation: raceTyping 1s ease-in-out infinite;
}

.race-chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.race-chat__typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes raceTyping {
  0%, 100% { opacity: 0.5; }
  40% { opacity: 1; transform: translateY(-3px); }
}

.race-chat__input {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  margin-top: 8px;
  padding: 5px 10px;
  border: 1px solid #dde2ec;
  border-radius: 999px;
  background: #f8f9fc;
  color: #2a3140;
  font-size: 8.5px;
}

.race-chat__placeholder {
  color: #a2abbd;
}

.race-chat__attach {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: 5px;
  background: #e3e9f8;
  color: #44507a;
  font-size: 7.5px;
  font-weight: 600;
}

.race-chat__caret {
  width: 1px;
  height: 10px;
  background: #2a3140;
  animation: raceCaret 0.9s steps(1) infinite;
}

@keyframes raceCaret {
  50% { opacity: 0; }
}

/* Instelo overlay (instelo lane) — same glass as the app mocks */
.race-overlay {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  padding: 0 2px;
}

.race-overlay__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 220ms ease;
}

.race-overlay__actions--hidden {
  opacity: 0;
  visibility: hidden;
}

.race-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(24, 26, 30, 0.82);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.95);
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.race-chip--pressed {
  transform: scale(0.93);
  box-shadow:
    0 0 0 2.5px rgba(120, 150, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.18);
}

.race-shell {
  width: 100%;
  padding: 9px 10px;
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: rgb(24 26 30 / 0.92);
  background-image:
    linear-gradient(155deg, rgba(255, 255, 255, 0.07) 0%, transparent 44%),
    linear-gradient(325deg, rgba(255, 255, 255, 0.04) 0%, transparent 48%);
  box-shadow:
    0 0 0 0.5px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 30px rgba(0, 0, 0, 0.28);
  transition: opacity 220ms ease, transform 220ms ease;
}

.race-shell--hidden {
  opacity: 0;
  transform: translateY(6px);
}

.race-shell__body {
  min-height: 30px;
}

.race-shell__thinking {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8.5px;
}

.race-shell__thinking svg {
  animation: raceThink 1.2s ease-in-out infinite;
}

@keyframes raceThink {
  50% { opacity: 0.45; }
}

.race-shell__answer {
  color: #fff;
  font-size: 9px;
  line-height: 1.5;
}

.race-shell__pill {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  margin-top: 8px;
  padding: 3px 3px 3px 9px;
  border: 0.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  color: rgba(255, 255, 255, 0.85);
  font-size: 8.5px;
}

.race-shell__pill > span:first-child {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.race-shell__model {
  flex: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}

.race-shell__send {
  display: grid;
  flex: none;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

/* Progress + step captions */
.race-progress {
  height: 3px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(79, 91, 120, 0.12);
}

.race-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #8a96ad;
}

.race-lane--instelo .race-progress i {
  background: #4f75e8;
}

.race-lane--done .race-progress i {
  background: #37a36d;
}

.race-status {
  min-height: 12px;
  margin-top: 7px;
  color: #6f7a8e;
  font-size: 8.5px;
  font-weight: 500;
}

.race-lane--done .race-status {
  color: #2e875b;
  font-weight: 600;
}

.ai-race__result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 13px;
  color: #8993a6;
  font-size: 8.5px;
}

.ai-race__result strong {
  color: #30394b;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11.5px;
}

.ai-race__saving {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(55, 163, 109, 0.1);
  color: #2e875b;
  font-weight: 600;
  opacity: 0;
  transition: opacity 220ms ease;
}

.ai-race--instelo-won .ai-race__saving {
  opacity: 1;
}

@media (max-width: 560px) {
  .ai-race__grid {
    grid-template-columns: 1fr;
  }
}

.stat {
  display: flex;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(22, 24, 29, 0.08);
}

.stat:last-child {
  border-bottom: none;
}

.stat__num {
  font-size: 46px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  min-width: 64px;
}

.stat h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.stat p {
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ============ FAQ ============ */
.faq-list {
  margin-top: 34px;
  border-top: 1px solid rgba(22, 24, 29, 0.1);
}

.faq {
  border-bottom: 1px solid rgba(22, 24, 29, 0.1);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-weight: 550;
  font-size: 16.5px;
  cursor: pointer;
  list-style: none;
}

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

.faq__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-soft);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq__icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.faq[open] .faq__icon::after {
  transform: translateY(-50%) rotate(0deg);
}

.faq p {
  padding: 0 4px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 64ch;
}

.faq a {
  color: var(--blue);
  font-weight: 500;
}

/* ============ Final CTA ============ */
.final-cta {
  position: relative;
  overflow: hidden;
  padding: 130px 0;
  background: linear-gradient(180deg, #f5f6f8 0%, #e8eef0 40%, #dce8e9 100%);
  text-align: left;
}

.final-cta h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}

.final-cta__keys {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 18px;
  pointer-events: none;
}

.big-key {
  display: grid;
  place-items: center;
  width: 110px;
  height: 110px;
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff, #e8ecf5);
  box-shadow:
    0 18px 40px rgba(60, 80, 130, 0.18),
    inset 0 2px 0 #fff,
    inset 0 -6px 12px rgba(60, 80, 130, 0.08);
  font-size: 24px;
  font-weight: 600;
  color: #7b87a0;
}

.big-key--1 { transform: rotate(-8deg) translateY(14px); }
.big-key--2 { transform: rotate(4deg) translateY(-16px); }
.big-key--3 { transform: rotate(10deg) translateY(10px); }

@media (max-width: 980px) {
  .final-cta__keys {
    display: none;
  }
}

/* ============ Footer ============ */
.site-footer {
  background: #f0f2f6;
  border-top: 1px solid rgba(22, 24, 29, 0.07);
  padding: 60px 0 30px;
  font-size: 14px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
}

@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.site-footer__col a {
  color: var(--ink-soft);
}

.site-footer__col a:hover {
  color: var(--ink);
}

.site-footer__bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(22, 24, 29, 0.07);
  color: var(--muted);
  font-size: 13px;
}

/* ============ Utility pages (pricing, checkout, password reset) ============ */
.utility-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 5%, rgba(74, 131, 144, 0.14), transparent 32%),
    var(--bg-light);
}

.utility-main {
  max-width: var(--max);
  min-height: calc(100vh - 66px);
  margin: 0 auto;
  padding: 140px 24px 90px;
}

.status-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 620px;
  text-align: center;
}

.status-page__icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border: 1px solid rgba(47, 100, 112, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-card);
  color: #3d7a87;
  font-size: 28px;
  font-weight: 600;
}

.status-page h1,
.pricing-page h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.status-page .lead {
  max-width: 560px;
  margin: 16px auto 30px;
  color: var(--ink-soft);
  font-size: 16px;
}

.status-page__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn--ghost {
  border: 1px solid rgba(22, 24, 29, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
}

.btn--ghost:hover {
  background: #fff;
  transform: translateY(-1px);
}

.page-heading {
  margin-bottom: 36px;
  text-align: center;
}

.page-heading p {
  margin-top: 12px;
  color: var(--ink-soft);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.plan-card--popular {
  border-color: rgba(61, 122, 135, 0.32);
  box-shadow: 0 14px 35px rgba(47, 100, 112, 0.12);
}

.plan-card__tag {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(61, 122, 135, 0.1);
  color: #326a75;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plan-card__name {
  font-size: 18px;
  font-weight: 650;
}

.plan-card__tagline {
  min-height: 42px;
  margin: 5px 0 16px;
  color: var(--ink-soft);
  font-size: 13px;
}

.plan-card__price {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.plan-card__period {
  color: var(--muted);
  font-size: 13px;
}

.plan-card__lead {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
}

.plan-card__lead + ul {
  margin-top: 10px;
}

.plan-card ul {
  flex: 1;
  margin: 18px 0 22px;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 13px;
}

.plan-card li {
  margin-bottom: 8px;
}

.plan-card .btn {
  justify-content: center;
  width: 100%;
}

.pricing-note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 15px 18px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink-soft);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 920px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .utility-main {
    padding-top: 110px;
  }

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

/* ============ Legal pages (privacy, terms) ============ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 90px;
}

.legal h1 {
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.legal .updated {
  margin: 12px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.legal h2 {
  margin: 38px 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.legal p {
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal ul {
  margin: 0 0 14px;
  padding-left: 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
}

.legal li {
  margin-bottom: 8px;
}

.legal li::marker {
  color: var(--muted);
}

.legal a {
  color: var(--blue);
}

.legal a:hover {
  text-decoration: underline;
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============ 404 page ============ */
.hero--error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 120px 24px 100px;
}

.error-code {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(96px, 16vw, 170px);
  line-height: 1;
  text-shadow: 0 2px 30px rgba(16, 48, 52, 0.28);
}

.error-title {
  margin-top: 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.error-text {
  margin: 14px auto 32px;
  max-width: 440px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============ Install guide simulator ============ */
.install-sim {
  max-width: 980px;
  margin: 8px auto 0;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.install-sim__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: rgba(245, 246, 248, 0.9);
  border-bottom: 1px solid var(--card-border);
}

.install-sim__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.install-sim__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #326a75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.install-sim__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25);
  animation: install-pulse 1.6s ease infinite;
}

@keyframes install-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.25); }
  50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12); }
}

.install-sim__body {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 480px;
}

@media (max-width: 820px) {
  .install-sim__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

.install-sim__steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #f8f9fb 0%, #f3f5f8 100%);
  border-right: 1px solid var(--card-border);
}

@media (max-width: 820px) {
  .install-sim__steps {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--card-border);
    padding: 14px;
    gap: 8px;
  }
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  color: var(--ink-soft);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

@media (max-width: 820px) {
  .install-step {
    flex: 0 0 auto;
    min-width: 150px;
    align-items: center;
  }

  .install-step p {
    display: none;
  }
}

.install-step__num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: rgba(22, 24, 29, 0.06);
  color: var(--muted);
  transition: background 0.25s ease, color 0.25s ease;
}

.install-step strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.install-step p {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.install-step--active {
  background: #fff;
  box-shadow: 0 2px 10px rgba(22, 24, 29, 0.06);
}

.install-step--active .install-step__num {
  background: var(--blue);
  color: #fff;
}

.install-step--done .install-step__num {
  background: rgba(47, 107, 255, 0.14);
  color: var(--blue);
}

.install-sim__stage {
  position: relative;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}

.install-desktop {
  position: relative;
  flex: 1;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(147, 188, 194, 0.45), transparent),
    linear-gradient(160deg, #5a8a94 0%, #3d6a74 45%, #2f5560 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

@media (max-width: 820px) {
  .install-desktop {
    min-height: 400px;
  }
}

.install-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.install-phase--active {
  opacity: 1;
  pointer-events: auto;
}

.install-dl {
  width: min(320px, 100%);
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 50px rgba(16, 48, 52, 0.28);
  text-align: left;
}

.install-dl__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #2f6bff, #1e50d4);
  color: #fff;
  margin-bottom: 14px;
}

.install-dl__meta strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.install-dl__meta span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.install-dl__bar {
  margin-top: 16px;
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.08);
  overflow: hidden;
}

.install-dl__bar i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #5b8cff);
  transition: width 0.15s linear;
}

/* SmartScreen dialog */
.smartscreen {
  width: min(340px, 100%);
  max-height: 100%;
  border-radius: 10px;
  background: #1e1e1e;
  color: #f3f3f3;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.smartscreen__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.72);
  background: #2b2b2b;
}

.smartscreen__x {
  font-size: 16px;
  line-height: 1;
  opacity: 0.7;
}

.smartscreen__body {
  padding: 16px 18px 6px;
}

.smartscreen__icon {
  margin-bottom: 10px;
}

.smartscreen__icon svg {
  width: 36px;
  height: 36px;
}

.smartscreen h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.smartscreen__body > p {
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.smartscreen__more {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #60a5fa;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

.smartscreen__more::after {
  content: ' →';
}

.smartscreen__more--pulse {
  animation: more-pulse 0.9s ease infinite;
}

@keyframes more-pulse {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.75; transform: translateX(2px); }
}

.smartscreen__details {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.smartscreen__details p {
  margin: 0 0 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.smartscreen__details span {
  color: rgba(255, 255, 255, 0.42);
  margin-right: 6px;
}

.smartscreen__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 14px 14px;
}

.smartscreen__dont,
.smartscreen__run {
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: default;
}

.smartscreen__dont {
  background: #3a3a3a;
  color: #f3f3f3;
}

.smartscreen__run {
  background: #2f6bff;
  color: #fff;
  box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.45);
}

.smartscreen__run--pulse {
  animation: run-pulse 1s ease infinite;
}

@keyframes run-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(47, 107, 255, 0.35); }
  50% { box-shadow: 0 0 0 6px rgba(47, 107, 255, 0); }
}

.install-done {
  width: min(300px, 100%);
  padding: 28px 24px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  text-align: center;
  box-shadow: 0 18px 50px rgba(16, 48, 52, 0.28);
}

.install-done__check {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(47, 107, 255, 0.12);
  color: var(--blue);
}

.install-done strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
}

.install-done p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.install-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 20px;
  background: #16181d;
  clip-path: polygon(0% 0%, 0% 100%, 35% 70%, 55% 100%, 68% 92%, 45% 62%, 100% 62%);
  opacity: 0;
  transform: translate(-40px, -40px);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.install-cursor--visible {
  opacity: 1;
}

.install-cursor--click {
  transform: scale(0.88);
}

.install-sim__caption {
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  min-height: 1.4em;
}

@media (prefers-reduced-motion: reduce) {
  .install-sim__live i,
  .smartscreen__more--pulse,
  .smartscreen__run--pulse {
    animation: none;
  }

  .install-cursor {
    transition: none;
  }
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .move-demo__window,
  .caret,
  .inject-demo__caret,
  .inject-demo__agent-dot,
  .race-snip__rect,
  .race-chat__typing i,
  .race-chat__caret,
  .race-shell__thinking svg {
    animation: none;
  }
}
