/* =============================================================================
   ActraDeck landing — "Mission Deck"
   A control-deck / instrument-panel identity for a coding-agent cockpit.
   Signature: monospace telemetry + signal LEDs (live / waiting / denied) in the
   product's real status colors, hairline instrument grid, screenshot bezels that
   read like readouts (no faux-browser traffic-lights). Boldness lives in the hero
   and the signal language; everything else stays quiet and precise.
   ========================================================================== */

:root {
  /* deck / instrument surfaces */
  --ink: #07090f;
  --ink-2: #090c13;
  --deck: #0d1119;
  --deck-2: #121826;
  --deck-3: #18202f;
  --line: rgba(150, 173, 209, 0.12);
  --line-soft: rgba(150, 173, 209, 0.07);
  --line-strong: rgba(150, 173, 209, 0.22);

  /* type colours */
  --fg: #eaf0f8;
  --fg-2: #aab8cc;
  --mute: #8593a8;
  --dim: #5b6678;

  /* brand signal — cyan→blue from the product mark, used as a precise accent */
  --signal: #34c6ff;
  --signal-2: #1f86ff;
  --signal-ink: #0a2740;

  /* functional signals — these mean exactly what they mean in the cockpit */
  --live: #46d68a;
  --wait: #f0b53c;
  --deny: #ff6a5d;

  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 24px;
  --maxw: 1180px;
  --gutter: 28px;

  /* easing — smooth ease-out + a springy overshoot, in the Framer spirit */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display:
    "Space Grotesk", "IBM Plex Sans", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-sans:
    "IBM Plex Sans", "Hiragino Sans", "Noto Sans JP", "Noto Sans CJK JP", system-ui, -apple-system,
    sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* instrument-grid backdrop — a faint hairline lattice + a single cool wash at the
   top. No blobby gradient orbs. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(31, 134, 255, 0.06), transparent 18%),
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size:
    100% 100%,
    72px 72px,
    72px 72px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 92%);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 1;
}

a {
  color: var(--signal);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
p {
  margin: 0;
}

/* keyword emphasis — an instrument underline, not a coloured word */
em {
  font-style: normal;
  font-weight: 600;
  color: var(--fg);
  background-image: linear-gradient(var(--signal), var(--signal));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 2px;
  padding-bottom: 0.06em;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(150, 173, 209, 0.1);
  border: 1px solid var(--line);
  padding: 0.08em 0.4em;
  border-radius: 5px;
  color: #d4e2f2;
}

/* ---- monospace eyebrow / telemetry label, the recurring "deck" voice ------- */
.eyebrow-label,
.kicker,
.strip-label,
.th-sub,
.frame-url,
.shot-note,
.foot-note,
.foot-gh,
.lang-toggle,
.legend,
.code code,
.step-n {
  font-family: var(--font-mono);
}

/* signal LED used across hero, kickers, legend, matrix */
.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
  box-shadow: 0 0 0 0 transparent;
}
.led.live {
  background: var(--live);
  box-shadow: 0 0 10px rgba(70, 214, 138, 0.8);
}
.led.wait {
  background: var(--wait);
  box-shadow: 0 0 10px rgba(240, 181, 60, 0.7);
}
.led.deny {
  background: var(--deny);
  box-shadow: 0 0 10px rgba(255, 106, 93, 0.7);
}
.led.live {
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  55% {
    opacity: 0.35;
  }
}

