/* Screen for me — landing page
   Brand register: Void Black ground, the spectrum as hero energy (lines, never fills).
   Type: the system's own face, on purpose. See DESIGN.md §6. */

:root {
  /* color */
  --void: #000000;
  --ink-2: #0c0c0e;          /* raised panel on void */
  --glass: rgba(24, 24, 26, 0.92);
  --hairline: rgba(255, 255, 255, 0.1);
  --text: #e8e8ed;
  --text-strong: #ffffff;
  --muted: #a2a2ab;          /* 8.2:1 on void */
  --accent: #7c5ce6;         /* Signal Violet */
  --accent-lift: #9172e7;    /* Violet Lift */
  --glow: rgba(145, 114, 231, 0.5);
  --spec-blue: #8794ff;
  --spec-violet: #9172e7;
  --spec-magenta: #d05aa6;
  --spec-red: #ee3138;

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text-hero: clamp(2.5rem, 4.2vw + 1.4rem, 4.75rem);
  --text-h2: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  --text-h3: 1.1875rem;
  --text-body: 1.0625rem;
  --text-small: 0.9375rem;
  --text-caption: 0.8125rem;

  /* space (4pt base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem; --s-12: 3rem; --s-16: 4rem; --s-24: 6rem;
  --section-gap: clamp(5rem, 12vw, 9rem);

  /* radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* z scale */
  --z-raised: 2; --z-hud: 3; --z-header: 10;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-kerning: normal;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { color: var(--text-strong); text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--accent-lift); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent-lift); outline-offset: 3px; border-radius: 2px; }

kbd {
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  background: #232327;
  border: 1px solid #3a3a3e;
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0.1em 0.45em;
  min-width: 1.6em;
  display: inline-block;
  text-align: center;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--r-md);
  transition: background-color 150ms var(--ease-out), box-shadow 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-lift); box-shadow: 0 0 18px var(--glow); }

.btn-ghost { border: 1px solid #3a3a3e; color: var(--text); }
.btn-ghost:hover { border-color: #55555a; background: rgba(255, 255, 255, 0.05); }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.8rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-strong);
  font-weight: 600;
  font-size: 1rem;
}
.top-brand:hover { text-decoration: none; }
.top-brand img { border-radius: 7px; }

.top-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.top-nav a { color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.top-nav a:hover { color: var(--text-strong); text-decoration: none; }
.top-github { display: inline-flex; padding: var(--s-2); margin: calc(var(--s-2) * -1); }

/* ---------- hero ---------- */

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 4vw, 3rem) 0;
  text-align: center;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.022em;
}

.hero-sub {
  max-width: 44rem;
  margin: var(--s-6) auto 0;
  font-size: clamp(1.0625rem, 1.4vw + 0.6rem, 1.25rem);
  line-height: 1.6;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

.hero-meta {
  margin-top: var(--s-4);
  font-size: var(--text-caption);
  color: var(--muted);
}

/* entrance: headline block rises once, wire traces itself */
.hero h1, .hero-sub, .hero-cta, .hero-meta {
  animation: rise 700ms var(--ease-out) both;
}
.hero-sub { animation-delay: 90ms; }
.hero-cta { animation-delay: 180ms; }
.hero-meta { animation-delay: 240ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* the stage: brand wire framing the product scene */
.hero-stage {
  position: relative;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 960px;
  aspect-ratio: 960 / 560;
}

.hero-wire {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: var(--z-raised);
}

.wire-path {
  filter: drop-shadow(0 0 6px rgba(145, 114, 231, 0.55)) drop-shadow(0 0 18px rgba(208, 90, 166, 0.25));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: trace 1400ms var(--ease-out) 350ms forwards;
}

@keyframes trace {
  to { stroke-dashoffset: 0; }
}

.hero-desktop {
  position: absolute;
  inset: 4px;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #101014;
}

.desk-wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 20% 0%, #1c1b2e 0%, transparent 55%),
    radial-gradient(110% 80% at 85% 100%, #221420 0%, transparent 60%),
    #101014;
}

.desk-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }

/* a second window on the desktop, outside the selection, for compositional balance
   (inset longhand loses to .mock-window's shorthand, so scope and re-assert) */
.hero-desktop .desk-side {
  inset: 20% 6% 32% auto;
  width: 26%;
  opacity: 0.8;
}

/* selection marquee (Violet Lift line over the screen, per DESIGN.md) */
.marquee {
  position: absolute;
  left: 12%;
  top: 14%;
  width: 52%;
  height: 58%;
  border: 1.5px solid var(--accent-lift);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
}

.marquee-content { position: absolute; inset: 0; overflow: hidden; }

.marquee-dims {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--glass);
  border-radius: 5px;
  padding: 2px 7px;
}

