/* ovecc marketing page
   Palette from the graphic charter: #ebf8ff · #00d2b4 · #4a5568 · #b8c3d7 · Inter */

/* Subset of InterVariable to Latin-1 plus the arrows, check marks and dashes the
   page actually draws (352kb -> 64kb). Both variable axes are kept, so the 400
   to 800 range the design uses still interpolates. Regenerate with:
   pyftsubset assets/InterVariable.woff2 --output-file=assets/InterVariable-latin.woff2
     --flavor=woff2 --no-hinting --layout-features="kern,liga,calt,tnum,ccmp,locl,mark,mkmk"
     --unicodes="U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2190-2193,U+2212,U+2215,U+25B8,U+2713,U+2717,U+2726,U+FEFF,U+FFFD" */
@font-face {
  font-family: 'Inter';
  src: url('assets/InterVariable-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #04070b;
  --panel: #070c13;
  --panel-2: #05090f;
  --ink: #ebf8ff;
  --ink-2: #b8c3d7;
  --ink-3: #76839c;
  --line: rgba(184, 195, 215, 0.13);
  --teal: #00d2b4;
  --teal-bright: #2ee8cb;
  --red: #ff5d73;
  --amber: #ffb454;
  --mono: ui-monospace, 'Cascadia Code', Consolas, 'JetBrains Mono', Menlo, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(0, 210, 180, 0.35); color: var(--ink); }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(184, 195, 215, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 195, 215, 0.045) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 100%);
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.bg-glow-a {
  width: 640px; height: 640px; top: -260px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0, 210, 180, 0.16), transparent 65%);
}
.bg-glow-b {
  width: 520px; height: 520px; bottom: -220px; right: -160px;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.08), transparent 65%);
}

/* ---------- header ---------- */
.site-header {
  max-width: 1120px; margin: 0 auto; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink);
  font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em;
}
.header-nav { display: flex; align-items: center; gap: 14px; }
.gh-link { gap: 0.5em; }
.gh-mark { flex: none; }

/* ---------- shared ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }

/* Every section an anchor jumps to. Without a floor they end wherever their
   content ends, so a jump lands on a part-filled screen with the next section
   already showing. svh, not vh, so mobile holds still as the URL bar hides. */
.hero, .problem, .binaries {
  display: grid; align-content: center;
  min-height: 100vh;
  min-height: 100svh;
}
.hero { /* the header sits above it, so it owns one screen minus that */
  min-height: calc(100vh - 81px);
  min-height: calc(100svh - 81px);
}

.section-title {
  color: var(--ink); font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  font-weight: 750; letter-spacing: -0.02em; line-height: 1.15;
}
.section-sub { margin-top: 12px; max-width: 560px; color: var(--ink-2); }

/* A 14-word centred sub at 560px wraps with one word alone on the last line.
   balance evens the lines of short blocks, pretty only guards the last one. */
h1, h2, h3, .section-sub, .hero .sub, .comparison-copy, .dl-lead,
.install-note, .dl-fallback { text-wrap: balance; }
.contract-note, .problem-text p, .card p { text-wrap: pretty; }
.features .section-title, .features .section-sub,
.contract .section-title, .contract .section-sub {
  margin-left: auto; margin-right: auto; text-align: center;
}
code {
  font-family: var(--mono); font-size: 0.92em;
  color: var(--teal); background: rgba(0, 210, 180, 0.08);
  padding: 1px 6px; border-radius: 6px;
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.8em 1.4em; border-radius: 11px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn-sm { padding: 0.5em 1em; font-size: 0.85rem; border-radius: 9px; }
.btn-primary {
  background: var(--teal); color: #02120e;
  box-shadow: 0 0 28px rgba(0, 210, 180, 0.3);
}
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 0 42px rgba(0, 210, 180, 0.45); }
.btn-ghost { border-color: rgba(184, 195, 215, 0.22); color: var(--ink); }
.btn-ghost:hover { border-color: rgba(0, 210, 180, 0.55); transform: translateY(-2px); }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }

/* ---------- hero ---------- */
.hero { padding: 48px 0; text-align: center; }
.eyebrow {
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 22px;
}
#headline {
  position: relative;
  color: var(--ink);
  font-size: clamp(2.35rem, 7vw, 4.5rem);
  font-weight: 800; letter-spacing: 0; line-height: 1.1;
  font-optical-sizing: none; /* keep DOM metrics identical to pretext's canvas measurements */
  /* Every word is positioned absolutely, so the intrinsic width is 0. As a grid
     item the auto margins beat stretch and the box would collapse to that,
     leaving hero.js centring words in nothing. An explicit width holds it open. */
  width: 100%; max-width: 900px; margin: 0 auto;
}
#headline .hw {
  position: absolute; top: 0; left: 0; white-space: pre;
  opacity: 0;
  transform: translate(var(--x), calc(var(--y) + 0.45em));
  filter: blur(10px);
  transition:
    opacity 0.55s ease var(--d),
    transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d),
    filter 0.55s ease var(--d);
  will-change: transform, opacity, filter;
}
#headline .hw.in { opacity: 1; transform: translate(var(--x), var(--y)); filter: blur(0); }
#headline.no-anim .hw { transition: none; }
#headline .hw.accent { color: var(--teal); text-shadow: 0 0 34px rgba(0, 210, 180, 0.4); }
#headline .accent { color: var(--teal); }

