/* Dark like the icon tile, warm like the first draft. Lime (the icon's swoosh start) is the accent;
   cyan only lives inside the swoosh gradient. The demo mimics the real Claude Code and Unity UIs. */
:root {
  --bg: #08090b;
  --bg2: #0f1114;
  --card: #121418;
  --line: #20242b;
  --line-2: #2a2f37;
  --text: #edf1ef;
  --muted: #949ca6;
  --lime: #a3e635;
  --lime-2: #c4f06a;
  --cyan: #22d3ee;
  --radius: 16px;
  --grad: linear-gradient(90deg, #a3e635, #22d3ee);
  /* Claude Code terminal palette */
  --cc-bg: #141413;
  --cc-orange: #d97757;
  --cc-text: #e8e6dc;
  --cc-dim: #8a877d;
  --cc-green: #8bbf6a;
  /* Unity editor palette (dark theme) */
  --u-bg: #191919;
  --u-tab: #282828;
  --u-bar: #3c3c3c;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 78% -6%, rgba(34, 211, 238, .07), transparent 60%),
    radial-gradient(800px 480px at 8% 4%, rgba(163, 230, 53, .08), transparent 60%);
  background-repeat: no-repeat;
}
a { color: var(--lime-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "JetBrains Mono", ui-monospace, monospace; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px); background: rgba(8, 9, 11, .78); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--text); font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 8px; }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; align-items: center; }
.nav nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav nav a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 820px) { .nav nav a:not(.btn) { display: none; } }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 700; color: #0b0d0a;
  background: linear-gradient(135deg, var(--lime), #8dff9a); box-shadow: 0 6px 28px rgba(163,230,53,.22);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-small { padding: 8px 14px; font-size: 13px; color: #0b0d0a !important; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }

main { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* HERO */
.hero { text-align: center; padding: 72px 0 26px; }
.hero-icon { width: 76px; height: 76px; border-radius: 18px; filter: drop-shadow(0 10px 30px rgba(94,234,212,.18)); }
.eyebrow { color: var(--lime); font: 600 13px/1 "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; margin: 20px 0 0; }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.03; letter-spacing: -.04em; margin: 14px 0 18px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 18px; max-width: 40em; margin: 0 auto; }
.lede em { color: var(--text); font-style: normal; font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 26px 0 0; }

/* DEMO STAGE */
.stage-wrap { padding: 30px 0 0; perspective: 1800px; }
.stage {
  position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: stretch;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 3deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } }
.win { border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; min-height: 440px; position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 60px rgba(0,0,0,.55); }

/* Claude Code terminal */
.cc { background: var(--cc-bg); transform: rotateY(3deg); transform-origin: right center; }
.cc-titlebar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #1d1d1b; border-bottom: 1px solid #262624;
  font: 12px/1 "JetBrains Mono", monospace; color: var(--cc-dim); }
.cc-titlebar .lights { display: inline-flex; gap: 6px; margin-right: 6px; }
.cc-titlebar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.cc-titlebar .lights i:nth-child(1) { background: #ff5f57; } .cc-titlebar .lights i:nth-child(2) { background: #febc2e; } .cc-titlebar .lights i:nth-child(3) { background: #28c840; }
.cc-body { flex: 1; padding: 14px 16px 12px; font: 13px/1.55 "JetBrains Mono", monospace; color: var(--cc-text); display: flex; flex-direction: column; }
.cc-welcome { border: 1px solid var(--cc-orange); border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; }
.cc-welcome .star { color: var(--cc-orange); }
.cc-welcome .dim { color: var(--cc-dim); }
.cc-log { flex: 1; min-height: 150px; }
.cc-log .l { margin: 2px 0 6px; white-space: pre-wrap; opacity: 0; transform: translateY(3px); animation: in .22s ease forwards; }
.cc-log .user { color: var(--cc-dim); }
.cc-log .user b { color: var(--cc-text); font-weight: 400; }
.cc-log .bullet { color: var(--cc-text); }
.cc-log .bullet::before { content: "⏺ "; color: var(--cc-text); }
.cc-log .bullet.toolc::before { color: var(--cc-green); }
.cc-log .toolname { font-weight: 700; }
.cc-log .res { color: var(--cc-dim); padding-left: 2ch; }
.cc-log .res::before { content: "⎿  "; }
.cc-log .ok { color: var(--cc-green); }
.cc-spin { color: var(--cc-orange); }
.cc-spin .dim { color: var(--cc-dim); }
.cc-input { border: 1px solid #3a3a37; border-radius: 8px; padding: 8px 12px; margin-top: 8px; color: var(--cc-text); min-height: 38px; display: flex; gap: 8px; }
.cc-input .gt { color: var(--cc-text); }
.cc-input .ph { color: #5f5d56; }
.caret::after { content: "▌"; color: var(--cc-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes in { to { opacity: 1; transform: none; } }
.cc-hint { font: 11.5px/1.4 "JetBrains Mono", monospace; color: #5f5d56; margin: 6px 2px 0; }

/* suggestion pills, below the windows */
.try { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 22px auto 0; max-width: 980px; }
.try-label { width: 100%; text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 2px; }
.pill { cursor: pointer; font: 500 14px/1.3 Inter, sans-serif; color: var(--text); padding: 10px 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line-2); transition: border-color .15s, transform .15s, background .15s; }
.pill .e { margin-right: 6px; }
.pill:hover:not(:disabled) { border-color: var(--lime); transform: translateY(-2px); }
.pill.active { border-color: var(--lime); background: rgba(163,230,53,.08); }
.pill:disabled { cursor: default; opacity: .5; }
.pill.active:disabled { opacity: 1; }

/* Unity editor scene view */
.unity { background: var(--u-bg); transform: rotateY(-8deg) scale(.97); transform-origin: left center; transition: transform .9s cubic-bezier(.2,.8,.2,1), box-shadow .9s; }
.unity.live { transform: rotateY(0) scale(1) translateZ(30px); box-shadow: 0 0 0 1px rgba(163,230,53,.35), 0 0 70px rgba(94,234,212,.16), 0 30px 70px rgba(0,0,0,.6); }
.u-tabs { display: flex; align-items: flex-end; gap: 2px; background: #1b1b1b; padding: 6px 8px 0; font: 12px/1 Inter, sans-serif; }
.u-tab { padding: 7px 14px; color: #a8a8a8; border-radius: 4px 4px 0 0; }
.u-tab.on { background: var(--u-tab); color: #e6e6e6; }
.u-tab .ic { opacity: .7; margin-right: 6px; }
.u-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; background: var(--u-tab); border-bottom: 1px solid #111; }
.u-tools { display: flex; gap: 4px; }
.u-tools i { width: 22px; height: 20px; border-radius: 3px; background: var(--u-bar); display: block; }
.u-tools i:first-child { background: #4a6a8a; }
.u-status { font: 11.5px/1 Inter, sans-serif; color: #9a9a9a; }
.unity.live .u-status { color: var(--lime-2); }
.u-view { position: relative; flex: 1; min-height: 320px; background: #2b2d30; }
.u-idle, .u-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.u-idle { filter: saturate(.7) brightness(.8); transition: opacity .6s; }
.u-idle-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font: 600 13px/1 Inter, sans-serif; color: #e6e6e6;
  padding: 9px 14px; border-radius: 6px; background: rgba(25,25,25,.82); border: 1px solid #3a3a3a; transition: opacity .4s; }
.u-video { opacity: 0; }
.unity.live .u-video { opacity: 1; animation: reveal 1.1s cubic-bezier(.2,.8,.2,1) forwards; }
.unity.live .u-idle, .unity.live .u-idle-label { opacity: 0; }
@keyframes reveal { from { clip-path: circle(0% at 92% 8%); } to { clip-path: circle(150% at 92% 8%); } }
.u-gizmo { position: absolute; right: 12px; top: 10px; font: 700 10px/1 Inter, sans-serif; color: #d9d9d9; opacity: .8; }
.u-gizmo span { display: inline-block; width: 18px; text-align: center; }
.u-gizmo .x { color: #e8615a; } .u-gizmo .y { color: #8ccf55; } .u-gizmo .z { color: #5a8ee8; }
.u-caption { position: absolute; left: 12px; bottom: 12px; font: 12px/1.4 Inter, sans-serif; color: #e6e6e6; padding: 7px 10px; border-radius: 6px;
  background: rgba(25,25,25,.85); border: 1px solid #3a3a3a; opacity: 0; transition: opacity .5s .6s; }
.unity.live .u-caption { opacity: 1; }

.arc { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; transform: translateZ(50px); }
.arc path { filter: drop-shadow(0 0 6px rgba(94,234,212,.7)); }
.arc circle { opacity: 0; filter: drop-shadow(0 0 8px rgba(103,232,249,.95)); }

/* PILLARS: small real visuals, not icons */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 70px 0 8px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillars article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pv { height: 150px; position: relative; display: grid; place-items: center; background: var(--bg2); border-bottom: 1px solid var(--line); overflow: hidden; }
.pv-price { font: 800 58px/1 Inter, sans-serif; letter-spacing: -.05em; color: var(--text); }
.pv-price small { font: 600 12.5px/1.3 "JetBrains Mono", monospace; letter-spacing: 0; color: var(--muted); display: block; text-align: center; margin-top: 8px; }
.pv-price .z { color: var(--lime); }
.pv video { width: 100%; height: 100%; object-fit: cover; }
.pv-cc { width: 100%; background: var(--cc-bg); padding: 16px 18px; font: 12px/1.6 "JetBrains Mono", monospace; color: var(--cc-text); text-align: left; place-items: start; }
.pv-cc .o { color: var(--cc-orange); } .pv-cc .d { color: var(--cc-dim); } .pv-cc .g { color: var(--cc-green); }
.pillars .pt { padding: 20px 22px 22px; }
.pillars h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.01em; }
.pillars p { color: var(--muted); margin: 0; font-size: 15px; }

/* SECTIONS (flat, like the first draft) */
.section { padding: 86px 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.03em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 26px; max-width: 46em; }
.frame { width: 100%; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #000; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } }
figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
figure video { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; background: #000; }
figcaption { padding: 14px 16px; color: var(--muted); font-size: 14.5px; }
figcaption b { color: var(--text); }

.flow { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
@media (max-width: 960px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }
.flow { gap: 16px; }
.flow li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.flow .num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #0b0d0a; font-weight: 700; }
.flow li:nth-child(1) .num { background: #a3e635; } .flow li:nth-child(2) .num { background: #6be08f; }
.flow li:nth-child(3) .num { background: #3fd9bd; } .flow li:nth-child(4) .num { background: #22d3ee; }
.flow h4 { margin-top: 12px; }
.flow h4, .stepcard h4 { margin: 8px 0 4px; font-size: 17px; }
.flow p, .stepcard p { margin: 0; color: var(--muted); font-size: 14.5px; }
.num { font: 700 13px/1 "JetBrains Mono", monospace; color: var(--muted); }
.callout { margin-top: 30px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(163,230,53,.28); background: rgba(163,230,53,.05); color: var(--muted); }
.callout b { color: var(--text); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr; } }
.stepcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 700 13px/1 "JetBrains Mono", monospace; color: #0b0d0a; background: var(--lime); }
pre { margin: 12px 0; padding: 12px 14px; background: #060708; border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; font-size: 13px; color: #d4ecb0; }
.note { color: var(--muted); font-size: 14px; margin-top: 16px; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 2px; }

footer { max-width: 1200px; margin: 90px auto 0; padding: 30px clamp(16px, 4vw, 48px) 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--text); margin-bottom: 10px; }
.foot-brand img { border-radius: 9px; }
footer b { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .stage, .unity, .pill { transition: none !important; }
  .unity.live .u-video { animation: none; }
  .cc-log .l { animation: none; opacity: 1; transform: none; }
}

/* Claude Code-style multiple-choice question inside the terminal */
.cc-ask { border: 1px solid #3a3a37; border-radius: 8px; padding: 10px 6px 8px; margin-bottom: 10px; }
.ask-q { color: var(--cc-text); font-weight: 700; padding: 0 8px 6px; }
.ask-opts { display: flex; flex-direction: column; }
.opt { all: unset; cursor: pointer; display: flex; gap: 8px; padding: 4px 8px; border-radius: 5px; color: var(--cc-text); font: 13px/1.5 "JetBrains Mono", monospace; }
.opt .cur { width: 1.2ch; color: var(--cc-orange); visibility: hidden; }
.opt .n { color: var(--cc-dim); }
.opt .desc { color: var(--cc-dim); margin-left: auto; padding-left: 12px; font-size: 12px; }
.opt.sel { background: rgba(217,119,87,.12); }
.opt.sel .cur { visibility: visible; }
.opt.sel .lab { color: #fff; }
.opt.chosen .lab { color: var(--cc-orange); }
.opt:focus-visible { outline: 1px solid var(--cc-orange); }
.cc-ask.busy .opt { cursor: default; opacity: .45; }
.cc-ask.busy .opt.chosen { opacity: 1; }
.ask-foot { color: #5f5d56; font-size: 11.5px; padding: 6px 8px 0; }
@media (max-width: 520px) { .opt .desc { display: none; } }

/* Hand-drawn hint */
.hint { position: absolute; z-index: 5; left: -108px; top: 76px; pointer-events: none; transition: opacity .5s; transform: translateZ(70px); }
.hint-text { position: absolute; left: 34px; top: -30px; font: 700 30px/1 Caveat, cursive; color: var(--lime); transform: rotate(-8deg); white-space: nowrap; }
.hint svg { display: block; animation: nudge 1.6s ease-in-out infinite; }
.hint.gone { opacity: 0; }
@keyframes nudge { 50% { transform: translate(4px, 3px); } }
/* Narrower screens: no side margin, so the hint sits above the terminal and points down into the choices. */
@media (max-width: 1320px) {
  .stage-wrap { padding-top: 96px; }
  .hint { left: 150px; top: -78px; }
  .hint svg { width: 200px; height: 160px; }
  .hint-text { left: -96px; top: 8px; }
}
@media (max-width: 900px) { .hint { display: none; } }

/* "See it in action": clips rest greyed out and paused; one at a time plays in full colour. */
#spotGrid figure video { filter: grayscale(.9) brightness(.45); transition: filter .6s ease; }
#spotGrid figure.on video { filter: none; }

/* Second hand-drawn hint, on the right, pointing at "Connect your agent" */
.steps { position: relative; }
.hint2 { position: absolute; z-index: 2; right: -132px; top: -6px; pointer-events: none; }
.hint2 svg { display: block; animation: nudge2 1.8s ease-in-out infinite; }
.hint2 .hint-text { position: absolute; right: -6px; left: auto; top: -32px; font: 700 28px/1 Caveat, cursive; color: var(--lime); transform: rotate(6deg); white-space: nowrap; }
@keyframes nudge2 { 50% { transform: translate(-4px, 3px); } }
@media (max-width: 1460px) { .hint2 { right: 24px; top: -118px; } .hint2 .hint-text { right: 150px; top: 6px; transform: rotate(-4deg); } }
@media (max-width: 960px) { .hint2 { display: none; } }

/* GitHub button in the nav: ghost outline (white text + icon, thin border) */
.btn-gh { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px 8px 12px; border-radius: 999px;
  font: 600 14px/1 Inter, sans-serif; color: var(--text) !important; background: rgba(255,255,255,.02);
  border: 1px solid #343a43; box-shadow: none; transition: border-color .15s, background .15s; }
.btn-gh:hover { filter: none; border-color: #4a515c; background: rgba(255,255,255,.05); }
.btn-gh .gh { display: block; width: 18px; height: 18px; color: #fff; }

/* ===== Phones & tablets: first-class, not an afterthought ===== */
/* Grid/flex children may shrink below their content width (long <pre> commands were widening the page). */
.stage > *, .pillars > *, .grid > *, .flow > *, .steps > * { min-width: 0; }
html, body { overflow-x: clip; }
pre { max-width: 100%; }
@media (max-width: 820px) {
  .nav nav a:not(.btn):not(.btn-gh) { display: none; }
  .nav nav a.btn-gh { display: inline-flex; }
}
@media (max-width: 900px) {
  /* The demo: flat (no 3D tilt), compact terminal, hint above it pointing down at the choices. */
  .stage, .cc, .unity, .unity.live { transform: none !important; }
  .stage-wrap { padding-top: 92px; perspective: none; }
  .win { min-height: 0; }
  .cc-log { min-height: 0; }
  .cc-log:empty { display: none; }
  .u-view { min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .hint { display: block; left: auto; right: 6%; top: -84px; transform: none; }
  .hint svg { width: 130px; height: 104px; transform: scaleX(-1); animation: none; }
  .hint-text { left: -118px; top: 14px; font-size: 26px; }
  .arc { display: none; }
}
@media (max-width: 560px) {
  main { padding: 0 16px; }
  .hero { padding: 44px 0 6px; }
  .hero-icon { width: 64px; height: 64px; }
  h1 { font-size: clamp(34px, 10.2vw, 44px); letter-spacing: -.035em; }
  .lede { font-size: 16.5px; }
  .cc-body { padding: 12px 12px 10px; font-size: 12.5px; }
  .opt { padding: 7px 8px; font-size: 13px; }            /* bigger tap targets */
  .ask-foot, .cc-hint { display: none; }                  /* keyboard hints are noise on touch */
  .cc-welcome { padding: 8px 10px; }
  .u-tab { padding: 6px 10px; }
  .u-tab:nth-child(3) { display: none; }
  .section { padding-top: 64px; }
  h2 { font-size: 30px; }
  .pillars { padding-top: 48px; }
  .pv { height: 132px; }
  figcaption { font-size: 14px; }
  pre { font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
  footer { margin-top: 64px; padding: 26px 16px 40px; }
}
