/* Feather Terminal — shared design system.
   Flat emerald on near-black: big rounded stages, monospace display type,
   a floating pill nav, pressable buttons, and Quill the mascot.
   Loaded alone on the home page and last on every other page, so it also
   re-skins the older glass components those pages still use. */

:root {
  /* The palette is unchanged; only derived shades are new. */
  --bg: #080d0d;
  --bg-deep: #050909;
  --surface: #111b1b;
  --surface-raised: #1b2726;
  --surface-soft: #0c1414;
  --line: rgba(200, 235, 226, 0.1);
  --line-strong: rgba(210, 245, 235, 0.2);
  --text: #f1f7f4;
  --text-soft: #d3e2dd;
  --muted: #9faeaa;
  --faint: #8b9c97;
  --accent: #9df3cf;
  --accent-strong: #65dbae;
  --accent-deep: #2f9f7a;
  --accent-soft: rgba(125, 235, 187, 0.08);
  --accent-line: rgba(149, 245, 201, 0.25);
  --accent-ink: #08231b;
  --ink-deep: #03120d;
  --blue: #a0c5fa;
  --amber: #edc997;
  --violet: #c7b6ef;
  --red: #ee9a95;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display: var(--mono);
  --shell: 1280px;
  --r-xl: 40px;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-swap: cubic-bezier(0.2, 0, 0, 1);
  /* Depth without borders: a hairline ring, a highlight along the top edge,
     and a soft lift. Rings are white at low alpha so they sit on any surface. */
  --ring: 0 0 0 1px rgba(255, 255, 255, 0.07);
  --ring-strong: 0 0 0 1px rgba(255, 255, 255, 0.12);
  --ring-accent: 0 0 0 1px rgba(157, 243, 207, 0.6);
  --top-light: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --lift:
    0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 28px -10px rgba(0, 0, 0, 0.55),
    0 44px 80px -30px rgba(0, 0, 0, 0.65);
  /* Film grain for the large flat panels (a 120px tile, about 20 KB). */
  --grain: url("assets/grain.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  scrollbar-color: #2a4640 transparent;
}
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg-deep);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* A soft light at the top of every page. It scrolls away with the hero. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 1180px;
  background:
    radial-gradient(50% 44% at 16% 0%, rgba(101, 219, 174, 0.17), transparent 72%),
    radial-gradient(38% 34% at 90% 3%, rgba(160, 197, 250, 0.07), transparent 72%);
  pointer-events: none;
}
/* A grid of dots behind the hero, fading out from the headline. */
.home-hero,
.features-hero {
  position: relative;
}
.home-hero::before,
.features-hero::before {
  content: "";
  position: absolute;
  inset: -96px 0 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(190, 245, 225, 0.2) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(72% 82% at 26% 14%, #000 0%, transparent 76%);
  mask-image: radial-gradient(72% 82% at 26% 14%, #000 0%, transparent 76%);
  pointer-events: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
img,
svg,
video,
canvas {
  max-width: 100%;
}
h1,
h2,
h3,
p,
ol,
ul,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
::selection {
  color: var(--accent-ink);
  background: var(--accent);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.shell {
  width: min(100%, var(--shell));
  margin-inline: auto;
  padding-inline: 40px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--mono);
  font-weight: 700;
  transform: translateY(-180%);
}
.skip-link:focus {
  transform: none;
}
.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent));
  box-shadow: 0 0 14px rgba(157, 243, 207, 0.6);
}

/* Content stays visible if scripting fails; app.js opts into reveal. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.9s var(--ease);
}
.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}
/* Blocks of copy arrive piece by piece (label, heading, text, actions) and
   come into focus, instead of sliding in as one slab. */