.hero .sub { max-width: 640px; margin: 26px auto 0; font-size: 1.08rem; }
.hero .sub strong { color: var(--ink); }

.trust-row {
  display: flex; gap: 10px 26px; flex-wrap: wrap; justify-content: center;
  list-style: none; margin-top: 38px;
  font-size: 0.85rem; color: var(--ink-3);
}
.trust-row li::before { content: '✓ '; color: var(--teal); }

/* ---------- problem ---------- */
.problem {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: start;
}
.problem-text p { margin-top: 16px; max-width: 58ch; }
.problem-text p strong, .problem-text p em { color: var(--ink); font-style: normal; }
.erosion-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; margin-top: 8px;
}
.erosion-head {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 18px; border-bottom: 1px solid var(--line);
}
.erosion-card ul { list-style: none; }
.erosion-card li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem; padding: 11px 18px;
}
.erosion-card li + li { border-top: 1px solid rgba(184, 195, 215, 0.07); }

/* ---------- comparison ---------- */
.comparison-copyblock {
  max-width: 760px;
  margin: 0 auto 18px;
}
.comparison-kicker {
  margin: 0 0 8px; color: var(--teal); font: 0.74rem/1.2 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.comparison-title {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: 0;
}
.comparison-copy {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.vs {
  width: 100%; margin-top: 22px;
  border-collapse: collapse;
  font-size: 0.92rem; text-align: left;
}
.vs-caption {
  caption-side: top; padding-bottom: 10px;
  color: var(--ink-3); font-family: var(--mono); font-size: 0.78rem; text-align: left;
}
.vs th, .vs td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.vs thead th { color: var(--ink-3); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.vs tbody th { color: var(--ink-2); font-weight: 400; }
.vs td { color: var(--ink-3); }
/* The whole point of the table is the last column, so it carries the weight the
   rest deliberately does not. */
.vs thead th:last-child, .vs tbody td:last-child { color: var(--ink); }
.vs td.win { color: var(--teal); font-weight: 650; font-family: var(--mono); }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }

.panel-label {
  padding: 11px 16px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.comparison-note { margin: 12px 0 0; font-size: 0.85rem; color: var(--ink-3); }
.comparison-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; transition: color 0.18s ease; }
.comparison-note a:hover { color: var(--teal); }

.comparison-figure { margin: 0; }
.comparison-video {
  display: block; width: 100%; max-height: 720px; object-fit: contain; background: #020407;
  border: 1px solid var(--line); border-radius: 8px;
}
.comparison-figure figcaption { margin-top: 10px; color: var(--ink-3); font-size: 0.8rem; }
.comparison-figure figcaption span:first-child { color: var(--teal); }
.comparison-figure figcaption span:last-child { color: var(--red); }

/* ---------- architecture contract ---------- */
.contract { text-align: center; }
.contract .eyebrow { margin-bottom: 14px; }
.contract-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  max-width: 900px; margin: 38px auto 0; text-align: left;
}
.contract-window {
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.contract-body {
  flex: 1; padding: 16px 18px; overflow-x: auto;
  font-family: var(--mono); font-size: clamp(11px, 2.3vw, 12.5px); line-height: 1.75;
}
.contract-pre { font-family: var(--mono); color: var(--ink-2); white-space: pre; }

.chk { display: flex; flex-direction: column; gap: 13px; }
.chk-group { display: flex; flex-direction: column; gap: 3px; }
.chk-head { color: var(--ink-3); }
.chk-line { color: var(--ink); display: flex; align-items: baseline; gap: 8px; }
.chk-sev {
  flex: none; font-weight: 700; font-size: 0.8em; letter-spacing: 0.04em;
  padding: 1px 7px; border-radius: 5px;
}
.chk-sev.high { color: #ff93a4; border: 1px solid rgba(255, 93, 115, 0.5); }
.chk-sev.med { color: var(--amber); border: 1px solid rgba(255, 180, 84, 0.5); }
.chk-loc { color: var(--ink-3); padding-left: 3.4em; }
.chk-loc .floc {
  color: var(--ink-2);
  text-decoration: underline dotted rgba(184, 195, 215, 0.4); text-underline-offset: 3px;
}
.chk-fail { color: var(--red); font-weight: 600; margin-top: 2px; }

.contract-tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  list-style: none; margin: 24px auto 0; max-width: 640px;
}
.contract-tags li {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.contract-tags li::before { content: '✓ '; color: var(--teal); }
.contract-note {
  max-width: 620px; margin: 20px auto 0; color: var(--ink-2); font-size: 0.92rem;
}

/* ---------- features ---------- */
.features { text-align: center; }
/* Flex rather than grid: five cards in an auto-fit grid left the fifth alone in
   column one with three empty tracks beside it. Wrapped flex rows centre. */
.feature-grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-top: 40px; text-align: left;
}
.card {
  flex: 1 1 300px; max-width: 340px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 210, 180, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card h3 code { font-size: 0.95rem; }
.card p { font-size: 0.92rem; color: var(--ink-2); }
.card p em { color: var(--ink); font-style: normal; }

.chip-strip {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; margin-top: 26px;
}
.chip {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}

.docs-cta { display: flex; justify-content: center; margin-top: 32px; }

/* ---------- binaries ---------- */
.binaries { text-align: center; }
.binaries .section-sub { margin-left: auto; margin-right: auto; text-align: center; }
.install-cmd {
  /* A grid item blockifies, which would stretch an inline-block to full width */
  width: fit-content; max-width: 100%; margin: 30px auto 0; padding: 14px 22px;
  background: var(--panel); border: 1px solid rgba(0, 210, 180, 0.35); border-radius: 12px;
  font-family: var(--mono); font-size: clamp(13px, 3vw, 15px); color: var(--teal);
  text-align: left; white-space: pre; overflow-x: auto;
}
.install-note { margin: 14px auto 0; max-width: 520px; font-size: 0.88rem; color: var(--ink-3); }
.dl-lead { margin-top: 34px; font-size: 0.88rem; color: var(--ink-3); }

.dl-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.dl-lead + .dl-row { margin-top: 14px; }
.dl-link em { font-style: normal; font-family: var(--mono); font-size: 0.78em; opacity: 0.7; }
.dl-fallback { margin: 20px auto 0; max-width: 560px; font-size: 0.88rem; color: var(--ink-3); }
.dl-fallback a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; transition: color 0.18s ease; }
.dl-fallback a:hover { color: var(--teal); }

/* ---------- waitlist ---------- */
.waitlist-card {
  position: relative; overflow: hidden;
  max-width: 760px; margin: 0 auto; text-align: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  padding: 48px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.waitlist-card::before {
  content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%);
  width: 420px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 180, 0.14), transparent 68%);
  pointer-events: none;
}
.waitlist-card > * { position: relative; }
.waitlist-card .eyebrow { margin-bottom: 16px; }
.waitlist-card .section-title,
.waitlist-card .section-sub { margin-left: auto; margin-right: auto; }
.waitlist-form {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: 480px; margin: 28px auto 0;
}
/* `hidden` on a flex container needs this: the class's display:flex would
   otherwise override the attribute's UA display:none and leave the form up. */
