/* ══════════════════════════════════════════════════════════════════════════
   landing.css — the signed-out marketing page.

   Self-contained on purpose. index.html loads this file ALONE, so nothing
   here can reach the signed-in app (style.css / app.css / ops.css) and
   nothing there can reach this page. The two can be redesigned apart.

   Art direction: "ember ops". A near-black canvas with a warm undertone,
   the Minecraft sunset used as a FRAMED, masked image inside the hero
   rather than as wallpaper behind the whole page — body copy then sits on
   real black instead of a photo, which is what the old build was fighting.
   Orange is reserved for the product's own voice: the brand, the primary
   action, and live status.
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  /* ink — warm blacks, never neutral grey */
  --ink-900: #070403;
  --ink-850: #0b0705;
  --ink-800: #100b08;
  --ink-700: #17100b;
  --ink-600: #211710;

  /* ember — the brand */
  --ember: #ff8a1f;
  --ember-hi: #ffb454;
  --ember-deep: #f2560f;
  --gold: #ffd6a0;

  /* type */
  --text: #f9f1ea;
  --text-2: #d3c0b2;
  --muted: #a89284;
  --faint: #917e70;   /* lifted for contrast: it carries hint and meta text */

  /* lines + glass */
  --line: rgba(255, 228, 206, .10);
  --line-2: rgba(255, 228, 206, .16);
  --glass: rgba(255, 238, 222, .035);
  --glass-2: rgba(255, 238, 222, .06);

  --ok: #6ee7a8;
  --warn: #ffc14d;
  --hold: #ff8f8f;

  --wrap: 1180px;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, .05, .36, 1);

  --photo: url("bg-sunset.png");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The sticky nav is 74px; anchor jumps must clear it or the heading they
     land on hides underneath. */
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

::selection { background: rgba(255, 138, 31, .32); color: #fff; }

:focus-visible {
  outline: 2px solid var(--ember-hi);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}
.wrap.narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   AMBIENT LAYER
   One fixed stack behind everything: a warm floor gradient, two slow ember
   blooms, and a grain plate. All decorative, all pointer-events:none, all
   stilled under prefers-reduced-motion.
   ══════════════════════════════════════════════════════════════════════════ */

.fx {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  /* Below content but above the body background. */
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 110, 30, .10), transparent 60%),
    radial-gradient(90% 60% at 50% 110%, rgba(255, 90, 20, .07), transparent 60%),
    var(--ink-900);
}

.fx-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.fx-orb.a {
  width: 46vw; height: 46vw;
  top: -14vw; right: -10vw;
  background: radial-gradient(circle, rgba(255, 138, 31, .42), transparent 68%);
  animation: drift-a 26s var(--ease-in-out) infinite;
}
.fx-orb.b {
  width: 38vw; height: 38vw;
  top: 48vh; left: -14vw;
  background: radial-gradient(circle, rgba(242, 86, 15, .30), transparent 68%);
  animation: drift-b 34s var(--ease-in-out) infinite;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-5vw, 6vh, 0) scale(1.12); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vw, -8vh, 0) scale(1.1); }
}

/* Film grain. An SVG turbulence plate tiled at 180px and nudged every frame
   of an 8-step animation, which reads as grain rather than as a texture. */
.fx-grain {
  position: absolute;
  inset: -200px;
  opacity: .055;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  16%  { transform: translate(-6%, -3%); }
  33%  { transform: translate(4%, -6%); }
  50%  { transform: translate(-3%, 5%); }
  66%  { transform: translate(6%, 2%); }
  83%  { transform: translate(-5%, -5%); }
  100% { transform: translate(0, 0); }
}

/* Everything the reader actually touches sits above the ambient layer. */
.nav, main, .footer { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */

.btn {
  --btn-y: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 42px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transform: translateY(var(--btn-y));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease),
              border-color .3s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease);
}
.btn svg { flex: none; }

