/* ==========================================================================
   Remotera WP — landing
   A white-paper system in one typeface: Instrument Sans for display and
   reading, JetBrains Mono for measurement.
   No framework, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Faces
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/InstrumentSans-latin-ext.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */

:root {
  --paper: #ffffff;
  --paper-raised: #ffffff;
  --surface: #fafafa;
  --surface-deep: #f4f4f4;
  /* Remotera palette. The supplied wordmark keeps its own #131bff. */
  --brand: #2622ff;
  --brand-deep: #1f299c;
  --navy: #0c0e3b;
  --cyan: #51e2f4;
  --green: #56e769;
  --amber: #f39a05;
  --coral: #f56155;
  --blue-light: #679dff;
  --lavender: #be8aff;

  --ink: var(--navy);
  --ink-80: var(--brand-deep);
  --ink-70: #3d3d3d;
  --muted: #666666;
  --faint: #8a8a8a;
  --rule: rgba(10, 10, 10, 0.12);
  --rule-strong: rgba(10, 10, 10, 0.24);
  --dark: var(--navy);
  --dark-text: #fafafa;
  --dark-muted: rgba(250, 250, 250, 0.58);
  --dark-rule: rgba(250, 250, 250, 0.14);

  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --font-display: "Instrument Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max: 1400px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 9vw, 132px);
  --feature-pad: clamp(16px, 2.2vw, 28px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  caret-color: var(--ink);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(103, 157, 255, 0.32);
  color: var(--ink);
}

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

.dark :focus-visible,
.process :focus-visible {
  outline-color: var(--paper);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

.wrap {
  width: min(100% - (var(--gutter) * 2), var(--max));
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - (var(--gutter) * 2), 1040px);
  margin-inline: auto;
}

.serif {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero" 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--muted);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--paper);
}

/* The page grain: a fixed, non-interactive layer over the whole surface. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* --------------------------------------------------------------------------
   4. Shared type and controls
   -------------------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brand);
  flex: none;
}

.dark .kicker,
.process .kicker {
  color: var(--dark-muted);
}

.dark .kicker::before,
.process .kicker::before {
  background: var(--cyan);
}

.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 4.4vw, 4.2rem);
  line-height: 1.01;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2 .quiet {
  color: var(--muted);
}

.h2 .ink-line {
  display: inline;
  background-image: linear-gradient(var(--rule-strong), var(--rule-strong));
  background-repeat: no-repeat;
  background-size: 100% 0.09em;
  background-position: 0 86%;
}

.lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  line-height: 1.62;
}

.section {
  position: relative;
  padding: var(--section) 0;
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  flex-direction: column;
  margin-bottom: clamp(44px, 6vw, 86px);
}

.section-head--split {
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.section-head--center {
  align-items: center;
  text-align: center;
}

.section-head--center .kicker::before {
  display: none;
}

.section-head--center .kicker {
  gap: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform 0.3s var(--ease-spring);
}

.btn:hover {
  border-color: var(--brand-deep);
  background: var(--brand-deep);
  color: var(--paper);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--rule-strong);
}

.btn--ghost:hover {
  border-color: var(--brand-deep);
  background: rgba(38, 34, 255, 0.06);
  color: var(--brand-deep);
}

.btn--paper {
  --btn-bg: var(--paper);
  --btn-fg: var(--ink);
  border-color: var(--paper);
}

.btn--paper:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn--small {
  min-height: 38px;
  padding: 0 16px;
  gap: 8px;
  font-size: 13px;
}

.btn--small svg {
  width: 15px;
  height: 15px;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}

.link-arrow svg {
  width: 14px;
  height: 14px;
}

.link-arrow:hover {
  border-color: var(--ink);
  gap: 10px;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.status-dot--live {
  animation: breathe 2.6s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(86, 231, 105, 0.28);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(86, 231, 105, 0);
  }
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  padding: 0;
  transition: padding 0.45s var(--ease-out);
}

.site-header.is-scrolled {
  padding: 14px var(--gutter) 0;
}

.nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  width: min(100% - (var(--gutter) * 2), var(--max));
  max-width: none;
  height: 82px;
  margin-inline: auto;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 16px;
  transition: height 0.45s var(--ease-out), max-width 0.45s var(--ease-out),
    padding 0.45s var(--ease-out), background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.site-header.is-scrolled .nav,
.site-header.menu-open .nav {
  width: 100%;
  max-width: var(--max);
  height: 62px;
  padding: 0 20px;
  border-color: var(--rule);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 38px rgba(10, 10, 10, 0.07);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  grid-column: 1;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 29px;
  transition: opacity 0.25s var(--ease-out);
}

.brand:hover .brand-logo {
  opacity: 0.76;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 5px 3px;
  border-radius: 3px;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  grid-column: 2;
  gap: clamp(22px, 3vw, 42px);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-70);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="true"] {
  color: var(--brand);
}

.nav-links a:hover::after,
.nav-links a[aria-current="true"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  grid-column: 3;
  gap: 18px;
  flex: none;
}

.nav-signin {
  color: var(--ink-70);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.nav-signin:hover {
  color: var(--ink);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  flex: none;
}

.burger svg {
  width: 20px;
  height: 20px;
}

.burger .icon-close {
  display: none;
}

.site-header.menu-open .burger .icon-menu {
  display: none;
}

.site-header.menu-open .burger .icon-close {
  display: block;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  padding: 118px var(--gutter) 32px;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s var(--ease-out),
    transform 0.35s var(--ease-out), visibility 0s linear 0s;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  margin-bottom: auto;
}

.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 1.1;
  text-decoration: none;
}

.mobile-menu nav a span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.mobile-menu-foot .btn {
  width: 100%;
}

.mobile-menu-mail {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding-top: 112px;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  top: 50%;
  right: 0;
  width: 600px;
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1024px) {
  .hero-canvas {
    width: 800px;
  }
}

.hero-canvas canvas {
  width: 100%;
  height: 100%;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.55;
}

.hero-grid span {
  position: absolute;
  background: var(--rule);
}

.hero-grid .h {
  left: 0;
  right: 0;
  height: 1px;
}

.hero-grid .v {
  top: 0;
  bottom: 0;
  width: 1px;
}

.hero-main {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  padding: clamp(44px, 7vw, 84px) 0 clamp(80px, 7.2vw, 104px);
}

.hero-inner {
  width: 100%;
  max-width: 1248px;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(24px, 3.5vw, 38px);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.js .hero-eyebrow {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--brand);
}

.hero h1 {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.24rem, 9.6vw, 8rem);
  line-height: 1.2;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.js .hero h1 {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 .rotator-prefix {
  font-size: 0.9em;
}

.hero h1 .rotator-line {
  position: relative;
  display: inline-block;
}

.hero h1 .rotator-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.05em;
  height: 0.075em;
  background: rgba(38, 34, 255, 0.16);
  pointer-events: none;
}

.hero h1 .rotator-text {
  display: inline-flex;
  min-height: 0;
  line-height: inherit;
  white-space: nowrap;
}

.hero h1 .rotator-text .char {
  display: inline-block;
  animation: char-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes char-in {
  0% {
    opacity: 0;
    filter: blur(40px);
    transform: translateY(100%);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.js .hero.is-ready .hero-eyebrow,
.js .hero.is-ready h1 {
  opacity: 1;
  transform: none;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6.5vw, 96px);
  align-items: end;
  margin-top: clamp(32px, 4vw, 48px);
}

.js .hero-foot {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out) 0.34s,
    transform 0.9s var(--ease-out) 0.34s;
}

.js .hero.is-ready .hero-foot {
  opacity: 1;
  transform: none;
}

.hero-lede {
  max-width: 46ch;
  color: var(--ink-70);
  font-size: clamp(1.06rem, 1.5vw, 1.25rem);
  line-height: 1.9;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-start;
}

.hero-marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--rule);
  padding: 20px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 5%,
    #000 95%,
    transparent
  );
}

.stat-row {
  display: flex;
  width: max-content;
  gap: clamp(38px, 5vw, 72px);
  animation: marquee 88s linear infinite;
}

.hero-marquee:hover .stat-row,
.signals-marquee:hover .marquee-track {
  animation-play-state: paused;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 14px;
  white-space: nowrap;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat:nth-child(4n + 1) {
  --stat-accent: var(--brand);
}

.stat:nth-child(4n + 2) {
  --stat-accent: var(--amber);
}

.stat:nth-child(4n + 3) {
  --stat-accent: var(--green);
}

.stat:nth-child(4n + 4) {
  --stat-accent: var(--lavender);
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.stat-label::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--stat-accent, var(--muted));
  vertical-align: middle;
}

.stat-label b {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   7. Features
   -------------------------------------------------------------------------- */

.features {
  padding-top: clamp(60px, 7vw, 100px);
}

.feature-list {
  border-top: 1px solid var(--rule);
}

.feature {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 250px;
  gap: 20px clamp(24px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(28px, 3.6vw, 44px);
  padding-inline: var(--feature-pad);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s var(--ease-out);
}

.feature:hover {
  background: linear-gradient(
    90deg,
    rgba(10, 10, 10, 0.022),
    transparent 70%
  );
}

.feature:nth-of-type(1) {
  --fv-accent: var(--brand);
  --fv-tint: rgba(38, 34, 255, 0.1);
}

.feature:nth-of-type(2) {
  --fv-accent: var(--cyan);
  --fv-tint: rgba(81, 226, 244, 0.2);
}

.feature:nth-of-type(3) {
  --fv-accent: var(--green);
  --fv-tint: rgba(86, 231, 105, 0.2);
}

.feature:nth-of-type(4) {
  --fv-accent: var(--amber);
  --fv-tint: rgba(243, 154, 5, 0.16);
}

.feature:nth-of-type(5) {
  --fv-accent: var(--coral);
  --fv-tint: rgba(245, 97, 85, 0.16);
}

.feature:nth-of-type(6) {
  --fv-accent: var(--lavender);
  --fv-tint: rgba(190, 138, 255, 0.18);
}

.feature-num {
  align-self: start;
  padding-top: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.feature-num::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--fv-accent, var(--muted));
  vertical-align: middle;
}

.feature .fv-fill {
  fill: var(--fv-accent, var(--ink));
}

.feature .fv-soft {
  fill: var(--fv-tint, rgba(10, 10, 10, 0.08));
}

.feature-title {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.7vw, 2.4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease-out);
}

