/* ReConstructor — style
   Design tokens (see brief): dark edit-bay surface + three camera-track accents
   that converge to a single synced color. Mono display face reads as timecode;
   Manrope carries body copy. */

@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plexmono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/manrope-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/manrope-700.woff2') format('woff2');
}

:root {
  --ink-950: #14171c;
  --ink-900: #1b1f26;
  --ink-850: #232833;
  --ink-line: #333a47;
  --paper: #f1ede4;
  --paper-dim: #a9aab0;
  --cam-a: #ff6b4a;
  --cam-b: #46d3c4;
  --cam-c: #e8b94a;
  --sync: #f1ede4;
  --font-display: 'Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --edge: 1px solid var(--ink-line);
  --radius: 2px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

:focus-visible {
  outline: 2px solid var(--cam-b);
  outline-offset: 3px;
}

.mono { font-family: var(--font-display); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 23, 28, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: var(--edge);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cam-a);
  box-shadow: 4px 0 0 var(--cam-b), 8px 0 0 var(--cam-c);
  flex: none;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-header nav a:not(.btn) {
  font-size: 14px;
  color: var(--paper-dim);
  text-decoration: none;
}
.site-header nav a:not(.btn):hover { color: var(--paper); }
.nav-links { display: flex; gap: 28px; }
@media (max-width: 720px) {
  .nav-links { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--paper);
  color: var(--ink-950);
}
.btn--primary:hover { background: #ffffff; }
.btn--ghost {
  border-color: var(--ink-line);
  color: var(--paper);
}
.btn--ghost:hover { border-color: var(--paper-dim); }

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

.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  border-bottom: var(--edge);
}

.timecode-ruler {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--paper-dim);
  border-top: var(--edge);
  border-bottom: var(--edge);
  padding: 8px 0;
  margin-bottom: clamp(32px, 6vw, 56px);
  overflow: hidden;
  white-space: nowrap;
}
.timecode-ruler span {
  flex: 1;
  position: relative;
  padding-left: 10px;
  border-left: 1px solid var(--ink-line);
}
.timecode-ruler span:first-child { border-left: none; padding-left: 0; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cam-b);
  margin: 0 0 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--cam-a);
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--paper-dim);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero__note {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--paper-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero__note::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cam-c);
  flex: none;
}

/* ---------- sync visualization (signature element) ---------- */

.sync-board {
  border: var(--edge);
  background: var(--ink-900);
  padding: 18px;
  border-radius: var(--radius);
}
.sync-board__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--paper-dim);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}
.sync-board__head .status {
  color: var(--cam-b);
  transition: color 0.4s ease;
}
.sync-board.is-synced .sync-board__head .status { color: var(--cam-b); }

.track {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 10px;
  height: 34px;
  margin-bottom: 8px;
}
.track:last-of-type { margin-bottom: 0; }
.track__label {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--paper-dim);
}
.track__lane {
  position: relative;
  height: 100%;
  background: var(--ink-850);
  border-radius: var(--radius);
  overflow: hidden;
}
.track__clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  width: 62%;
  border-radius: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--clip-color) 0px,
    var(--clip-color) 2px,
    color-mix(in srgb, var(--clip-color) 60%, transparent) 2px,
    color-mix(in srgb, var(--clip-color) 60%, transparent) 4px
  );
  opacity: 0.9;
  transition: left 1.1s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.6s ease;
  left: var(--offset, 0%);
}
.track--a .track__clip { --clip-color: var(--cam-a); }
.track--b .track__clip { --clip-color: var(--cam-b); }
.track--c .track__clip { --clip-color: var(--cam-c); }

.track--a .track__clip { --offset: 14%; }
.track--b .track__clip { --offset: 2%; }
.track--c .track__clip { --offset: 22%; }
.sync-board.is-synced .track__clip { --offset: 8%; }

.sync-board__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: var(--edge);
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--paper-dim);
}
.sync-board__foot strong { color: var(--paper); font-weight: 500; }

/* ---------- manifesto ---------- */

