/* ==========================================================================
   okxapk — design tokens
   Black-and-white, high-contrast, Swiss-minimal. One lime accent for primary actions.
   ========================================================================== */
:root {
  --bg: #000000;
  --surface: #0b0b0b;
  --surface-2: #141414;
  --surface-3: #1c1c1c;
  --border: #262626;
  --border-strong: #3a3a3a;
  --text: #ffffff;
  --text-muted: #a3a3a3; /* 8.4:1 on black */
  --text-dim: #8a8a8a; /* 6.1:1 on black */
  --accent: #c6f432;
  --on-accent: #000000;
  --warn: #ffb547;

  --font-display: 'Space Grotesk', 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-body: 'Inter', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 68px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; }

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

.icon { width: 20px; height: 20px; flex: none; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 12px; height: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.narrow { max-width: 720px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Typography
   ========================================================================== */
.display,
.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
.display { font-size: clamp(2.6rem, 6.4vw, 5rem); }
.display .line { display: block; }
.display .line:last-child { color: var(--text-muted); }
.display-md { font-size: clamp(2rem, 4.2vw, 3.25rem); line-height: 1.08; }

:lang(ko) .display,
:lang(ko) .display-md { letter-spacing: -0.02em; line-height: 1.18; word-break: keep-all; }
:lang(ko) p { word-break: keep-all; }

.lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  max-width: 38em;
}

.kicker,
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 0.875rem;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(198, 244, 50, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 244, 50, 0.55); }
  70%, 100% { box-shadow: 0 0 0 10px rgba(198, 244, 50, 0); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
    border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.875rem; gap: 8px; }
.btn-lg { min-height: 60px; padding: 0 30px; font-size: 1.0625rem; font-family: var(--font-display); }
.btn-lg .icon { width: 22px; height: 22px; }
.btn-block { width: 100%; }