.feature:hover .feature-title {
  transform: translateX(6px);
}

.feature-copy {
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 100%;
  max-width: 192px;
  aspect-ratio: 192 / 160;
  color: var(--ink);
  opacity: 1;
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-out);
}

.feature:hover .feature-visual {
  opacity: 1;
  transform: translateY(-3px);
}

.feature-visual svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.feature-visual svg * {
  vector-effect: non-scaling-stroke;
}

/* Drawn feature visuals */
.fv-rule {
  stroke: var(--rule-strong);
  stroke-width: 1;
  fill: none;
}

.fv-ink {
  stroke: var(--ink);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fv-fill {
  fill: var(--ink);
}

.fv-soft {
  fill: rgba(10, 10, 10, 0.08);
}

.fv-dash {
  stroke-dasharray: 4 5;
}

.fv-draw {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw 2.8s var(--ease-out) forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

.fv-pulse {
  animation: fv-pulse 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes fv-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

.fv-scan {
  animation: fv-scan 3.4s ease-in-out infinite;
}

@keyframes fv-scan {
  0%,
  100% {
    transform: translateY(-26px);
    opacity: 0;
  }
  20%,
  80% {
    opacity: 1;
  }
  50% {
    transform: translateY(26px);
  }
}

.fv-spin {
  animation: fv-spin 14s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes fv-spin {
  to {
    transform: rotate(360deg);
  }
}

.fv-bar {
  animation: fv-bar 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: left center;
}

.fv-bar:nth-of-type(2) {
  animation-delay: 0.4s;
}

.fv-bar:nth-of-type(3) {
  animation-delay: 0.8s;
}

@keyframes fv-bar {
  0%,
  100% {
    transform: scaleX(0.55);
  }
  50% {
    transform: scaleX(1);
  }
}

/* --------------------------------------------------------------------------
   8. Process (dark)
   -------------------------------------------------------------------------- */

.process {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-text);
  padding: var(--section) 0;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent 0,
    transparent 47px,
    rgba(250, 250, 250, 0.055) 47px,
    rgba(250, 250, 250, 0.055) 48px
  );
}

.process .wrap {
  position: relative;
  z-index: 1;
}

.process .h2 {
  color: var(--dark-text);
}

.process .h2 .quiet {
  color: var(--dark-muted);
}

.process-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
}

.steps {
  border-top: 1px solid var(--dark-rule);
}

.step {
  position: relative;
  display: block;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  color: var(--dark-text);
  opacity: 0.64;
  transition: opacity 0.35s var(--ease-out);
}

.step:hover {
  opacity: 0.86;
}

.step.is-active {
  opacity: 1;
}

.step-top {
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.step-num {
  flex: none;
  width: 26px;
  color: var(--dark-muted);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.step:nth-child(1) .step-num {
  color: var(--cyan);
}

.step:nth-child(2) .step-num {
  color: var(--green);
}

.step:nth-child(3) .step-num {
  color: var(--amber);
}

.step-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  transition: transform 0.35s var(--ease-out);
}

.step:hover .step-title {
  transform: translateX(5px);
}

.step-copy {
  display: block;
  margin: 10px 0 0 46px;
  max-width: 46ch;
  color: rgba(250, 250, 250, 0.9);
  font-size: 15.5px;
  line-height: 1.6;
}

.step.is-active .step-copy {
  color: rgba(250, 250, 250, 0.95);
}

.step-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--dark-rule);
  overflow: hidden;
}