/* =============================== Nav ====================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 15, 0.74);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--font-display);
  font-weight: 600;
}
.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  flex: none;
}
.brand-name {
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-sub {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  border-left: 1px solid var(--line);
  padding-left: 11px;
}
.nav-links {
  display: flex;
  gap: 30px;
  margin: 0 auto;
}
.nav-links a {
  color: var(--mute);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--fg);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.lang-toggle:hover {
  border-color: var(--line-strong);
}
.lang-toggle .lang-sep {
  color: var(--dim);
  margin: 0 5px;
  opacity: 0.6;
}
.lang-toggle .lang-en,
.lang-toggle .lang-ja {
  color: var(--dim);
}
.lang-toggle.is-en .lang-en,
.lang-toggle.is-ja .lang-ja {
  color: var(--signal);
}

/* ============================= Buttons ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.25s var(--ease-spring),
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--signal);
  color: #04121f;
  font-weight: 700;
  box-shadow: 0 10px 30px -14px rgba(52, 198, 255, 0.7);
}
.btn-primary:hover {
  background: #57d2ff;
  box-shadow:
    0 0 0 1px rgba(52, 198, 255, 0.5),
    0 18px 44px -16px rgba(52, 198, 255, 0.75);
}
.btn-ghost {
  background: rgba(150, 173, 209, 0.05);
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: var(--signal);
  color: #fff;
}
.gh-ico {
  width: 17px;
  height: 17px;
}
.nav-actions .gh-link {
  padding: 9px 16px;
  font-size: 13.5px;
}
.play-tri {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
}

/* ============================== Hero ====================================== */
.hero {
  padding: 72px 0 64px;
}
/* centered hero: badge → headline → sub → CTAs → product visual below */
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.hero-copy {
  max-width: 880px;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(
    96deg,
    var(--signal) 0%,
    #eef4fb 46%,
    #e2ecf7 58%,
    var(--signal-2) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* the emphasised word is part of the gradient, not a separate underline */
.hero h1 em {
  font-style: normal;
  background: none;
  padding: 0;
  -webkit-text-fill-color: inherit;
  color: inherit;
}
.lede {
  color: var(--fg-2);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.64;
  margin: 26px auto 32px;
  max-width: 40em;
}
.lede strong {
  color: var(--fg);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.hero-foot {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.01em;
  margin-top: 22px;
}

/* ---- instrument bezel for every screenshot (replaces faux-browser chrome) -- */
.frame {
  margin: 0;
  background: var(--deck);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 44px 90px -44px rgba(0, 0, 0, 0.92);
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  background: linear-gradient(180deg, var(--deck-2), var(--deck));
  border-bottom: 1px solid var(--line);
}
/* a single live LED instead of three macOS dots */
.frame-bar::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 9px rgba(70, 214, 138, 0.85);
  flex: none;
  animation: blink 2.4s ease-in-out infinite;
}
.tl {
  display: none;
}
.frame-url {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.frame img,
.frame video {
  display: block;
  width: 100%;
  height: auto;
}
.hero-shot {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 60px auto 0;
}
/* soft cyan glow behind the product visual — depth, Specify-style */
.hero-shot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6%;
  width: 82%;
  height: 82%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(31, 134, 255, 0.24), transparent 76%);
  filter: blur(46px);
  pointer-events: none;
}

/* hero composition: the approval card is the main shot; a redaction panel
   floats over its lower-right so "approve" and "redact" both read at a glance */
.hero-frame-wrap {
  position: relative;
}
.hero-main img {
  aspect-ratio: 2880 / 1330; /* crop the empty lower area of the approval capture */
  object-fit: cover;
  object-position: top center;
}
.inset-shot {
  position: absolute;
  right: -14px;
  bottom: -26px;
  width: 46%;
  max-width: 300px;
  margin: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--deck-2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 28px 60px -26px rgba(0, 0, 0, 0.95);
}
.inset-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* signal legend — the page's recurring vocabulary, stated once under the hero */
.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.shot-note {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.01em;
  margin-top: 14px;
  text-align: center;
}

/* ========================= Audience strip ================================= */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(150, 173, 209, 0.02);
  padding: 24px 0;
}
.strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.strip-label {
  color: var(--signal);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.strip-line {
  margin: 0;
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 56em;
}

/* ========================= Section heads ================================== */
section {
  padding: 100px 0;
  position: relative;
}
/* alternating tonal bands give the long dark page Specify-style rhythm */
.demo,
.how {
  background: rgba(150, 173, 209, 0.022);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  margin-bottom: 56px;
}
.section-head.center {
  text-align: center;
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(28px, 3.5vw, 46px);
}
.section-head .sub {
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.62;
  margin-top: 16px;
}
/* mono section index above each centered head (counts true sections) */
.section-head.center::before {
  counter-increment: deck;
  content: "/ " counter(deck, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--signal);
  margin-bottom: 14px;
}
body {
  counter-reset: deck;
}

/* ============================== Demo ====================================== */
.demo {
  padding-top: 40px;
}
.video-frame {
  max-width: 960px;
  margin: 0 auto;
}
.video-frame video {
  background: #000;
}

/* ============================= Pillars ==================================== */
.pillars {
  counter-reset: pillar;
}
.pillar {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 56px;
  align-items: center;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}
.pillar.reverse .pillar-copy {
  order: 2;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 18px;
}
/* numbered index for each pillar — these are a real, ordered set of capabilities */
.kicker::before {
  counter-increment: pillar;
  content: counter(pillar, decimal-leading-zero);
  font-size: 11px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
  letter-spacing: 0.05em;
}
.pillar-copy h3 {
  font-size: clamp(23px, 2.5vw, 32px);
  margin-bottom: 16px;
}
.pillar-copy p {
  color: var(--fg-2);
  font-size: 15.5px;
  line-height: 1.66;
}
.aud {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.aud::before {
  content: "→";
  color: var(--signal);
}
.pillar-shot.panel-shot {
  background: var(--deck);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  justify-content: center;
  box-shadow: 0 40px 80px -44px rgba(0, 0, 0, 0.9);
}
.pillar-shot.panel-shot img {
  border-radius: 8px;
  max-width: 440px;
  width: 100%;
}
.pillar-shot.stack {
  display: grid;
  gap: 18px;
}

/* =========================== How it works ================================= */
/* separate, soft rounded cards (Specify-style) rather than a hairline grid */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: rgba(150, 173, 209, 0.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition:
    transform 0.3s var(--ease-spring),
    border-color 0.3s,
    background 0.3s;
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: rgba(150, 173, 209, 0.05);
}
.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(52, 198, 255, 0.12);
  border: 1px solid rgba(52, 198, 255, 0.3);
  color: var(--signal);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 18px;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}
.step p {
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 14px 0 0;
}
.code {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin: 0;
  overflow-x: auto;
}
.code code {
  background: none;
  border: none;
  padding: 0;
  color: var(--signal);
  font-size: 13px;
}

/* ============================== Matrix ==================================== */
.table-wrap {
  max-width: 860px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--deck);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}
