:root {
  --ink: #0f172a;
  --slate: #1e293b;
  --sky: #38bdf8;
  --sky-dark: #0284c7;
  --gold: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --text: #334155;
  --muted: #64748b;
  --grey: #f1f5f9;
  --line: #e2e8f0;
  --white: #fff;
  --radius: 10px;
  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--sky-dark); }
h1, h2, h3 { margin: 0 0 1rem; color: var(--ink); line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { color: var(--ink); background: var(--sky); }
.btn-primary:hover { background: #7dd3fc; }
.btn-outline { color: var(--white); border-color: rgba(255, 255, 255, .4); }
.btn-outline:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-name { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.nav-list { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.nav-list a { display: block; padding: 20px 0; font-size: .93rem; font-weight: 500; color: var(--text); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.nav-list a:hover,
.nav-list a.is-active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--sky); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  cursor: pointer;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--white);
  transition: transform .3s, background .3s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  padding: clamp(60px, 9vw, 110px) 0;
  color: rgba(255, 255, 255, .85);
  background:
    radial-gradient(50% 60% at 85% 20%, rgba(56, 189, 248, .25), transparent 70%),
    linear-gradient(180deg, var(--ink), var(--slate));
}
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero-inner > * { min-width: 0; }
.label { display: inline-block; padding: 4px 12px; border: 1px solid rgba(56, 189, 248, .5); border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--sky); }
.hero h1 { margin-top: 18px; font-size: clamp(2.2rem, 4.6vw, 3.4rem); color: var(--white); letter-spacing: -.02em; }
.hero-lead { max-width: 580px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-card { margin: 0; }
.hero-card svg { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }

/* Sections */
.section { padding: clamp(56px, 7vw, 90px) 0; }
.section-grey { background: var(--grey); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-head p:last-child { margin-bottom: 0; color: var(--muted); }

.about { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.about > * { min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.split > * { min-width: 0; }

.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid > * { min-width: 0; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card p { margin: 0; font-size: .97rem; }

.flow { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.flow li { position: relative; padding: 14px 16px 14px 60px; margin-bottom: 10px; border-radius: var(--radius); background: var(--grey); counter-increment: f; }
.flow li::before {
  content: counter(f);
  position: absolute;
  left: 14px; top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--white);
  background: var(--sky-dark);
  transform: translateY(-50%);
}

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: t; }
.timeline > * { min-width: 0; }
.timeline li { position: relative; padding: 50px 18px 20px; border-radius: var(--radius); background: var(--white); border-top: 3px solid var(--sky); counter-increment: t; }
.timeline li::before { content: "Step " counter(t); position: absolute; top: 16px; left: 18px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-dark); }
.timeline p { margin: 0; font-size: .95rem; }

.checklist, .warn-list { margin: 0; padding: 0; list-style: none; }
.checklist li, .warn-list li { position: relative; padding: 12px 0 12px 36px; border-bottom: 1px solid var(--line); }
.checklist li::before, .warn-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.warn-list li::before { background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v8M12 18v.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

.callout { margin-top: 28px; padding: 28px; border-left: 5px solid var(--gold); border-radius: var(--radius); background: #fffbeb; }
.callout p { margin: 0; }

.safety { background: linear-gradient(180deg, #fff5f5, var(--white)); }

.faq { max-width: 860px; }
.faq details { margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { position: relative; padding: 18px 54px 18px 20px; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--sky-dark); }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { display: inline; margin: 0; font-size: 1.05rem; }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* Footer */
.site-footer { color: rgba(255, 255, 255, .78); background: var(--ink); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 42px; padding-bottom: 24px; }
.footer-brand { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--white); }
.footer-text { margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: inherit; text-decoration: none; }
.footer-nav a:hover { color: var(--sky); }
.disclaimer { padding-top: 18px; padding-bottom: 22px; font-size: .85rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.disclaimer p { margin: 0 0 6px; }

.back-to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--sky);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; }

/* Responsive */
@media (max-width: 1100px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .nav-list { gap: 16px; }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: block; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 6px 24px 18px; background: var(--white); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .hero-inner, .about, .split { grid-template-columns: 1fr; gap: 28px; }
  .hero-card svg { max-width: 380px; }
}

@media (max-width: 767.98px) {
  .container { padding: 0 16px; }
  .card-grid, .card-grid-3, .timeline { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .back-to-top { right: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.release-not-found main { display: block; width: 100%; max-width: 640px; min-height: 0; margin: 10vh auto; padding: 32px; box-sizing: border-box; }
.release-not-found h1 { font-size: clamp(32px, 7vw, 48px); line-height: 1.2; letter-spacing: normal; }