.step-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dark-text);
  transform-origin: left;
  transform: scaleX(0);
}

.step.is-active .step-progress::after {
  animation: step-progress 5s linear forwards;
}

@keyframes step-progress {
  to {
    transform: scaleX(1);
  }
}

.code-window {
  border: 1px solid var(--dark-rule);
  background: rgba(250, 250, 250, 0.025);
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--dark-rule);
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.22);
}

.code-file {
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.02em;
}

.code-body {
  min-height: 292px;
  padding: 24px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.9;
  color: rgba(250, 250, 250, 0.76);
  scrollbar-width: thin;
  scrollbar-color: rgba(250, 250, 250, 0.25) transparent;
}

.code-line {
  display: flex;
  min-height: 1.85em;
  white-space: pre;
  animation: code-line 0.35s var(--ease-out) both;
}

.code-line:nth-child(2) {
  animation-delay: 0.03s;
}
.code-line:nth-child(3) {
  animation-delay: 0.06s;
}
.code-line:nth-child(4) {
  animation-delay: 0.09s;
}
.code-line:nth-child(5) {
  animation-delay: 0.12s;
}
.code-line:nth-child(6) {
  animation-delay: 0.15s;
}
.code-line:nth-child(7) {
  animation-delay: 0.18s;
}
.code-line:nth-child(8) {
  animation-delay: 0.21s;
}
.code-line:nth-child(9) {
  animation-delay: 0.24s;
}
.code-line:nth-child(10) {
  animation-delay: 0.27s;
}