.waitlist-form[hidden] { display: none; }
.waitlist-input {
  flex: 1 1 240px; min-width: 0;
  font-family: 'Inter', system-ui, sans-serif; font-size: 0.95rem;
  color: var(--ink); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 11px;
  padding: 0.8em 1em;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.waitlist-input::placeholder { color: var(--ink-3); }
.waitlist-input:focus {
  outline: none; border-color: rgba(0, 210, 180, 0.6);
  box-shadow: 0 0 0 3px rgba(0, 210, 180, 0.14);
}
.waitlist-form .btn-primary { flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.waitlist-status { margin-top: 18px; font-size: 0.95rem; color: var(--teal); }
.waitlist-status.is-error { color: var(--red); }
.waitlist-alt { margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }
.waitlist-alt a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; transition: color 0.18s ease; }
.waitlist-alt a:hover { color: var(--teal); }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; text-align: center; padding-bottom: 96px; }
.closing h2 {
  position: relative;
  color: var(--ink); font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
}
.closing .accent { color: var(--teal); text-shadow: 0 0 40px rgba(0, 210, 180, 0.35); }
.closing-cmd { position: relative; margin-top: 26px; color: var(--ink-3); font-size: 0.92rem; }
.closing .cta-row { position: relative; }

.closing .btn-primary { will-change: transform; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: var(--ink-3);
}
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 650; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-2); text-decoration: none; transition: color 0.18s ease; }
.footer-links a:hover { color: var(--teal); }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .problem { grid-template-columns: 1fr; gap: 24px; }
  .contract-grid { grid-template-columns: 1fr; }
  .waitlist-card { padding: 36px 20px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-input { flex: 0 0 auto; width: 100%; }
  .waitlist-form .btn-primary { width: 100%; justify-content: center; }
  .dl-row .btn { width: 100%; justify-content: center; }
}

/* Keep the header from crowding on phones. All three destinations stay, but
   GitHub drops to its mark alone: it is the one a developer recognises without
   a label, and the other two are the ones we actually want tapped. */
@media (max-width: 560px) {
  .header-nav { gap: 8px; }
  .header-nav .gh-link span { display: none; }
  .header-nav .gh-link { padding-left: 0.7em; padding-right: 0.7em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #headline .hw { transition: none; }
  .btn, .card, .chip { transition: none; }
}