.reveal-ready :is(.home-hero-copy, .feature-copy, .section-head)[data-reveal] {
  opacity: 1;
  transform: none;
}
.reveal-ready :is(.home-hero-copy, .feature-copy, .section-head)[data-reveal] > * {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.8s var(--ease),
    filter 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.reveal-ready :is(.home-hero-copy, .feature-copy, .section-head)[data-reveal].in > * {
  opacity: 1;
  transform: none;
  filter: none;
}
:is(.home-hero-copy, .feature-copy, .section-head) > :nth-child(2) {
  --i: 1;
}
:is(.home-hero-copy, .feature-copy, .section-head) > :nth-child(3) {
  --i: 2;
}
:is(.home-hero-copy, .feature-copy, .section-head) > :nth-child(4) {
  --i: 3;
}
:is(.home-hero-copy, .feature-copy, .section-head) > :nth-child(5) {
  --i: 4;
}
:is(.home-hero-copy, .feature-copy, .section-head) > :nth-child(n + 6) {
  --i: 5;
}
[data-reveal-delay="1"] {
  transition-delay: 90ms !important;
}
[data-reveal-delay="2"] {
  transition-delay: 180ms !important;
}
[data-reveal-delay="3"] {
  transition-delay: 270ms !important;
}

/* ---- navigation: one floating pill ---------------------------------------- */
.site-nav {
  position: sticky;
  top: 10px;
  z-index: 50;
  width: min(calc(100% - 20px), 1424px);
  margin: 10px auto 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(8, 13, 13, 0.6);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--top-light);
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s;
}
/* Once the page moves under it, the bar lifts off the content. */
.site-nav.scrolled {
  background: rgba(8, 13, 13, 0.82);
  border-color: var(--line-strong);
  box-shadow:
    var(--top-light),
    0 18px 44px -20px rgba(0, 0, 0, 0.85);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: none;
  min-height: 62px;
  padding-inline: 12px 10px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 6px 10px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand img {
  width: 30px;
  height: 30px;
  transition: transform 0.5s var(--spring);
}
.brand:hover img {
  transform: rotate(-14deg) scale(1.08);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    color 0.2s,
    background 0.2s;
}
.nav-links a:hover,
.nav-links a[aria-current] {
  color: var(--accent);
  background: var(--accent-soft);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-account {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.nav-account:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
}
.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}
.menu-open .nav-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}
.menu-open .nav-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---- buttons: flat, chunky, and they press ------------------------------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    transform 0.16s var(--ease),
    box-shadow 0.16s var(--ease),
    background-color 0.2s,
    color 0.2s;
}
.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* A trailing icon carries less visual weight than text, so its side gets
   2px less padding to look centred. */
.button:has(> svg:last-child) {
  padding-right: 20px;
}
.button:hover {
  transform: translateY(-2px);
}
.button:active {
  transform: translateY(3px);
}
/* Filled buttons are a keycap: a lit top edge, a darker bottom edge, and on
   hover a little light spilling onto the page. */
.button-primary {
  color: var(--accent-ink);
  border: 0;
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 0 var(--accent-deep);
}
.button-primary:hover {
  background-color: #b4f8dc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 0 var(--accent-deep),
    0 18px 34px -14px rgba(101, 219, 174, 0.55);
}
.button-primary:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 var(--accent-deep);
}
.button-glass,
.button-outline {
  color: var(--text);
  border: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.button-glass:hover,
.button-outline:hover {
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}
.button-ink {
  color: var(--accent);
  background: var(--accent-ink);
  box-shadow: 0 4px 0 var(--ink-deep);
}
.button-ink:hover {
  color: #d6fdee;
  box-shadow: 0 6px 0 var(--ink-deep);
}
.button-ink:active {
  box-shadow: 0 1px 0 var(--ink-deep);
}
.button-light {
  color: var(--accent-ink);
  background: var(--text);
  box-shadow: 0 4px 0 rgba(8, 35, 27, 0.32);
}
.button-light:hover {
  background: #fff;
  box-shadow:
    0 6px 0 rgba(8, 35, 27, 0.32),
    0 18px 30px -14px rgba(8, 35, 27, 0.5);
}
.button-light:active {
  box-shadow: 0 1px 0 rgba(8, 35, 27, 0.32);
}
.button-small {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 12px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.button-small.button-primary {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 3px 0 var(--accent-deep);
}
.button-small.button-primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 5px 0 var(--accent-deep),
    0 14px 26px -12px rgba(101, 219, 174, 0.55);
}
.button-small.button-primary:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 var(--accent-deep);
}

