/* ============================================================
   Fast — fast.inc
   Warm paper + italic serif emphasis, à la Wispr Flow
   ============================================================ */

:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #faf6ef;
  --bg-alt: #f3ede1;
  --surface: #fffdf8;
  --surface-2: #f5efe4;
  --text: #191512;
  --text-2: #635b50;
  --text-3: #9b9284;
  --border: rgba(25, 21, 18, 0.08);
  --border-strong: rgba(25, 21, 18, 0.16);

  --accent: #ff4d00;
  --accent-2: #ffa300;
  --accent-soft: rgba(255, 77, 0, 0.09);
  --ok: #1a9e6c;
  --ok-soft: rgba(26, 158, 108, 0.12);

  --shadow-lg: 0 30px 80px -24px rgba(48, 36, 24, 0.32), 0 8px 24px -12px rgba(48, 36, 24, 0.14);
  --shadow-sm: 0 1px 2px rgba(48, 36, 24, 0.05), 0 8px 24px -14px rgba(48, 36, 24, 0.12);

  --radius: 22px;
  --radius-lg: 28px;
}

[data-theme="dark"] {
  --bg: #14110d;
  --bg-alt: #1a1611;
  --surface: #201b15;
  --surface-2: #282219;
  --text: #f6f1e7;
  --text-2: #aca394;
  --text-3: #766e60;
  --border: rgba(246, 241, 231, 0.09);
  --border-strong: rgba(246, 241, 231, 0.17);

  --accent: #ff6a2b;
  --accent-2: #ffb84d;
  --accent-soft: rgba(255, 106, 43, 0.13);
  --ok: #34c98e;
  --ok-soft: rgba(52, 201, 142, 0.14);

  --shadow-lg: 0 30px 80px -24px rgba(0, 0, 0, 0.75), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -14px rgba(0, 0, 0, 0.45);
}

/* ---------- base ---------- */

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The stream is a full-bleed 100vw element; clip at the root so iOS
     Safari can't pan the page sideways. `clip` doesn't create a scroll
     container (unlike `hidden`); the first line is the fallback. */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.35s ease, color 0.35s ease;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.04; font-weight: 600; }

h1 { font-size: clamp(3.2rem, 8.5vw, 6rem); font-weight: 650; }
h2 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.02em; }

/* Italic serif emphasis — the signature move */
h1 em, h2 em, h3 em, .strip-inner em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  letter-spacing: -0.015em;
}

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- nav (floating pill) ---------- */

.nav-wrap {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
  max-width: 1080px;
  padding: 0 12px 0 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  box-shadow: var(--shadow-sm);
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: var(--text);
}
.logo-mark svg { width: 20px; height: 20px; }

.logo-word { font-style: italic; }

/* typed rotating word beside the logo */
.logo-type {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 4.8em;
  gap: 2px;
  margin-left: 4px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--text-3);
  letter-spacing: 0;
  white-space: nowrap;
}
.logo-caret {
  width: 1.5px;
  height: 0.95em;
  background: var(--text-3);
  animation: blink 1.1s steps(2) infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-2);
}
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ---------- nav dropdowns ---------- */

.nav-item { position: relative; }

.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-trigger svg {
  width: 12px;
  height: 12px;
  opacity: 0.55;
  transition: transform 0.25s ease;
}
.nav-item:hover .nav-trigger svg,
.nav-item:focus-within .nav-trigger svg {
  transform: rotate(180deg);
}

