/* Relay — landing page. Palette sampled from the brand artwork. */
:root {
  --bg: #0b111e;
  --bg-2: #0e1526;
  --panel: #111a2e;
  --panel-2: #152038;
  --line: rgba(150, 170, 255, 0.12);
  --line-2: rgba(150, 170, 255, 0.2);
  --text: #eaeefb;
  --muted: #8d97b3;
  --faint: #5f6a88;
  --teal: #0bb3ab;
  --sky: #1ea0f0;
  --blue: #3b52fc;
  --violet: #5a3cf5;
  --grad: linear-gradient(110deg, var(--teal) 0%, var(--sky) 35%, var(--blue) 68%, var(--violet) 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Sora", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain + two soft brand glows, like the artwork. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(11, 179, 171, 0.14), transparent 60%),
    radial-gradient(900px 600px at 100% 30%, rgba(90, 60, 245, 0.12), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .nav, .footer { position: relative; z-index: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
code {
  font: 500 0.88em var(--mono);
  padding: 0.12em 0.45em;
  border-radius: 7px;
  background: rgba(59, 82, 252, 0.14);
  border: 1px solid rgba(59, 82, 252, 0.28);
  color: #c9d2ff;
  white-space: nowrap;
}
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--panel); padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 700 15px/1 var(--font);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn--sm { padding: 10px 16px; font-size: 14px; }
.btn--primary {
  color: #fff;
  background: var(--grad);
  box-shadow: 0 10px 30px -10px rgba(59, 82, 252, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(59, 82, 252, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-2px); }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(11, 17, 30, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--font-display); letter-spacing: -0.02em; }
.brand--sm { font-size: 16px; gap: 8px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: none; }
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
/* Three bars from one element: the middle is the span, the others are its
   pseudo-elements, so the whole thing can morph into a cross. */
.nav__toggle span { position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; }
.nav__toggle span::before { transform: translateY(-6px); }
.nav__toggle span::after { transform: translateY(6px); }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: rotate(-45deg); }

/* ── Type ────────────────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; font-weight: 700; max-width: 14ch; margin-inline: auto; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 700; max-width: 20ch; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font: 700 12.5px/1 var(--font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8fb4ff;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(11, 179, 171, 0.18); }
.lede { text-wrap: balance; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; margin: 22px auto 0; }
.sub { text-wrap: pretty; color: var(--muted); font-size: 17.5px; max-width: 62ch; margin: 18px 0 0; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 40px; text-align: center; }
.hero__copy { position: relative; z-index: 2; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.ribbons {
  position: absolute;
  left: 0;
  right: 0;
  top: 300px;
  width: 100%;
  height: 700px;
  z-index: 0;
  opacity: 0.9;
  filter: saturate(115%);
}
.ribbons__left { animation: sway 11s var(--ease) infinite alternate; transform-origin: 0 50%; }
.ribbons__right { animation: sway 13s var(--ease) infinite alternate-reverse; transform-origin: 100% 50%; }
@keyframes sway { from { transform: scaleY(0.94) translateY(6px); } to { transform: scaleY(1.06) translateY(-8px); } }

/* ── Relay stage ─────────────────────────────────────────────────────────── */
.stage {
  position: relative;
  z-index: 2;
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 200px 1fr;
  align-items: center;
  gap: 0;
  text-align: left;
}
.stage__wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
.stage__wire path { fill: none; stroke: rgba(140, 160, 255, 0.28); stroke-width: 1.5; stroke-dasharray: 3 7; }
.packet {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 160, 240, 0.35), 0 0 24px 6px rgba(59, 82, 252, 0.8);
  opacity: 0;
  z-index: 3;
  transition: opacity 0.2s;
}
.packet.is-on { opacity: 1; }
.packet.is-back { box-shadow: 0 0 0 4px rgba(11, 179, 171, 0.4), 0 0 24px 6px rgba(11, 179, 171, 0.8); }

.panel {
  position: relative;
  z-index: 2;
  height: 400px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 32, 56, 0.92), rgba(14, 21, 38, 0.94));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.panel__head .muted { margin-left: auto; font-size: 12.5px; }
