:root {
  --page: #0f1115;
  --chrome: #0f1115;
  --ink: #f3f4f6;
  --muted: #9aa1ab;
  --rule: #22262d;
  --card: #161920;
  --card-rule: #22262d;
  --toggle: #1a1d23;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; background: var(--page); }
body { min-width: 320px; color: var(--ink); }
.page-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.site-header { position: relative; display: flex; flex: 0 0 64px; align-items: center; min-height: 64px; padding: 0 20px; border-bottom: 1px solid var(--rule); background: var(--chrome); }
.intro { position: relative; z-index: 1; max-width: 350px; line-height: 1.15; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.intro p { margin-top: 3px; color: var(--muted); font-size: 10px; white-space: nowrap; }

.step-toggle, .view-toggle { display: flex; align-items: center; gap: 2px; overflow: auto; padding: 3px; border-radius: 8px; background: var(--toggle); scrollbar-width: none; }
.step-toggle::-webkit-scrollbar, .view-toggle::-webkit-scrollbar { display: none; }
.step-toggle { position: absolute; left: 50%; max-width: calc(100vw - 40px); transform: translateX(-50%); }
.step-toggle a, .view-toggle a { flex: 0 0 auto; padding: 7px 9px; border-radius: 6px; color: var(--muted); font-size: 11px; font-weight: 520; line-height: 14px; text-decoration: none; white-space: nowrap; }
.step-toggle a[aria-current="page"], .view-toggle a[aria-current="page"] { color: #15171b; background: #f3f4f6; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 1px 2px rgba(0,0,0,.28); }
.step-toggle a:focus-visible, .view-toggle a:focus-visible, .open-full:focus-visible, .open-prototype:focus-visible, .secondary-link:focus-visible, .prototype-cards a:focus-visible, .timeline-stage:focus-visible { outline: 2px solid #f3f4f6; outline-offset: 2px; }

.tour { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding: 18px 20px 32px; }
.prototype-view { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; gap: 10px; }
.caption-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; line-height: 18px; }
.caption-copy { display: grid; min-width: 0; gap: 8px; }
.view-toggle { width: max-content; max-width: 100%; }
.secondary-link, .open-full { color: #d8dce2; font-size: 11px; font-weight: 550; text-decoration: underline; text-decoration-color: #707784; text-underline-offset: 2px; }
.secondary-link { width: max-content; max-width: 100%; }
.prototype-links { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; white-space: nowrap; }
.open-prototype { display: inline-block; padding: 7px 10px; border-radius: 6px; background: #f3f4f6; color: #15171b; font-size: 11px; font-weight: 600; line-height: 14px; text-decoration: none; }
iframe { display: block; flex: 1 1 auto; width: 100%; min-height: 0; border: 0; background: #fff; }
.iframe-frame { display: flex; flex: 1 1 auto; min-height: 0; overflow: hidden; border: 1px solid #2a2f37; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.24); }

.story { width: min(1120px,100%); margin: 24px auto 56px; }
.story section + section { margin-top: 68px; }
.story-intro { max-width: 670px; }
.story-intro h2 { font-size: 40px; font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.story-intro p { max-width: 530px; margin-top: 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.diagram-section { display: flex; justify-content: center; }
.diagram { width: min(760px,100%); margin: 6px 0 20px; }
.diagram-frame { padding: 14px; border: 1px solid #2a2f37; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: var(--muted); font-size: 13px; }
.d-box.d-app { fill: #e7e7e7; stroke: #4d4d4d; }
.d-box { fill: #f4f4f4; stroke: #d9d9d9; }
.d-box.d-sdk { fill: #fff; stroke: #111; }
.d-line { fill: none; stroke: #b9bec7; stroke-width: 1.5; }
.d-s { fill: #6d6d6d; font-family: inherit; font-size: 12px; }
.d-t { fill: #111; font-family: inherit; font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.story h3 { margin-bottom: 28px; font-size: 22px; font-weight: 600; letter-spacing: -.025em; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; }
.timeline::before { position: absolute; top: 5px; right: 12.5%; left: 0; height: 1px; background: #3a404a; content: ""; }
.timeline-stage { position: relative; padding-top: 26px; color: inherit; text-decoration: none; }
.timeline-stage:hover h4 { text-decoration: underline; text-underline-offset: 3px; }
.timeline-dot { position: absolute; z-index: 1; top: 0; left: 0; width: 11px; height: 11px; border: 2px solid var(--page); border-radius: 50%; background: #f3f4f6; box-shadow: 0 0 0 1px #f3f4f6; }
.timeline-stage h4 { display: inline; margin-right: 8px; font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.status { display: inline-block; padding: 3px 7px; border: 1px solid #353b45; border-radius: 999px; background: #1a1d23; color: #c6cbd3; font-size: 10px; font-weight: 500; line-height: 12px; vertical-align: 1px; }
.status-live { border-color: #f3f4f6; background: #f3f4f6; color: #15171b; }
.timeline-stage p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.model-rows { border-top: 1px solid var(--rule); }
.model-rows p { display: grid; grid-template-columns: minmax(205px,.95fr) minmax(0,2.05fr); gap: 26px; padding: 15px 0; border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.5; }
.model-rows strong { font-weight: 600; letter-spacing: -.012em; }
.model-rows span { color: var(--muted); }
.prototype-cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.prototype-cards a { display: flex; flex-direction: column; min-height: 150px; padding: 16px; border: 1px solid var(--card-rule); border-radius: 8px; background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s ease,background .15s ease; }
.prototype-cards a:hover { border-color: #565d68; background: #1a1e26; }
.prototype-cards strong { font-size: 14px; font-weight: 600; letter-spacing: -.015em; }
.prototype-cards span { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.prototype-cards small { margin-top: auto; padding-top: 18px; color: #c6cbd3; font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.today-view { display: grid; width: min(1120px,100%); margin: 24px auto 56px; gap: 30px; }
.today-surface { min-width: 0; }
.surface-caption { margin: 0 0 10px; color: var(--muted); }
.surface-caption h2 { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.surface-caption p { margin-top: 5px; font-size: 12px; line-height: 1.5; }
.product-card { overflow: hidden; margin: 0; border: 1px solid #2a2f37; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.24); }
.product-card img { display: block; width: 100%; height: auto; background: #fff; }
.iframe-card { height: 560px; }
.current-apps { margin: 10px 0 0; color: #9aa1ab; font-size: 11px; line-height: 1.55; }
footer { flex: 0 0 auto; padding: 0 20px 12px; color: #9aa1ab; font-size: 10px; line-height: 13px; }

@media (max-width:1050px) {
  .intro { max-width: 250px; }
  .intro p { white-space: normal; }
  .step-toggle { right: 20px; left: auto; transform: none; }
}
@media (max-width:800px) {
  .site-header { display: block; flex-basis: 108px; min-height: 108px; padding: 12px 12px 0; }
  .intro { max-width: none; }
  .intro p { max-width: 340px; }
  .step-toggle { position: relative; right: auto; width: calc(100vw - 24px); max-width: none; margin-top: 10px; }
  .step-toggle a { padding: 7px 10px; }
  .tour { padding: 14px 12px 28px; }
  .story { margin: 20px auto 36px; }
  .story section + section { margin-top: 52px; }
  .timeline { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px 24px; }
  .timeline::before { top: 5px; right: 25%; }
  .model-rows p { grid-template-columns: 1fr; gap: 4px; }
  .prototype-cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .today-view { margin: 20px auto 36px; }
}
@media (max-width:460px) {
  .caption-bar { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; line-height: 16px; }
  .caption-copy, .view-toggle { width: 100%; }
  .prototype-links { width: 100%; justify-content: space-between; }
  .story-intro h2 { font-size: 36px; }
  .story-intro p { font-size: 15px; }
  .story section + section { margin-top: 42px; }
  .story h3 { margin-bottom: 22px; font-size: 20px; }
  .timeline { grid-template-columns: 1fr; gap: 27px; }
  .timeline::before { top: 5px; right: auto; bottom: 0; left: 5px; width: 1px; height: auto; }
  .timeline-stage { padding: 0 0 0 24px; }
  .timeline-dot { top: 3px; left: 0; }
  .timeline-stage p { margin-top: 8px; }
  .prototype-cards { grid-template-columns: 1fr; }
  .prototype-cards a { min-height: 126px; }
  .iframe-card { height: 560px; }
  footer { padding: 0 12px 10px; }
}