.btn-light { background: var(--text); color: #000; }
.btn-light:hover { background: #e6e6e6; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: #d6ff52; }
.btn-dark { background: var(--surface-3); color: var(--text); }
.btn-dark:hover { background: #262626; }
.btn-outline { border-color: var(--text); color: var(--text); background: transparent; }
.btn-outline:hover { background: var(--text); color: #000; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--accent);
  min-height: 44px;
}
.text-link .icon { transition: transform var(--dur) var(--ease-out); }
.text-link:hover .icon { transform: translate(2px, -2px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed-position mobile menu inside the header box. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
body.nav-open .site-header::before { background: var(--bg); }
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.logo-mark { width: 32px; height: 32px; }
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.04em;
}

.nav { flex: 1; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: background-color var(--dur-fast) ease;
}
.nav-list a:hover { background: var(--surface-2); }
.nav-mobile-cta { display: none; }

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

/* Language switcher */
.lang { position: relative; }
.lang summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color var(--dur-fast) ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover,
.lang[open] summary { background: var(--surface-2); }
.lang[open] summary .icon-sm { transform: rotate(180deg); }
.lang summary .icon-sm { transition: transform var(--dur) var(--ease-out); }
.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  padding: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  animation: pop var(--dur) var(--ease-out);
}
.lang-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.lang-list a:hover { background: var(--surface-3); }
.lang-list a[aria-current] { color: var(--accent); }
@keyframes pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.menu-close { display: none; }
.menu-toggle[aria-expanded='true'] .menu-open { display: none; }
.menu-toggle[aria-expanded='true'] .menu-close { display: inline-flex; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(40px, 7vw, 96px); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.hero-visual { position: relative; display: flex; justify-content: center; }
.glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(closest-side, rgba(198, 244, 50, 0.16), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

/* Phone mockup (pure CSS, no third-party imagery) */
.phone {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 9 / 18.5;
  border: 1px solid var(--border-strong);
  border-radius: 48px;
  background: linear-gradient(180deg, #0c0c0c, #050505);
  padding: 14px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.9), inset 0 0 0 6px #000;
}
.phone-notch {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%);
  background: #000;
  border-radius: 20px;
  border: 1px solid #1a1a1a;
}
.phone-screen {
  height: 100%;
  border-radius: 36px;
  background: #080808;
  padding: 68px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
}
.phone-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.phone-title { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.phone-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: rgba(198, 244, 50, 0.1);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}
.file-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--text);
  color: #000;
  display: grid;
  place-items: center;
  flex: none;
}
.file-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.file-name { font-size: 0.8125rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-bar { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.file-bar-fill {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.file-pct { font-size: 0.75rem; font-variant-numeric: tabular-nums; color: var(--text-muted); width: 3ch; text-align: right; }

.install-steps { display: flex; flex-direction: column; gap: 4px; }
.install-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  font-size: 0.875rem;
  color: var(--text-dim);
  border-bottom: 1px solid #141414;
  transition: color var(--dur) ease;
}
.install-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.install-step.is-active { color: var(--text); }
.install-step.is-active .install-dot { border-color: var(--accent); }
.install-step.is-done { color: var(--text); }
.install-step.is-done .install-dot { background: var(--accent); border-color: var(--accent); color: #000; }

.phone-done {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--text);
  color: #000;
  font-weight: 600;
  font-size: 0.9375rem;
  opacity: 0.25;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.phone-done.is-ready { opacity: 1; }

/* Static end state when JS is off or motion is reduced */
.phone:not(.is-animated) .file-bar-fill { transform: none; }
.phone:not(.is-animated) .install-dot { background: var(--accent); border-color: var(--accent); color: #000; }
.phone:not(.is-animated) .install-step { color: var(--text); }
.phone:not(.is-animated) .phone-done { opacity: 1; }

/* Stats */
.stats {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
}
.stat-label { color: var(--text-muted); font-size: 0.9375rem; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section-alt { background: var(--surface); border-block: 1px solid #111; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.step:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.step-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 40px;
}
.step-title { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }
.step .text-link { margin-top: auto; padding-top: 18px; }

.ios-note {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
}
.ios-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  flex: none;
}
.ios-note h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.ios-note p { color: var(--text-muted); font-size: 0.9375rem; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--bg);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background-color var(--dur) ease;
}
.feature:hover { background: #070707; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  color: var(--accent);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-family: var(--font-display); font-size: 1.375rem; letter-spacing: -0.02em; }
.feature p { color: var(--text-muted); max-width: 32em; }

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.safety-grid .section-head { margin-bottom: 0; }
.url-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9375rem;
  color: var(--text-muted);
  max-width: 100%;
}
.url-host strong { color: var(--text); font-weight: 600; }
.url-ok { color: var(--accent); }
.checklist { display: flex; flex-direction: column; }
.checklist li {
  display: flex;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
}
.checklist li:first-child { border-top: 1px solid var(--border); }
.check-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(198, 244, 50, 0.12);
  color: var(--accent);
  flex: none;
}
.check-icon.warn { background: rgba(255, 181, 71, 0.12); color: var(--warn); }

/* Latest blog posts (filled from /blog/ by main.js) */
.section-head-row {
  max-width: none;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.section-head-row > div { display: flex; flex-direction: column; gap: 18px; }
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.post-card a {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.post-card a:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.post-date { font-size: 0.8125rem; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.post-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.post-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-card .icon { margin-top: auto; color: var(--accent); }
.post-card-empty { grid-column: 1 / -1; }
.post-card-empty a { flex-direction: row; align-items: center; justify-content: space-between; }
.post-card-empty .icon { margin-top: 0; }
.posts-note { margin-top: 16px; color: var(--text-dim); font-size: 0.875rem; }

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--border); }
.faq { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 18px 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform var(--dur) var(--ease-out), background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.faq summary:hover .faq-toggle { background: var(--surface-3); }
.faq[open] .faq-toggle { transform: rotate(45deg); background: var(--text); color: #000; border-color: var(--text); }
.faq p { color: var(--text-muted); padding: 0 56px 24px 0; max-width: 46em; }

/* CTA band */
.cta-band { padding-block: var(--section-y); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(198, 244, 50, 0.14), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
}
.cta-inner > div:first-child { display: flex; flex-direction: column; gap: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding-block: 64px 40px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { margin-top: 14px; color: var(--text-muted); max-width: 26em; font-size: 0.9375rem; }
.footer-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--dur-fast) ease;
}
.footer-col a:hover { color: var(--text); }
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-dim);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* Floating download button (mobile) */
.fab {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  transition: transform var(--dur) var(--ease-out);
}
.fab.is-visible { transform: none; }

/* 404 */
.not-found { padding-block: 120px; }
.not-found .container { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }

/* ==========================================================================
   Motion
   ========================================================================== */
.hero .reveal { animation: rise 800ms var(--ease-out) both; }
.hero .hero-copy .reveal:nth-child(2) { animation-delay: 60ms; }
.hero .hero-copy .reveal:nth-child(3) { animation-delay: 120ms; }
.hero .hero-copy .reveal:nth-child(4) { animation-delay: 180ms; }
.hero .hero-copy .reveal:nth-child(5) { animation-delay: 240ms; }
.hero .hero-visual.reveal { animation-delay: 200ms; animation-duration: 1000ms; }
.hero .stat.reveal { animation-delay: 320ms; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.js main > section:not(.hero) .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js main > section:not(.hero) .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js main > section:not(.hero) .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .posts { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .hide-sm { display: none; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    padding: 24px var(--gutter) 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
    overflow-y: auto;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), visibility 0s;
  }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a {
    width: 100%;
    min-height: 64px;
    padding: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .nav-list a:hover { background: transparent; color: var(--accent); }
  .nav-mobile-cta { display: flex; flex-direction: column; gap: 12px; }
  .nav-mobile-cta .btn { min-height: 56px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .phone { width: min(320px, 86vw); }
  .safety-grid,
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .fab { display: inline-flex; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .logo-word { font-size: 1.25rem; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 22px 16px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .steps { grid-template-columns: 1fr; }
  .step-num { margin-bottom: 20px; }
  .features { grid-template-columns: 1fr; }
  .posts { grid-template-columns: 1fr; }
  .faq p { padding-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-inner { border-radius: var(--radius-lg); }
}