.manifesto {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: var(--edge);
}
.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 5vw, 48px);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--paper-dim);
  font-size: 1.05rem;
  margin: 0;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
}
.compare > div { padding: 28px clamp(20px, 3vw, 32px); }
.compare__not { background: var(--ink-900); border-right: var(--edge); }
@media (max-width: 720px) {
  .compare__not { border-right: none; border-bottom: var(--edge); }
}
.compare__is { background: var(--ink-850); }
.compare h3 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 500;
}
.compare__not h3 { color: var(--paper-dim); }
.compare__is h3 { color: var(--cam-a); }
.compare ul { list-style: none; margin: 0; padding: 0; }
.compare li {
  padding: 9px 0;
  font-size: 0.98rem;
  border-top: 1px solid var(--ink-line);
}
.compare li:first-of-type { border-top: none; }
.compare__not li { color: var(--paper-dim); text-decoration: line-through; text-decoration-color: var(--ink-line); }
.compare__is li { color: var(--paper); }

/* ---------- how it works ---------- */

.flow {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: var(--edge);
}
.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: var(--edge);
}
@media (max-width: 860px) {
  .flow-strip { grid-template-columns: 1fr; }
}
.flow-stop {
  padding: 22px clamp(16px, 2vw, 24px) 26px;
  border-right: var(--edge);
  border-bottom: var(--edge);
  position: relative;
}
.flow-strip .flow-stop:last-child { border-right: none; }
@media (max-width: 860px) {
  .flow-strip .flow-stop { border-right: none; }
}
.flow-stop__tc {
  font-family: var(--font-display);
  font-size: 11px;
  color: var(--cam-c);
  margin-bottom: 14px;
}
.flow-stop h3 {
  font-size: 1.02rem;
  margin: 0 0 8px;
  font-weight: 700;
}
.flow-stop p {
  color: var(--paper-dim);
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- pipeline (track list) ---------- */

.pipeline {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: var(--edge);
}
.deck {
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.deck-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  border-top: var(--edge);
}
.deck-row:first-child { border-top: none; }
@media (max-width: 640px) {
  .deck-row { grid-template-columns: 64px 1fr; }
}
.deck-row__id {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-950);
  background: var(--track-color, var(--paper-dim));
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-weight: 600;
}
.deck-row:nth-child(1) .deck-row__id, .deck-row:nth-child(4) .deck-row__id { --track-color: var(--cam-a); }
.deck-row:nth-child(2) .deck-row__id, .deck-row:nth-child(5) .deck-row__id { --track-color: var(--cam-b); }
.deck-row:nth-child(3) .deck-row__id, .deck-row:nth-child(6) .deck-row__id { --track-color: var(--cam-c); }
.deck-row__body {
  padding: 16px clamp(16px, 2vw, 24px);
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.deck-row__body h3 {
  font-size: 0.98rem;
  margin: 0;
  font-weight: 700;
  white-space: nowrap;
}
.deck-row__body p {
  color: var(--paper-dim);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

/* ---------- export ---------- */

.export {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: var(--edge);
}
.export__panel {
  border: var(--edge);
  border-radius: var(--radius);
  background: var(--ink-900);
  padding: clamp(24px, 4vw, 40px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 860px) {
  .export__panel { grid-template-columns: 1fr; }
}
.export__panel h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 0 0 14px;
}
.export__panel p {
  color: var(--paper-dim);
  margin: 0;
  max-width: 48ch;
}
.export__targets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.export__target {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 13px;
}
.export__target span:last-child {
  color: var(--paper-dim);
  font-size: 11px;
}

/* ---------- niches ---------- */

.niches {
  padding: clamp(56px, 8vw, 96px) 0;
  border-bottom: var(--edge);
}
.slate {
  border: var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
}
.slate__row {
  display: flex;
  flex-wrap: wrap;
}
.slate__item {
  flex: 1 1 220px;
  padding: 20px clamp(16px, 2vw, 24px);
  border-right: var(--edge);
  border-bottom: var(--edge);
}
.slate__item:nth-child(3n) { border-right: none; }
@media (max-width: 720px) {
  .slate__item:nth-child(3n) { border-right: var(--edge); }
  .slate__item:nth-child(2n) { border-right: none; }
}
.slate__item h4 {
  font-size: 0.98rem;
  margin: 0 0 4px;
  font-weight: 700;
}
.slate__item p {
  color: var(--paper-dim);
  font-size: 0.86rem;
  margin: 0;
}

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

.cta {
  padding: clamp(64px, 9vw, 110px) 0;
  text-align: center;
}
.cta h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.cta p {
  color: var(--paper-dim);
  max-width: 50ch;
  margin: 0 auto 32px;
}
.cta .hero__actions { justify-content: center; }

.site-footer {
  border-top: var(--edge);
  padding: 28px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--paper-dim);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