th,
td {
  text-align: center;
  padding: 15px 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--deck-2);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--fg);
  font-size: 14.5px;
}
.th-sub {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
tbody td:first-child,
thead th:first-child {
  text-align: left;
  color: var(--fg-2);
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover td {
  background: rgba(150, 173, 209, 0.03);
}
td.yes {
  color: var(--live);
  font-weight: 700;
}
td.part {
  color: var(--wait);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.matrix-note {
  max-width: 720px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}

/* mobile: turn the support matrix into per-capability cards so the high-risk
   Codex / Managed asymmetry can never be cut off by horizontal scroll */
@media (max-width: 620px) {
  .table-wrap {
    overflow: visible;
    border: none;
    background: none;
    border-radius: 0;
  }
  table {
    min-width: 0;
  }
  thead {
    display: none;
  }
  tbody,
  tbody tr,
  tbody td {
    display: block;
  }
  tbody tr {
    background: var(--deck);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    padding: 2px 16px 8px;
  }
  tbody tr:hover td {
    background: none;
  }
  tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: right;
    padding: 11px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 14px;
  }
  tbody td:last-child {
    border-bottom: none;
  }
  tbody td:first-child {
    text-align: left;
    justify-content: flex-start;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--fg);
    font-size: 15px;
    padding: 14px 0 11px;
    border-bottom: 1px solid var(--line);
  }
  tbody td:not(:first-child)::before {
    content: attr(data-th);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mute);
  }
}

/* ============================= Final CTA ================================== */
.cta-final {
  padding: 56px 0 104px;
}
/* the one vivid colour moment on the page (Specify's purple band → our blue) */
.cta-box {
  position: relative;
  background: linear-gradient(135deg, #0a2547 0%, #143a72 60%, #1b4f9c 100%);
  border: 1px solid rgba(52, 198, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 76px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 50px 130px -55px rgba(31, 134, 255, 0.55);
}
.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 82% -10%, rgba(52, 198, 255, 0.4), transparent 55%),
    radial-gradient(90% 80% at 12% 120%, rgba(31, 134, 255, 0.35), transparent 60%);
}
.cta-box > * {
  position: relative;
}
.cta-box h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  color: #fff;
}
.cta-box p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16.5px;
  line-height: 1.62;
  margin: 18px auto 32px;
  max-width: 38em;
}
/* light buttons sit on the colour band, like Specify */
.cta-box .btn-primary {
  background: #fff;
  color: #06182b;
  box-shadow: 0 12px 34px -14px rgba(0, 0, 0, 0.6);
}
.cta-box .btn-primary:hover {
  background: #eaf2fb;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5),
    0 18px 44px -16px rgba(0, 0, 0, 0.6);
}
.cta-box .btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.cta-box .btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

