/* ============================================================
   Offiks.AI — one-pager
   Palette: committed navy drench + orange action (brand-locked)
   Type: Archivo, single family, hard weight contrast
   ============================================================ */

:root {
  --navy: oklch(0.24 0.05 264);        /* #16233F brand */
  --navy-deep: oklch(0.19 0.045 264);
  --navy-card: oklch(0.29 0.055 264);
  --navy-line: oklch(0.38 0.05 264);
  --ice: oklch(0.88 0.03 262);         /* text on navy */
  --ice-dim: oklch(0.76 0.04 262);
  --orange: oklch(0.66 0.17 41);       /* #E8622C brand */
  --orange-deep: oklch(0.58 0.17 41);
  --paper: #ffffff;
  --wash: oklch(0.965 0.008 264);
  --ink: oklch(0.24 0.03 264);
  --slate: oklch(0.42 0.03 264);
  --line: oklch(0.9 0.012 264);

  --font: "Archivo", "Segoe UI", system-ui, sans-serif;
  --step-1: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  --step-2: clamp(1.35rem, 1.15rem + 0.9vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.6vw, 2.5rem);
  --step-4: clamp(2.5rem, 1.9rem + 3.2vw, 4.1rem);

  --space: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 14px;

  --z-nav: 10;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
p, li, td, th, blockquote, figcaption { overflow-wrap: break-word; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ice);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { text-wrap: balance; line-height: 1.08; }
p { text-wrap: pretty; }

a { color: inherit; }

::selection { background: var(--orange); color: #fff; }

/* ---------- ribbon ---------- */
.ribbon {
  background: var(--orange);
  color: oklch(0.16 0.04 264);
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  padding: 0.5rem var(--gutter);
}
.ribbon strong { font-weight: 800; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.9rem var(--gutter);
  background: color-mix(in oklch, var(--navy) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in oklch, var(--navy-line) 50%, transparent);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.wordmark-mark { flex: none; display: block; }
.wordmark-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.wordmark-text span { color: var(--orange); }
.topnav {
  display: flex;
  gap: 1.6rem;
  margin-inline: auto;
}
.topnav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ice-dim);
  transition: color 0.18s ease-out;
}
.topnav a:hover, .topnav a:focus-visible { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }

.lang { display: flex; border: 1px solid var(--navy-line); border-radius: 99px; padding: 2px; }
.lang button {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice-dim);
  background: none;
  border: 0;
  border-radius: 99px;
  padding: 0.28rem 0.65rem;
  cursor: pointer;
  transition: background 0.18s ease-out, color 0.18s ease-out;
}
.lang button[aria-pressed="true"] { background: var(--orange); color: #fff; }
.lang button:not([aria-pressed="true"]):hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  border-radius: 99px;
  padding: 0.85rem 1.7rem;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease-out, border-color 0.18s ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-cta { background: var(--orange); color: oklch(0.16 0.04 264); }
.btn-cta:hover { background: oklch(0.7 0.17 41); }
.btn-ghost { border: 1.5px solid var(--navy-line); color: var(--ice); }
.btn-ghost:hover { border-color: var(--ice-dim); }
.btn-small { padding: 0.5rem 1.1rem; font-size: 0.88rem; }
.btn-big { font-size: 1.15rem; padding: 1.05rem 2.3rem; }

@media (prefers-reduced-motion: reduce) {
  .btn, .topnav a, .lang button { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: calc(var(--space) * 0.8) var(--gutter) var(--space);
  max-width: 1200px;
  margin-inline: auto;
}
.hero-copy h1 {
  font-size: var(--step-4);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #fff;
}
.hero-sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ice);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }
.hero-note {
  margin-top: 2.4rem;
  font-size: 0.9rem;
  color: var(--ice-dim);
  max-width: 30rem;
}

/* ---------- workflow figure ---------- */
.flow {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  box-shadow: 0 30px 60px -30px oklch(0.1 0.04 264 / 0.8);
}
.flow-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--navy-line);
}
.flow-title { font-weight: 700; font-size: 0.95rem; color: #fff; }
.flow-clock {
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
}
.flow-steps { list-style: none; margin: 1.1rem 0 0; position: relative; }
.flow-steps::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--navy-line);
}
.flow-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding: 0.5rem 0 0.5rem 1.6rem;
  opacity: 0.38;
  transition: opacity 0.5s ease-out;
}
.flow-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--navy-line);
  transition: background 0.4s ease-out, box-shadow 0.4s ease-out;
}
.flow-steps li.is-on { opacity: 1; }
.flow-steps li.is-on::before {
  background: var(--orange);
  box-shadow: 0 0 0 5px oklch(0.66 0.17 41 / 0.22);
}
.flow-steps .who {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  align-self: center;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  white-space: nowrap;
}
.flow-steps li[data-actor="human"] .who { background: oklch(0.88 0.03 262 / 0.14); color: var(--ice); }
.flow-steps li[data-actor="agent"] .who { background: oklch(0.66 0.17 41 / 0.2); color: oklch(0.78 0.14 45); }
.flow-steps .what { font-size: 0.92rem; line-height: 1.4; color: var(--ice); }
.flow-result {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.88rem;
  color: var(--ice-dim);
}
.flow-result-num {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--orange);
}