.nav-dd {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 18px;
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
  transition: opacity 0.2s ease, translate 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  z-index: 60;
}
.nav-item:hover .nav-dd,
.nav-item:focus-within .nav-dd {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

/* suppressed after a click, until the pointer leaves the item */
.nav-item.dd-closed .nav-dd {
  opacity: 0;
  visibility: hidden;
  translate: 0 6px;
}

.nav-dd-panel {
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: grid;
}

.nav-dd-item {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.15s ease;
}
.nav-dd-item:hover { background: var(--surface-2); }
.nav-dd-item strong {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.nav-dd-item em {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-3);
  white-space: nowrap;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.theme-toggle svg { width: 17px; height: 17px; }
[data-theme="light"] .icon-sun, .icon-moon { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ---------- mobile burger menu ---------- */

.nav-burger {
  display: none;
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  z-index: 49;
  padding: 10px 22px 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 98%, transparent);
  box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
}
.mobile-menu.open { display: block; animation: mobileMenuIn 0.22s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes mobileMenuIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-group { padding: 14px 0 6px; border-bottom: 1px solid var(--border); }
.mobile-group-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.mobile-group a,
.mobile-link {
  display: block;
  padding: 9px 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.mobile-group a:active, .mobile-link:active { color: var(--accent); }
.mobile-link { padding: 16px 0 6px; }

body.menu-open { overflow: hidden; }

/* ---------- buttons (pills) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--text-3); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 17px 34px; font-size: 1.02rem; }

/* ---------- hero (centered, visual below) ---------- */

.hero {
  position: relative;
  padding: 56px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -25% auto;
  height: 100%;
  background:
    radial-gradient(620px 440px at 30% 20%, var(--accent-soft), transparent 65%),
    radial-gradient(700px 500px at 74% 28%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  text-align: center;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  position: relative;
}
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--ok);
  opacity: 0.35;
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.5); opacity: 0.5; }
  70% { transform: scale(1.6); opacity: 0; }
  100% { opacity: 0; }
}

.lede {
  margin-top: 26px;
  font-size: 1.18rem;
  color: var(--text-2);
  max-width: 36rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}
.cta-center { justify-content: center; }

.hero-fine { margin-top: 20px; font-size: 0.82rem; color: var(--text-3); }

/* ---------- encrypted backup stream (text ribbon) ---------- */

.stream {
  position: relative;
  z-index: 0;
  width: 100vw;
  margin: -546px calc(50% - 50vw) -52px;
  pointer-events: none;
}

.hero-copy { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; }

.stream-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* incoming filenames, faint, following the loop */
.stream-text-in {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
  fill: var(--text-3);
}

/* solid ribbon out of the lock… */
.ribbon-stroke {
  stroke: url(#ribbonGrad);
  stroke-width: 22;
  stroke-linecap: round;
  fill: none;
}
.rg-a { stop-color: var(--accent); }
.rg-b { stop-color: var(--accent-2); }

/* …carrying ciphertext */
.stream-text-out {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  fill: #fff;
}

/* encryption capsule (at the loop's end) */
.enc-box {
  position: absolute;
  z-index: 2;
  top: 90.5%;
  left: 55%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-lg);
}
.enc-box svg { width: 14px; height: 14px; }
.enc-box.hit { animation: encHit 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes encHit {
  0% { transform: translate(-50%, -50%) scale(1); }
  35% { transform: translate(-50%, -50%) scale(1.09); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* destination bolt (right end of the ribbon) */
.stream-dest {
  position: absolute;
  z-index: 2;
  top: 90.5%;
  left: 95%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.stream-dest svg { width: 21px; height: 21px; }
.stream-dest::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
}
.stream-dest.hit { animation: destHit 0.55s cubic-bezier(0.16, 1, 0.3, 1); }
.stream-dest.hit::before { animation: destRing 0.7s ease-out; }
@keyframes destHit {
  0% { transform: translate(-50%, -50%) scale(1); }
  35% { transform: translate(-50%, -50%) scale(1.14); }
  100% { transform: translate(-50%, -50%) scale(1); }
}
@keyframes destRing {
  0% { opacity: 0.7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.9); }
}

/* ---------- menu-bar mock ---------- */

.hero-visual { width: 100%; max-width: 880px; min-width: 0; }

.menubar-scene {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(165deg,
      color-mix(in srgb, var(--accent) 12%, var(--bg-alt)),
      color-mix(in srgb, var(--accent-2) 14%, var(--bg-alt)) 55%,
      var(--bg-alt));
  padding-bottom: 30px;
}

.menubar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.menubar-left, .menubar-right { display: flex; align-items: center; gap: 14px; }
.mb-bold { font-weight: 700; }
.mb-item { color: var(--text-2); }
.mb-apple svg, .mb-fast-icon svg { width: 13px; height: 13px; display: block; }
.mb-apple { color: var(--text); }
.mb-fast-icon {
  color: var(--accent);
  animation: fastGlow 3s ease-in-out infinite;
}
@keyframes fastGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.dropdown {
  width: min(350px, calc(100% - 48px));
  margin: 12px 24px 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 15px;
  font-size: 0.82rem;
}

.dd-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.dd-status { display: flex; gap: 10px; align-items: center; }
.status-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px var(--ok-soft);
}
.dd-title { font-weight: 700; font-size: 0.9rem; letter-spacing: -0.01em; }
.dd-sub { color: var(--text-3); font-size: 0.75rem; margin-top: 1px; }

.dd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.dd-badge svg { width: 11px; height: 11px; }

.dd-section-label {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 12px 2px 7px;
}

.dd-activity { list-style: none; }
.dd-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 8px;
  border-radius: 10px;
}
.dd-row:hover { background: var(--surface-2); }
.dd-row.dd-new { animation: rowIn 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.file-ic {
  width: 22px; height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  position: relative;
}
.file-ic::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.85;
}
.file-ic.doc { background: rgba(37, 99, 235, 0.14); color: #2563eb; }
.file-ic.code { background: rgba(147, 51, 234, 0.14); color: #9333ea; }
.file-ic.img { background: rgba(219, 39, 119, 0.14); color: #db2777; }
.file-ic.zip { background: rgba(217, 119, 6, 0.14); color: #d97706; }

.dd-file {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dd-when { color: var(--ok); font-size: 0.7rem; font-weight: 600; }

.dd-timeline { padding: 2px 4px 4px; }
.tl-track {
  height: 5px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.tl-fill {
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--accent) 55%, var(--accent-2));
  transform-origin: left;
  animation: tlGrow 6s ease-in-out infinite alternate;
}
@keyframes tlGrow {
  from { transform: scaleX(0.92); }
  to { transform: scaleX(1); }
}
.tl-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.66rem;
  color: var(--text-3);
}
.tl-now { color: var(--accent); font-weight: 700; }

.dd-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-3);
}
.dd-dot { opacity: 0.6; }

.dd-brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-style: italic;
  color: var(--text-2);
}
.dd-brand svg { width: 10px; height: 10px; }
.dd-restore {
  margin-left: auto;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- tagline strip ---------- */

.strip { padding: 96px 0 88px; }
.strip-inner p {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-align: center;
  line-height: 1.08;
}
.strip-inner em { color: var(--accent); }

/* ---------- sections ---------- */

.section { padding: 112px 0; }
.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 46rem;
  margin: 0 auto 64px;
  text-align: center;
}
.kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-lede { margin-top: 20px; font-size: 1.1rem; color: var(--text-2); }
.section-lede a { color: var(--accent); font-weight: 600; }
.section-lede a:hover { text-decoration: underline; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.95rem; }

.card-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.card-icon svg { width: 22px; height: 22px; }

.card-sm { padding: 26px 24px; }
.card-sm h3 { font-size: 1.02rem; }
.card-sm p { font-size: 0.88rem; }

/* ---------- surfaces ---------- */

.surfaces { display: flex; flex-direction: column; gap: 28px; }

.surface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  box-shadow: var(--shadow-sm);
}
.surface-flip .surface-copy { order: 2; }
.surface-flip .surface-visual { order: 1; }