/* A small pill above a headline: one fact and where it leads. */
.hero-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 5px 14px 5px 5px;
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(157, 243, 207, 0.06);
  box-shadow: inset 0 0 0 1px rgba(157, 243, 207, 0.22);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.25s,
    box-shadow 0.25s,
    color 0.25s;
}
@media (max-width: 400px) {
  .hero-pill {
    gap: 8px;
    padding-right: 11px;
    font-size: 11.5px;
  }
}
/* Extends the tap target to 40px without making the pill taller. */
.hero-pill::before {
  content: "";
  position: absolute;
  inset: -5px 0;
}
.hero-pill::after {
  content: "›";
  color: var(--accent);
  font-size: 1.3em;
  line-height: 0.8;
  transition: transform 0.25s var(--spring);
}
.hero-pill:hover {
  color: var(--text);
  background: rgba(157, 243, 207, 0.1);
  box-shadow: inset 0 0 0 1px rgba(157, 243, 207, 0.45);
}
.hero-pill:hover::after {
  transform: translateX(4px);
}
.hero-pill b {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 700;
}
.hero-pill b::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ink);
}
html:not(.motion-paused) .hero-pill b::before {
  animation: pill-pulse 2.4s ease-in-out infinite;
}
@keyframes pill-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.7);
  }
}

/* Light that follows the pointer across a card (fun.js sets --mx and --my).
   One layer lifts the surface, the other brightens the edge nearest the pointer. */
