/* ============================================================
   BytePlus · CG + AI Hybrid Pipeline — Industry Solution
   Design tokens & components ported from the Claude Design
   prototype "BytePlus Hybrid Pipeline.dc.html".
   ============================================================ */

:root {
  /* Surfaces */
  --bg:            #0B0B0C;
  --bg-alt:        #0D0D0C;
  --surface:       #101010;
  --card:          #131312;
  --figure:        #0e0e0d;
  --twin:          #26262a;

  /* Text */
  --text:          #F2EFE9;
  --text-strong:   #E6E1D8;
  --text-light:    #CFC9BF;
  --muted:         #9A958C;
  --faint:         #6B675F;
  --fainter:       #5A564E;

  /* Accents */
  --gold:          #C9A878;
  --gold-soft:     #D8BE92;
  --teal:          #7BB6A0;
  --warn:          #D08A66;

  /* Lines */
  --line:          rgba(255,255,255,0.06);
  --line-2:        rgba(255,255,255,0.08);
  --line-3:        rgba(255,255,255,0.05);
  --line-btn:      rgba(255,255,255,0.16);
  --gold-line:     rgba(201,168,120,0.18);
  --gold-line-2:   rgba(201,168,120,0.25);

  /* Type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  --maxw: 1240px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

img { display: block; }
a { color: inherit; }

model-viewer { --poster-color: transparent; }

@keyframes marqueeDrift {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Layout helpers ---------- */
.page { position: relative; width: 100%; background: var(--bg); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--dot {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow--dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
}
.btn--gold { background: var(--gold); color: var(--bg); }
.btn--ghost { background: transparent; border: 1px solid var(--line-btn); color: var(--text); }

.btn--nav { height: 38px; padding: 0 18px; font-size: 14px; }
.btn--lg  { height: 50px; padding: 0 26px; font-size: 15px; border-radius: 10px; }
.btn--xl  { height: 52px; padding: 0 30px; font-size: 16px; border-radius: 11px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--bg);
}
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b {
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand__name span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav__links a:hover { color: var(--text); }
.nav__links a.btn--gold:hover { color: var(--bg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 32px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 26px 0 24px;
}
.hero__title em { color: var(--gold); font-style: italic; }
.hero__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 34px;
}
.hero__actions { display: flex; gap: 14px; margin-bottom: 42px; }
.hero__models { display: flex; flex-direction: column; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
}
.hero__media { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__glow {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,120,0.12), transparent 70%);
  pointer-events: none;
}
.hero__frame {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: #0d0d0c;
}
.hero__frame img,
.hero__frame video { width: 100%; height: 100%; object-fit: cover; }

/* Hero video trigger (click to enlarge) */
.hero__trigger {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.hero__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11,11,12,0);
  transition: background .2s;
}
.hero__trigger:hover::after,
.hero__trigger:focus-visible::after { background: rgba(11,11,12,0.18); }
.hero__expand {
  position: absolute;
  top: 14px; right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(11,11,12,0.55);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.hero__expand svg { color: var(--gold); }
.hero__frame:hover .hero__expand,
.hero__trigger:focus-visible .hero__expand { opacity: 1; transform: translateY(0); }

/* Zoom-in affordance on every media figure */
.fig, .shot__media, figure.video { cursor: zoom-in; }
.fig::after,
.shot__media::after {
  content: "";
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(11,11,12,0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23C9A878' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E")
    center / 16px no-repeat;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .18s, transform .18s;
  pointer-events: none;
  z-index: 3;
}
.fig:hover::after,
.shot__media:hover::after { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  background: rgba(6,6,7,0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: lb-fade .18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox__stage {
  position: relative;
  margin: 0;
  width: min(1200px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__media { width: 100%; display: flex; justify-content: center; }
.lightbox__media img,
.lightbox__media video {
  max-width: 92vw;
  max-height: 84vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  outline: none;
}
.lightbox__media video { aspect-ratio: 16 / 9; width: min(1200px, 92vw); }
.lightbox__cap {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-align: center;
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(11,11,12,0.6);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.lightbox__close:hover { border-color: var(--gold); color: #fff; background: rgba(201,168,120,0.14); }
.hero__cap {
  position: absolute;
  left: 16px; bottom: 14px;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text);
  background: rgba(11,11,12,0.55);
  padding: 7px 12px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: var(--bg-alt);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: marqueeDrift 30s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--fainter);
  white-space: nowrap;
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; }
.section__head { max-width: 720px; }
.section__head--wide { max-width: 760px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 0; }
.lede strong { color: var(--text); font-weight: inherit; }

/* Overview */
#overview { padding: 110px 32px 40px; }
#overview .section__head { max-width: 760px; }
.problem-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 18px 0 22px;
}

.fail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fail-card {
  padding: 14px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid rgba(196,120,90,0.18);
}
.fail-card__tag { font-family: var(--mono); font-size: 11px; color: var(--warn); margin-bottom: 10px; }
.fail-card__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.fail-card__side {
  position: relative;
  margin: 0;
}
.fail-card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
  display: block;
}
.fail-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
}
.fail-card__badge--ai {
  background: rgba(196,120,90,0.85);
  color: #fff;
}
.fail-card__badge--ok {
  background: rgba(0,194,168,0.85);
  color: #fff;
}
.fail-card__txt { font-size: 12px; line-height: 1.45; color: var(--muted); }
.fail-card__fix {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--teal);
  margin-top: 8px;
}

/* Comparison table */
.compare-wrap { max-width: var(--maxw); margin: 0 auto; padding: 50px 32px 30px; }
.compare {
  border-radius: 18px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--surface);
}
.compare__grid { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; }
.compare__cell { padding: 22px 26px; border-bottom: 1px solid var(--line-3); }
.compare__grid > .compare__cell:nth-last-child(-n+3) { border-bottom: none; }
.compare__head { border-bottom: 1px solid var(--line-2); }
.compare__cell--row { font-weight: 600; font-family: var(--display); }
.compare__cell--ref {
  border-left: 1px solid var(--line-3);
  font-size: 14px; line-height: 1.5; color: var(--muted);
}
.compare__cell--hyb {
  border-left: 1px solid var(--gold-line);
  font-size: 14px; line-height: 1.5; color: var(--text-strong);
}
.compare__h {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.compare__h--ref { color: var(--muted); border-left: 1px solid var(--line-3); }
.compare__h--hyb {
  color: var(--gold);
  background: linear-gradient(180deg, rgba(201,168,120,0.08), transparent);
  border-left: 1px solid var(--gold-line-2);
}

/* Economics metric strip */
.metrics { max-width: var(--maxw); margin: 0 auto; padding: 36px 32px 100px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric {
  padding: 28px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.07);
}
.metric__n {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--gold);
}
.metric__l { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ============================================================
   ARCHITECTURE
   ============================================================ */
.band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band--open { border-bottom: none; }
.band__inner { max-width: var(--maxw); margin: 0 auto; padding: 100px 32px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.plane {
  padding: 30px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.plane__k { font-family: var(--mono); font-size: 13px; color: var(--gold); margin-bottom: 18px; }
.plane__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.plane__p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ---- Architecture board (CG + Seedance pipeline flow) ---- */
.arch { position: relative; }
.arch__hint {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 12px;
}
.arch__hint span { color: var(--gold); }
.arch__scroll { overflow-x: auto; padding-bottom: 10px; }
.arch__scroll::-webkit-scrollbar { height: 8px; }
.arch__scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 4px; }
.arch__flow {
  display: flex;
  align-items: stretch;
  gap: 8px;
  min-width: min-content;
}
.arch-stage {
  flex: 1 1 0;
  min-width: 288px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.arch-stage__head {
  display: flex;
  gap: 7px;
  align-items: baseline;
  min-height: 48px;
  margin-bottom: 2px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-2);
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--text);
}
.arch-stage__no { color: var(--gold); font-family: var(--mono); font-size: 13px; flex: none; }

.arch-node {
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.arch-node__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 4px;
}
.arch-node__t--model { color: var(--gold); }
.arch-node__m { font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* stage ① input cards (compact horizontal: thumb + label + destination) */
.arch-input {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
}
.arch-input img {
  width: 92px; height: 64px; flex: none;
  object-fit: cover; display: block;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.08);
}
.arch-input figcaption {
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.25;
}
.arch-to {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 9px;
  letter-spacing: 0.02em;
  color: var(--gold);
}

/* within-lane flow arrow + input branch merge */
.arch-down {
  text-align: center;
  color: rgba(201,168,120,0.55);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
  margin: -2px 0;
}
.arch-merge .arch-node__t { color: var(--gold-soft); }

/* spec snippet */
.arch-node--ghost { background: transparent; border-style: dashed; }
.arch-spec__b {
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 5px;
}
.arch-spec__b span { color: var(--gold); }

/* stage ② live 3D twin */
.arch-twin__viewer {
  width: 100%;
  height: 150px;
  margin-top: 9px;
  border-radius: 9px;
  border: 1px solid var(--gold-line-2);
  background: radial-gradient(130% 100% at 50% 0%, #1a1916, #0d0d0c 75%);
  display: block;
}
.arch-twin__tag {
  margin-top: 5px;
  text-align: right;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--faint);
}

/* render thumbnail grids (stages ③ ④) */
.arch-thumbs { display: grid; gap: 5px; margin-top: 9px; }
.arch-thumbs--2 { grid-template-columns: 1fr 1fr; }
.arch-thumbs--2x2 { grid-template-columns: 1fr 1fr; }
.arch-thumbs--row { grid-template-columns: repeat(3, 1fr); }
.arch-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* AI compositing tag chips */
.arch-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.arch-tags span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  border-radius: 5px;
  padding: 2px 6px;
}

/* stage ⑤ final KV grid */
.arch-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 9px; }
.arch-kv figure {
  margin: 0;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: var(--figure);
}
.arch-kv img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.arch-kv figcaption {
  padding: 3px 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--gold);
  background: rgba(255,255,255,0.02);
}
.arch-node--final {
  border-color: var(--gold-line-2);
  background: linear-gradient(135deg, rgba(201,168,120,0.12), rgba(201,168,120,0.03));
}
.arch-node--final .arch-node__t { margin-bottom: 0; }