/* ============================== Footer ==================================== */
.foot {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
}
.foot-note {
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.01em;
  margin: 0;
}
.foot-gh {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--mute);
}
.foot-gh:hover {
  color: var(--signal);
}

/* ============================== Motion ==================================== */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes frameIn {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes scanBoot {
  0% {
    transform: translateY(-110%);
    opacity: 0;
  }
  18% {
    opacity: 0.85;
  }
  100% {
    transform: translateY(360%);
    opacity: 0;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* hero load: copy rises in, then the product visual *assembles* — the approval
   card frames in first, the redaction panel pops in after (a nod to Specify's
   engine that assembles on load) */
.hero-copy > * {
  animation: riseIn 0.75s var(--ease-out) both;
}
.hero-copy h1 {
  animation-delay: 0.04s;
}
.hero-copy .lede {
  animation-delay: 0.18s;
}
.hero-copy .hero-cta {
  animation-delay: 0.3s;
}
.hero-copy .hero-foot {
  animation-delay: 0.38s;
}
.hero-main {
  animation: frameIn 0.9s var(--ease-out) 0.42s both;
}
.inset-shot {
  animation: popIn 0.7s var(--ease-spring) 0.74s both;
}

/* one-shot "boot" scan across the hero screenshot, like an instrument waking up */
.hero-shot .frame {
  position: relative;
}
.hero-shot .frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(52, 198, 255, 0.18), transparent);
  animation: scanBoot 1.5s ease-out 0.55s 1 both;
}

/* scroll-reveal — content rises and settles as it enters view (Specify-style) */
.has-js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.75s var(--ease-out);
}
.has-js .reveal.in {
  opacity: 1;
  transform: none;
}

/* hover micro-interactions on the screenshot bezels */
.pillar .frame,
.pillar .panel-shot {
  transition:
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease;
}
.pillar .frame:hover,
.pillar .panel-shot:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 56px 96px -42px rgba(0, 0, 0, 0.95),
    0 0 70px -24px rgba(52, 198, 255, 0.45);
}

/* ============================ Responsive ================================== */
@media (max-width: 920px) {
  .hero-inner,
  .pillar {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pillar.reverse .pillar-copy {
    order: 0;
  }
  .nav-links {
    display: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 40px;
  }
  section {
    padding: 56px 0;
  }
}
@media (max-width: 560px) {
  :root {
    --gutter: 18px;
  }
  .brand-sub {
    display: none;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .legend {
    gap: 12px;
  }
  .inset-shot {
    right: 4px;
    bottom: -16px;
    width: 54%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    animation: none !important;
    transition: none !important;
  }
  .has-js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-shot .frame::after {
    display: none;
  }
}

/* =============================================================================
   Cookie consent (Consent Mode v2)
   #consent is a fixed bottom scrim (pointer-events: none) that fades the page
   behind the dock so it lifts off busy content; .consent-card is the only
   interactive part. Accept is the prominent primary; Decline a quiet secondary.
   ========================================================================== */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  padding: 64px 16px 22px;
  pointer-events: none; /* the scrim itself never blocks the page */
  background: linear-gradient(
    to top,
    rgba(7, 9, 15, 0.8) 0%,
    rgba(7, 9, 15, 0.34) 48%,
    rgba(7, 9, 15, 0) 82%
  );
}
.consent[hidden] {
  display: none;
}
.consent-card {
  pointer-events: auto; /* only the card is interactive */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  width: min(720px, 100%);
  padding: 16px 18px;
  background: var(--deck-2);
  border: 1px solid rgba(52, 198, 255, 0.38); /* signal-tinted edge to separate from content */
  border-radius: var(--radius);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.4);
}
.consent-text {
  flex: 1 1 300px;
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
}
.consent-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.consent-btn {
  font-size: 13.5px;
}
/* Accept — the prominent primary action */
.consent-accept {
  padding: 11px 30px;
  font-weight: 700;
  box-shadow: 0 6px 22px rgba(31, 134, 255, 0.5);
}
/* Decline — quiet secondary */
.consent-decline {
  padding: 11px 18px;
  color: var(--fg-2);
}
@media (max-width: 560px) {
  .consent {
    padding: 48px 0 0;
  }
  .consent-card {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    border-left: none;
    border-right: none;
  }
  .consent-actions {
    width: 100%;
  }
  .consent-btn {
    flex: 1;
  }
}