.handle {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent-lift);
  border-radius: 50%;
}
.h-nw { left: -4px; top: -4px; } .h-ne { right: -4px; top: -4px; }
.h-sw { left: -4px; bottom: -4px; } .h-se { right: -4px; bottom: -4px; }

/* window inside the selection */
.mock-window {
  position: absolute;
  inset: 10% 8%;
  background: #232326;
  border: 1px solid #38383c;
  border-radius: 9px;
  overflow: hidden;
}

.mock-titlebar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: #2c2c30;
  border-bottom: 1px solid #38383c;
}
.mock-titlebar i { width: 9px; height: 9px; border-radius: 50%; background: #4a4a4e; }

.mock-body { padding: 14px 16px; display: grid; gap: 10px; }

.mock-line { height: 8px; border-radius: 4px; background: #3d3d42; }
.w-45 { width: 45%; } .w-55 { width: 55%; } .w-60 { width: 60%; }
.w-70 { width: 70%; } .w-75 { width: 75%; } .w-80 { width: 80%; }
.w-85 { width: 85%; } .w-88 { width: 88%; } .w-90 { width: 90%; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 64px;
  margin-top: 4px;
}
.mock-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: #4a4460;
}

/* ---------- the Glass HUD (signature component, recreated) ---------- */

.hud {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: var(--z-hud);
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--glass);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  width: 148px;
}

.hud-thumb { position: relative; }

.hud-thumb-img {
  height: 78px;
  border-radius: 7px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  background:
    linear-gradient(160deg, #2e2d3e 0%, #232228 55%, #33222e 100%);
}
.hud-thumb-img-b {
  background:
    linear-gradient(200deg, #212c38 0%, #232228 60%, #2e2333 100%);
}

/* stack badge: one of the three sanctioned spectrum moments */
.hud-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(135deg, var(--spec-blue), var(--spec-violet), var(--spec-magenta), var(--spec-red)) border-box;
  border: 1.5px solid transparent;
  border-radius: 999px;
}

.hud-actions { display: flex; gap: 6px; }

.hud-btn {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 0;
}
.hud-btn-primary { background: var(--accent); color: #fff; }

/* hero overlay slides in with the trace */
.hud-overlay {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 500ms var(--ease-out) 1500ms forwards;
}

/* ---------- loop ---------- */

.loop {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--section-gap) clamp(1.25rem, 4vw, 3rem) 0;
}

.loop h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-align: center;
  max-width: 30ch;
  margin: 0 auto;
}

.loop-steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}

.loop-steps li { counter-increment: step; }

.loop-kbd {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  color: var(--muted);
}
.loop-kbd kbd { font-size: 1rem; padding: 0.25em 0.55em; }

.mini-hud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border-radius: 9px;
  padding: 7px 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.mini-hud i {
  width: 26px; height: 18px;
  border-radius: 4px;
  background: linear-gradient(160deg, #2e2d3e, #33222e);
}
.mini-hud b { font-size: 11px; font-weight: 500; color: var(--text); }

.loop-kbd-drag { color: var(--accent-lift); }

.loop-steps h3 {
  font-size: var(--text-h3);
  font-weight: 650;
  margin-top: var(--s-3);
}
.loop-steps h3::before {
  content: counter(step) ". ";
  color: var(--accent-lift);
}

.loop-steps p { margin-top: var(--s-2); color: var(--muted); font-size: var(--text-small); }

/* video slot */
.demo-frame {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  max-width: 880px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink-2);
}

.demo-frame video { width: 100%; display: block; }

.demo-placeholder {
  aspect-ratio: 16 / 9;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--s-4);
  background:
    radial-gradient(90% 120% at 50% 0%, #16151d 0%, var(--ink-2) 70%);
}

.demo-play {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--hairline);
  border-radius: 50%;
}
.demo-play svg { margin-left: 3px; }

.demo-placeholder p { color: var(--muted); font-size: var(--text-small); }

/* ---------- features ---------- */

.features {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  display: grid;
  gap: var(--section-gap);
}
.features { padding-top: var(--section-gap); }

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.feature-flip .feature-copy { order: 2; }
.feature-flip .feature-visual { order: 1; }

.feature h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.feature-copy > p { margin-top: var(--s-4); color: var(--muted); }
.feature-copy strong { color: var(--text); font-weight: 600; }

.feature-note { font-size: var(--text-small); }

