:root {
  --void: #0b0907;
  --void-deep: #070605;
  --cream: #f4eee2;
  --cream-dim: #c9b896;
  --muted: #8a7d68;
  --line: rgba(244, 238, 226, 0.1);
  --line-strong: rgba(244, 238, 226, 0.18);
  --accent: #e4b25a;
  --accent-deep: #c48a2e;
  --glass: rgba(18, 14, 10, 0.58);
  --glass-strong: rgba(14, 11, 8, 0.78);
  --focus: #e4b25a;
  --safe: env(safe-area-inset-bottom, 0px);
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-sans: "Satoshi", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--void-deep);
  color: var(--cream);
}
body {
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--cream); text-decoration: none; }
a:hover { color: #fff; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--accent);
  color: #160f08;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 1rem; }
.grain, .aurora {
  pointer-events: none;
  position: fixed;
  inset: 0;
}
.aurora {
  background:
    radial-gradient(900px 500px at 18% -10%, rgba(228, 178, 90, 0.16), transparent 55%),
    radial-gradient(700px 420px at 92% 8%, rgba(120, 70, 20, 0.18), transparent 50%);
  z-index: 0;
}
.grain {
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
.top, main, footer { position: relative; z-index: 2; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.1rem, 3vw, 2.4rem);
}
.brand-island {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-right: 0.9rem;
  border-right: 1px solid var(--line-strong);
}
.x-follow {
  display: inline-flex;
  align-items: center;
  height: 28px;
  max-height: 28px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  overflow: hidden;
  color: var(--cream);
}
.x-follow-mark {
  width: 24px; height: 24px; max-width: 24px; max-height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
}
.x-follow-mark svg { width: 11px; height: 11px; max-width: 11px; max-height: 11px; }
.x-follow-handle { display: none; font-size: 0.62rem; padding-right: 0.5rem; }
@media (min-width: 1536px) {
  .x-follow-handle { display: inline; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.82rem;
  color: var(--cream-dim);
}
nav a { color: var(--cream-dim); }
nav a:hover { color: var(--cream); }

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
  padding: clamp(1.2rem, 4vw, 3rem) clamp(1.1rem, 3vw, 2.4rem) 2rem;
  align-items: center;
}
@media (min-width: 980px) {
  .hero { grid-template-columns: 0.92fr 1.08fr; min-height: 78vh; }
}
.kicker {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.8rem;
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 1.4rem + 5vw, 5.4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.lede {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.28rem);
  color: var(--cream-dim);
  max-width: 36rem;
}
.sub { color: var(--muted); max-width: 34rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.4rem 0 0.6rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
}
.btn-primary { background: var(--accent); color: #160f08; }
.btn-primary:hover { color: #160f08; filter: brightness(1.06); }
.btn-ghost { border-color: var(--line-strong); color: var(--cream); }
.legal { font-size: 0.78rem; color: var(--muted); }
.hero-frame {
  margin: 0;
  border-radius: 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.hero-frame img { width: 100%; height: auto; object-fit: cover; }

section { padding: 3.2rem clamp(1.1rem, 3vw, 2.4rem); }
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem);
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
}
.section-lead { color: var(--cream-dim); max-width: 40rem; }

.hive {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
  margin: 1.2rem auto 0;
  max-width: 58rem;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 0.75rem 0.5rem 0.85rem;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(16px);
  border-radius: 0.9rem;
  text-align: center;
  color: var(--cream);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease);
}
.cell .mark {
  width: 52px; height: 52px; border-radius: 12px; object-fit: cover;
  margin-bottom: 0.35rem;
  background: #050403;
}
@media (max-width: 1100px) {
  .hive { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hive { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
  .cell .mark { width: 64px; height: 64px; }
}
.cell.lead {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, var(--glass-strong));
}
.cell:hover, .cell:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent);
  z-index: 3;
}
.cell .role {
  display: block;
  font-family: var(--font-display);
  font-size: 0.84rem;
  margin-bottom: 0.2rem;
}
.cell .job { font-size: 0.68rem; color: var(--cream-dim); }
.cell .use {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 8px);
  transform: translateX(-50%) translateY(6px);
  width: min(240px, 70vw);
  padding: 0.7rem 0.8rem;
  border-radius: 0.7rem;
  background: #16110c;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  clip-path: none;
  text-align: left;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}
.cell:hover .use, .cell:focus-visible .use {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (hover: none) {
  .cell .use { position: static; transform: none; width: auto; opacity: 1; margin-top: 0.5rem; background: transparent; border: 0; padding: 0; box-shadow: none; }
}

.loop {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
  max-width: 46rem;
}
.loop li {
  list-style: none;
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.7rem;
  color: var(--cream-dim);
}
.loop { padding: 0; }
.num {
  font-family: var(--font-display);
  color: var(--accent);
}

.split {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
@media (min-width: 800px) { .split { grid-template-columns: 1fr 1fr; } }
.card {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--glass);
}
.card h3 { margin: 0 0 0.4rem; font-family: var(--font-display); font-size: 1.15rem; }
.card p, .card pre { margin: 0; color: var(--cream-dim); font-size: 0.92rem; }
pre {
  white-space: pre-wrap;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.78rem;
  color: var(--cream);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--cream-dim); margin: 0.5rem 0 0; }

footer {
  padding: 2rem clamp(1.1rem, 3vw, 2.4rem) calc(2rem + var(--safe));
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cell { transition: none; }
  .cell:hover { transform: none; }
}