.arch-arrow {
  align-self: center;
  flex: 0 0 auto;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 18px;
}
.arch__rail {
  margin-top: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

@media (max-width: 920px) {
  .arch__flow { flex-direction: column; }
  .arch-stage { min-width: 0; }
  .arch-arrow { transform: rotate(90deg); }
}

/* ============================================================
   MODELS
   ============================================================ */
#models { padding: 100px 32px; }
.head-gap { margin-bottom: 48px; }
.model {
  padding: 32px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.model__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.model__name { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(201,168,120,0.3);
  border-radius: 6px;
  padding: 4px 10px;
}
.model__role { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-bottom: 12px; }
.model__p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

.controlplane {
  margin-top: 40px;
  padding: 36px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(201,168,120,0.07), rgba(201,168,120,0.02));
  border: 1px solid var(--gold-line);
}
.controlplane__head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 24px;
}
.controlplane__head h3 {
  font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.01em;
}
.controlplane__head span { font-size: 14px; color: var(--muted); }
.refs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ref {
  padding: 20px;
  border-radius: 12px;
  background: rgba(11,11,12,0.5);
  border: 1px solid rgba(255,255,255,0.07);
}
.ref__k { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-bottom: 8px; }
.ref__p { font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ============================================================
   PIPELINE
   ============================================================ */
#pipeline .band__inner { padding: 100px 32px; }
.pipeline-head { max-width: 760px; margin-bottom: 60px; }
.pipeline-head .section-title { margin: 18px 0 20px; }

.step {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 48px;
  padding: 44px 0;
  border-top: 1px solid var(--line-2);
}
.step__n {
  font-family: var(--mono);
  font-size: 42px;
  color: rgba(201,168,120,0.4);
  line-height: 1;
  margin-bottom: 18px;
}
.step__kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.step__t {
  font-family: var(--display);
  font-weight: 600;
  font-size: 26px;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.step__p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }
.step__p + .step__p, .step__p + .checklist, .step__p + .hint { margin-top: 16px; }

.checklist { display: flex; flex-direction: column; gap: 8px; }
.checklist li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-light);
  list-style: none;
}
.checklist li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none;
}
.hint {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--faint);
}
.hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }

.mini-stats { display: flex; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.mini-stats b { color: var(--gold); font-size: 20px; font-family: var(--display); font-weight: 600; }

/* Figures */
.fig {
  margin: 0;
  position: relative;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--figure);
}
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--gold { border-color: var(--gold-line-2); }
.fig__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(11,11,12,0.92));
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-light);
}
.fig__cap--split { display: flex; justify-content: space-between; align-items: center; }
.fig__cap .gold { color: var(--gold); }

/* Step 1 — inputs */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fig--portrait { aspect-ratio: 3/4; }

/* Step 2 — spec */
.spec-layout { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 16px; align-items: stretch; }
.spec-fig { border-radius: 16px; min-height: 240px; }
.spec-fig .fig__cap { color: var(--gold); }
.spec-card {
  padding: 28px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.spec-card__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.spec-card__head h4 { font-family: var(--display); font-weight: 600; font-size: 19px; margin: 0; }
.spec-card__locked { font-family: var(--mono); font-size: 11px; color: var(--teal); }
.spec-card__sub { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0 0 20px; }
.spec-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px;
  font-size: 13px; margin-bottom: 22px;
}
.spec-grid dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 4px;
}
.spec-grid dt { display: flex; align-items: center; }
.spec-grid dd { margin: 0; color: var(--text-light); }
.spec-tag {
  margin-left: 6px;
  padding: 1px 5px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  line-height: 1.4;
}
.spec-tag--given { color: var(--teal); }
.spec-tag--est { color: var(--gold); }
.spec-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: -8px 0 22px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
}
.spec-sub-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 12px;
}
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 12px 7px 7px;
  border-radius: 9px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
}
.swatch__chip { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.swatch__name { font-size: 12px; color: var(--text-strong); line-height: 1.2; }
.swatch__hex { font-family: var(--mono); font-size: 10px; color: var(--faint); line-height: 1.2; }

/* Step 3 — digital twin */
.twin-layout { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.twin-fig { border-radius: 16px; height: 360px; background: var(--twin); }
.twin-fig .fig__cap { display: flex; justify-content: space-between; }
.viewer {
  border-radius: 16px;
  border: 1px solid var(--gold-line-2);
  background: radial-gradient(130% 100% at 50% 0%, #1a1916, #0d0d0c 75%);
  overflow: hidden;
}
.viewer model-viewer { width: 100%; height: 262px; background: transparent; }

/* Packshot -> 3D generation effect */
.twin-gen { position: relative; height: 420px; overflow: hidden; }
.twin-gen model-viewer { width: 100%; height: 100%; display: block; }
.twin-gen__seed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;                 /* covers the viewer until generation finishes */
  transition: opacity .9s ease, filter .9s ease;
  pointer-events: none;
}
.twin-gen.is-ready .twin-gen__seed { opacity: 0; filter: brightness(1.4) saturate(0); }

/* sweeping reconstruction beam */
.twin-gen__scan {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 40%;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-130%);
  background: linear-gradient(180deg, transparent, rgba(201,168,120,0.16) 65%, rgba(201,168,120,0.45));
  border-bottom: 2px solid rgba(201,168,120,0.95);
  box-shadow: 0 0 26px 5px rgba(201,168,120,0.35);
  mix-blend-mode: screen;
}
.twin-gen.is-generating .twin-gen__scan {
  opacity: 1;
  animation: twinScan 2.6s cubic-bezier(.45,0,.2,1) forwards;
}
@keyframes twinScan {
  0%   { transform: translateY(-130%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(360%); opacity: 0; }
}

/* status chip */
.twin-gen__status {
  position: absolute;
  top: 12px; left: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 11px;
  border-radius: 8px;
  background: rgba(11,11,12,0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-light);
  pointer-events: none;
  transition: opacity .5s ease, color .3s ease;
}
.twin-gen.is-ready .twin-gen__status { color: var(--teal); }
.twin-gen.is-faded .twin-gen__status { opacity: 0; }
.twin-gen__spinner {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,120,0.35);
  border-top-color: var(--gold);
  animation: twinSpin .7s linear infinite;
}
.twin-gen.is-ready .twin-gen__spinner {
  width: 7px; height: 7px;
  border: none;
  background: var(--teal);
  animation: none;
}
@keyframes twinSpin { to { transform: rotate(360deg); } }

/* viewer panel footer with regenerate */
.viewer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.vbtn--regen {
  border-color: rgba(201,168,120,0.4);
  color: var(--gold-soft);
}
.vbtn--regen:hover { border-color: var(--gold); color: #fff; background: rgba(201,168,120,0.12); }

@media (prefers-reduced-motion: reduce) {
  .twin-gen__scan { display: none; }
  .twin-gen__seed { transition: opacity .3s ease; }
}
.viewer__panel {
  padding: 14px 16px;
  border-top: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 12px;
  background: rgba(11,11,12,0.4);
}
.viewer__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.viewer__angles { display: flex; gap: 6px; }
.vbtn {
  height: 30px; padding: 0 11px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,0.14);
  background: transparent;
  color: var(--text-light);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.vbtn:hover { border-color: var(--gold); color: #fff; }
.vbtn.is-active { border-color: var(--gold); color: #fff; background: rgba(201,168,120,0.10); }
.vbtn--rotate {
  border: 1px solid rgba(201,168,120,0.4);
  background: rgba(201,168,120,0.12);
  color: var(--gold-soft);
  padding: 0 12px;
}
.viewer__light { display: flex; flex-direction: column; gap: 6px; }
.viewer__light label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.viewer__light input[type=range] { width: 100%; accent-color: var(--gold); cursor: pointer; }
.viewer__note { font-family: var(--mono); font-size: 9px; color: var(--fainter); }

/* Step 4 — environment */
.stack { display: flex; flex-direction: column; gap: 16px; }
.fig--wide { aspect-ratio: 16/10; border-radius: 14px; }
.fig--16-9 { aspect-ratio: 16/9; border-radius: 14px; }
.fig__cap--plain { display: flex; justify-content: space-between; }
.before-after { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.arrow { font-family: var(--mono); color: var(--gold); }
.arrow--sm { font-size: 20px; }
.arrow--md { font-size: 22px; }

/* Step 5 — storyboard */
.shot {
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--figure);
}
.shot__media { position: relative; aspect-ratio: 16/10; }
.shot__media img { width: 100%; height: 100%; object-fit: cover; }
.shot__badge {
  position: absolute; top: 8px; left: 8px;
  font-family: var(--mono); font-size: 9px;
  color: var(--bg); background: var(--gold);
  padding: 2px 7px; border-radius: 4px;
}
.shot figcaption { padding: 10px 12px; }
.shot__type { font-family: var(--mono); font-size: 10px; color: var(--gold); margin-bottom: 3px; }
.shot__line { font-size: 12px; color: var(--text-light); line-height: 1.35; }

/* Step 6 — composite */
.fig--4-3 { aspect-ratio: 4/3; border-radius: 14px; }

/* Step 8 — video */
.video {
  margin: 0;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--figure);
}
.video img { width: 100%; height: 100%; object-fit: cover; }
.video__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.25), transparent 40%, rgba(11,11,12,0.55));
}
.video__tag {
  position: absolute; top: 18px; left: 18px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text);
}
.video__play {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: rgba(11,11,12,0.35);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.video__play::after {
  content: ""; width: 0; height: 0;
  border-left: 15px solid #fff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.video__foot { position: absolute; left: 18px; right: 18px; bottom: 18px; }
.video__meta {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; color: var(--text); margin-bottom: 8px;
}
.video__bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,0.25); }
.video__bar > i { display: block; width: 34%; height: 100%; border-radius: 2px; background: var(--gold); }