@keyframes code-line {
  from {
    opacity: 0;
    transform: translateX(-7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.code-ln {
  display: inline-block;
  width: 26px;
  flex: none;
  color: rgba(250, 250, 250, 0.24);
  user-select: none;
}

.code-line .k {
  color: #d6d6d6;
}

.code-line .s {
  color: #b8b8b8;
}

.code-line .c {
  color: rgba(250, 250, 250, 0.34);
}

.code-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--dark-rule);
  color: var(--dark-muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
}

.code-foot .status-dot {
  background: var(--green);
}

/* --------------------------------------------------------------------------
   9. Architecture
   -------------------------------------------------------------------------- */

.arch {
  padding: var(--section) 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: center;
}

.arch-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.arch-stat b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.arch-stat span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.readout {
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.readout-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--rule);
}

.readout-title {
  color: var(--ink-70);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.readout-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.readout-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.readout-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 22px;
  border-bottom: 1px solid var(--rule);
  transition: background 0.25s var(--ease-out);
}

.readout-row:last-child {
  border-bottom: 0;
}

.readout-row:hover {
  background: rgba(10, 10, 10, 0.025);
}

.readout-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.28;
}

.readout-row.is-live .readout-dot {
  background: var(--green);
  opacity: 1;
}

.readout-row.is-gap .readout-dot {
  border: 1px solid var(--rule-strong);
  background: transparent;
  opacity: 1;
}

