/* Wisp homepage — dark graphite, citrus accent, editorial layout.
   Self-contained: no external fonts or assets. */

:root {
  --bg: #08090c;
  --bg-2: #0b0d11;
  --panel: #12151b;
  --panel-2: #171b22;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f1f3f7;
  --muted: #9aa1ac;
  --faint: #6d7480;
  --lime: #c9f26e;
  --lime-2: #dcff92;
  --lime-dim: #8fb43e;
  --blue: #7ea8ff;
  --violet: #b9a2ff;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.02);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(201, 242, 110, 0.13), transparent 62%),
    radial-gradient(760px 460px at 88% 18%, rgba(126, 168, 255, 0.06), transparent 60%),
    radial-gradient(600px 420px at 8% 46%, rgba(185, 162, 255, 0.04), transparent 60%),
    var(--bg);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

::selection { background: rgba(201, 242, 110, 0.28); color: #fff; }

a { color: inherit; }

img { max-width: 100%; }

code, pre, .mono { font-family: var(--mono); }

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--lime);
  color: #0b0e11;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(8, 9, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark { display: inline-flex; width: 26px; height: 26px; }
.brand-mark svg { width: 26px; height: 26px; display: block; }
.brand-name { font-size: 17px; }

.brand-ver {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  color: var(--lime);
  border: 1px solid rgba(201, 242, 110, 0.28);
  background: rgba(201, 242, 110, 0.06);
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 6px;
}

.nav-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

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

.lang {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}

.lang-btn {
  height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn[aria-pressed="true"] {
  background: rgba(201, 242, 110, 0.14);
  color: var(--lime);
}

.menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  place-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--lime);
  color: #0b0e11;
  border-color: rgba(201, 242, 110, 0.6);
  box-shadow: 0 6px 22px rgba(201, 242, 110, 0.18);
}
.btn-primary:hover { background: var(--lime-2); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }

.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; }

.btn-soon {
  cursor: default;
  opacity: 0.92;
}
.btn-soon:hover {
  transform: none;
  background: var(--lime);
}
.btn-lg { height: 48px; padding: 0 22px; font-size: 14px; border-radius: 12px; }

.btn .icon { width: 16px; height: 16px; }

/* ---------- Hero ---------- */