.surface-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.surface h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 14px; letter-spacing: -0.03em; }
.surface-copy > p { color: var(--text-2); }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 27px;
  font-size: 0.93rem;
  color: var(--text-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ok-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 7.5px;
  width: 5px; height: 7px;
  border-right: 2px solid var(--ok);
  border-bottom: 2px solid var(--ok);
  transform: rotate(40deg);
}

/* mini menu-bar panel */
.mini-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 15px;
  font-size: 0.85rem;
  max-width: 340px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.mini-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 11px;
}
.mini-head { font-weight: 700; justify-content: flex-start; gap: 9px; }
.mini-dot { width: 9px; height: 9px; border-radius: 50%; }
.mini-dot.ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.mini-file { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-2); }
.mini-ok { color: var(--ok); font-weight: 700; }
.mini-streaming {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  animation: fastGlow 1.6s ease-in-out infinite;
}

/* terminal */
.terminal {
  background: #16120d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.term-bar span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.term-bar span:nth-child(1) { background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar em {
  margin-left: auto;
  font-style: normal;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-sans);
}
.terminal pre {
  padding: 19px 19px 21px;
  font-size: 0.78rem;
  line-height: 1.8;
  color: #f0ebe2;
  overflow-x: auto;
}
.t-dim { color: rgba(240, 235, 226, 0.4); }
.t-ok { color: #34c98e; }
.t-flag { color: #7fb5ff; }
.t-kw { color: #ff9c66; }
.t-str { color: #ffc24d; }

/* ---------- ask demo ---------- */

.ask-demo {
  max-width: 660px;
  margin: 0 auto 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ask-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 22px;
  font-size: 1rem;
  border-bottom: 1px solid var(--border);
}
.ask-input svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.ask-text { font-weight: 500; min-height: 1.5em; }
.ask-caret {
  width: 2px;
  height: 1.15em;
  background: var(--accent);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.ask-result { padding: 17px 22px; background: var(--surface-2); }
.ask-result-row { display: flex; align-items: center; gap: 14px; }
.ask-result-row > div { flex: 1; min-width: 0; }
.ask-file { font-weight: 600; font-size: 0.92rem; }
.ask-ver { color: var(--text-3); font-weight: 500; font-size: 0.8rem; }
.ask-note { color: var(--text-2); font-size: 0.82rem; margin-top: 2px; }

/* ---------- split (security/storage) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
}

.spec-list { list-style: none; margin-top: 34px; display: grid; gap: 24px; }
.spec-list li {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.spec-list strong { font-size: 1rem; letter-spacing: -0.01em; }
.spec-list span { color: var(--text-2); font-size: 0.92rem; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: grid;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}
.stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-label { font-size: 0.82rem; color: var(--text-2); }

/* ---------- final CTA ---------- */

.cta-final { text-align: center; padding: 140px 0; }
.cta-final .section-lede { margin: 20px auto 0; max-width: 30rem; }
.cta-final .cta-row { margin-top: 40px; }
.cta-final .hero-fine { margin-top: 24px; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding: 72px 24px 52px;
}
.footer-brand p {
  margin-top: 14px;
  color: var(--text-3);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
}

.footer-meta {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  transition: border-color 0.2s;
}
.footer-status:hover { border-color: var(--border-strong); }

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-soft);
}

.footer-build {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-3);
  margin-left: 10px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.footer-cols h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 15px;
  font-weight: 700;
}
.footer-cols a {
  display: block;
  padding: 5px 0;
  font-size: 0.9rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--text); }

.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  padding-bottom: 30px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-social a:hover { color: var(--text); }
.footer-social svg { width: 16px; height: 16px; }

.llms-link {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-3);
}
.llms-link:hover { background: var(--surface); }