.readout-name {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
}

.readout-name small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.readout-age {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  text-align: right;
  white-space: nowrap;
}

.readout-row.is-gap .readout-age {
  color: var(--ink);
}

.readout-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   10. Manifesto
   -------------------------------------------------------------------------- */

.manifesto {
  padding: var(--section) 0;
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.manifesto-quote {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.manifesto-note {
  max-width: 44ch;
  margin-top: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.rule {
  min-height: 210px;
  padding: clamp(22px, 2.6vw, 30px);
  background: var(--paper);
}

.rule-num {
  display: block;
  margin-bottom: 34px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.rule h3 {
  margin-bottom: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rule p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   11. Signals marquee
   -------------------------------------------------------------------------- */

.signals {
  padding: var(--section) 0;
  overflow: hidden;
}

.signals .section-head {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.signals-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.signals-marquee + .signals-marquee {
  margin-top: 12px;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 12px;
  animation: marquee 54s linear infinite;
}

.marquee-track--reverse {
  animation: marquee-reverse 62s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes marquee-reverse {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.signal {
  --signal-accent: var(--brand);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  width: 216px;
  min-height: 92px;
  overflow: hidden;
  padding: 17px 20px;
  border: 1px solid var(--rule);
  background: var(--paper);
  color: var(--ink);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.signal::before,
.signal::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.signal::before {
  inset: 0;
  z-index: 0;
  background: var(--signal-accent);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
}

.signal::after {
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: var(--signal-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}

.signal-name,
.signal-cat {
  position: relative;
  z-index: 1;
}

.signal:hover {
  border-color: var(--signal-accent);
  background: var(--paper);
  color: var(--ink);
}

.signal:hover::before {
  opacity: 0.12;
}

.signal:hover::after {
  transform: scaleX(1);
}

.signal-name {
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.25;
}

.signal-cat {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.signal:hover .signal-cat {
  color: var(--ink);
  opacity: 0.65;
}

.signal:nth-child(14n + 1) {
  --signal-accent: var(--brand);
}

.signal:nth-child(14n + 2) {
  --signal-accent: var(--cyan);
}

.signal:nth-child(14n + 3) {
  --signal-accent: var(--green);
}

.signal:nth-child(14n + 4) {
  --signal-accent: var(--amber);
}

.signal:nth-child(14n + 5) {
  --signal-accent: var(--coral);
}

.signal:nth-child(14n + 6) {
  --signal-accent: var(--lavender);
}

.signal:nth-child(14n + 7) {
  --signal-accent: var(--brand);
}

.signal:nth-child(14n + 8) {
  --signal-accent: var(--cyan);
}

.signal:nth-child(14n + 9) {
  --signal-accent: var(--green);
}

.signal:nth-child(14n + 10) {
  --signal-accent: var(--amber);
}

.signal:nth-child(14n + 11) {
  --signal-accent: var(--coral);
}

.signal:nth-child(14n + 12) {
  --signal-accent: var(--lavender);
}

.signal:nth-child(14n + 13) {
  --signal-accent: var(--brand);
}

.signal:nth-child(14n + 14) {
  --signal-accent: var(--cyan);
}

.signals-note {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   12. Security
   -------------------------------------------------------------------------- */

.security {
  padding: var(--section) 0;
  background: var(--surface);
  border-block: 1px solid var(--rule);
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid var(--rule);
  color: var(--ink-70);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.sec-list {
  display: grid;
  gap: 10px;
}

.sec-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--rule);
  background: var(--paper);
  transition: border-color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}

.sec-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
}

.sec-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 1px solid var(--rule);
  color: var(--ink);
  transition: background 0.3s var(--ease-out), color 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out);
}

.sec-icon svg {
  width: 20px;
  height: 20px;
}

.sec-card:hover .sec-icon {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.sec-card h3 {
  margin-bottom: 5px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sec-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

/* --------------------------------------------------------------------------
   13. Under the hood
   -------------------------------------------------------------------------- */

.underhood {
  padding: var(--section) 0;
}

.underhood-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
}

.uh-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.uh-fact h3 {
  margin-bottom: 5px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.uh-fact p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.uh-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}

.uh-links .sep {
  color: var(--rule-strong);
}

.code-tabs {
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}

.tab-bar {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-bar::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  padding: 14px 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
  transition: color 0.25s var(--ease-out);
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  color: var(--ink);
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  margin-right: 8px;
  padding: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: color 0.25s var(--ease-out);
}

.copy-btn:hover,
.copy-btn.is-copied {
  color: var(--ink);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
}

.tab-panel {
  min-height: 292px;
  padding: 22px 20px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-80);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel .code-line {
  animation: none;
}

.tab-panel .code-ln {
  color: rgba(10, 10, 10, 0.26);
}

.tab-panel .k {
  color: #3d3d3d;
}

.tab-panel .s {
  color: #5c5c5c;
}

.tab-panel .c {
  color: var(--faint);
}

.tab-panel .p {
  color: #4a4a4a;
}

/* --------------------------------------------------------------------------
   14. FAQ
   -------------------------------------------------------------------------- */

.faq {
  padding: var(--section) 0;
  border-top: 1px solid var(--rule);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: start;
}

.faq-intro .h2 {
  font-size: clamp(2.2rem, 3.9vw, 3.7rem);
}

.faq-intro .lead {
  margin-top: 22px;
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-num {
  flex: none;
  width: 24px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.faq-q {
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: transform 0.3s var(--ease-out);
}

.faq-item summary:hover .faq-q {
  transform: translateX(4px);
}

.faq-plus {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 6px;
}

.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out);
}

.faq-plus::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-plus::after {
  transform: rotate(0deg);
}

.faq-a {
  max-width: 62ch;
  padding: 0 0 26px 42px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  animation: faq-in 0.35s var(--ease-out) both;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   15. Stack / trusted technologies
   -------------------------------------------------------------------------- */

.stack {
  padding: var(--section) 0;
  border-top: 1px solid var(--rule);
  background: var(--surface);
  overflow: hidden;
}

.stack-head {
  max-width: 780px;
}

.stack-head .lead {
  max-width: 54ch;
  margin-top: 18px;
}

.stack-marquee {
  margin-top: clamp(36px, 5vw, 64px);
  padding: clamp(26px, 3.5vw, 40px) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 7%,
    #000 93%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.stack-track {
  display: flex;
  width: max-content;
  animation: stack-marquee 44s linear infinite;
}

.stack-marquee:hover .stack-track {
  animation-play-state: paused;
}

.stack-set {
  display: flex;
  align-items: flex-start;
  gap: clamp(36px, 4.5vw, 64px);
  padding-right: clamp(36px, 4.5vw, 64px);
}

.stack-item {
  flex: none;
  text-align: center;
}

.stack-item::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--stack-accent, var(--brand));
}

.stack-name {
  display: block;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
  transition: color 0.3s var(--ease-out);
}

.stack-role {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-transform: uppercase;
}

.stack-item:hover .stack-name {
  color: var(--ink);
}

.stack-item:nth-child(6n + 1) {
  --stack-accent: var(--brand);
}

.stack-item:nth-child(6n + 2) {
  --stack-accent: var(--cyan);
}

.stack-item:nth-child(6n + 3) {
  --stack-accent: var(--green);
}

.stack-item:nth-child(6n + 4) {
  --stack-accent: var(--amber);
}

.stack-item:nth-child(6n + 5) {
  --stack-accent: var(--coral);
}

.stack-item:nth-child(6n + 6) {
  --stack-accent: var(--lavender);
}

@keyframes stack-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* --------------------------------------------------------------------------
   15. Closing CTA
   -------------------------------------------------------------------------- */

.cta {
  padding: var(--section) 0;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr);
  gap: 20px;
  align-items: center;
  border: 1px solid var(--ink);
  overflow: hidden;
  padding: clamp(34px, 5vw, 72px);
  background: var(--paper);
}

.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    560px circle at var(--mx, 72%) var(--my, 38%),
    rgba(10, 10, 10, 0.085),
    transparent 46%
  );
}

.cta-copy {
  position: relative;
  z-index: 2;
}

.cta h2 {
  max-width: 13ch;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.1vw, 4.6rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.cta-lede {
  max-width: 42ch;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.cta-note {
  margin-top: 22px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.cta-canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1;
  justify-self: end;
  opacity: 0.9;
  pointer-events: none;
}

.cta-canvas canvas {
  width: 100%;
  height: 100%;
}

.cta-corner {
  position: absolute;
  width: 86px;
  height: 86px;
  border-color: var(--rule);
  pointer-events: none;
}

.cta-corner--tr {
  top: 0;
  right: 0;
  border-top: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

.cta-corner--bl {
  bottom: 0;
  left: 0;
  border-bottom: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */

.footer {
  position: relative;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}

.footer-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  opacity: 0.085;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.footer-wave canvas {
  width: 100%;
  height: 100%;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) repeat(4, minmax(0, 0.9fr));
  gap: 34px clamp(20px, 3vw, 44px);
  padding: clamp(52px, 6vw, 84px) 0 clamp(38px, 4vw, 56px);
}

.footer-brand .brand {
  margin-bottom: 20px;
}

.footer-brand .brand-logo {
  height: 30px;
}

.footer-brand > p {
  max-width: 30ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.footer-company {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
  line-height: 1.65;
}

.footer-company p {
  margin: 0;
}

.footer-company-name {
  margin-bottom: 2px !important;
  color: var(--ink);
  font-weight: 500;
}

.footer-company a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.footer-company a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 22px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-decoration: none;
  transition: border-color 0.25s var(--ease-out);
}

.footer-mail:hover {
  border-color: var(--ink);
}

.footer-mail svg {
  width: 13px;
  height: 13px;
}

.footer-col h3 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.footer-bottom .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   17. Reveal
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.js [data-reveal].is-in,
.js.reveal-all [data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal][data-delay="1"] {
  transition-delay: 0.08s;
}
.js [data-reveal][data-delay="2"] {
  transition-delay: 0.16s;
}
.js [data-reveal][data-delay="3"] {
  transition-delay: 0.24s;
}

/* --------------------------------------------------------------------------
   18. Scrollbar
   -------------------------------------------------------------------------- */

@supports (scrollbar-width: thin) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--ink-70) var(--paper);
  }
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal],
  .hero-eyebrow,
  .hero h1,
  .hero h1 .line,
  .hero-foot {
    opacity: 1 !important;
    transform: none !important;
  }

  .stat-row,
  .marquee-track {
    animation: none !important;
  }

  .step.is-active .step-progress::after {
    transform: scaleX(1);
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   20. Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .nav-links {
    gap: 20px;
  }

  .feature {
    grid-template-columns: 44px minmax(0, 1fr) 200px;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 0.85fr));
  }
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-signin {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .nav-actions .btn {
    display: none;
  }

  .split,
  .security-grid,
  .underhood-grid,
  .manifesto-grid,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    grid-template-columns: 40px minmax(0, 1fr) 190px;
  }

  .cta-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-canvas {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 360px;
    opacity: 0.12;
    z-index: 0;
  }

  .footer-main {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-marquee {
    padding: 18px var(--gutter) 20px;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
    width: 100%;
    animation: none;
  }

  .stat {
    display: block;
    white-space: normal;
  }

  .stat-value {
    display: block;
    margin-bottom: 4px;
    font-size: clamp(1.65rem, 3.2vw, 2.2rem);
  }

  .stat-label {
    font-size: 12.5px;
  }

  .stat[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 1023px) {
  .hero-foot {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 32px;
  }

  .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav {
    height: 70px;
  }

  .brand-logo {
    height: 23px;
  }

  .brand-badge {
    padding: 3px 4px 2px;
    font-size: 8px;
  }

  .site-header.is-scrolled .nav,
  .site-header.menu-open .nav {
    height: 58px;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero-main {
    padding: 40px 0 40px;
  }

  .hero-canvas {
    top: 50%;
    right: 0;
    width: 600px;
    opacity: 0.22;
  }

  .section-head--split {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .feature {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px 16px;
    padding-block: 26px;
  }

  .feature-visual {
    grid-column: 2;
    justify-self: start;
    max-width: 192px;
    margin-top: 6px;
  }

  .feature-title {
    font-size: 1.8rem;
  }

  .step-copy {
    margin-left: 0;
  }

  .code-body {
    min-height: 252px;
    font-size: 12px;
    padding: 20px 14px;
  }

  .arch-stats {
    gap: 12px;
  }

  .arch-stat b {
    font-size: 1.8rem;
  }

  .rules {
    grid-template-columns: minmax(0, 1fr);
  }

  .rule {
    min-height: 0;
  }

  .rule-num {
    margin-bottom: 20px;
  }

  .signals-note {
    flex-direction: column;
    gap: 8px;
  }

  .cta {
    padding-top: 104px;
  }

  .cta-panel {
    padding: 28px 22px 34px;
  }

  .cta-canvas {
    display: none;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 18px;
  }

  .hero-eyebrow {
    font-size: 10.5px;
  }

  .actions,
  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .actions .btn,
  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .stat-row {
    gap: 30px;
  }

  .stat-value {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 12px;
  }

  .feature {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-num {
    padding-top: 0;
  }

  .feature-visual {
    grid-column: 1;
  }

  .readout-row {
    grid-template-columns: 14px minmax(0, 1fr) auto;
    padding: 13px 16px;
    gap: 10px;
  }

  .readout-head,
  .readout-foot {
    padding-inline: 16px;
  }

  .uh-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .tab-panel {
    font-size: 11px;
    padding: 18px 14px;
  }

  .faq-a {
    padding-left: 0;
  }

  .cta-note {
    font-size: 9px;
    line-height: 1.6;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .stat-value {
    font-size: 1.4rem;
  }

  .footer-main {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Stack — compact marquee and a readable static fallback */
@media (max-width: 760px) {
  .stack {
    padding: 72px 0;
  }

  .stack-marquee {
    margin-top: 30px;
    padding: 24px 0;
  }

  .stack-set {
    gap: 32px;
    padding-right: 32px;
  }

  .stack-name {
    font-size: 1.7rem;
  }

  .stack-role {
    margin-top: 6px;
    font-size: 8.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stack-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .stack-track {
    animation: none;
    width: 100%;
  }

  .stack-set {
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px 32px;
    padding-right: 0;
  }

  .stack-set[aria-hidden="true"] {
    display: none;
  }
}