.btn-lg { height: 50px; padding: 0 26px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary {
  color: #2b1403;
  background: linear-gradient(180deg, var(--ember-hi), var(--ember) 58%, #f87a10);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .45) inset,
    0 10px 30px -14px rgba(255, 138, 31, .9),
    0 2px 10px -4px rgba(0, 0, 0, .7);
}
.btn-primary:hover {
  --btn-y: -2px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .55) inset,
    0 18px 44px -16px rgba(255, 138, 31, 1),
    0 3px 14px -6px rgba(0, 0, 0, .8);
}
.btn-primary:active { --btn-y: 0px; }

/* Sheen: a narrow diagonal highlight swept across on hover. */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  transition: left .7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  color: var(--text);
  background: var(--glass);
  border-color: var(--line-2);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  --btn-y: -2px;
  background: var(--glass-2);
  border-color: rgba(255, 168, 90, .40);
  box-shadow: 0 14px 34px -22px rgba(255, 138, 31, .9);
}

/* The arrow nudges forward on hover — the only moving part in a text link. */
.btn .arr { transition: transform .4s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════════════ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease), box-shadow .45s var(--ease);
}
.nav.scrolled {
  background: rgba(8, 5, 4, .72);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line);
  box-shadow: 0 20px 50px -40px #000;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .10em;
  margin-right: auto;
  min-width: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  color: #2b1403;
  background: linear-gradient(145deg, var(--ember-hi), var(--ember-deep));
  box-shadow: 0 6px 18px -8px rgba(255, 138, 31, .95),
              0 1px 0 rgba(255, 255, 255, .4) inset;
  transition: transform .5s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-tld { color: var(--ember); }

/* The anchors live in .nav-inner so the mobile sheet can collapse the outer
   element with grid-template-rows while the inner box clips its contents. */
.nav-links { display: flex; }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover { color: #fff; background: var(--glass); }
/* Underline grows from the centre on hover. */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 2px;
  width: 0; height: 1.5px;
  border-radius: 2px;
  background: var(--ember);
  transform: translateX(-50%);
  transition: width .4s var(--ease);
}
.nav-links a:hover::after { width: 18px; }

/* The sheet's own "Sign In" exists only below the nav breakpoint, where the
   bar's ghost button is hidden for want of room. */
.nav-only-mobile { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-actions .btn { height: 40px; padding: 0 18px; font-size: .9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 17px; height: 1.6px;
  margin: 3.6px auto;
  border-radius: 2px;
  background: var(--text);
  transition: transform .4s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.2px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.2px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  isolation: isolate;
}

/* The sunset, used once, as the hero's own sky. Masked to nothing by the
   bottom third so the page dissolves into black instead of ending on a
   hard photo edge. */
.hero-art {
  position: absolute;
  inset: -74px 0 auto 0;      /* reach up under the transparent nav */
  height: min(880px, 104vh);
  z-index: -1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.55) 68%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0,0,0,.55) 68%, transparent 100%);
  will-change: transform;
}

/* The photo is a child, not the frame itself: the frame carries the scroll
   parallax (an inline transform) while this layer owns the entrance
   animation. A CSS animation outranks an inline style, so one element
   cannot do both. */