.lit {
  position: relative;
  isolation: isolate;
}
@media (hover: hover) {
  .lit::before,
  .lit::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    pointer-events: none;
  }
  .lit::after {
    z-index: -1;
    background: radial-gradient(
      300px circle at var(--mx, 50%) var(--my, 0%),
      rgba(var(--lit, 157, 243, 207), 0.13),
      transparent 68%
    );
  }
  .lit::before {
    padding: 1px;
    background: radial-gradient(
      220px circle at var(--mx, 50%) var(--my, 0%),
      rgba(var(--lit, 157, 243, 207), 0.85),
      transparent 70%
    );
    -webkit-mask:
      linear-gradient(#000 0 0) content-box,
      linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
      linear-gradient(#000 0 0) content-box exclude,
      linear-gradient(#000 0 0);
  }
  .lit:hover::before,
  .lit:hover::after {
    opacity: 1;
  }
}

/* A text link with a chevron that scoots on hover. */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
}
.arrow-link::after {
  content: "›";
  font-size: 1.3em;
  line-height: 0.8;
  transition: transform 0.25s var(--spring);
}
.arrow-link:hover {
  color: var(--accent);
}
.arrow-link:hover::after {
  transform: translateX(5px);
}

/* `{ LABEL }` — the small tag above headings and on cards. */
.brace-label,
.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 18px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.brace-label::before,
.kicker::before,
.eyebrow::before {
  content: "{";
  color: var(--accent);
  font-weight: 700;
}
.brace-label::after,
.kicker::after,
.eyebrow::after {
  content: "}";
  color: var(--accent);
  font-weight: 700;
}
.kicker > span {
  padding: 0;
  color: var(--accent);
  font-family: var(--mono);
}

/* ---- stages: the big rounded panels everything sits on ------------------ */
/* Each stage is lit from above and has a little grain, so a large flat panel
   reads as a material rather than a fill. */
.panel-stage {
  position: relative;
  border-radius: var(--r-xl);
  background:
    var(--grain),
    radial-gradient(80% 60% at 50% 0%, rgba(157, 243, 207, 0.05), transparent 70%),
    linear-gradient(180deg, #131f1e, #0e1716);
  box-shadow: var(--ring), var(--top-light);
  overflow: hidden;
}
.panel-stage.is-mint {
  color: var(--accent-ink);
  background:
    var(--grain),
    radial-gradient(86% 64% at 50% 0%, rgba(255, 255, 255, 0.46), transparent 64%),
    linear-gradient(180deg, var(--accent), #86e8c1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 50px 110px -50px rgba(101, 219, 174, 0.35);
}
.panel-stage.is-strong {
  color: var(--accent-ink);
  background:
    var(--grain),
    radial-gradient(80% 60% at 50% 0%, rgba(255, 255, 255, 0.34), transparent 66%),
    linear-gradient(180deg, #76e3b9, var(--accent-strong) 55%, #55cea0);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 50px 110px -50px rgba(101, 219, 174, 0.3);
}

/* A real screenshot in a window frame. */
.window-frame {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #0b1414;
  overflow: hidden;
  box-shadow: var(--lift);
}
.window-frame img {
  display: block;
  width: 100%;
  height: auto;
}
button.window-frame {
  cursor: zoom-in;
  transition:
    transform 0.4s var(--ease),
    border-color 0.3s;
}
button.window-frame:hover {
  transform: translateY(-4px) rotate(-0.4deg);
  border-color: var(--accent);
}

/* ---- Quill, the mascot ----------------------------------------------------- */
/* Set --quill-cut to the colour behind Quill so the feather notches read as
   cut-outs; --quill-body recolours it. Both inherit into <use> copies. */
.quill {
  display: block;
  height: auto;
  overflow: visible;
  stroke: none;
}
.quill-body {
  fill: var(--quill-body, #f4fbf7);
}
.quill-cut {
  fill: var(--quill-cut, var(--accent));
}
.quill-vein {
  fill: none;
  stroke: var(--quill-ink, #08231b);
  stroke-opacity: 0.1;
  stroke-width: 4;
  stroke-linecap: round;
}
.quill-eye {
  fill: var(--quill-ink, #08231b);
  transform-box: fill-box;
  transform-origin: center;
}
.quill-shine {
  fill: #fff;
}
.quill-blush {
  fill: var(--accent-strong);
  opacity: 0.55;
}
.quill-smile {
  fill: none;
  stroke: var(--quill-ink, #08231b);
  stroke-width: 4;
  stroke-linecap: round;
}
html:not(.motion-paused) .quill-eye {
  animation: quill-blink 5.5s infinite;
}
html:not(.motion-paused) .quill-float {
  animation: quill-float 4.5s ease-in-out infinite;
}
.quill.is-hopping {
  animation: quill-hop 0.6s var(--spring);
}
@keyframes quill-blink {
  0%,
  92%,
  100% {
    transform: scaleY(1);
  }
  95% {
    transform: scaleY(0.08);
  }
}
@keyframes quill-float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-10px) rotate(2deg);
  }
}
@keyframes quill-hop {
  0% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(-34px) scale(0.94, 1.08) rotate(-6deg);
  }
  60% {
    transform: translateY(0) scale(1.08, 0.92);
  }
  100% {
    transform: translateY(0) scale(1, 1);
  }
}

/* What Quill says when poked. */
.quill-says {
  position: absolute;
  z-index: 3;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  color: var(--accent);
  background: var(--accent-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: 0 100%;
  transition:
    opacity 0.2s,
    transform 0.3s var(--spring);
  pointer-events: none;
}
.quill-says.is-on {
  opacity: 1;
  transform: none;
}

/* Feathers that fly out of buttons (fun.js). */
.feather-bit {
  position: fixed;
  z-index: 90;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  will-change: transform, opacity;
}
.feather-bit svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke: none;
}

/* ---- footer ----------------------------------------------------------------- */
.footer,
.site-footer {
  overflow: hidden;
  margin-top: 40px;
  border-top: 0;
  background: transparent;
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(200px, 1.3fr) repeat(3, minmax(130px, 1fr));
  align-items: start;
  gap: 40px;
  padding-block: 70px 60px;
}
.footer-brand p {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
.footer-col h3 {
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  width: fit-content;
  padding-block: 7px;
  color: var(--text);
  font-size: 15.5px;
  transition:
    color 0.2s,
    transform 0.25s var(--spring);
}
.footer-col a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.footer-main nav {
  display: block;
}
.footer-main nav a {
  padding-block: 7px;
  color: var(--text);
  font-size: 15.5px;
}
/* The wordmark is lit from above and sinks into the page at its baseline. */
.footer-wordmark {
  padding-top: 0;
  color: #132624;
  font-family: var(--mono);
  font-size: min(10.3vw, 150px);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  user-select: none;
}
.footer-wordmark > span {
  color: #1c3a35;
  font-weight: 800;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .footer-wordmark,
  .footer-wordmark > span {
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
  }
  .footer-wordmark {
    background-image: linear-gradient(180deg, #1a3531 8%, #0b1615 92%);
  }
  .footer-wordmark > span {
    background-image: linear-gradient(180deg, #2b5a51 8%, #0e1c1a 92%);
  }
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-block: 22px 30px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}
.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  background: transparent;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.motion-toggle:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}
.motion-toggle svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- downloads (cards come from release-config.mjs) --------------------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.download-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 22px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #1e2b2a, #182322);
  box-shadow: var(--ring), var(--top-light);
  transition:
    transform 0.35s var(--spring),
    box-shadow 0.3s var(--ease);
}
.download-card:hover {
  transform: translateY(-6px);
  box-shadow:
    var(--ring-strong),
    var(--top-light),
    0 26px 44px -22px rgba(0, 0, 0, 0.8);
}
/* The card that matches the visitor's computer (fun.js). */
.download-card.is-yours {
  box-shadow:
    var(--ring-accent),
    var(--top-light),
    0 30px 60px -30px rgba(101, 219, 174, 0.45);
}
/* Its tag rides on the card's top edge, clear of the text inside. */
.download-yours {
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 20px;
  padding: 4px 11px;
  border-radius: 999px;
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 8px 16px -8px rgba(101, 219, 174, 0.7);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.download-architecture {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.download-card h3 {
  margin: 8px 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.download-note,
.download-unavailable {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.download-actions .button {
  flex-wrap: wrap;
  gap: 2px 8px;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--accent-ink);
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 0 var(--accent-deep);
  font-size: 13.5px;
  text-align: center;
  white-space: normal;
}
.download-actions .button:hover {
  color: var(--accent-ink);
  background-color: #b4f8dc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 6px 0 var(--accent-deep),
    0 18px 34px -14px rgba(101, 219, 174, 0.55);
}
.download-actions .button:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 1px 0 var(--accent-deep);
}
.download-alternative {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12.5px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.download-alternative:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}
[data-download-size] {
  opacity: 0.7;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.download-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}
.download-meta a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
}
.download-meta a:hover {
  color: var(--accent);
}
.install-help {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.install-help summary {
  width: fit-content;
  color: var(--text-soft);
  cursor: pointer;
}
.install-help summary:hover {
  color: var(--accent);
}
.install-help p {
  max-width: 760px;
  margin-top: 10px;
}
.download-help {
  max-width: 760px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 13.5px;
  line-height: 1.7;
}

/* The one-line installer: a label, the command, and a copy button. */
.install-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 52px;
  padding: 5px 5px 5px 18px;
  border-radius: 14px;
  color: var(--accent-ink);
  background-color: var(--accent);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 0 var(--accent-deep);
  font-family: var(--mono);
  font-size: 14.5px;
  font-weight: 600;
}
.install-pill > span {
  flex: none;
  padding-right: 12px;
}
.install-pill code {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  padding: 11px 12px;
  border-radius: 10px 0 0 10px;
  color: var(--text);
  background: var(--accent-ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-pill code b {
  color: var(--accent);
  font-weight: 500;
}
.copy-button {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 0 10px 10px 0;
  color: var(--text);
  background: var(--accent-ink);
  transition:
    color 0.2s,
    transform 0.2s var(--spring);
}
.copy-button:hover {
  color: var(--accent);
}
.copy-button:active {
  transform: scale(0.96);
}
.copy-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.copy-button.is-done {
  color: var(--accent);
}

/* Two icons in one button (pause and play, copy and copied) share a cell and
   trade places: the one leaving shrinks and blurs out as the other arrives. */
.is-pause,
.is-play,
.is-copy,
.is-check {
  grid-area: 1 / 1;
  transition:
    opacity 0.22s var(--ease-swap),
    transform 0.3s var(--ease-swap),
    filter 0.22s var(--ease-swap);
}
.is-play,
.is-check,
.is-paused .is-pause,
.is-done .is-copy {
  opacity: 0;
  transform: scale(0.25);
  filter: blur(4px);
}
.is-paused .is-play,
.is-done .is-check {
  opacity: 1;
  transform: none;
  filter: none;
}
/* A play triangle's visual centre sits left of its box. */
.is-play {
  translate: 1px 0;
}

/* Screenshot zoom dialog. */
.zoom-dialog {
  width: min(96vw, 1680px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0b1414;
  box-shadow: var(--lift);
  overflow: hidden;
}
.zoom-dialog::backdrop {
  background: rgba(3, 8, 7, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
/* The enlarged screen rises into place and leaves more quietly. Browsers
   without @starting-style simply show and hide it. */
html:not(.motion-paused) .zoom-dialog {
  opacity: 0;
  transform: translateY(10px) scale(0.975);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    overlay 0.2s allow-discrete,
    display 0.2s allow-discrete;
}
html:not(.motion-paused) .zoom-dialog[open] {
  opacity: 1;
  transform: none;
  transition-duration: 0.3s, 0.4s, 0.4s, 0.4s;
}
html:not(.motion-paused) .zoom-dialog::backdrop {
  opacity: 0;
  transition:
    opacity 0.25s,
    overlay 0.25s allow-discrete,
    display 0.25s allow-discrete;
}
html:not(.motion-paused) .zoom-dialog[open]::backdrop {
  opacity: 1;
}
@starting-style {
  html:not(.motion-paused) .zoom-dialog[open] {
    opacity: 0;
    transform: translateY(10px) scale(0.975);
  }
  html:not(.motion-paused) .zoom-dialog[open]::backdrop {
    opacity: 0;
  }
}
.zoom-dialog img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 94vh;
  object-fit: contain;
}
.zoom-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 22px;
  line-height: 1;
}

/* ---- shared page pieces ------------------------------------------------------ */
.whats-new {
  padding-top: 14px;
}
.whats-new h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.whats-new h2::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
}
html:not(.motion-paused) .whats-new h2::before {
  animation: blip 1.6s steps(2, jump-none) infinite;
}
@keyframes blip {
  50% {
    opacity: 0.2;
  }
}
.whats-new ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.whats-new li + li {
  border-top: 1px solid var(--line-strong);
}
.whats-new a {
  display: block;
  padding: 16px 0;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.55;
  transition:
    color 0.2s,
    padding-left 0.3s var(--spring);
}
.whats-new a:hover {
  padding-left: 8px;
  color: var(--accent);
}

.showcase-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 2px 0 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.showcase-title .ico {
  fill: currentColor;
  stroke: none;
}
html:not(.motion-paused) .showcase-title .ico {
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  0%,
  100% {
    transform: scale(1) rotate(0);
  }
  50% {
    transform: scale(1.35) rotate(40deg);
  }
}
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
}
.ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.showcase-pause,
.marquee-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 3px 0 rgba(8, 35, 27, 0.35);
  transition: transform 0.2s var(--spring);
}
.showcase-pause:hover,
.marquee-toggle:hover {
  transform: scale(1.12);
}
.showcase-pause:active,
.marquee-toggle:active {
  transform: scale(0.96);
}
.showcase-pause .ico,
.marquee-toggle .ico {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

/* ---- section headings -------------------------------------------------------- */
.section-head {
  max-width: 1000px;
  margin: 0 auto 50px;
  text-align: center;
}
.section-head .brace-label {
  margin: 0 0 20px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.5;
}
.section-head h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.14;
}
.section-head > p {
  max-width: 860px;
  margin: 20px auto 0;
  color: var(--text-soft);
  font-size: clamp(16.5px, 1.5vw, 19.5px);
  line-height: 1.55;
}
.section-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}


/* ---- agents marquee ------------------------------------------------------------ */
.marquee-section {
  padding: 70px 0 60px;
}
.marquee-title {
  margin-bottom: 44px;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.05em;
  text-align: center;
}
.section-head .marquee-title {
  margin-bottom: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -0.055em;
  line-height: 1.14;
}
.agent-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.agent-marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  margin: 0;
  padding: 6px 2px 10px;
  list-style: none;
}
html:not(.motion-paused) .agent-marquee:not(.is-paused) .agent-marquee-track {
  animation: marquee 34s linear infinite;
}
.agent-marquee:hover .agent-marquee-track {
  animation-play-state: paused !important;
}
@keyframes marquee {
  to {
    transform: translateX(calc(-50% - 7px));
  }
}
.agent-marquee-track li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px 14px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #162221, #101a19);
  box-shadow: var(--ring-strong), var(--top-light);
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.agent-marquee-track b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--accent-ink);
  background: var(--accent);
  font-size: 15px;
}
.agent-marquee-track li:nth-child(7n + 2) b {
  background: var(--blue);
}
.agent-marquee-track li:nth-child(7n + 3) b {
  background: var(--amber);
}
.agent-marquee-track li:nth-child(7n + 5) b {
  background: var(--violet);
}
.agent-marquee-track li:nth-child(7n + 6) b {
  background: var(--red);
}
.agent-marquee-track li:nth-child(7n) {
  border: 1px dashed var(--accent-line);
  color: var(--accent);
  background: none;
  box-shadow: none;
}
.marquee-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.marquee-toggle {
  color: var(--accent-ink);
  background: var(--accent);
  box-shadow: 0 3px 0 var(--accent-deep);
}


/* ---- the last word, with Quill ---------------------------------------------- */
.cta-section {
  padding: 60px 0 20px;
}
.cta-panel {
  padding: clamp(60px, 8vw, 110px) 24px 0;
  text-align: center;
}
.cta-panel h2 {
  font-size: clamp(34px, 6vw, 78px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.02;
}
.cta-sub {
  margin-top: 22px;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 34px;
}
.cta-quill {
  position: relative;
  width: fit-content;
  margin: 46px auto 0;
}
.quill-button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
}
.quill-button .quill {
  width: clamp(150px, 16vw, 210px);
  margin-bottom: -54px;
  --quill-cut: var(--accent-strong);
  transition: transform 0.5s var(--spring);
}
.quill-button:hover .quill {
  transform: translateY(-16px) rotate(-3deg);
}
.quill-button:focus-visible {
  outline-offset: -6px;
}
.cta-quill .quill-says {
  bottom: 72%;
  left: 92%;
  width: max-content;
}


@media (max-width: 1100px) {
  .whats-new ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .whats-new li:nth-child(2) {
    border-top: 0;
  }
  .site-nav .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #0a1211;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  }
  .menu-open .nav-links {
    display: flex;
  }
  html:not(.motion-paused) .menu-open .nav-links {
    animation: menu-in 0.28s var(--ease);
  }
  @keyframes menu-in {
    from {
      opacity: 0;
      transform: translateY(-8px) scale(0.98);
    }
  }
  .nav-links a {
    padding: 14px 16px;
    font-size: 14px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .shell {
    padding-inline: 20px;
  }
  .whats-new ul {
    grid-template-columns: 1fr;
  }
  .whats-new li:nth-child(2) {
    border-top: 1px solid var(--line-strong);
  }
  .nav-account {
    display: none;
  }
  .brand span {
    font-size: 13.5px;
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 34px 20px;
    padding-block: 50px 40px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .download-grid {
    grid-template-columns: 1fr;
  }
  .install-pill {
    display: flex;
    width: 100%;
    min-width: 0;
  }
  .agent-marquee-track li {
    padding: 11px 18px 11px 12px;
    font-size: 15.5px;
  }
  .cta-quill .quill-says {
    bottom: 100%;
    left: 50%;
    width: max-content;
    max-width: 240px;
    translate: -50% 0;
    transform-origin: 50% 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button,
  .download-card,
  button.window-frame {
    transition: none;
  }
}
