/* ============ Usage Ledger — design system ============ */
:root {
  --bg: #05070c;
  --bg-2: #080b12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --text: #e8ecf4;
  --text-dim: #9aa3b5;
  --text-faint: #626b7e;
  --accent: #34d399;
  --accent-2: #22d3ee;
  --accent-ink: #052e1f;
  --danger: #fb7185;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", var(--font-body);
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 16px;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(52, 211, 153, 0.28); }

kbd {
  font-family: var(--font-mono);
  font-size: 0.78em;
  padding: 0.1em 0.45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel-strong);
  color: var(--text-dim);
}

/* ============ Hero canvas backdrop ============ */
#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}
/* fade canvas out under content sections */
.page-shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(5, 7, 12, 0.93);
  opacity: 0;
}

main { position: relative; z-index: 2; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  height: var(--nav-h);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.mark-bg { fill: rgba(52, 211, 153, 0.08); stroke: rgba(52, 211, 153, 0.55); stroke-width: 1.5; }
.mark-line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark-dot { fill: var(--accent-2); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; }
.nav-toggle { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  background: #4ce0a7;
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--panel-strong); border-color: rgba(255, 255, 255, 0.18); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ============ Hero ============ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  padding: calc(var(--nav-h) + 48px) 24px 96px;
}
.hero-inner { max-width: 1160px; margin: 0 auto; width: 100%; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.2vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  max-width: 12ch;
}
.grad-text { color: var(--accent); }
.hero-sub {
  max-width: 54ch;
  margin-top: 26px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
}
/* scroll-driven veil over the 3D canvas once the hero is passed */
.page-shade { transition: none; }
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.85), rgba(5, 7, 12, 0));
}
.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero, .hero-inner { pointer-events: none; }
.hero a, .hero button, .hero input { pointer-events: auto; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(5, 7, 12, 0.88) 0%,
    rgba(5, 7, 12, 0.55) 34%,
    rgba(5, 7, 12, 0) 62%);
}
.hero-inner { position: relative; z-index: 1; }
.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, var(--text-faint), transparent);
  animation: drip 2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(14px); opacity: 0; }
}

/* ============ Ticker ============ */
.ticker {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 7, 12, 0.55);
  backdrop-filter: blur(8px);
  overflow: hidden;
  padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.ticker-track span {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ============ Sections ============ */
.section {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 110px 24px;
}
.section-alt { max-width: none; }
.section-alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2, .cta-inner h2, .keys-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.section-sub { margin-top: 18px; color: var(--text-dim); font-size: 17px; }
.section-sub em { color: var(--text); font-style: normal; border-bottom: 1px solid rgba(52, 211, 153, 0.5); }

/* ============ Features ============ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(10px);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(255, 255, 255, 0.05);
}
.feature-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.09);
  border: 1px solid rgba(52, 211, 153, 0.28);
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.feature-card p { color: var(--text-dim); font-size: 14.5px; }

/* ============ App showcase mock ============ */
.app-frame {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #0a0e17, #070a10);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.app-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.chrome-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3140; }
.chrome-dot:nth-child(1) { background: #ff5f57; }
.chrome-dot:nth-child(2) { background: #febc2e; }
.chrome-dot:nth-child(3) { background: #28c840; }
.chrome-title {
  margin-left: 12px;
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
}
.chrome-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  padding: 3px 10px;
  border-radius: 99px;
}
.app-body { display: grid; grid-template-columns: 280px 1fr; min-height: 430px; }
.app-sidebar {
  border-right: 1px solid var(--line-soft);
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.015);
}
.app-side-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 6px 8px 10px;
}
.acct {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  margin-bottom: 3px;
  border: 1px solid transparent;
}
.acct.active { background: var(--panel-strong); border-color: var(--line-soft); }
.acct-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--c); flex: none; }
.acct strong { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; }
.acct small { font-size: 11px; color: var(--text-faint); }
.acct em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-dim);
  background: var(--panel-strong);
  border: 1px solid var(--line-soft);
  padding: 2px 6px;
  border-radius: 6px;
}
.side-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 7px 8px;
}
.side-stat small { font-size: 11.5px; color: var(--text-faint); }
.side-stat strong { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; color: var(--accent); }
.app-main { padding: 20px 22px; display: flex; flex-direction: column; gap: 20px; }
.app-chart {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.015);
  flex: 1;
}
.app-chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.app-chart-head strong { font-size: 13.5px; font-weight: 600; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 150px;
}
.bars i {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.85), rgba(34, 211, 238, 0.25));
  position: relative;
  min-width: 0;
  animation: bar-grow 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.bars i:nth-child(odd) { animation-delay: 0.06s; }
