:root {
  --bg: #0B0B0D;
  --bg-raised: #121215;
  --surface: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #F4F2EE;
  --amber: #F2C230;
  --ice: #38BDF8;
  --text-muted: #8b919c;
  --text-faint: #5b616b;
  --accent: #38BDF8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --radius: 18px;
  --max: 1080px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: 0.5;
}

.bg-glow {
  position: fixed;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 600px;
  transform: translateX(-50%);
  z-index: -1;
  background:
    radial-gradient(closest-side at 35% 55%, rgba(242, 194, 48, 0.14), transparent),
    radial-gradient(closest-side at 65% 55%, rgba(56, 189, 248, 0.16), transparent);
  filter: blur(20px);
  pointer-events: none;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 28px;
  height: 28px;
}

.logo b { font-weight: 700; }
.logo span { color: var(--text-muted); letter-spacing: -0.02em; }
.logo b { color: var(--text); }

.hero-mark {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.15));
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 120px 0 96px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--surface);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.hero h1 {
  margin: 28px auto 20px;
  max-width: 820px;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 650;
  background: linear-gradient(180deg, #F4F2EE 30%, #8b919c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 18px;
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--text); color: var(--bg); }

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.28); }

/* Sections */
section { padding: 72px 0; }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
  margin-bottom: 40px;
  max-width: 640px;
}

/* Product card */
.product {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}

.product-body {
  padding: 44px;
  display: flex;
  flex-direction: column;
}

.product-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.product-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.product-head h3 { font-size: 22px; letter-spacing: -0.02em; font-weight: 600; }

.product-head small { color: var(--text-muted); font-size: 14px; }

.product-body > p { color: var(--text-muted); margin-bottom: 24px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  font-size: 13px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.product-links {
  margin-top: auto;
  display: flex;
  gap: 20px;
  font-size: 14px;
  flex-wrap: wrap;
}

.product-links a { color: var(--text-muted); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.product-links a:hover { color: var(--text); }

.product + .product { margin-top: 24px; }

.product-note { color: var(--text-muted); opacity: 0.8; }

.product-shot {
  position: relative;
  background: radial-gradient(circle at 70% 30%, rgba(56, 189, 248, 0.2), transparent 60%), var(--bg-raised);
  border-left: 1px solid var(--border);
  padding: 40px 0 0 40px;
  display: flex;
  align-items: flex-end;
}

.product-shot img {
  width: 100%;
  display: block;
  border-top-left-radius: 12px;
  border: 1px solid var(--border-strong);
  border-right: 0;
  border-bottom: 0;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

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

.card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.card .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.card h4 { font-size: 17px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }

.card p { color: var(--text-muted); font-size: 15px; }

/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 14px;
  color: var(--text-faint);
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

footer nav { display: flex; gap: 20px; }
footer a:hover { color: var(--text); }

/* Legal page */
.legal {
  padding: 80px 0 96px;
}

.legal .wrap { max-width: 760px; }

.legal-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-head img { width: 56px; height: 56px; border-radius: 14px; }

.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-weight: 650;
}

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 40px;
}

.lang-switch button {
  font: inherit;
  font-size: 14px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 7px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.summary {
  padding: 22px 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: var(--accent-soft);
  border-radius: 14px;
  margin-bottom: 40px;
  font-size: 17px;
}

.legal h2 {
  font-size: 20px;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 40px 0 12px;
}

.legal p, .legal li { color: #c3c7ce; }
.legal p + p { margin-top: 12px; }

.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal li::marker { color: var(--text-faint); }

.legal code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.legal a { color: var(--accent); border-bottom: 1px solid rgba(56, 189, 248, 0.4); }

.legal strong { color: var(--text); font-weight: 600; }

[hidden] { display: none !important; }

/* Responsive */
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-shot { border-left: 0; border-top: 1px solid var(--border); }
  .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-links { gap: 18px; }
  .nav-links .hide-sm { display: none; }
  .hero { padding: 80px 0 64px; }
  .product-body { padding: 28px; }
  .product-shot { padding: 24px 0 0 24px; }
}

/* Scroll story */
.story {
  position: relative;
  height: 420vh;
  padding: 0;
}

.story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.story-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.story-caption {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  width: min(560px, calc(100% - 32px));
  transform: translate(-50%, 16px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
}

.story-caption.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

.story-caption .section-label { display: block; margin-bottom: 10px; }

.story-caption p {
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.story-progress {
  position: absolute;
  right: 24px;
  top: 50%;
  width: 2px;
  height: 120px;
  transform: translateY(-50%);
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.story-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(var(--amber), var(--ice));
  transform-origin: top;
  transform: scaleY(0);
}

@media (prefers-reduced-motion: reduce) {
  .story { height: 100vh; }
  .story-caption { transition: none; }
}