/* ---------- subpages ---------- */

.page-hero {
  padding: 110px 0 20px;
  text-align: center;
}
.page-hero .kicker { margin-bottom: 14px; }
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.page-hero h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}
.page-hero .section-lede { margin: 22px auto 0; }

.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
}
.prose p, .prose li { color: var(--text-2); margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin-bottom: 14px; }
.prose a { color: var(--accent); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.page-cta { text-align: center; padding-bottom: 110px; }
.page-cta .btn { margin: 0 6px; }

/* ---------- responsive ---------- */

/* Below 1160px the loop has no whitespace to live in — main.js flattens
   the SVG to a straight left → Encrypting → Fast stream at this same
   breakpoint. The banner sits in normal flow between the hero fine print
   and the screenshot instead of overlaying the copy. */
@media (max-width: 1160px) {
  .stream { margin: 18px calc(50% - 50vw) 6px; }
  .enc-box { top: 48%; left: 46.7%; }
  .stream-dest { top: 48%; left: 95%; }
}

@media (max-width: 960px) {
  .hero { padding-top: 64px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .surface { grid-template-columns: 1fr; padding: 36px 30px; gap: 36px; }
  .surface-flip .surface-copy { order: 1; }
  .surface-flip .surface-visual { order: 2; }
  .split { grid-template-columns: 1fr; gap: 64px; }
  .footer-inner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  /* No mobile app yet — drop the Download CTA, the burger takes its place */
  .nav-actions .btn { display: none; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .enc-box { padding: 7px 12px; font-size: 0.68rem; gap: 6px; }
  .stream-dest { width: 34px; height: 34px; }
  .stream-dest svg { width: 15px; height: 15px; }
  .ribbon-stroke { stroke-width: 16; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .menubar-left .mb-item:not(.mb-bold) { display: none; }
  .dropdown { margin-right: 14px; width: calc(100% - 28px); }
  .footer-base { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .nav-wrap { padding: 0 10px; top: 10px; }
  .nav { padding-left: 16px; }
}
