/* ============================================================
   MERIDIAN — Design System v3
   Restraint over flash. Engineer-credible product aesthetic
   (Linear-grade): crisp 1px borders, tight varied radii, a
   near-monochrome palette with ONE solid accent, real type
   hierarchy. No gradient text, no aurora blobs, no glass soup.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Neutrals — cool, dense, precise */
  --bg:        #08090A;
  --bg-1:      #0B0C0E;
  --bg-2:      #closer;           /* placeholder overwritten below */
  --panel:     #0E1011;
  --panel-2:   #121415;
  --panel-3:   #16181A;
  --hover:     rgba(255,255,255,0.035);

  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.13);
  --line-soft: rgba(255,255,255,0.05);

  /* Text — Linear-ish grays */
  --t1: #F7F8F8;   /* primary */
  --t2: #9CA0A8;   /* secondary */
  --t3: #6E727A;   /* tertiary */
  --t4: #4A4E56;   /* faint */

  /* Single accent — restrained emerald */
  --acc:       #3FCF8E;
  --acc-hi:    #57E0A2;
  --acc-dim:   rgba(63,207,142,0.14);
  --acc-line:  rgba(63,207,142,0.32);

  /* status hues (used sparingly, muted) */
  --amber:  #E5B567;
  --violet: #9A8CF5;
  --blue:   #6AA9F4;

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --measure: 60ch;
  --gutter: clamp(20px, 4.5vw, 48px);
  --maxw: 1160px;

  --r1: 5px;
  --r2: 8px;
  --r3: 10px;
  --r4: 14px;

  --sh: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 24px -14px rgba(0,0,0,0.7);
  --sh-lg: 0 24px 60px -30px rgba(0,0,0,0.85), 0 8px 20px -12px rgba(0,0,0,0.6);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.5s;
}
:root { --bg-2: #0C0D0F; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  overflow-x: hidden;
}
/* one restrained top light — no blobs */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 60% at 50% -10%, rgba(63,207,142,0.05), transparent 55%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(63,207,142,0.25); color: #eafff5; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 3px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
.wrap--narrow { max-width: 780px; }
.wrap--wide { max-width: 1280px; }
section { position: relative; z-index: 2; }
.section { padding-block: clamp(64px, 8.5vw, 128px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.hairline { border: 0; height: 1px; background: var(--line); }

/* ---------- Type ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.13em; text-transform: uppercase; color: var(--t3);
}
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
.kicker--plain::before { display: none; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; letter-spacing: -0.025em; color: var(--t1); }
.display { font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 600; line-height: 1.04; letter-spacing: -0.035em; }
.display em { font-style: normal; color: var(--acc); }
.h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.22rem); line-height: 1.55; color: var(--t2); max-width: var(--measure); font-weight: 400; letter-spacing: -0.012em; }
p { color: var(--t2); max-width: var(--measure); }
p.tight { max-width: 50ch; }
.muted { color: var(--t3); }
.accent-text { color: var(--acc); -webkit-text-fill-color: var(--acc); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--r2);
  font-size: 14px; font-weight: 550; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur), transform 0.2s var(--ease);
}
.btn:active { transform: translateY(0.5px); }
.btn--primary, .btn--glow { background: var(--acc); color: #04140C; border-color: var(--acc); }
.btn--primary:hover, .btn--glow:hover { background: var(--acc-hi); border-color: var(--acc-hi); }
.btn--ghost { border-color: var(--line-2); color: var(--t1); background: transparent; }
.btn--ghost:hover { border-color: var(--t3); background: var(--hover); }
.btn--lg { padding: 12px 20px; font-size: 15px; }
.btn .arw { transition: transform var(--dur) var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.textlink { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 500; color: var(--acc); transition: gap 0.3s var(--ease), color 0.3s; }
.textlink:hover { gap: 10px; color: var(--acc-hi); }

/* ---------- Header (clean bar, not a pill) ---------- */
.site-header { position: sticky; top: 0; z-index: 60; }
.site-header .nav-shell { border-bottom: 1px solid transparent; transition: background 0.4s, border-color 0.4s; }
.site-header.is-scrolled .nav-shell {
  background: rgba(8,9,10,0.72);
  border-bottom-color: var(--line);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { width: 22px; height: 22px; flex: 0 0 auto; }
.brand__name { font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.brand__name b { font-weight: 600; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { font-size: 14px; font-weight: 450; color: var(--t2); padding: 7px 11px; border-radius: var(--r1); transition: color 0.25s, background 0.25s; }
.nav__links a:hover { color: var(--t1); }
.nav__links a[aria-current="page"] { color: var(--t1); }
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__toggle { display: none; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r1); padding: 7px 12px; color: var(--t1); font-size: 13px; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: fixed; inset: 61px 0 auto 0; z-index: 59;
    background: rgba(8,9,10,0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.25s; padding: 8px var(--gutter) 20px;
    backdrop-filter: blur(16px);
  }
  .mobile-menu.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: block; padding: 13px 4px; font-size: 16px; font-weight: 500; color: var(--t1); border-bottom: 1px solid var(--line-soft); }
  .mobile-menu .btn { margin-top: 12px; width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(52px, 8vh, 92px); padding-bottom: clamp(36px, 5vw, 68px); }
.hero__badge { margin-bottom: 22px; }
.hero__title { max-width: 17ch; }
.hero__sub { margin-top: 22px; }
.hero__actions { margin-top: 30px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hero__meta { margin-top: 52px; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.hero__meta .stat { padding: 22px 28px 0 0; }

/* Stats */
.stat__num { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--t1); }
.stat__num sup { font-size: 0.48em; vertical-align: super; color: var(--acc); font-weight: 600; }
.stat__label { margin-top: 10px; font-size: 13.5px; color: var(--t3); max-width: 26ch; line-height: 1.5; }

/* ---------- Section header ---------- */
.sec-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head__index { font-family: var(--mono); font-size: 12px; color: var(--t4); letter-spacing: 0.06em; }
.sec-head--center { text-align: center; justify-items: center; }
.sec-head--center .lede { margin-inline: auto; }
@media (min-width: 900px) { .sec-head--split { grid-template-columns: 0.82fr 1.18fr; gap: 52px; align-items: start; } }

/* Editorial index block for the left column of split headers */
.sec-aside { display: grid; gap: 18px; align-content: start; align-self: start; }
.sec-glyph { width: 54px; height: 54px; border: 1px solid var(--line-2); border-radius: var(--r2); display: grid; place-items: center; color: var(--acc); background: var(--bg-1); box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset; }
.sec-glyph svg { width: 27px; height: 27px; }
.sec-aside__note { font-size: 14px; color: var(--t3); max-width: 24ch; line-height: 1.55; }
.sec-aside .sec-head__index { margin-top: 2px; }
@media (max-width: 899px) { .sec-aside { gap: 12px; } .sec-glyph { width: 46px; height: 46px; } .sec-glyph svg { width: 23px; height: 23px; } }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.card { background: var(--bg-1); padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 12px; min-height: 200px; transition: background 0.3s var(--ease); }
.card:hover { background: var(--panel); }
.card__idx { font-family: var(--mono); font-size: 12px; color: var(--acc); letter-spacing: 0.04em; }
.card__ico { width: 34px; height: 34px; border-radius: var(--r1); display: grid; place-items: center; background: var(--acc-dim); color: var(--acc); border: 1px solid var(--acc-line); }
.card__title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.card__body { font-size: 14px; color: var(--t3); line-height: 1.6; margin-top: auto; }

/* Panel */
.panel { border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-1); overflow: hidden; }
.panel__row { display: grid; grid-template-columns: auto 1fr; gap: 16px 22px; padding: clamp(18px,2vw,24px) clamp(20px,2.2vw,28px); border-bottom: 1px solid var(--line); align-items: start; transition: background 0.25s; }
.panel__row:last-child { border-bottom: 0; }
.panel__row:hover { background: var(--hover); }
.panel__num { font-family: var(--mono); font-size: 13px; color: var(--acc); letter-spacing: 0.02em; padding-top: 2px; }
.panel__title { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 6px; }
.panel__desc { font-size: 14px; color: var(--t3); max-width: 64ch; line-height: 1.6; }
@media (min-width: 800px) { .panel__row { grid-template-columns: 48px 1fr; } }

/* Split */
.split { display: grid; gap: clamp(28px, 4vw, 60px); }
@media (min-width: 900px) { .split--2 { grid-template-columns: 1fr 1fr; } .split--40 { grid-template-columns: 0.85fr 1.15fr; } }

/* Trust */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.trust__item { font-size: 13px; color: var(--t3); display: inline-flex; align-items: center; gap: 8px; font-weight: 450; }
.trust__item::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); }

/* Pull quote */
.pquote { font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; letter-spacing: -0.025em; font-weight: 500; color: var(--t1); max-width: 24ch; }
.pquote em { font-style: normal; color: var(--acc); }
.pquote--wide { max-width: 28ch; }
.attr { margin-top: 22px; font-size: 13.5px; color: var(--t3); font-family: var(--mono); letter-spacing: 0.01em; }

/* ---------- Steps ---------- */
.steps { display: grid; border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.step { background: var(--bg-1); border-bottom: 1px solid var(--line); transition: background 0.25s; }
.step:last-child { border-bottom: 0; }
.step:hover { background: var(--panel); }
.step .step-inner { display: grid; gap: 14px; padding: clamp(22px,2.4vw,32px) clamp(22px,2.4vw,30px); }
@media (min-width: 860px) { .step .step-inner { grid-template-columns: 148px 1fr 1.1fr; gap: 36px; align-items: start; } }
.step__no { font-family: var(--mono); font-size: 12px; color: var(--acc); letter-spacing: 0.04em; }
.step__no b { font-weight: 500; color: var(--t4); }
.step__title { font-size: clamp(1.25rem,1.9vw,1.6rem); font-weight: 600; letter-spacing: -0.025em; }
.step__body { font-size: 14.5px; color: var(--t3); line-height: 1.6; }
.step__body ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.step__body li { position: relative; padding-left: 18px; color: var(--t2); font-size: 14px; }
.step__body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--acc); }

/* Band */
.band { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta-card { position: relative; border: 1px solid var(--line); border-radius: var(--r4); background: var(--bg-1); padding: clamp(44px, 6vw, 84px) clamp(24px, 4vw, 56px); overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% -20%, rgba(63,207,142,0.06), transparent 60%); pointer-events: none; }
.cta-card > * { position: relative; }
.cta .display, .cta-card .display { margin-inline: auto; max-width: 18ch; }
.cta .lede, .cta-card .lede { margin-inline: auto; }
.cta__actions { margin-top: 30px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 12.5px; font-weight: 500; color: var(--t2); letter-spacing: -0.005em; }
.field .req { color: var(--acc); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r1); color: var(--t1); padding: 11px 13px; font-size: 15px;
  font-family: var(--sans); transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 118px; }