/* ============================================================
   WHY BYTEPLUS
   ============================================================ */
#why { padding: 100px 32px; }
.why-card {
  padding: 34px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line-2);
}
.why-card h3 {
  font-family: var(--display); font-weight: 600; font-size: 21px;
  margin: 0 0 12px; letter-spacing: -0.01em;
}
.why-card p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta { max-width: var(--maxw); margin: 0 auto; padding: 40px 32px 110px; }
.cta__card {
  position: relative;
  border-radius: 22px;
  border: 1px solid rgba(201,168,120,0.22);
  background:
    radial-gradient(120% 140% at 80% 0%, rgba(201,168,120,0.10), transparent 60%),
    var(--surface);
  padding: 72px 56px;
  overflow: hidden;
  text-align: center;
}
.cta__card h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.cta__card p {
  font-size: 18px; line-height: 1.6; color: var(--muted);
  max-width: 560px; margin: 0 auto 34px;
}
.cta__actions { display: flex; gap: 14px; justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 36px 32px; }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__brand .dot-sq { width: 20px; height: 20px; border-radius: 5px; background: var(--gold); }
.footer__brand b { font-family: var(--display); font-weight: 600; font-size: 14px; }
.footer__note { font-family: var(--mono); font-size: 11px; color: var(--fainter); }

/* ============================================================
   RESPONSIVE  (the prototype is desktop-only @1280;
   these breakpoints keep it from breaking on narrower viewports)
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { gap: 18px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__media { max-width: 640px; }
  .cols-3, .refs, .fail-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .step { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .wrap, .hero, .band__inner, #overview, .compare-wrap, .metrics,
  #models, #pipeline .band__inner, #why, .cta, .nav, .footer { padding-left: 20px; padding-right: 20px; }
  .nav { height: 64px; }
  .nav__links { display: none; }
  .cols-2, .cols-3, .refs, .fail-grid, .metric-grid,
  .grid-3, .twin-layout, .spec-layout { grid-template-columns: 1fr; }
  .compare__grid { grid-template-columns: 1fr; }
  .compare__head { display: none; }
  .before-after { grid-template-columns: 1fr; }
  .before-after .arrow { transform: rotate(90deg); justify-self: center; }
  .hero__title { font-size: clamp(34px, 11vw, 52px); }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