.hash { color: var(--faint); font: 700 18px/1 var(--font-display); }
.panel__feed { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; justify-content: flex-end; }
.panel__input { margin: 0 14px 14px; padding: 11px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); color: var(--faint); font-size: 13.5px; }

.post { padding: 14px 18px 10px; border-bottom: 1px solid var(--line); }
.post__title { font: 600 14.5px/1.3 var(--font-display); letter-spacing: -0.01em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  color: #c7cfea;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
}
.tag.is-flash { animation: flash 0.9s var(--ease); }
@keyframes flash { 0% { transform: scale(1); } 40% { transform: scale(1.12); background: rgba(59, 82, 252, 0.35); } 100% { transform: scale(1); } }

/* Chat lines inside the stage panels. */
.line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s var(--ease) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.line__av { flex: none; width: 30px; height: 30px; border-radius: 50%; }
.line__body { min-width: 0; }
.line__who { font-size: 13px; font-weight: 700; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.line__who small { font-weight: 600; color: var(--faint); font-size: 11.5px; }
.line__text { font-size: 14px; color: #d4daf0; margin-top: 2px; }
.card-msg {
  border-left: 3px solid var(--teal);
  background: rgba(11, 179, 171, 0.08);
  border-radius: 4px 12px 12px 4px;
  padding: 9px 12px;
}
.card-msg--note { border-left-color: var(--faint); background: rgba(255, 255, 255, 0.04); }
.card-msg--sent { border-left-color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.badge {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font: 700 10.5px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 7px;
  border-radius: 6px;
}
.badge--lock { background: rgba(255, 255, 255, 0.08); color: #b9c1dc; }
.badge--sent { background: rgba(34, 197, 94, 0.16); color: #7ee2a3; }
.badge--dm { background: rgba(59, 82, 252, 0.2); color: #b5c0ff; }

.core { position: relative; display: grid; place-items: center; height: 220px; z-index: 2; }
.core__halo {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(59, 82, 252, 0.4), transparent);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.core__mark { position: relative; width: 148px; height: 148px; filter: drop-shadow(0 16px 30px rgba(59, 82, 252, 0.45)); transition: transform 0.5s var(--ease); }
.core.is-pulse .core__mark { transform: scale(1.08) rotate(-4deg); }
.core.is-held .core__mark { transform: scale(0.94); filter: drop-shadow(0 0 22px rgba(255, 255, 255, 0.35)); }
.core__label {
  position: absolute;
  bottom: -6px;
  font: 700 11px/1 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(11, 17, 30, 0.85);
  transition: color 0.3s, border-color 0.3s;
}
.core.is-held .core__label { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.steps {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
}
.steps li {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.4s var(--ease);
}
.steps b {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
}
.steps li.is-active { color: var(--text); border-color: var(--line-2); background: rgba(59, 82, 252, 0.12); }
.steps li.is-active b { background: var(--grad); color: #fff; }

/* ── Strip ───────────────────────────────────────────────────────────────── */
.strip { border-block: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); margin-top: 56px; }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip span { padding: 26px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-left: 1px solid var(--line); }
.strip span:first-child { border-left: 0; }
.strip i { font: normal 700 34px/1 var(--font-display); letter-spacing: -0.03em; }
.strip span:nth-child(1) i { color: var(--teal); }
.strip span:nth-child(2) i { color: var(--sky); }
.strip span:nth-child(3) i { color: #6f86ff; }
.strip span:nth-child(4) i { color: #8a73ff; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.section { padding: 120px 0 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Bento of entry points. */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease), background 0.3s;
  overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card::after {
  content: "";
  position: absolute;
  inset: auto -40% -60% auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(59, 82, 252, 0.16), transparent);
  pointer-events: none;
}
.card--wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
.card--wide .card__art { flex: 1; min-height: 240px; }
.card h3 { margin-top: 18px; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.card__art {
  position: relative;
  min-height: 124px;
  border-radius: var(--radius-sm);
  background: rgba(6, 10, 20, 0.55);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.bubble {
  align-self: flex-start;
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #1a2540;
  font-size: 14px;
  color: #d4daf0;
}
.bubble--me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(120deg, #1b7fd6, #3b52fc); color: #fff; }
.at { color: #9fb2ff; background: rgba(59, 82, 252, 0.25); padding: 0 4px; border-radius: 4px; }
/* Mock-up bits inside the entry-point cards only: the dashboard has its own
   .field class for real form fields, so these must stay scoped. */
.card__art .picker,
.card__art .field {
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  background: #0b1222;
  border: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
}
.card__art .field { height: 34px; }
.card__art .field--tall { height: 54px; }
.art-slash code { align-self: flex-start; font-size: 14px; }
.react { align-self: flex-start; font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: rgba(59, 82, 252, 0.18); border: 1px solid rgba(59, 82, 252, 0.45); }
.hint { font-size: 12.5px; color: var(--faint); }
.pill-btn {
  align-self: flex-start;
  display: inline-flex;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
}
.pill-btn--danger { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.35); color: #ffb4b4; }
.chip-staff { align-self: flex-end; font-size: 12.5px; font-weight: 700; padding: 7px 11px; border-radius: 9px; background: var(--grad); color: #fff; }

/* Context-menu illustration. */
.toast {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 330px;
  padding: 12px 16px 12px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(27, 40, 70, 0.95), rgba(18, 27, 48, 0.95));
  border: 1px solid rgba(59, 82, 252, 0.4);
  box-shadow: 0 20px 44px -18px rgba(59, 82, 252, 0.6);
  animation: toast-in 5s var(--ease) infinite;
}
.toast b { display: block; font-size: 14px; }
.toast span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
@keyframes toast-in {
  0%, 18% { opacity: 0; transform: translateY(10px) scale(0.97); }
  28%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-4px); }
}
.art-menu { justify-content: flex-start; padding: 22px; }
.msg { display: flex; gap: 12px; align-items: flex-start; }
.msg b { font-size: 14px; }
.msg p { margin: 2px 0 0; color: #d4daf0; font-size: 15px; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-block; }
.a1 { background: linear-gradient(135deg, #0bb3ab, #1ea0f0); }
.a2 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.a3 { background: linear-gradient(135deg, #64748b, #334155); }
.a4 { background: linear-gradient(135deg, #8b5cf6, #3b52fc); }
.menu {
  position: absolute;
  left: 34%;
  top: 70px;
  width: 190px;
  padding: 6px;
  border-radius: 12px;
  background: #0c1325;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
  font-size: 13.5px;
}
.menu > span { padding: 8px 10px; border-radius: 7px; color: #c7cfea; }
.menu__sep { height: 1px; padding: 0 !important; margin: 4px 6px; background: var(--line); }
.menu__apps { position: relative; display: flex; justify-content: space-between; background: rgba(59, 82, 252, 0.22); color: #fff !important; }
.menu__apps em { font-style: normal; opacity: 0.7; }
.submenu {
  position: absolute;
  left: calc(100% + 12px);
  top: -6px;
  width: 200px;
  padding: 6px;
  border-radius: 12px;
  background: #0c1325;
  border: 1px solid var(--line-2);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}
.submenu span { padding: 8px 10px; border-radius: 7px; color: #c7cfea; }
.submenu .hot { background: var(--grad); color: #fff; font-weight: 700; }

/* Split sections. */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--flip .split__copy { order: 2; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15.5px; }
.ticks li b { color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14.5 7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.forum, .report {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 32, 56, 0.9), rgba(14, 21, 38, 0.9));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 90px -50px rgba(59, 82, 252, 0.55);
  overflow: hidden;
}
.forum__head { display: flex; align-items: center; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.forum__count { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.row { padding: 16px 20px; border-bottom: 1px solid var(--line); transition: background 0.3s; }
.row:last-child { border-bottom: 0; }
.row:hover { background: rgba(255, 255, 255, 0.025); }
.row__title { font: 600 15px/1.3 var(--font-display); letter-spacing: -0.01em; }
.row__meta { margin-top: 8px; font-size: 12.5px; color: var(--faint); }
.t-urgent { background: rgba(239, 68, 68, 0.16); border-color: rgba(239, 68, 68, 0.4); color: #ffb4b4; }
.t-staff { background: rgba(59, 82, 252, 0.18); border-color: rgba(59, 82, 252, 0.45); color: #c3cbff; }
.t-user { background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.35); color: #fcd49a; }
.t-open { background: rgba(11, 179, 171, 0.14); border-color: rgba(11, 179, 171, 0.4); color: #8ae8e1; }
.t-report { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); color: #ffc2c2; }

/* Internal-by-default vault. */
.vault__inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 32px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 0% 50%, rgba(11, 179, 171, 0.12), transparent 70%),
    radial-gradient(600px 300px at 100% 50%, rgba(90, 60, 245, 0.14), transparent 70%),
    rgba(255, 255, 255, 0.015);
}
.vault__mark { width: 220px; height: 220px; filter: drop-shadow(0 20px 40px rgba(59, 82, 252, 0.5)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-3deg); } }
.vault h2 { max-width: 24ch; }
h2 code { font-size: 0.78em; padding: 0.02em 0.28em; border-radius: 10px; vertical-align: 0.06em; }
.vault__demo { margin-top: 26px; display: grid; gap: 10px; max-width: 560px; }
.note { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); font-size: 14.5px; color: #d4daf0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.note--sent { background: rgba(34, 197, 94, 0.07); border-color: rgba(34, 197, 94, 0.28); }
.lock, .send { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.lock { background: rgba(255, 255, 255, 0.08); color: #b9c1dc; }
.send { background: rgba(34, 197, 94, 0.16); color: #7ee2a3; }

/* Report illustration. */
.report__head { padding: 18px 20px 6px; font: 600 16px/1.3 var(--font-display); }
.report__meta { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 20px 16px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.report__meta b { color: var(--text); }
.flag { color: #fcd49a; }
.evidence { margin: 16px 20px; padding: 14px 16px; border-radius: 14px; border-left: 3px solid #f59e0b; background: rgba(245, 158, 11, 0.06); }
.evidence__who { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.evidence__who .avatar, .stack .avatar { width: 22px; height: 22px; }
.evidence__who b { color: var(--text); }
.evidence blockquote { margin: 10px 0; padding: 0; font-size: 15px; color: #e3e7f7; }
.evidence__by { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.stack { display: inline-flex; }
.stack .avatar { border: 2px solid #121b30; margin-left: -6px; }
.report__actions { display: flex; gap: 10px; padding: 0 20px 20px; flex-wrap: wrap; }

/* Edge-case grid. */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.mini { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); }
.mini__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: rgba(59, 82, 252, 0.12); border: 1px solid rgba(59, 82, 252, 0.3); font-size: 21px; }
.mini h3 { margin-top: 16px; }
.mini p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.roadmap { margin-top: 16px; padding: 24px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.roadmap--live { margin-top: 40px; border-style: solid; background: rgba(11, 179, 171, 0.05); border-color: rgba(11, 179, 171, 0.3); }
.roadmap--live h3 { color: #8ae8e1; }
.roadmap h3 { font-size: 15px; color: var(--muted); letter-spacing: 0; }
.roadmap__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.roadmap__chips span { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: #c7cfea; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }

/* Setup steps. */
.setup { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.setup li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.setup li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -17px;
  top: 50px;
  width: 18px;
  height: 2px;
  background: var(--grad);
}
.setup__n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--grad); font: 700 17px/1 var(--font-display); color: #fff; }
.setup h3 { margin-top: 18px; }
.setup p { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* FAQ. */
.faq { max-width: 820px; }
.faq h2 { margin-bottom: 30px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  position: relative;
  font: 600 18px/1.35 var(--font-display);
  letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 18px;
  font: 400 26px/1 var(--font);
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 68ch; }

/* Finale. */
/*
 * The banner keeps its own aspect ratio (2106×747) and is never scaled past
 * its native width. --bw is its rendered width, so the headline can be placed
 * relative to the mark, whose bottom sits at ~74% of the banner's height.
 */
.finale { --bw: min(2106px, max(1100px, 100vw)); position: relative; margin-top: 40px; padding: 0 0 120px; text-align: center; overflow: hidden; }
.finale__banner {
  position: relative;
  left: 50%;
  width: var(--bw);
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  pointer-events: none;
  /* Fade the ribbons out at the edges and the bottom. */
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 16%, #000 70%, transparent);
  mask-composite: intersect;
}
.finale__inner { position: relative; margin-top: calc(var(--bw) * -0.07); }
.finale h2 { max-width: none; font-size: clamp(32px, 4.6vw, 58px); margin-bottom: 36px; }

.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ── Legal pages ─────────────────────────────────────────────────────────── */
.doc { max-width: 760px; padding: 72px 0 110px; }
.doc h1 { font-size: clamp(36px, 5vw, 54px); max-width: none; margin: 0; }
.doc__meta { color: var(--faint); margin: 12px 0 34px; font-size: 14px; }
.doc h2 { font-size: 24px; max-width: none; margin: 46px 0 12px; }
.doc h3 { font-size: 17px; margin: 26px 0 8px; }
.doc p, .doc li { color: #c3cbe3; font-size: 16px; }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 14px; display: grid; gap: 8px; }
.doc a { color: #8fb4ff; text-underline-offset: 3px; }
.doc b { color: var(--text); }
.footer a { color: inherit; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .nav__inner { position: relative; }
  .nav__toggle { display: inline-flex; }
  /* The links become a slide-down panel under the header. */
  .nav__links {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 20px 18px;
    /* Solid, not translucent: the hero behind it was showing through. */
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__cta { display: inline-flex; justify-content: center; margin-top: 14px; }
  .stage { grid-template-columns: 1fr; gap: 26px; }
  .core { height: 150px; order: 2; }
  .core__mark { width: 112px; height: 112px; }
  .panel--dm { order: 1; }
  .panel--board { order: 3; }
  .panel { height: 340px; }
  .ribbons { top: 420px; opacity: 0.55; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card--wide { grid-column: span 2; grid-row: auto; }
  .split, .vault__inner { grid-template-columns: 1fr; gap: 40px; }
  .split--flip .split__copy { order: 0; }
  .vault__inner { padding: 36px 28px; }
  .vault__mark { width: 140px; height: 140px; }
  .grid, .setup { grid-template-columns: 1fr 1fr; }
  .setup li::after { display: none; }
  .strip__inner { grid-template-columns: 1fr 1fr; }
  .strip span:nth-child(3) { border-left: 0; }
  .strip span:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .hero { padding-top: 56px; }
  .bento, .grid, .setup { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  /* Stack the context-menu story vertically on phones. */
  .art-menu .menu { position: relative; left: auto; top: auto; margin: 14px 0 0 24px; }
  .art-menu .menu { width: min(260px, 100%); }
  .menu__apps { flex-wrap: wrap; }
  .submenu { position: relative; left: 0; top: 0; flex-basis: 100%; width: auto; margin: 8px 0 0; }
  .toast { position: relative; right: auto; bottom: auto; left: auto; margin-top: 22px; max-width: none; }
  .card--wide .card__art { min-height: 0; }
  .section { padding-top: 90px; }
  .btn--sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .line { opacity: 1; transform: none; }
}