.field input::placeholder, .field textarea::placeholder { color: var(--t4); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236E727A' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 38px; }
.field--error input, .field--error select, .field--error textarea { border-color: #E5674B; box-shadow: 0 0 0 3px rgba(229,103,75,0.14); }
.field__err { font-size: 12px; color: #E5674B; display: none; }
.field--error .field__err { display: block; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.form__note { font-size: 12.5px; color: var(--t4); }
.form__note a { color: var(--t3); border-bottom: 1px solid var(--line-2); }
.form-card { border: 1px solid var(--line); border-radius: var(--r3); background: var(--bg-1); padding: clamp(22px, 2.6vw, 34px); }
.form-success { display: none; border: 1px solid var(--acc-line); border-radius: var(--r3); background: var(--acc-dim); padding: clamp(24px,3vw,40px); }
.form-success.is-visible { display: block; animation: fade-up 0.5s var(--ease-out) both; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--acc); }
.check label { font-size: 13px; color: var(--t3); font-weight: 400; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-1); padding-block: clamp(52px, 6vw, 80px) 32px; position: relative; z-index: 2; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 900px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand p { font-size: 13.5px; color: var(--t3); margin-top: 14px; max-width: 30ch; line-height: 1.6; }
.footer__col h4 { font-size: 12.5px; font-weight: 600; color: var(--t2); margin-bottom: 13px; letter-spacing: -0.01em; }
.footer__col a { display: block; padding: 5px 0; font-size: 13.5px; color: var(--t3); transition: color 0.25s; }
.footer__col a:hover { color: var(--t1); }
.footer__bottom { margin-top: clamp(40px,5vw,64px); padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer__bottom p { font-size: 12.5px; color: var(--t4); font-family: var(--mono); letter-spacing: 0.01em; }
.footer__badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t3); border: 1px solid var(--line); border-radius: var(--r1); padding: 5px 9px; }

/* ---------- Page hero ---------- */
.page-hero { padding-top: clamp(48px, 7vw, 92px); padding-bottom: clamp(32px, 4vw, 56px); }
.page-hero .display { max-width: 20ch; }
.page-hero .lede { margin-top: 20px; }

/* ---------- Prose ---------- */
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.5rem,2.2vw,2rem); font-weight: 600; margin-top: 2.6em; margin-bottom: 0.6em; letter-spacing: -0.03em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.14rem; font-weight: 600; margin-top: 1.9em; margin-bottom: 0.5em; color: var(--t1); letter-spacing: -0.02em; }
.prose h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); margin-top: 1.7em; margin-bottom: 0.7em; }
.prose p { margin-bottom: 1em; color: var(--t2); max-width: none; line-height: 1.7; }
.prose ul, .prose ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.prose li { position: relative; padding-left: 22px; color: var(--t2); line-height: 1.6; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 1px; background: var(--acc); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li,decimal-leading-zero); position: absolute; left: 0; top: 1px; font-family: var(--mono); font-size: 11.5px; color: var(--acc); }
.prose strong { color: var(--t1); font-weight: 600; }
.prose em { color: var(--acc); font-style: normal; }
.prose code { font-family: var(--mono); font-size: 0.85em; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--r1); padding: 2px 6px; color: var(--t1); }
.prose blockquote { border-left: 2px solid var(--acc); padding: 2px 0 2px 20px; margin: 1.5em 0; color: var(--t2); font-size: 1.1rem; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.5em 0; font-size: 13.5px; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose th { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--t3); font-weight: 500; background: var(--panel); }
.prose td { color: var(--t2); }