.mobile-break { display: none; }

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 5px 11px;
  border: 1px solid rgba(201, 242, 110, 0.32);
  border-radius: 999px;
  background: rgba(201, 242, 110, 0.08);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.launch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(201, 242, 110, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero {
  padding: 92px 24px 48px;
  text-align: center;
}

.hero-inner { max-width: 1180px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--lime);
  opacity: 0.7;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 6.4vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero h1 .accent {
  color: var(--lime);
  text-shadow: 0 0 40px rgba(201, 242, 110, 0.22);
}

.lede {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 16px;
}

.hero-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* Terminal */

.term {
  max-width: 620px;
  margin: 30px auto 0;
  text-align: left;
  background: #0c0f13;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.term-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}
.term-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px rgba(201, 242, 110, 0.6);
}
.term-head .copy-btn { margin-left: auto; }

.term-body {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  font-family: var(--mono);
  font-size: 13px;
  color: #dfe3ea;
  overflow-x: auto;
}
.term-body .prompt { color: var(--lime); flex: none; }
.term-body code { white-space: nowrap; }

.copy-btn {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.copy-btn .icon { width: 14px; height: 14px; }
.copy-btn:hover { color: var(--lime); background: rgba(201, 242, 110, 0.08); border-color: rgba(201, 242, 110, 0.2); }
.copy-btn.copied { color: var(--lime); background: rgba(201, 242, 110, 0.14); }

/* Hero visual */

.hero-visual {
  position: relative;
  max-width: 1040px;
  margin: 54px auto 0;
  padding: 0 6px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -46px 20px 10px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(201, 242, 110, 0.2), transparent 66%);
  filter: blur(38px);
}

.browser {
  background: #0e1014;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 13px;
  background: #14171d;
  border-bottom: 1px solid var(--line);
}

.dots { display: inline-flex; gap: 5px; flex: none; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: #333842; }
.dots i:first-child { background: #454b56; }

.browser-url {
  flex: 1;
  min-width: 0;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a0c10;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-tag {
  flex: none;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
}

.browser-body img {
  display: block;
  width: 100%;
  height: auto;
}

.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: rgba(13, 16, 21, 0.92);
  color: var(--text);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: float 7s ease-in-out infinite;
  z-index: 2;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px rgba(201, 242, 110, 0.7);
}
.chip-arrow { color: var(--lime); font-size: 12px; }
.chip-lock {
  color: var(--lime);
  font-size: 9px;
  border: 1px solid rgba(201, 242, 110, 0.3);
  border-radius: 4px;
  padding: 1px 4px;
}

.chip-1 { top: -44px; right: 24px; animation-delay: 0.2s; }
.chip-2 { bottom: -16px; left: 24px; animation-delay: 1.4s; }
.chip-3 { bottom: -16px; right: 24px; animation-delay: 2.6s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Metrics strip */

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1040px;
  margin: 46px auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 20px 14px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: 0; }
.metric b {
  display: block;
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--lime);
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 6px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Sections ---------- */

.section {
  padding: 88px 24px;
  border-top: 1px solid var(--line);
}

.section-inner { max-width: 1180px; margin: 0 auto; }

.section-head {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.section-head p:not(.eyebrow) {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* Grid children must be allowed to shrink below their content width. */
.security-grid > *, .arch-grid > *, .gallery > *, .cards > *, .platforms > *,
.step, .step-body, .security-copy, .security-shot, .code-block, .showcase, .tabs { min-width: 0; }

/* Cards */

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.card:hover {
  border-color: rgba(201, 242, 110, 0.32);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(201, 242, 110, 0.06), rgba(255, 255, 255, 0.012));
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(201, 242, 110, 0.2);
  background: rgba(201, 242, 110, 0.09);
  color: var(--lime);
}

.card h3 {
  margin: 15px 0 8px;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Showcase */

.showcase { margin-top: 6px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.tab {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab[aria-selected="true"] {
  color: var(--lime);
  border-color: rgba(201, 242, 110, 0.45);
  background: rgba(201, 242, 110, 0.11);
}

.showcase-browser { max-width: 1000px; margin: 0 auto; }

.showcase-caption {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 1000px;
  margin: 18px auto 0;
  padding: 0 2px;
}
.showcase-caption h3 {
  flex: none;
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--lime);
  letter-spacing: -0.01em;
}
.showcase-caption p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.shot-note {
  max-width: 1000px;
  margin: 14px auto 0;
  padding: 0 2px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* Architecture */

.arch-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.diagram, .protocol {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c0e12;
  padding: 20px;
}

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

.diagram text { font-family: var(--sans); }
.node-title { fill: var(--text); font-size: 15px; font-weight: 600; }
.node-title.small { font-size: 13px; }
.node-sub { fill: var(--muted); font-size: 11px; }
.mono-text { fill: var(--lime); font-size: 10px; font-family: var(--mono); letter-spacing: 0.02em; }
.pill-text { fill: var(--lime); font-size: 9px; font-family: var(--mono); }
.label-text { fill: var(--lime-dim); font-size: 9px; font-family: var(--mono); }

.flow {
  fill: none;
  stroke: var(--lime);
  stroke-width: 1.4;
  stroke-dasharray: 5 5;
  opacity: 0.7;
  animation: dash 3.2s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -40; } }

.protocol h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 650;
}

.frame {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  letter-spacing: 0.02em;
}

.proto-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12px;
}
.proto-table th {
  padding: 7px 6px;
  text-align: left;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
}
.proto-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.proto-table tr:last-child td { border-bottom: 0; }
.proto-table td:first-child { color: var(--lime); }
.proto-table td:nth-child(2) { color: var(--text); font-weight: 600; }
.proto-table td:nth-child(3) { color: var(--muted); font-family: var(--sans); font-size: 11.5px; }

.proto-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* Security */

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bullets li {
  position: relative;
  margin: 0 0 11px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 12px;
}

.code-block {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0c0e12;
  overflow: hidden;
}

.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.code-block pre {
  margin: 0;
  padding: 13px 15px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: #d8dde4;
}

.fine {
  margin: 16px 0 0;
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
}
.fine.center { text-align: center; }

.security-shot .browser { max-width: 560px; margin: 0 auto; }

.security-shot-wide { margin-top: 26px; }
.security-shot-wide .browser { max-width: 1000px; margin: 0 auto; }

/* Gallery */

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.shot-card {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.shot-card .browser { max-width: 560px; margin: 0 auto; }

.shot-card figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--faint);
  text-align: center;
}

.phone-card { display: flex; flex-direction: column; align-items: center; }

.phone {
  width: 240px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 30px;
  background: #0b0d11;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}
.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.phone-screen img { display: block; width: 100%; height: auto; }

/* Steps */

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 16px;
  align-items: start;
}

.step-no {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(201, 242, 110, 0.35);
  background: rgba(201, 242, 110, 0.1);
  color: var(--lime);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}

.step-body h3 {
  margin: 4px 0 6px;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.step-body p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}
.step-body .code-block { margin-top: 10px; }
.step-body .code-block + .code-block { margin-top: 8px; }

/* Platforms */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.platform {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.platform h3 { margin: 15px 0 8px; font-size: 15px; font-weight: 650; }
.platform p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.platform code { color: var(--lime); font-size: 12px; }

.download-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* FAQ */

.faq { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }

.faq details {
  padding: 14px 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease;
}
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: rgba(201, 242, 110, 0.28); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--lime);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* Footer */

.footer {
  padding: 54px 24px 28px;
  border-top: 1px solid var(--line);
  background: #060709;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  max-width: 1180px;
  margin: 0 auto;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 320px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.footer-mono {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
}

.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.footer-col a {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-col .footer-version {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--faint);
}

.footer-bottom {
  max-width: 1180px;
  margin: 34px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-bottom p {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--faint);
}

/* Reveal */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translate(-50%, 12px);
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--lime);
  color: #0b0e11;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Focus */

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

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .chip { display: none; }
}

@media (max-width: 1000px) {
  .cards.four { grid-template-columns: repeat(2, 1fr); }
  .arch-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .security-shot .browser { max-width: 640px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-btn { display: grid; }
  .nav.open .nav-links {
    display: flex;
    align-items: stretch;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px 24px 14px;
    background: #0b0d11;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  .nav.open .nav-links a {
    padding: 11px 0;
    text-align: left;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .nav.open .nav-links a:last-child { border-bottom: 0; }

  .hero { padding: 74px 20px 40px; }
  .hero h1 { font-size: clamp(36px, 8.4vw, 56px); }
  .lede { font-size: 16px; }
  .term { max-width: 560px; }

  .section { padding: 72px 20px; }
  .cards.three { grid-template-columns: repeat(2, 1fr); }
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .tab { flex: none; }
  .showcase-caption { flex-direction: column; gap: 4px; }
}

@media (max-width: 760px) {
  .nav-inner { padding: 0 18px; gap: 14px; }
  .hero { padding: 62px 18px 34px; }
  .mobile-break { display: inline; }
  .hero h1 { font-size: clamp(34px, 10vw, 48px); }
  .lede { font-size: 15.5px; }
  .cta-row { gap: 10px; }
  .btn-lg { height: 44px; padding: 0 18px; font-size: 13px; }
  .hero-meta { font-size: 9.5px; line-height: 1.8; }
  .term-body { font-size: 12px; }

  .strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3) { border-top: 1px solid var(--line); }
  .metric:nth-child(4) { border-top: 1px solid var(--line); border-right: 0; }

  .section { padding: 62px 18px; }
  .section-head h2 { font-size: clamp(26px, 7vw, 34px); }
  .section-head p:not(.eyebrow) { font-size: 14.5px; }

  .cards.three, .cards.four { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .phone { width: 220px; }

  .showcase-browser { max-width: 100%; }
  .browser-url { font-size: 9px; }
  .browser-tag { display: none; }

  .security-shot-wide .browser { max-width: 100%; }

  .download-actions { flex-direction: column; align-items: stretch; }
  .download-actions .btn { justify-content: center; }

  .footer { padding: 42px 18px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .nav-inner { height: 58px; }
  .nav.open .nav-links { top: 58px; }
  .brand-ver { display: none; }
  .nav-download { display: none; }
  .hero h1 { font-size: clamp(30px, 10.5vw, 40px); }
  html[lang="zh-CN"] .hero h1 { font-size: clamp(24px, 7.6vw, 32px); letter-spacing: -0.02em; }
  .eyebrow { font-size: 9.5px; letter-spacing: 0.16em; }
  .term { margin-top: 24px; }
  .term-body { font-size: 11px; }
  .strip { margin-top: 34px; }
  .metric b { font-size: 24px; }
  .metric span { font-size: 9.5px; }
  .step { grid-template-columns: 30px 1fr; gap: 12px; }
  .step-no { width: 30px; height: 30px; font-size: 13px; }
  .code-block pre { font-size: 11px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@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;
  }
  .js .reveal { opacity: 1; transform: none; }
}