.hero-sky {
  position: absolute;
  inset: 0;
  background-image: var(--photo);
  background-size: cover;
  background-position: center 42%;
  opacity: .62;
  transform: scale(1.04);
  filter: saturate(1.12) contrast(1.02);
  animation: hero-in 1.6s var(--ease) both;
}
/* Readability scrim: dark at the top for the nav, dark bottom-left under
   the headline, lighter through the middle so the scene still reads. */
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,4,3,.82) 0%, rgba(7,4,3,.24) 36%, rgba(7,4,3,.70) 100%),
    linear-gradient(90deg, rgba(7,4,3,.92) 0%, rgba(7,4,3,.52) 48%, rgba(7,4,3,.08) 82%);
}
@keyframes hero-in {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: .62; transform: scale(1.04); }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 32px;
  padding: 0 14px 0 11px;
  border: 1px solid rgba(255, 180, 84, .30);
  border-radius: 999px;
  background: rgba(255, 138, 31, .09);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.live-dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember-hi);
  box-shadow: 0 0 10px 1px rgba(255, 180, 84, .9);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 84, .7);
  animation: ping 2.4s var(--ease-in-out) infinite;
}
@keyframes ping {
  0%        { transform: scale(.7); opacity: .9; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

.hero-title {
  margin: 22px 0 0;
  font-size: clamp(2.3rem, 4.1vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.02;
}
/* Each line is a clipping window; the span inside rises out of it. */
.hero-title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;   /* descenders must not be clipped */
}
.hero-title .ln > span {
  display: block;
  transform: translateY(105%);
  animation: line-up 1s var(--ease) forwards;
  animation-delay: calc(.15s + var(--i, 0) * .11s);
}
@keyframes line-up { to { transform: translateY(0); } }

.hero-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--ember-hi) 0%, var(--ember) 42%, #ff6a2a 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 54ch;
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.4vw, 1.14rem);
  color: var(--text-2);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-assure {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  font-size: .86rem;
  color: var(--muted);
}
.hero-assure li { display: inline-flex; align-items: center; gap: 7px; }
.hero-assure svg { color: var(--ember); opacity: .9; }

/* ── the operations log ─────────────────────────────────────────────────
   Illustrative, and labelled as such. It is the hero's proof: the thing
   the product does, shown rather than described. */
.oplog {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(28, 19, 14, .92), rgba(10, 7, 5, .94));
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .06) inset,
    0 50px 90px -50px rgba(0, 0, 0, 1),
    0 0 60px -30px rgba(255, 138, 31, .55);
  overflow: hidden;
  animation: card-in 1.1s var(--ease) .35s both;
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
/* Hairline of ember along the top edge. */
.oplog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 168, 90, .75), transparent);
}
/* Cursor-tracked glow; --mx/--my are written by landing.js. */
.oplog::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
              rgba(255, 138, 31, .12), transparent 70%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.oplog:hover::after { opacity: 1; }

.oplog-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 238, 222, .028);
}
.oplog-title {
  font-family: var(--font-display);
  font-size: .94rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.oplog-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.oplog-rows { position: relative; }
.oplog-rows li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 228, 206, .055);
  font-size: .9rem;
  opacity: 0;
  animation: row-in .7s var(--ease) forwards;
  animation-delay: calc(.75s + var(--i) * .11s);
  transition: background-color .3s var(--ease);
}
.oplog-rows li:last-child { border-bottom: 0; }
.oplog-rows li:hover { background: rgba(255, 238, 222, .04); }
@keyframes row-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}

.oplog-rows time {
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.oplog-act { color: var(--text); }
.oplog-st {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .04em;
}
.is-ok   { color: var(--ok);   border-color: rgba(110, 231, 168, .34); background: rgba(110, 231, 168, .09); }
.is-warn { color: var(--warn); border-color: rgba(255, 193, 77, .34);  background: rgba(255, 193, 77, .09); }
.is-hold { color: var(--hold); border-color: rgba(255, 143, 143, .34); background: rgba(255, 143, 143, .09); }

/* A soft line sweeping down the rows, like a monitor pass. */
.oplog-scan {
  position: absolute;
  left: 0; right: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 168, 90, .09), transparent);
  animation: scan 5.5s var(--ease-in-out) 2s infinite;
}
@keyframes scan {
  0%        { transform: translateY(-100px); opacity: 0; }
  12%, 72%  { opacity: 1; }
  100%      { transform: translateY(420px); opacity: 0; }
}

.oplog-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, .25);
  font-size: .8rem;
  color: var(--muted);
}
.oplog-foot svg { color: var(--ember); }

/* ══════════════════════════════════════════════════════════════════════════
   CAPABILITY MARQUEE
   Real capabilities, not borrowed logos. Two identical tracks slide as one;
   the second is aria-hidden so the list is read once.
   ══════════════════════════════════════════════════════════════════════════ */