/* Doc + TOC */
.doc { display: grid; gap: clamp(28px,4vw,56px); }
@media (min-width: 1000px) { .doc { grid-template-columns: 210px 1fr; align-items: start; } }
.toc { position: sticky; top: 88px; }
.toc h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t4); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0 6px 13px; font-size: 13px; color: var(--t3); border-left: 1px solid var(--line); transition: color 0.25s, border-color 0.25s; }
.toc a:hover, .toc a.is-active { color: var(--t1); border-left-color: var(--acc); }
@media (max-width: 999px) { .toc { display: none; } }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.07s; }
[data-reveal-delay="2"] { transition-delay: 0.14s; }
[data-reveal-delay="3"] { transition-delay: 0.21s; }
[data-reveal-delay="4"] { transition-delay: 0.28s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* skip */
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--acc); color: #04140C; padding: 9px 15px; border-radius: var(--r1); font-weight: 600; }
.skip:focus { left: 12px; }

/* utility */
.mt-s { margin-top: 16px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 46px; }
.center { text-align: center; }
.eyebrow-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   PRODUCT CONSOLE — the animated app UI (Review queue / Teams)
   Dense, real-software look. Crisp, aligned, minimal.
   ============================================================ */
.app-frame {
  border: 1px solid var(--line-2); border-radius: var(--r3);
  background: var(--bg-1); box-shadow: var(--sh-lg); overflow: hidden;
  position: relative;
}
.app-titlebar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.app-traffic { display: flex; gap: 7px; }
.app-traffic i { width: 11px; height: 11px; border-radius: 50%; background: var(--panel-3); display: block; }
.app-url { font-family: var(--mono); font-size: 11.5px; color: var(--t4); }
.app-presence { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.app-presence .who { display: flex; }
.avatar { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 650; color: #04140C; border: 1.5px solid var(--bg-2); margin-left: -6px; }
.avatar:first-child { margin-left: 0; }
.av-1 { background: #3FCF8E; } .av-2 { background: #6AA9F4; } .av-3 { background: #E5B567; } .av-4 { background: #9A8CF5; }
.app-presence .online { font-size: 11px; color: var(--t3); }
.app-presence .dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px var(--acc-dim); }

.app-body { display: grid; grid-template-columns: 190px 1fr; min-height: 430px; }
.app-side { border-right: 1px solid var(--line); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--bg-1); }
.app-ws { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border: 1px solid var(--line); border-radius: var(--r1); margin-bottom: 10px; }
.app-ws .ws-badge { width: 22px; height: 22px; border-radius: var(--r1); background: var(--acc-dim); border: 1px solid var(--acc-line); display: grid; place-items: center; color: var(--acc); font-weight: 700; font-size: 11px; }
.app-ws .ws-name { font-size: 12.5px; font-weight: 600; color: var(--t1); line-height: 1.1; }
.app-ws .ws-sub { font-size: 10.5px; color: var(--t4); }
.nav-i { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: var(--r1); font-size: 13px; color: var(--t2); transition: background 0.25s, color 0.25s; }
.nav-i svg { width: 15px; height: 15px; color: var(--t3); flex: 0 0 auto; }
.nav-i.is-active { background: var(--hover); color: var(--t1); }
.nav-i.is-active svg { color: var(--acc); }
.nav-i .count { margin-left: auto; font-size: 10.5px; font-family: var(--mono); color: var(--amber); background: rgba(229,181,103,0.12); border-radius: 20px; padding: 1px 7px; }
.side-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t4); padding: 12px 9px 5px; }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.app-head h4 { font-size: 14px; font-weight: 600; letter-spacing: -0.02em; }
.app-head .sub { font-size: 12px; color: var(--t4); }
.chips { margin-left: auto; display: flex; gap: 6px; }
.chip { font-size: 11.5px; color: var(--t3); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; }
.chip.is-on { color: var(--acc); border-color: var(--acc-line); background: var(--acc-dim); }

