:root {
  --ink: #101014;
  --paper: #f7f7f4;
  --white: #ffffff;
  --silver: #e8e9ed;
  --muted: #66666f;
  --line: rgba(16, 16, 20, .15);
  --pink: #ff4f8b;
  --pink-soft: #ffd2e1;
  --yellow: #f8e889;
  --blue: #8fb8ff;
  --max: 1440px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 200; padding: .75rem 1rem; background: var(--white); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 247, 244, .88);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .8rem; width: max-content; }
.brand strong { font-size: .95rem; letter-spacing: -.025em; }
.brand-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); transform: rotate(-8deg); }
.brand-icon i { width: 13px; height: 21px; border: 1.5px solid var(--pink); border-radius: 4px; background: var(--white); }
.site-header nav { display: flex; gap: 2rem; font-size: .8rem; font-weight: 750; }
.site-header nav a { position: relative; padding: 1rem 0; }
.site-header nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: .7rem; height: 2px; background: var(--pink); transition: right .2s ease; }
.site-header nav a:hover::after, .site-header nav a:focus-visible::after { right: 0; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: .75rem; }
.lang-link { font: 700 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; padding: .6rem; }
.header-cta { padding: .65rem .9rem; border: 1px solid var(--ink); background: var(--white); font: 700 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.hero { position: relative; max-width: var(--max); min-height: 900px; margin: 0 auto; padding: clamp(4.5rem, 8vw, 8rem) 2.5rem 6rem; overflow: hidden; }
.hero-grid { position: absolute; inset: 0; z-index: -3; opacity: .55; background-image: radial-gradient(circle, rgba(16,16,20,.25) 1px, transparent 1.3px); background-size: 22px 22px; mask-image: linear-gradient(to bottom, black 0, rgba(0,0,0,.8) 55%, transparent 94%); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -2; width: 70%; height: 34%; border-radius: 50%; filter: blur(54px); opacity: .68; animation: drift 12s ease-in-out infinite alternate; }
.hero::before { left: -20%; top: 18%; background: linear-gradient(100deg, var(--pink-soft), rgba(255,255,255,.2), var(--yellow)); transform: rotate(-12deg); }
.hero::after { right: -28%; top: 47%; background: linear-gradient(100deg, rgba(143,184,255,.65), rgba(255,255,255,.2), var(--pink-soft)); transform: rotate(17deg); animation-delay: -5s; }
@keyframes drift { to { transform: translate3d(6%, 3%, 0) rotate(4deg) scale(1.08); } }

.hero-copy { position: relative; z-index: 3; max-width: 1100px; }
.eyebrow { display: flex; align-items: center; gap: .65rem; margin: 0 0 2rem; font: 700 .7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: #39b76d; box-shadow: 0 0 0 5px rgba(57,183,109,.14); }
.hero h1 { max-width: 1150px; margin: 0; font-size: clamp(3.4rem, 8.2vw, 8.4rem); line-height: .9; letter-spacing: -.078em; font-weight: 790; }
.hero h1 em { display: block; font-style: normal; color: var(--pink); text-shadow: 0 1px 0 var(--white); }
.hero-lead { max-width: 780px; margin: 2.2rem 0 0; color: #3e3e46; font-size: clamp(1.05rem, 1.55vw, 1.36rem); line-height: 1.72; letter-spacing: -.012em; }
.hero-actions, .source-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .85rem 1.25rem; border: 1px solid var(--ink); font-size: .9rem; font-weight: 760; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 5px 5px 0 var(--pink); }
.button-primary { color: var(--white); background: var(--ink); }
.button-secondary { background: rgba(255,255,255,.64); }
.button-light { background: var(--white); }
.hero-facts { display: flex; flex-wrap: wrap; margin: 3rem 0 0; border-top: 1px solid var(--line); }
.hero-facts div { min-width: 210px; padding: 1.1rem 2.5rem 1.1rem 0; margin-right: 2.5rem; border-right: 1px solid var(--line); }
.hero-facts dt { margin-bottom: .4rem; color: var(--muted); font: 650 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.hero-facts dd { margin: 0; font-size: .9rem; font-weight: 750; }

.hero-stage { position: relative; min-height: 480px; margin-top: 5rem; }
.stage-glow { position: absolute; inset: 7% 8% 0; border-radius: 50%; background: rgba(255,255,255,.72); filter: blur(42px); }
.film { position: absolute; z-index: 2; margin: 0; overflow: hidden; border: 1px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--ink); }
.film-wide { left: 3%; top: 0; width: min(70%, 880px); transform: rotate(-2deg); }
.film-tall { right: 4%; bottom: 0; width: min(24%, 285px); transform: rotate(4deg); box-shadow: 10px 10px 0 var(--pink); }
.film-bar { min-height: 36px; display: flex; align-items: center; justify-content: space-between; padding: 0 .8rem; border-bottom: 1px solid var(--ink); font: 700 .59rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.film-bar i { width: 7px; height: 7px; border-radius: 50%; background: #39b76d; }
.film video { width: 100%; height: auto; background: var(--white); }

.signal-strip { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--ink); background: var(--yellow); }
.signal-strip p { margin: 0; padding: 1.35rem 2.5rem; font-size: .9rem; font-weight: 760; }
.signal-strip p + p { border-left: 1px solid var(--ink); }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 2.5rem; }
.section-heading { display: grid; grid-template-columns: .52fr 1.25fr .65fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.section-heading > p:first-child, .inputs-copy > p:first-child, .source-copy > p:first-child, .ack > p:first-child { margin: .5rem 0 0; color: var(--muted); font: 700 .69rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.section-heading h2, .inputs-copy h2, .source-copy h2 { margin: 0; font-size: clamp(2.6rem, 5.5vw, 5.7rem); line-height: .96; letter-spacing: -.063em; }
.section-heading > p:last-child { margin: .45rem 0 0; color: var(--muted); line-height: 1.72; }

.showcase-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 1.5rem; margin-top: 4rem; align-items: stretch; }
.video-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ink); background: var(--white); box-shadow: 10px 10px 0 var(--silver); }
.video-card > div { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 1rem; align-items: baseline; padding: 1.2rem 1.4rem; border-bottom: 1px solid var(--ink); }
.video-card span { color: var(--pink); font: 750 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.video-card h3 { margin: 0; font-size: 1.18rem; }
.video-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.video-card video { width: 100%; height: auto; margin: auto; background: var(--white); }
.vertical-card > div { grid-template-columns: 54px 1fr; }
.vertical-card > div p { grid-column: 2; }
.vertical-card video { max-height: 640px; object-fit: contain; }

.workflow { max-width: none; color: var(--white); background: var(--ink); }
.workflow > * { max-width: calc(var(--max) - 5rem); margin-inline: auto; }
.light-heading { grid-template-columns: .52fr 1.9fr; }
.light-heading > p:first-child { color: rgba(255,255,255,.5); }
.workflow-list { margin-top: 4rem; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.3); }
.workflow-list li { display: grid; grid-template-columns: 80px minmax(280px, 1fr) 170px; gap: 2rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.workflow-list li > span { color: var(--pink-soft); font: 760 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow-list h3 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 2.15rem); letter-spacing: -.03em; }
.workflow-list p { max-width: 780px; margin: .65rem 0 0; color: rgba(255,255,255,.62); line-height: 1.7; }
.workflow-list b { justify-self: end; color: var(--yellow); font: 700 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }

.inputs { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(3rem, 8vw, 9rem); }
.inputs-copy > p:not(:first-child) { max-width: 620px; color: var(--muted); line-height: 1.75; }
.text-link { display: inline-block; margin-top: 1.2rem; padding-bottom: .2rem; border-bottom: 1px solid currentColor; font-size: .84rem; font-weight: 760; }
.input-board { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--pink-soft); }
.input-board > div { min-height: 138px; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; align-content: center; column-gap: .75rem; padding: 1.35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.input-board > div:nth-child(even) { border-right: 0; }
.input-board > div > span:first-child { grid-row: 1 / 3; color: var(--pink); font: 750 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.input-board strong { font-size: 1rem; }
.input-board small { margin-top: .4rem; color: var(--muted); line-height: 1.45; }
.input-board .input-assets { grid-column: 1 / -1; min-height: auto; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; border: 0; padding: 1.25rem; background: var(--yellow); }
.input-assets strong { margin-right: .5rem; }
.input-assets span { padding: .42rem .65rem; border: 1px solid var(--ink); background: var(--white); font-size: .72rem; font-weight: 700; }

.evidence { border-top: 1px solid var(--line); }
.evidence-image { margin: 4rem 0 0; border: 1px solid var(--ink); background: var(--white); box-shadow: 12px 12px 0 var(--ink); }
.evidence-image img { width: 100%; height: auto; }
.evidence-image figcaption { min-height: 44px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 1rem; border-top: 1px solid var(--ink); background: var(--pink-soft); font: 700 .65rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.open-source { max-width: none; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; background: var(--pink-soft); }
.open-source > *:first-child { margin-left: max(0px, calc((100vw - var(--max)) / 2)); }
.open-source > *:last-child { margin-right: max(0px, calc((100vw - var(--max)) / 2)); }
.source-copy > p:not(:first-child) { max-width: 610px; line-height: 1.75; }
.terminal { overflow: hidden; color: #f7f7f4; border: 1px solid var(--ink); background: #101014; box-shadow: 12px 12px 0 var(--ink); }
.terminal > div { min-height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 1rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.terminal > div span { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }
.terminal > div span:nth-child(2) { background: var(--yellow); }
.terminal > div span:nth-child(3) { background: #83d7a4; }
.terminal > div strong { margin-left: auto; color: rgba(255,255,255,.5); font: 600 .65rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal pre { margin: 0; padding: 2rem; overflow: auto; font: 500 clamp(.68rem, 1vw, .84rem)/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; }
.terminal b { color: #9ed7ff; }
.terminal i { color: #8e8e98; font-style: normal; }

.ack { display: grid; grid-template-columns: .45fr 1.15fr .75fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.ack h2 { margin: 0; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1; letter-spacing: -.05em; }
.ack h2 a { color: var(--pink); }
.ack > p:last-child { margin: .4rem 0 0; color: var(--muted); line-height: 1.72; }

.closing { max-width: var(--max); min-height: 360px; margin: 0 auto 2.5rem; padding: 3rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; color: var(--white); background: var(--ink); }
.closing p { margin: 0 0 1rem; color: var(--pink-soft); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; }
.closing h2 { margin: 0; font-size: clamp(2.8rem, 6vw, 6.3rem); line-height: .94; letter-spacing: -.065em; }
.closing a { min-width: 190px; padding: 1rem 0; border-bottom: 1px solid var(--white); font: 750 .72rem ui-monospace, SFMono-Regular, Menlo, monospace; }

.site-footer { max-width: var(--max); min-height: 130px; margin: 0 auto; padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--ink); font: 650 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.3rem; }
.not-found { min-height: 100vh; display: grid; place-content: center; gap: 1.5rem; padding: 2rem; text-align: center; }
.not-found p { font: 700 .7rem ui-monospace, monospace; }
.not-found h1 { margin: 0; font-size: clamp(2.5rem, 8vw, 7rem); letter-spacing: -.06em; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 1.25rem; }
  .site-header nav { display: none; }
  .hero, .section { padding-inline: 1.25rem; }
  .hero { min-height: 820px; }
  .hero-stage { min-height: 400px; }
  .film-wide { width: 76%; left: 0; }
  .film-tall { width: 25%; right: 1%; }
  .section-heading { grid-template-columns: .42fr 1.2fr; }
  .section-heading > p:last-child { grid-column: 2; }
  .showcase-grid { grid-template-columns: 1fr; }
  .vertical-card { display: grid; grid-template-columns: 1fr 320px; }
  .vertical-card > div { border-bottom: 0; border-right: 1px solid var(--ink); }
  .inputs, .open-source { grid-template-columns: 1fr; }
  .open-source { padding-inline: 1.25rem; }
  .open-source > * { margin-inline: 0 !important; }
  .ack { grid-template-columns: .4fr 1.2fr; }
  .ack > p:last-child { grid-column: 2; }
}

@media (max-width: 700px) {
  .site-header { min-height: 62px; }
  .brand strong { font-size: .78rem; }
  .header-cta { display: none; }
  .hero { min-height: auto; padding-top: 4.5rem; padding-bottom: 4rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 5.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-facts { display: grid; }
  .hero-facts div { margin: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stage { min-height: 390px; margin-top: 3rem; }
  .film { box-shadow: 7px 7px 0 var(--ink); }
  .film-wide { width: 96%; }
  .film-tall { width: 36%; right: 2%; bottom: 0; box-shadow: 6px 6px 0 var(--pink); }
  .film-bar { min-height: 28px; font-size: .49rem; }
  .signal-strip { margin-inline: 1.25rem; grid-template-columns: 1fr; }
  .signal-strip p + p { border-left: 0; border-top: 1px solid var(--ink); }
  .section-heading, .light-heading, .ack { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-heading > p:last-child, .ack > p:last-child { grid-column: 1; }
  .section-heading h2, .inputs-copy h2, .source-copy h2 { font-size: clamp(2.7rem, 13vw, 4.8rem); }
  .video-card > div { grid-template-columns: 54px 1fr; }
  .video-card > div p { grid-column: 2; }
  .vertical-card { display: flex; }
  .vertical-card > div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .workflow > * { max-width: none; }
  .workflow-list li { grid-template-columns: 46px 1fr; gap: 1rem; }
  .workflow-list b { grid-column: 2; justify-self: start; margin-top: .7rem; }
  .input-board { grid-template-columns: 1fr; box-shadow: 7px 7px 0 var(--pink-soft); }
  .input-board > div { border-right: 0; }
  .input-board .input-assets { grid-column: 1; }
  .evidence-image { box-shadow: 7px 7px 0 var(--ink); }
  .evidence-image figcaption { align-items: flex-start; flex-direction: column; padding-block: .8rem; }
  .terminal { box-shadow: 7px 7px 0 var(--ink); }
  .terminal pre { padding: 1.2rem; }
  .closing { margin-inline: 1.25rem; min-height: 390px; padding: 1.5rem; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .closing a { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; padding-inline: 1.25rem; }
  .site-footer nav { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