.marquee {
  position: relative;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  background: rgba(0, 0, 0, .34);
  overflow: hidden;
  /* Fade both ends so items enter and leave instead of being cut. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track ul { display: flex; align-items: center; }
.marquee-track li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-inline: 26px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee-track li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--ember);
  opacity: .65;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════════════ */

.section { padding: clamp(72px, 10vw, 128px) 0; }

.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ember);
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  letter-spacing: -.04em;
}
.section-head p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}
.section-head.center p { margin-inline: auto; }

/* ── numbered steps ─────────────────────────────────────────────────────
   The connecting rule is drawn by a scaleX transition once the section
   reveals, so the three steps read as one sequence. */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step { position: relative; }

/* One segment per gap rather than a single rule across the whole row: the
   line then starts and ends on a badge instead of trailing off past the
   last step. Each draws itself in turn once the row reveals. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 70px;
  right: -28px;          /* exactly the grid gap: lands on the next badge */
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 168, 90, .55), rgba(255, 168, 90, .20));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease);
  transition-delay: calc(.4s + var(--s, 0) * .3s);
}
.steps.is-in .step:not(:last-child)::after { transform: scaleX(1); }
.step-no {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 22px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(255, 180, 84, .16), rgba(255, 138, 31, .04));
  box-shadow: 0 10px 30px -22px rgba(255, 138, 31, .9);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover .step-no {
  transform: translateY(-3px);
  border-color: rgba(255, 168, 90, .45);
  box-shadow: 0 16px 36px -20px rgba(255, 138, 31, 1);
}
.step h3 { font-size: 1.22rem; }
.step p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

/* ── bento cards ────────────────────────────────────────────────────────
   One tall feature tile beside two stacked ones, then a full-width strip.
   Every tile carries the same cursor-tracked glow as the hero log. */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 238, 222, .052), rgba(255, 238, 222, .018));
  backdrop-filter: blur(16px);
  overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%),
              rgba(255, 138, 31, .14), transparent 68%);
  opacity: 0;
  transition: opacity .45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 168, 90, .30);
  box-shadow: 0 40px 70px -48px rgba(0, 0, 0, 1),
              0 0 48px -28px rgba(255, 138, 31, .8);
}
.card:hover::before { opacity: 1; }

.card-tall { grid-row: span 2; display: flex; flex-direction: column; }

/* A short tile sitting beside the tall one is stretched to match it. Centring
   the content shares that slack top and bottom rather than pooling it all
   under the last line. */
.bento > .card:not(.card-tall):not(.card-wide):not(.plan) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.card-wide { grid-column: span 2; }
.card-full { grid-column: span 3; }

/* The wide tile's list runs two abreast: six short items in one column would
   leave the right half of the card empty. */
.checks-2 { grid-template-columns: 1fr 1fr; gap: 11px 26px; }

.card-icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 180, 84, .24);
  border-radius: 14px;
  background: rgba(255, 138, 31, .10);
  color: var(--ember-hi);
  transition: transform .5s var(--ease), background-color .4s var(--ease);
}
.card:hover .card-icon {
  transform: translateY(-2px) rotate(-5deg);
  background: rgba(255, 138, 31, .18);
}
.card h3 { font-size: 1.24rem; }
.card > p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

.checks { margin-top: 22px; display: grid; gap: 11px; }
.checks li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  align-items: start;
  font-size: .93rem;
  color: var(--text-2);
}
.checks svg { margin-top: 4px; color: var(--ember); }

/* The tall tile ends on a small illustrative panel rather than dead space. */
.card-visual {
  margin-top: auto;
  padding-top: 24px;
}
.vis-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .3);
  font-family: var(--font-mono);
  font-size: .76rem;
  color: var(--muted);
}
.vis-bar + .vis-bar { margin-top: 8px; }
.vis-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(110, 231, 168, .8);
}