.app-metrics { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.metric { padding: 14px 18px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric .v { font-size: 1.35rem; font-weight: 650; letter-spacing: -0.03em; color: var(--t1); font-variant-numeric: tabular-nums; }
.metric .k { font-size: 11.5px; color: var(--t4); margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.metric .delta { color: var(--acc); }

.queue { padding: 8px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.qitem {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 12px; border: 1px solid var(--line); border-radius: var(--r2); background: var(--bg);
  transition: border-color 0.4s var(--ease), background 0.4s, opacity 0.5s, transform 0.5s var(--ease-out);
}
.qitem.is-active { border-color: var(--acc-line); background: var(--acc-dim); }
.qitem.entering { opacity: 0; transform: translateY(8px); }
.qitem.approved { opacity: 0.55; }
.q-ico { width: 26px; height: 26px; border-radius: var(--r1); display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--t2); font-size: 11px; font-weight: 700; }
.q-main { min-width: 0; }
.q-name { font-size: 13.5px; font-weight: 550; color: var(--t1); display: flex; align-items: center; gap: 8px; }
.q-name .by { font-size: 11px; font-weight: 400; color: var(--t4); }
.q-sub { font-size: 12px; color: var(--t4); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-right { display: flex; align-items: center; gap: 10px; }
.q-prog { width: 78px; height: 4px; border-radius: 20px; background: var(--panel-3); overflow: hidden; }
.q-prog i { display: block; height: 100%; width: 0; background: var(--acc); border-radius: 20px; transition: width 0.3s linear; }

.status { font-size: 11px; font-weight: 550; padding: 3px 9px; border-radius: 20px; letter-spacing: -0.01em; white-space: nowrap; border: 1px solid transparent; }
.status--run { color: var(--acc); background: var(--acc-dim); border-color: var(--acc-line); }
.status--review { color: var(--amber); background: rgba(229,181,103,0.10); border-color: rgba(229,181,103,0.28); }
.status--queue { color: var(--violet); background: rgba(154,140,245,0.10); border-color: rgba(154,140,245,0.26); }
.status--done { color: var(--t2); background: var(--panel-2); border-color: var(--line); }

.q-approve { font-size: 12px; font-weight: 550; color: var(--acc); border: 1px solid var(--acc-line); background: transparent; border-radius: var(--r1); padding: 5px 11px; transition: background 0.25s; }
.q-approve.is-press { background: var(--acc); color: #04140C; }

/* fake cursor */
.app-cursor { position: absolute; top: 0; left: 0; width: 20px; height: 20px; z-index: 20; pointer-events: none; opacity: 0; transition: transform 0.7s var(--ease), opacity 0.3s; will-change: transform; }
.app-cursor svg { width: 20px; height: 20px; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5)); }
.app-cursor.click::after { content: ""; position: absolute; inset: -6px; border: 1.5px solid var(--acc); border-radius: 50%; animation: ripple 0.5s var(--ease-out); }
@keyframes ripple { from { transform: scale(0.3); opacity: 0.9; } to { transform: scale(1.3); opacity: 0; } }

/* toast */
.app-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 20px); z-index: 25; display: flex; align-items: center; gap: 9px; padding: 9px 14px; background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 20px; box-shadow: var(--sh-lg); font-size: 12.5px; color: var(--t1); opacity: 0; transition: opacity 0.35s, transform 0.4s var(--ease-out); }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* glow ring under frame */
.app-wrap { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.app-wrap::before { content: ""; position: absolute; inset: auto 8% -30px 8%; height: 60px; background: radial-gradient(50% 100% at 50% 0%, rgba(63,207,142,0.10), transparent 70%); filter: blur(14px); z-index: 0; }
.app-frame { position: relative; z-index: 1; }
.app-caption { margin-top: 16px; text-align: center; font-size: 12.5px; color: var(--t4); }

@media (max-width: 720px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-metrics { grid-template-columns: 1fr; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .q-prog { display: none; }
}

/* ============================================================
   LOGO RUNNER — infinite marquee of partner / customer logos
   ============================================================ */
.marquee-sec { padding-block: clamp(34px, 4vw, 60px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-1); overflow: hidden; }
.marquee-lead { text-align: center; margin-bottom: clamp(22px, 3vw, 34px); color: var(--t4); }
.marquee { position: relative; overflow: hidden; display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: clamp(44px, 6vw, 88px); padding-right: clamp(44px, 6vw, 88px); flex: 0 0 auto; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--t3); opacity: 0.8; transition: color 0.3s var(--ease), opacity 0.3s; white-space: nowrap; }
.logo:hover { color: var(--t1); opacity: 1; }
.logo svg { width: 22px; height: 22px; flex: 0 0 auto; }
.logo__name { font-size: clamp(17px, 1.5vw, 21px); font-weight: 650; letter-spacing: -0.025em; }
.logo--low .logo__name { text-transform: lowercase; letter-spacing: -0.03em; }
.logo--wide .logo__name { letter-spacing: 0.01em; font-weight: 700; }
.logo--serif .logo__name { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -0.01em; }

@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .marquee__group:nth-child(2) { display: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; gap: 28px 44px; padding-right: 0; }
}