@media (prefers-reduced-motion: reduce) {
  .flow-steps li { opacity: 1; transition: none; }
  .flow-steps li::before { background: var(--orange); box-shadow: none; transition: none; }
}

/* ---------- light sections shared ---------- */
.problem, .platform, .timeline, .proof {
  background: var(--paper);
  color: var(--ink);
}
.problem, .platform, .timeline { padding: var(--space) var(--gutter); }
.problem > *, .platform > *, .timeline > *, .proof > * {
  max-width: 1100px;
  margin-inline: auto;
}

/* ---------- problem ---------- */
.problem { background: var(--wash); }
.problem h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 46rem;
}
.problem-lead {
  margin-top: 1.1rem;
  max-width: 44rem;
  font-size: var(--step-1);
  color: var(--slate);
}
.problem-lead strong { color: var(--ink); font-weight: 700; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 3.2rem;
}
.problem-grid h3 { font-size: 1.15rem; font-weight: 800; }
.problem-grid p { margin-top: 0.7rem; color: var(--slate); font-size: 0.98rem; }
.problem-thesis {
  margin-top: 3.5rem;
  font-size: var(--step-2);
  font-weight: 500;
  max-width: 40rem;
}
.problem-thesis em {
  font-style: normal;
  font-weight: 900;
  color: var(--orange-deep);
}

/* ---------- platform ---------- */
.platform h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.015em;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 3rem;
}
.pillar {
  border-top: 3px solid var(--navy);
  padding-top: 1.4rem;
}
.pillar:nth-child(2) { border-top-color: var(--orange); }
.pillar h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.01em; }
.pillar p { margin-top: 0.8rem; color: var(--slate); font-size: 0.98rem; }

/* ---------- timeline ---------- */
.timeline { background: var(--wash); }
.timeline h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.015em;
  max-width: 42rem;
}
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.4rem, 2.5vw, 2.2rem);
  margin-top: 3rem;
}
.steps li {
  counter-increment: step;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.6rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -0.85rem;
  left: 1.2rem;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
}
.steps-when {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
}
.steps h3 { font-size: 1.12rem; font-weight: 800; margin-top: 0.35rem; }
.steps p { margin-top: 0.55rem; font-size: 0.92rem; color: var(--slate); }

/* ---------- proof ---------- */
.proof { padding: var(--space) var(--gutter); }
.proof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: 3.2rem;
  border-bottom: 1px solid var(--line);
}
.proof-stats div { display: grid; gap: 0.3rem; }
.proof-stats strong {
  font-size: clamp(2.4rem, 2rem + 2vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--navy);
}
.proof-stats span { font-size: 0.92rem; color: var(--slate); max-width: 16rem; }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 3vw, 3rem);
  margin-top: 3.2rem;
}
.quotes blockquote p {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.quotes footer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--slate);
}
.quotes footer strong { color: var(--ink); }

/* ---------- closing ---------- */
.closing {
  background: var(--navy-deep);
  text-align: center;
  padding: var(--space) var(--gutter);
}
.closing h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 46rem;
  margin-inline: auto;
}
.closing-sub, .closing > p:not(.closing-alt) {
  margin: 1.4rem auto 0;
  max-width: 36rem;
  color: var(--ice);
}
.closing .btn-big { margin-top: 2.4rem; }
.closing-alt { margin-top: 1.6rem; font-size: 0.92rem; color: var(--ice-dim); }
.closing-alt a { color: var(--ice); font-weight: 600; }

/* ---------- footer ---------- */
.foot {
  background: var(--navy-deep);
  border-top: 1px solid var(--navy-line);
  padding: 2.2rem var(--gutter) 2.6rem;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ice-dim);
  display: grid;
  gap: 0.5rem;
}
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 0.45rem; flex-wrap: wrap; }
.foot-brand svg { flex: none; display: block; }
.wordmark-foot { font-weight: 900; font-size: 1.05rem; color: #fff; }
.wordmark-foot span { color: var(--orange); }
.foot a { color: var(--ice); }
.foot-legal { font-size: 0.78rem; opacity: 0.7; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- video ---------- */
.video {
  background: var(--navy);
  color: var(--ice);
  padding: var(--space) var(--gutter);
  text-align: center;
}
.video h2 {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 40rem;
  margin-inline: auto;
}
.video-sub {
  margin: 0.9rem auto 0;
  max-width: 38rem;
  font-size: var(--step-1);
  color: var(--ice);
}
.video-frame {
  position: relative;
  max-width: 900px;
  margin: 2.6rem auto 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--navy-line);
  box-shadow: 0 34px 70px -32px rgba(0, 0, 0, 0.85);
}
.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 84px;
  height: 84px;
  border: 0;
  border-radius: 50%;
  background: var(--orange);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 34px -8px rgba(0, 0, 0, 0.6);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease-out;
}
.video-play::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 15px 0 15px 26px;
  border-color: transparent transparent transparent #fff;
  margin-left: 7px;
}
.video-play:hover { transform: scale(1.06); background: oklch(0.7 0.17 41); }
.video-frame.is-playing .video-play { display: none; }
@media (prefers-reduced-motion: reduce) { .video-play { transition: none; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 3rem; }
  .topnav { display: none; }
}
@media (max-width: 560px) {
  .flow-result-num { white-space: normal; }
  .topbar { gap: 0.8rem; }
  .btn-small { display: none; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