/* ══════════════════════════════════════════════════════════════════════════
   PRICING
   ══════════════════════════════════════════════════════════════════════════ */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 32px;
}
.plan h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-2);
}
.plan > .price {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}
.plan > .price span {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.plan > .plan-note { margin-top: 10px; font-size: .88rem; color: var(--faint); }
.plan .checks { margin-bottom: 28px; }
.plan .btn { margin-top: auto; }

/* The featured plan is lifted, ember-lined, and keeps its glow at rest. */
.plan-featured {
  border-color: rgba(255, 168, 90, .34);
  background:
    linear-gradient(170deg, rgba(255, 138, 31, .12), rgba(255, 238, 222, .02) 55%);
  box-shadow: 0 40px 80px -56px #000, 0 0 60px -36px rgba(255, 138, 31, .9);
}
@media (min-width: 981px) {
  .plan-featured { transform: translateY(-14px); }
  .plan-featured:hover { transform: translateY(-19px); }
}
/* Held back rather than hidden: it tells people what is coming without
   pretending to be for sale. Muted, but still a real card. */
.plan-soon { border-style: dashed; border-color: rgba(255, 228, 206, .18); }
.plan-soon h3, .plan-soon .price { color: var(--muted); }
.plan-soon .checks li { color: var(--muted); }
.plan-soon .checks svg { color: var(--faint); }
.plan-soon .plus {
  background: linear-gradient(100deg, var(--ember-hi), var(--ember));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
/* A disabled button does not react to the pointer at all: no lift, no glow,
   no lighter fill on hover. */
.btn:disabled,
.btn:disabled:hover {
  --btn-y: 0px;
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-ghost:disabled:hover { background: var(--glass); border-color: var(--line-2); }

.tag {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 1;
  padding: 4px 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ember-hi), var(--ember));
  color: #2b1403;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.tag-soon {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* ══════════════════════════════════════════════════════════════════════════
   FAQ
   The answer animates on grid-template-rows, which is the only way to
   transition from a fixed height to `auto` without measuring in script.
   ══════════════════════════════════════════════════════════════════════════ */

.faq { display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 238, 222, .035);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] {
  border-color: rgba(255, 168, 90, .28);
  background: rgba(255, 138, 31, .055);
}
.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 19px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-plus {
  flex: none;
  margin-left: auto;
  width: 24px; height: 24px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform .45s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
.faq-plus::before, .faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% 6px auto 6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text);
  transform: translateY(-50%);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.faq-plus::after { transform: translateY(-50%) rotate(90deg); }
details[open] .faq-plus {
  transform: rotate(180deg);
  border-color: rgba(255, 168, 90, .5);
  background: rgba(255, 138, 31, .14);
}
details[open] .faq-plus::after { opacity: 0; transform: translateY(-50%) rotate(0); }

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
details[open] .faq-body { grid-template-rows: 1fr; }
.faq-body > div { overflow: hidden; }
.faq-body p {
  padding: 0 22px 20px;
  color: var(--muted);
  max-width: 68ch;
}

/* ══════════════════════════════════════════════════════════════════════════
   CLOSING CTA + FOOTER
   ══════════════════════════════════════════════════════════════════════════ */

.cta {
  position: relative;
  padding: clamp(48px, 7vw, 84px) clamp(28px, 5vw, 64px);
  border: 1px solid rgba(255, 168, 90, .26);
  border-radius: var(--r-xl);
  text-align: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(10, 6, 4, .80), rgba(8, 5, 4, .92)),
    radial-gradient(90% 120% at 50% 50%, rgba(8, 5, 4, .45), transparent 70%),
    var(--photo);
  background-size: cover;
  background-position: center 58%;
  box-shadow: 0 60px 110px -70px #000, 0 0 90px -60px rgba(255, 138, 31, .9);
}
/* A slow ember wash across the band so it is never completely still. */
.cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(closest-side, rgba(255, 138, 31, .26), transparent);
  animation: cta-wash 14s var(--ease-in-out) infinite;
}
@keyframes cta-wash {
  0%, 100% { transform: translate3d(-18%, 10%, 0); }
  50%      { transform: translate3d(18%, -10%, 0); }
}
.cta > * { position: relative; }
.cta h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.04em;
}
.cta p {
  margin: 16px auto 0;
  max-width: 48ch;
  color: var(--text-2);
  font-size: 1.05rem;
}
.cta .btn { margin-top: 32px; }
.cta-fine { margin-top: 18px; font-size: .84rem; color: var(--muted); }
.cta-fine a {
  color: var(--gold);
  border-bottom: 1px solid rgba(255, 214, 160, .35);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.cta-fine a:hover { color: #fff; border-color: #fff; }

.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: rgba(0, 0, 0, .34);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.footer-about { max-width: 38ch; margin-top: 16px; color: var(--muted); font-size: .9rem; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: .92rem;
  color: var(--text-2);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.footer-col a:hover { color: var(--ember-hi); transform: translateX(3px); }
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--faint);
}

/* ══════════════════════════════════════════════════════════════════════════
   SCROLL REVEAL
   Set by landing.js. The `.is-in` class is added once, on first entry.
   ══════════════════════════════════════════════════════════════════════════ */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

[data-stagger] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--s, 0) * .09s);
}
[data-stagger].is-in { opacity: 1; transform: none; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub, .hero-title { max-width: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-tall { grid-row: span 1; }
  .card-full { grid-column: span 2; }
}

@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: span 2; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-actions .btn-ghost { display: none; }

  /* Mobile menu: a sheet under the bar, opened by app-level JS toggling
     `.open`. Collapsed with grid-template-rows so it slides rather than
     snapping, and nothing inside is reachable while it is shut. */
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: grid;
    grid-template-rows: 0fr;
    gap: 0;
    padding-inline: 16px;
    background: rgba(8, 5, 4, .96);
    backdrop-filter: blur(22px);
    border-bottom: 1px solid var(--line);
    visibility: hidden;
    transition: grid-template-rows .45s var(--ease), visibility .45s;
  }
  .nav-links.open { grid-template-rows: 1fr; visibility: visible; }
  .nav-links > * { min-height: 0; }
  .nav-inner { overflow: hidden; display: grid; }
  .nav-links a {
    padding: 15px 10px;
    font-size: 1.02rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .nav-links .btn { margin: 16px 0 20px; }
  .nav-only-mobile { display: flex; }
}