.feature-list {
  list-style: none;
  margin: var(--s-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  color: var(--text);
  font-weight: 500;
}
.feature-list li { display: flex; align-items: center; gap: var(--s-3); }
.fkbd { display: inline-flex; gap: 4px; }

/* visual frames */
.feature-visual { margin: 0; }

.vis {
  position: relative;
  aspect-ratio: 6 / 4.4;
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: #101014;
}

.vis-desk {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 15% 0%, #1c1b2e 0%, transparent 55%),
    radial-gradient(110% 80% at 90% 100%, #221420 0%, transparent 60%),
    #101014;
}
.vis-desk-b {
  background:
    radial-gradient(120% 90% at 80% 0%, #14202b 0%, transparent 55%),
    radial-gradient(110% 80% at 10% 100%, #241627 0%, transparent 60%),
    #101014;
}

.vis-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42); }

/* capture visual */
.vis-window {
  position: absolute;
  left: 24%;
  top: 23%;
  width: 40%;
  height: 40%;
}

.vis-marquee {
  position: absolute;
  left: 21%;
  top: 20%;
  width: 46%;
  height: 46%;
  border: 1.5px solid var(--accent-lift);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.28);
  transform-origin: top left;
}
.play .vis-marquee { animation: marquee-grow 900ms var(--ease-out) both; }

@keyframes marquee-grow {
  from { transform: scale(0.25); opacity: 0; }
  30%  { opacity: 1; }
  to   { transform: none; opacity: 1; }
}

.vis-cross {
  position: absolute;
  background: rgba(145, 114, 231, 0.5);
}
.vis-cross-v { left: 67%; top: 0; width: 1px; height: 100%; }
.vis-cross-h { top: 66%; left: 0; height: 1px; width: 100%; }

/* overlay visual */
.vis-overlay .hud-large {
  left: 50%;
  bottom: 14%;
  transform: translateX(-88%);
  width: 210px;
  padding: 13px;
  gap: 11px;
  border-radius: 14px;
}
.vis-overlay .hud-thumb-img { height: 118px; border-radius: 9px; }
.vis-overlay .hud-btn { font-size: 12.5px; padding: 7px 0; }
.vis-overlay .hud-badge { min-width: 23px; height: 23px; font-size: 12px; }

.play .hud-large { animation: rise 550ms var(--ease-out) both; }

.drag-ghost {
  position: absolute;
  right: 12%;
  top: 18%;
  width: 84px;
  height: 56px;
  border-radius: 7px;
  background: linear-gradient(160deg, #2e2d3e, #33222e);
  opacity: 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transform: rotate(4deg);
}
.play .drag-ghost { animation: ghost-in 700ms var(--ease-out) 500ms both; }

@keyframes ghost-in {
  from { opacity: 0; transform: rotate(4deg) translate(-140px, 90px) scale(0.7); }
  to   { opacity: 0.85; transform: rotate(4deg); }
}

/* editor visual */
.vis-editor { background: #1d1d1f; display: grid; grid-template-rows: auto 1fr; aspect-ratio: 6 / 4.4; }

.ed-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  background: #2a2a2c;
  border-bottom: 1px solid #000;
}

.ed-tool {
  width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #ddd;
  background: #3a3a3c;
  border: 1px solid #4a4a4c;
  border-radius: 6px;
}
.ed-tool-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 10px var(--glow);
}

.ed-sep { width: 1px; height: 18px; background: #4a4a4c; margin: 0 3px; }

.ed-swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid transparent;
}
.ed-swatch-active { border-color: #fff; }

.ed-canvas {
  display: grid;
  place-items: center;
  padding: clamp(0.9rem, 2.4vw, 1.6rem);
  background: #1d1d1f;
  min-height: 0;
}

.ed-shot {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background:
    radial-gradient(130% 100% at 20% 0%, #26243a 0%, transparent 60%),
    #202024;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
  padding: clamp(0.8rem, 2vw, 1.4rem);
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: hidden;
}

.ed-pixelate {
  width: 45%;
  height: 30px;
  border-radius: 4px;
  background:
    repeating-conic-gradient(#3c3c44 0% 25%, #4c4c56 0% 50%) 0 0 / 12px 12px;
}

.ed-arrow {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 52%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.arrow-path, .arrow-head { stroke-dasharray: 100; stroke-dashoffset: 100; }
.play .arrow-path { animation: draw 600ms var(--ease-out) 300ms forwards; }
.play .arrow-head { animation: draw 220ms var(--ease-out) 850ms forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* scrollcap visual */
.vis-scroll { display: grid; place-items: center; }

.scroll-page {
  position: absolute;
  inset: 10% 26%;
  border-radius: 10px 10px 0 0;
  background: #232326;
  border: 1px solid #38383c;
  border-bottom: 0;
  overflow: hidden;
}

.scroll-page-inner {
  padding: 18px;
  display: grid;
  gap: 11px;
}
.play .scroll-page-inner { animation: page-scroll 3s var(--ease-out) 400ms both; }

@keyframes page-scroll {
  from { transform: none; }
  to   { transform: translateY(-38%); }
}

.mock-block {
  height: 52px;
  border-radius: 6px;
  background: linear-gradient(160deg, #34324a 0%, #2b2a33 100%);
}
.mock-block-b { background: linear-gradient(200deg, #21313d 0%, #2b2a33 100%); }

/* recording pill: sanctioned spectrum moment #3 */
.rec-pill {
  position: absolute;
  bottom: 9%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text);
  padding: 8px 15px;
  border-radius: 999px;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(90deg, var(--spec-blue), var(--spec-violet), var(--spec-magenta), var(--spec-red)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}
.rec-pill b { font-weight: 600; font-variant-numeric: tabular-nums; }

.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--spec-red);
}
.play .rec-dot { animation: blink 1.2s ease-in-out 3; }

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

/* ---------- etc strip ---------- */

.etc {
  max-width: 1120px;
  margin: var(--section-gap) auto 0;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.etc-list {
  list-style: none;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  border-block: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-6) var(--s-12);
  color: var(--muted);
  font-size: var(--text-small);
}
.etc-list strong { color: var(--text); font-weight: 600; display: block; }

/* ---------- open source ---------- */

.oss {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--section-gap) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

/* a single spectrum line introduces the section: the wire again, at rest */
.oss-wire {
  width: 120px;
  height: 2px;
  margin: 0 auto var(--s-8);
  background: linear-gradient(90deg, var(--spec-blue), var(--spec-violet), var(--spec-magenta), var(--spec-red));
  box-shadow: 0 0 12px rgba(145, 114, 231, 0.6);
  border-radius: 2px;
}

.oss h2 {
  font-size: clamp(2rem, 3vw + 1rem, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.oss-lead {
  margin-top: var(--s-6);
  color: var(--muted);
  font-size: clamp(1.0625rem, 1vw + 0.7rem, 1.1875rem);
  max-width: 58ch;
  margin-inline: auto;
}

.oss-clone { margin-top: var(--s-8); overflow-x: auto; }
.oss-clone code {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--ink-2);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 0.7rem 1.1rem;
  display: inline-block;
  white-space: nowrap;
}

.oss-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-8);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--hairline);
  padding: var(--s-12) clamp(1.25rem, 4vw, 3rem) var(--s-16);
  display: grid;
  justify-items: center;
  gap: var(--s-6);
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-strong);
  font-weight: 600;
  font-size: var(--text-small);
}
.footer-brand img { border-radius: 6px; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-6); }
.footer-links a { color: var(--muted); font-size: var(--text-small); }
.footer-links a:hover { color: var(--text-strong); text-decoration: none; }

.footer-lang {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-4);
  font-size: var(--text-caption);
  letter-spacing: 0.06em;
}
.footer-lang a { color: var(--muted); }
.footer-lang a:hover { color: var(--text-strong); text-decoration: none; }
.footer-lang [aria-current="page"] { color: var(--text-strong); font-weight: 600; }

.footer-note { color: #77777e; font-size: var(--text-caption); }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .feature,
  .feature-flip { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature-flip .feature-copy { order: 1; }
  .feature-flip .feature-visual { order: 2; }
  .top-nav a:not(.top-github) { display: none; }
  .hero-stage { aspect-ratio: 4 / 3.4; }
  .hero-wire rect { rx: 20; }
  .marquee { width: 62%; height: 48%; }
  .vis-overlay .hud-large { transform: translateX(-60%); }
}

@media (max-width: 480px) {
  .hero-cta .btn { width: 100%; justify-content: center; }
  .oss-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1, .hero-sub, .hero-cta, .hero-meta,
  .hud-overlay, .drag-ghost {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .drag-ghost { opacity: 0.85; transform: rotate(4deg); }
  .wire-path { animation: none; stroke-dashoffset: 0; }
  .arrow-path, .arrow-head { stroke-dashoffset: 0; }
  .play .vis-marquee, .play .hud-large, .play .arrow-path, .play .arrow-head,
  .play .scroll-page-inner, .play .rec-dot { animation: none; }
  .play .scroll-page-inner { transform: translateY(-19%); }
}