.bars i:nth-child(3n) { animation-delay: 0.12s; }
.bars i.hot { background: linear-gradient(180deg, #fb7185, rgba(251, 113, 133, 0.2)); }
.bars i.today { outline: 1px dashed rgba(255, 255, 255, 0.25); outline-offset: 2px; }
.bars b {
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--text-faint);
  opacity: 0;
  transition: opacity 0.2s;
}
.bars i:hover b { opacity: 1; }
@keyframes bar-grow { from { height: 0; } }
.app-keys-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.app-keys-head strong { font-size: 13.5px; font-weight: 600; }
.kbd-hint { display: inline-flex; gap: 4px; align-items: center; color: var(--text-faint); font-size: 11.5px; }
.key-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  margin-bottom: 7px;
  background: rgba(255, 255, 255, 0.015);
}
.key-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.key-row code, .palette-item code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-chip {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.copy-chip:hover { color: var(--accent); border-color: rgba(52, 211, 153, 0.4); }

.how-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 64px;
}
.how-step {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.how-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.how-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 10px 0 8px;
  letter-spacing: -0.01em;
}
.how-step p { color: var(--text-dim); font-size: 14.5px; }

/* ============ Keys split ============ */
.keys-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.keys-copy h2 { margin-bottom: 20px; }
.keys-copy > p { color: var(--text-dim); font-size: 16.5px; }
.keys-list { list-style: none; margin-top: 26px; display: grid; gap: 12px; }
.keys-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-dim);
  font-size: 15px;
}
.keys-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M4 8.5l2.6 2.6L12 5.5" stroke="%2334d399" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/11px no-repeat;
  border: 1px solid rgba(52, 211, 153, 0.35);
}
.keys-note { margin-top: 26px; font-size: 13.5px; color: var(--text-faint); }

.palette {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}
.palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-faint);
}
.palette-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
}
.palette-search input::placeholder { color: var(--text-faint); }
.palette-esc {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 6px;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background 0.15s;
}
.palette-item:hover, .palette-item.selected { background: rgba(52, 211, 153, 0.07); }
.pi-provider { font-size: 11.5px; color: var(--text-faint); width: 96px; flex: none; }
.palette-item code { margin-left: auto; }
.palette-empty { padding: 22px 18px; color: var(--text-faint); font-size: 14px; }
.palette-foot {
  display: flex;
  gap: 18px;
  padding: 11px 18px;
  font-size: 11px;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.02);
}

/* ============ Download ============ */
.download-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}
.download-card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.dl-meta { margin: 8px 0 22px; font-size: 13.5px; color: var(--text-faint); }
.download-card ul { list-style: none; display: grid; gap: 11px; }
.download-card li { position: relative; padding-left: 26px; font-size: 14.5px; color: var(--text-dim); }
.download-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 3.5px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.12) url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M4 8.5l2.6 2.6L12 5.5" stroke="%2334d399" stroke-width="1.8" fill="none" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center/10px no-repeat;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.dl-actions { display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.dl-note { font-size: 12.5px; color: var(--text-faint); text-align: center; }

/* ============ FAQ ============ */
.faq-list { max-width: 780px; }
.faq-list details {
  border-bottom: 1px solid var(--line-soft);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-x {
  position: relative;
  flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.faq-x::before, .faq-x::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.6px;
  background: var(--text-dim);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.faq-x::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-x::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p {
  padding: 0 44px 24px 4px;
  color: var(--text-dim);
  font-size: 15px;
  max-width: 68ch;
}

/* ============ CTA band ============ */
.cta-band {
  position: relative;
  padding: 140px 24px;
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 300px at 50% 110%, rgba(52, 211, 153, 0.08), transparent 70%),
    radial-gradient(700px 340px at 50% -20%, rgba(34, 211, 238, 0.05), transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.cta-inner h2 { margin-bottom: 18px; }
.cta-inner p { color: var(--text-dim); font-size: 17px; margin-bottom: 36px; }
.cta-inner .hero-actions { justify-content: center; }

/* ============ Footer ============ */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}
.footer-note { color: var(--text-faint); font-size: 13.5px; }
.footer-links { margin-left: auto; display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); font-size: 13.5px; text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; color: var(--text-faint); font-size: 12px; border-top: 1px solid var(--line-soft); padding-top: 20px; margin-top: 6px; }

/* ============ Toast ============ */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 16px);
  z-index: 100;
  background: rgba(10, 16, 24, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.7s cubic-bezier(0.2, 0.65, 0.25, 1);
}
.reveal.in { opacity: 1; transform: none; }
/* hero reveals staggered on load */
.hero .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero .reveal:nth-child(2) { transition-delay: 0.14s; }
.hero .reveal:nth-child(3) { transition-delay: 0.24s; }
.hero .reveal:nth-child(4) { transition-delay: 0.34s; }
.hero .reveal:nth-child(5) { transition-delay: 0.44s; }

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

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .feature-grid, .how-row { grid-template-columns: repeat(2, 1fr); }
  .download-card { grid-template-columns: 1fr; gap: 32px; }
  .keys-split { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    width: 40px; height: 40px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
  }
  .nav-toggle span { width: 16px; height: 1.6px; background: var(--text); transition: transform 0.25s; }
  .nav.open .nav-toggle span:first-child { transform: translateY(3.3px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
  .nav.open {
    background: rgba(5, 7, 12, 0.92);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line-soft);
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: inherit;
    border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 16px;
  }
  .nav.open .nav-links a { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line-soft); }
  .nav.open .nav-links a:last-child { border-bottom: none; }

  .feature-grid, .how-row { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .app-sidebar { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .section { padding: 80px 20px; }
  .hero { padding-bottom: 72px; }
  .pi-provider { display: none; }
  .footer-links { margin-left: 0; }
}