/* Below this the bar runs out of room: brand + CTA + the menu control
   together overflow the row and the CTA lands on top of the hamburger.
   Everything in the bar tightens rather than anything being dropped — the
   CTA is the page's whole purpose and the wordmark is the only brand on
   screen. */
@media (max-width: 560px) {
  .nav-row { gap: 12px; }
  .brand { font-size: .84rem; letter-spacing: .06em; gap: 8px; white-space: nowrap; }
  .brand-mark { width: 29px; height: 29px; border-radius: 9px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { height: 38px; padding: 0 14px; font-size: .84rem; }
  .nav-actions .btn .arr { display: none; }
  .nav-toggle { width: 38px; height: 38px; }
}

@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .card-wide, .card-full { grid-column: span 1; }
  .checks-2 { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .oplog-rows li { gap: 10px; padding-inline: 14px; }
  .card, .plan { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand-col { grid-column: span 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   REDUCED MOTION
   Everything decorative stops. Reveal targets must be made visible here or
   content that only appears via animation never appears at all.
   ══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal], [data-stagger], .hero-title .ln > span, .oplog-rows li {
    opacity: 1 !important;
    transform: none !important;
  }
  .fx-orb, .fx-grain, .oplog-scan, .cta::before { display: none; }
  .steps::before { transform: scaleX(1); }
}

/* Wordmark only — no icon, set in Outfit 800, lowercase. */
.brand-text {
  font-family: "Outfit", var(--font-display);
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -.01em;
  font-size: 1.3rem;
}
