/* Recall landing — rebuilt by hand from the rendered rain-clay-aurora design.
   All colors/sizes sampled from the original's computed styles. */

/* ---------- fonts (self-hosted, OFL — see fonts/LICENSE-*) ---------- */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/source-serif-4-latin-400-normal.woff2') format('woff2');
}

/* ---------- base ---------- */
html, body { margin: 0; padding: 0; height: 100%; background: #1d2130; }
* { box-sizing: border-box; }
a { color: #9d8cff; text-decoration: none; }
a:hover { color: #b6a9ff; }
::selection { background: rgba(217, 119, 87, 0.28); }

.page {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #1d2130;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #c8ccd4;
  font-size: 14px;
}
.scroller {
  display: block;
  height: 100vh;
  overflow: hidden auto;
  perspective: 1200px;              /* enables the hero's 3D recede on scroll */
  perspective-origin: 50% 42%;
}

/* shared accents */
.clay { color: #d97757; }
.grn { color: #8cc265; }
.nowrap { white-space: nowrap; }

/* ---------- screen 1 · hero ---------- */
[data-screen='1'] {
  position: relative;
  min-height: 100vh;
  padding-top: 94px;
  display: flex;
  flex-direction: column;
  transform-origin: 50% 42%;
  /* recede target (applied by JS as scroll progresses):
     translateZ(-880px) translateY(-4vh) scale(.9), opacity 0, blur(3px) */
}
canvas[data-dots] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}
[data-hero-content] {
  position: relative;
  z-index: 1;
  isolation: isolate;
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px clamp(20px, 4vw, 48px);
}
[data-screen='1'] [data-hero-content]::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 2% max(-12vw, -180px);
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(29, 33, 48, 0.72) 0%, rgba(29, 33, 48, 0.42) 52%, rgba(29, 33, 48, 0) 78%);
}
[data-hero-title] {
  margin: 0;
  max-width: 1120px;
  font-weight: 800;
  font-size: clamp(34px, 4.7vw, 60px);
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: #f2f3f5;
  text-wrap: balance;
}
[data-screen='1'] [data-hero-line] { display: block; }
[data-hero-subtitle] {
  margin: 27px 0 0;
  max-width: 780px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.62;
  color: #9aa3b2;
  text-wrap: pretty;
}
.scp0 {
  margin-top: 34px;
  cursor: pointer;
  font-family: inherit;
  background: #232838;
  border: 1px solid rgba(217, 119, 87, 0.32);
  border-radius: 11px;
  padding: 0;
  font-size: clamp(13px, 1.35vw, 16px);
  color: #e6e6e6;
  display: flex;
  align-items: stretch;
  transition: border-color 0.15s, background 0.15s;
  max-width: min(100%, 680px);
  overflow: hidden;
}
[data-command-mark] {
  color: #8cc265;
  padding: 14px 0 14px 18px;
  display: flex;
  align-items: center;
}
[data-install-command] {
  padding: 14px 18px 14px 11px;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
}
.scp0 [data-copy-tag] {
  min-width: 68px;
  padding: 14px 15px;
  border-left: 1px solid #3a4152;
  color: #8cc265;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
[data-hero-proof] {
  margin-top: 12px;
  color: #737d8e;
  font-size: 12px;
  letter-spacing: 0.02em;
}

/* hero footer: try box + tech stack + status line */
[data-hero-footer] {
  position: relative;
  z-index: 1;
  padding: 0 26px 20px;
  font-size: 13px;
  line-height: 1.7;
}
.try-box { border: 1px solid #3a4152; border-radius: 10px; padding: 9px 14px; }
.try-text { color: #5c6370; }
.tech-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 9px;
  color: #6b7280;
  flex-wrap: wrap;
  gap: 8px 16px;
}
[data-hero-tech-stack] a { color: #6b7280; text-decoration: none; }
.branch { color: #8cc265; }
.sep { color: #3a4152; }
.tech-strong { color: #e6e6e6; font-weight: 700; }
.flower { color: #e86aa6; }
.dot-dim { color: #4b5263; }
.search-pair { color: #5c6370; }
.search-pair a { color: #5c6370; }
.chain-icon {
  position: relative;
  display: inline-block;
  width: 13px;
  height: 11px;
  margin-right: 6px;
  vertical-align: -2px;
}
.chain-icon span {
  position: absolute;
  width: 8px;
  height: 4px;
  border: 1px solid #5c6370;
  border-radius: 999px;
  transform: rotate(-38deg);
}
.chain-icon span:first-child { left: 0; top: 5px; }
.chain-icon span:last-child { left: 5px; top: 1px; }
.fusion { color: #9d8cff; }
[data-tech-link] { text-decoration: none !important; }
[data-tech-link]:hover,
[data-tech-link]:focus-visible { text-decoration: underline !important; text-underline-offset: 2px; }
[data-claude-status] { margin-top: 5px; }
.status-chevrons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 6px;
  vertical-align: 1px;
}
.status-chevrons span {
  display: block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #e06c75;
}
.coral { color: #e06c75; }
.muted { color: #8a93a3; }

/* ---------- screen 2 · from zero ---------- */
[data-screen='2'] {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 118px 48px 84px;
  background: #1d2130;
  isolation: isolate;
  overflow: hidden;
}
[data-screen='2']::after {
  /* diagonal scanline texture, masked to an ellipse behind the demo card */
  content: '';
  position: absolute;
  inset: 13% -8% 4%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-linear-gradient(112deg, transparent 0 86px, rgba(138, 147, 163, 0.1) 87px, transparent 88px 174px);
  -webkit-mask-image: radial-gradient(ellipse 74% 66% at 68% 52%, #000 0%, rgba(0, 0, 0, 0.78) 40%, transparent 78%);
  mask-image: radial-gradient(ellipse 74% 66% at 68% 52%, #000 0%, rgba(0, 0, 0, 0.78) 40%, transparent 78%);
}
[data-screen='2'] [data-aurora] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 5%, #000 18%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 5%, #000 18%);
}
[data-screen='2'] [data-aurora-vignette] {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(110% 120% at 70% 48%, rgba(29, 33, 48, 0) 34%, rgba(29, 33, 48, 0.36) 69%, rgba(29, 33, 48, 0.94) 100%);
}
[data-screen='2'] [data-aurora-content] { position: relative; z-index: 2; }
[data-screen-two-shell] {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(560px, 1.16fr);
  gap: clamp(48px, 6vw, 94px);
  align-items: center;
}
[data-screen-two-copy] { max-width: 470px; text-align: right; justify-self: end; }
[data-screen-two-demo] { position: relative; min-width: 0; }
[data-screen-two-heading] {
  margin: 0;
  font-weight: 800;
  font-size: clamp(36px, 3.2vw, 46px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #f2f3f5;
  text-wrap: balance;
}
[data-screen-two-copy] p {
  margin: 26px 0 0;
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.7;
  color: #9aa3b3;
  text-wrap: pretty;
}
.clay-code { font-family: inherit; color: #d97757; }

[data-screen-two-demo][data-macwin] {
  border-radius: 13px;
  overflow: hidden;
  border: 1px solid #343b4c;
  background: #1a1e2b;
  box-shadow: rgba(0, 0, 0, 0.82) 0 42px 90px -28px;
}
.macwin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  background: #232838;
  border-bottom: 1px solid #2c3242;
}
.tl { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tl-red { background: #ff5f57; }
.tl-yellow { background: #febc2e; }
.tl-green { background: #28c840; }
.macwin-title { margin-left: 10px; color: #6b7280; font-size: 12px; }
[data-screen-two-demo-body] {
  padding: 24px 24px 22px;
  font-size: clamp(12px, 1.08vw, 14px);
  line-height: 1.65;
}
.demo-label { font-size: 11px; letter-spacing: 2px; color: #6b7280; margin-bottom: 14px; }
.prompt-list { display: grid; gap: 10px; }
[data-screen-two-prompt] {
  border: 1px solid #3a4152;
  border-radius: 9px;
  padding: 11px 14px;
  color: #c8ccd4;
}
.demo-note { margin-top: 17px; color: #6b7280; }

/* ---------- screen 3 · verbatim history (cream) ---------- */
[data-screen='3'] {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: #f6f2e9;
  color: #4f4a42;
  padding: 120px 48px 110px;
  display: flex;
  align-items: center;
}
.cream-inner { width: 100%; max-width: 1220px; margin: 0 auto; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  color: #8a8560;
}
.eyebrow-dark { color: #8a93a3; }
.cream-h2 {
  margin: 22px 0 0;
  max-width: 1040px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 58px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  color: #26231e;
}
.rust-code { font-family: inherit; color: #b06a3f; }
.cream-sub {
  margin: 24px 0 0;
  max-width: 850px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(17px, 1.8vw, 23px);
  line-height: 1.55;
  color: #5f594f;
  text-wrap: pretty;
}
.cards {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.card {
  border: 1px solid #d9d2c2;
  border-radius: 12px;
  padding: 23px;
  background: rgba(255, 255, 255, 0.42);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 16px;
  line-height: 1.58;
}
.card strong {
  display: block;
  margin-bottom: 8px;
  color: #26231e;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
}
.card-code { font-family: 'JetBrains Mono', monospace; font-size: 0.82em; color: #b06a3f; }
.commands-win {
  margin-top: 28px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2c3242;
  background: #1a1e2b;
  box-shadow: rgba(60, 48, 30, 0.5) 0 28px 65px -30px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  color: #c8ccd4;
}
.commands-bar {
  padding: 11px 16px;
  background: #232838;
  border-bottom: 1px solid #2c3242;
  color: #6b7280;
  font-size: 12px;
}
.commands-body {
  padding: 18px 20px;
  display: grid;
  gap: 13px;
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.55;
  overflow-x: auto;
}
.cmt { color: #6b7280; }

/* ---------- screen 4 · continuation ---------- */
[data-screen='4'] {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: #1d2130;
  color: #c8ccd4;
  padding: 120px 24px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.continuation-inner {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cont-h2 {
  margin: 24px 0 0;
  font-weight: 800;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  color: #f2f3f5;
}
.cont-sub {
  margin: 26px 0 0;
  max-width: 760px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.55;
  color: #aeb5c2;
  text-wrap: pretty;
}
.cont-prompt {
  margin-top: 36px;
  width: min(780px, 100%);
  border: 1px solid #3a4152;
  border-radius: 12px;
  background: #1a1e2b;
  padding: 18px 20px;
  text-align: left;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(12px, 1.4vw, 15px);
  color: #c8ccd4;
  overflow-x: auto;
}
.cont-body {
  margin: 28px 0 0;
  max-width: 780px;
  font-size: 15px;
  line-height: 1.7;
  color: #8a93a3;
  text-wrap: pretty;
}
.purple-code { font-family: inherit; color: #9d8cff; }
.cont-pill {
  margin-top: 34px;
  border: 1px solid rgba(217, 119, 87, 0.42);
  background: rgba(217, 119, 87, 0.08);
  border-radius: 999px;
  padding: 10px 18px;
  color: #d7a188;
  font-size: 13px;
}

/* ---------- screen 5 · why not a script? (cream) ---------- */
[data-screen='5'] {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  background: #ece7db;
  color: #4f4a42;
  padding: 120px 24px 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.script-inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.script-h2 {
  margin-top: 24px;
  max-width: none;
  font-size: clamp(30px, 4.7vw, 60px);
}
.script-sub {
  margin-top: 28px;
  font-size: clamp(17px, 1.9vw, 23px);
  line-height: 1.58;
}
.callout {
  margin-top: 34px;
  border: 1px solid #cfc6b5;
  border-radius: 12px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.36);
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(13px, 1.6vw, 17px);
  line-height: 1.6;
  color: #4f4a42;
}
.callout strong { color: #b06a3f; }
.scp1 {
  margin-top: 34px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  background: #1d2130;
  border: 1px solid #3a4152;
  border-radius: 11px;
  padding: 14px 20px;
  font-size: clamp(13px, 1.55vw, 17px);
  color: #e6e6e6;
  display: flex;
  gap: 11px;
  align-items: center;
  transition: border-color 0.15s;
  max-width: 100%;
  overflow-x: auto;
}
.scp1 [data-copy-tag] { color: #8cc265; }
.tagline {
  margin-top: 42px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: #8a8560;
}

/* ---------- identity bar (pinned: absolute sibling of the scroller) ---------- */
[data-topbar] {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  gap: 14px;
  padding: 22px 26px 20px;
  align-items: flex-start;
  background: rgba(29, 33, 48, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background-color 0.4s;
}
.home-link { display: block; flex: 0 0 auto; color: inherit; text-decoration: none; cursor: pointer; }
.home-link:hover .brand { color: #d97757; }
.logo { width: 30px; height: 30px; flex: 0 0 auto; }
.logo-dots {
  /* 13-dot pixel-art mark drawn with box-shadow, clay family */
  width: 6px;
  height: 6px;
  background: transparent;
  box-shadow:
    #d97757 12px 0, #d97757 6px 6px, #c96a4a 12px 6px, #d97757 18px 6px,
    #d97757 0 12px, #c96a4a 6px 12px, #e2906f 12px 12px, #c96a4a 18px 12px, #d97757 24px 12px,
    #d97757 6px 18px, #c96a4a 12px 18px, #d97757 18px 18px,
    #d97757 12px 24px;
}
[data-hero-meta] { font-size: 13px; line-height: 1.55; }
.brand { color: #e6e6e6; font-weight: 700; }
.version { color: #5c6370; }
.topbar-line { color: #6b7280; }
.topbar-link, .topbar-link:hover { color: #6b7280; text-decoration: none; }

/* ---------- responsive (verbatim from the original) ---------- */
@media (max-width: 1040px) {
  [data-screen-two-shell] { grid-template-columns: 1fr; gap: 42px; max-width: 780px; }
  [data-screen-two-copy] { max-width: 680px; text-align: left; justify-self: start; }
  [data-screen-two-heading] { max-width: 640px; }
}
@media (max-width: 560px) {
  [data-topbar] { padding: 18px 20px 16px !important; gap: 12px !important; }
  [data-hero-meta] { font-size: 12px !important; line-height: 1.48 !important; overflow-wrap: anywhere; }
  [data-screen='1'] { padding-top: 132px !important; }
  [data-screen='2'] { padding: 138px 18px 64px !important; }
  [data-screen-two-shell] { gap: 30px !important; }
  [data-screen-two-heading] { font-size: clamp(31px, 9.2vw, 38px) !important; line-height: 1.08 !important; letter-spacing: -0.04em !important; }
  [data-screen-two-copy] p { font-size: 14px !important; line-height: 1.62 !important; }
  [data-screen-two-demo-body] { padding: 18px 16px 16px !important; }
  [data-screen-two-prompt] { padding: 11px 12px !important; font-size: 12px !important; }
  [data-screen='1'] [data-hero-content] { padding: 20px !important; }
  [data-screen='1'] [data-hero-title] { font-size: clamp(29px, 7.8vw, 34px) !important; line-height: 1.07 !important; letter-spacing: -0.04em !important; }
  [data-screen='1'] [data-hero-line] { display: inline; }
  [data-screen='1'] [data-hero-line]:not(:last-child)::after { content: ' '; }
  [data-screen='1'] [data-hero-subtitle] { margin-top: 18px !important; font-size: 15px !important; line-height: 1.52 !important; }
  [data-screen='1'] [data-hero-cta] { width: 100%; margin-top: 18px !important; font-size: 13px !important; }
  [data-screen='1'] [data-hero-proof] { margin-top: 8px !important; }
  [data-screen='1'] [data-hero-footer] { padding: 0 20px 10px !important; font-size: 12px !important; line-height: 1.55 !important; }
  [data-screen='1'] [data-command-mark] { padding-left: 14px !important; }
  [data-screen='1'] [data-install-command] { padding-left: 9px !important; padding-right: 10px !important; }
  [data-screen='1'] [data-command-tail] { flex-basis: 100%; margin-top: 2px; }
  [data-screen='1'] [data-copy-tag] { min-width: 58px !important; padding-left: 9px !important; padding-right: 9px !important; }
  [data-screen='5'] button { width: 100%; justify-content: center; padding-left: 14px !important; padding-right: 14px !important; gap: 8px !important; overflow: visible !important; }
  [data-screen='5'] button span:nth-child(2) { white-space: normal !important; overflow-wrap: anywhere; text-align: left; }
}
@media (max-height: 800px) and (min-width: 700px) {
  [data-screen='1'] [data-hero-content] { padding-top: 20px !important; padding-bottom: 20px !important; }
  [data-screen='1'] [data-hero-title] { font-size: clamp(38px, 4.2vw, 54px) !important; }
  [data-screen='1'] [data-hero-subtitle] { margin-top: 22px !important; font-size: 16px !important; line-height: 1.55 !important; }
  [data-screen='1'] [data-hero-cta] { margin-top: 30px !important; }
  [data-screen='2'] { padding-top: 104px !important; padding-bottom: 52px !important; }
  [data-screen-two-shell] { gap: clamp(36px, 5vw, 72px); }
  [data-screen-two-heading] { font-size: clamp(34px, 3.5vw, 46px) !important; }
  [data-screen-two-demo-body] { padding-top: 20px !important; padding-bottom: 18px !important; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-recede] { transform: none !important; opacity: 1 !important; filter: none !important; }
}
