:root {
  color-scheme: dark;
  --bg: oklch(18.11% 0.0185 279.44);
  --surface: oklch(22.27% 0.0275 277.64);
  --surface-raised: oklch(26% 0.038 278);
  --fg: oklch(96.84% 0.016 289.93);
  --muted: oklch(80.12% 0.0271 276.31);
  --dim: oklch(66% 0.038 276);
  --border: oklch(40.12% 0.046 276.02);
  --border-soft: color-mix(in oklch, var(--border) 58%, transparent);
  --accent: oklch(72.17% 0.1449 274.81);
  --violet: oklch(55.22% 0.2589 284.5);
  --cyan: oklch(82.21% 0.127 221.51);
  --warm: oklch(77.96% 0.1671 64.61);
  --green: oklch(78% 0.15 155);
  --display: "Trebuchet MS", "Avenir Next", ui-sans-serif, sans-serif;
  --body: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page: min(1180px, calc(100% - 48px));
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: radial-gradient(circle, color-mix(in oklch, var(--accent) 52%, transparent) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 32%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
code {
  padding: .16em .4em;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: color-mix(in oklch, var(--accent) 8%, var(--surface));
  color: var(--cyan);
  font-family: var(--mono);
  font-size: .87em;
  white-space: nowrap;
}
.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;
}
.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--fg);
  color: var(--bg);
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklch, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(130%);
  transition: border-color .2s ease, background .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border-soft); background: color-mix(in oklch, var(--bg) 92%, transparent); }
.nav-shell {
  width: var(--page);
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.04em;
  text-decoration: none;
}
.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  border: 2px solid color-mix(in oklch, var(--fg) 58%, var(--accent));
  border-radius: 50%;
  background: #0a1020;
  box-shadow: inset 0 0 0 2px color-mix(in oklch, var(--accent) 42%, transparent), 0 0 18px color-mix(in oklch, var(--accent) 30%, transparent);
}
.brand-mark span { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 7px color-mix(in oklch, var(--cyan) 75%, transparent); }
.brand-mark span:nth-child(1) { top: 5px; left: 50%; transform: translateX(-50%); }
.brand-mark span:nth-child(2) { top: 50%; right: 5px; transform: translateY(-50%); }
.brand-mark span:nth-child(3) { bottom: 5px; left: 50%; transform: translateX(-50%); }
.brand-mark span:nth-child(4) { top: 50%; left: 5px; transform: translateY(-50%); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: color .2s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--fg); }
.github-link {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  background: color-mix(in oklch, var(--surface) 88%, transparent);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.github-link svg { width: 18px; }
.github-link:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface-raised); }
.menu-toggle { display: none; }

main { overflow: clip; }
.hero {
  position: relative;
  min-height: 850px;
  padding: 150px 0 90px;
  display: grid;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  right: -160px;
  top: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklch, var(--violet) 34%, transparent), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  width: var(--page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: clamp(30px, 6vw, 90px);
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.kicker.orange { color: var(--warm); }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: var(--display); }
h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(56px, 7.1vw, 104px);
  line-height: .94;
  letter-spacing: -.075em;
  text-wrap: balance;
}
h1 span { display: block; color: var(--accent); text-shadow: 0 0 38px color-mix(in oklch, var(--accent) 28%, transparent); }
.hero-lede {
  max-width: 610px;
  margin: 30px 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}
.primary-cta {
  position: relative;
  min-height: 52px;
  width: fit-content;
  padding: 0 20px;
  border: 1px solid color-mix(in oklch, var(--accent) 72%, white);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  overflow: hidden;
  background: linear-gradient(180deg, color-mix(in oklch, var(--accent) 91%, white), var(--accent));
  box-shadow: 0 12px 32px color-mix(in oklch, var(--violet) 34%, transparent), inset 0 1px color-mix(in oklch, white 48%, transparent);
  color: var(--bg);
  font-weight: 850;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-cta svg { width: 20px; }
.primary-cta span { margin-left: 3px; font-size: 18px; }
.primary-cta:hover { transform: translateY(-3px); box-shadow: 0 18px 42px color-mix(in oklch, var(--violet) 44%, transparent), inset 0 1px color-mix(in oklch, white 55%, transparent); }
.primary-cta:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.hero-note { margin: 15px 0 0; color: var(--dim); font-size: 13px; }
.hero-art { position: relative; z-index: 1; isolation: isolate; }
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 12% 9% 8%;
  border-radius: 50%;
  background: color-mix(in oklch, var(--violet) 42%, transparent);
  filter: blur(70px);
}
.hero-art img { position: relative; z-index: 1; width: 100%; height: auto; filter: drop-shadow(0 32px 46px oklch(5% 0.02 280 / .6)); animation: hero-drift 7s ease-in-out infinite; }
.art-orbit { position: absolute; inset: 4%; border: 1px solid color-mix(in oklch, var(--accent) 32%, transparent); border-radius: 50%; animation: slow-spin 28s linear infinite; }
.art-orbit::before, .art-orbit::after { content: ""; position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.art-orbit::before { top: 8%; left: 24%; }
.art-orbit::after { right: 4%; bottom: 30%; background: var(--warm); box-shadow: 0 0 16px var(--warm); }
.signal-card {
  position: absolute;
  z-index: 3;
  min-width: 180px;
  padding: 11px 14px;
  border: 1px solid color-mix(in oklch, var(--border) 80%, var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: color-mix(in oklch, var(--surface) 90%, transparent);
  box-shadow: 0 14px 32px oklch(7% 0.03 280 / .48);
  backdrop-filter: blur(14px);
}
.signal-card small, .signal-card strong { display: block; line-height: 1.35; }
.signal-card small { color: var(--dim); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.signal-card strong { font-size: 13px; }
.signal-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: color-mix(in oklch, var(--green) 19%, transparent); color: var(--green); font-weight: 900; }
.signal-one { left: -3%; bottom: 14%; }
.signal-two { right: -4%; top: 25%; }
.live-pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 0 color-mix(in oklch, var(--warm) 60%, transparent); animation: pulse 2.4s ease-out infinite; }

.section { width: var(--page); margin: 0 auto; padding: 112px 0; }
.section-intro { max-width: 760px; margin-bottom: 54px; }
.section-intro.compact { max-width: 700px; }
.section-intro h2, .operator-copy h2, .permission-copy h2 {
  margin: 0;
  font-size: clamp(39px, 5vw, 66px);
  line-height: 1.03;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.section-intro > p:last-child, .operator-copy > p, .permission-copy > p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  position: relative;
  min-height: 330px;
  padding: 27px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: color-mix(in oklch, var(--surface) 93%, transparent);
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: color-mix(in oklch, var(--accent) 65%, var(--border)); }
.feature-card::after { content: ""; position: absolute; width: 160px; height: 160px; right: -60px; top: -70px; border-radius: 50%; background: color-mix(in oklch, var(--accent) 13%, transparent); filter: blur(8px); }
.steam-card::after { background: color-mix(in oklch, var(--violet) 19%, transparent); }
.feed-card::after { background: color-mix(in oklch, var(--warm) 10%, transparent); }
.card-index { position: absolute; top: 22px; right: 24px; color: var(--dim); font-family: var(--mono); font-size: 12px; }
.feature-icon { width: 54px; height: 54px; margin-bottom: 55px; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--accent) 60%, var(--border)); border-radius: 14px; background: color-mix(in oklch, var(--accent) 12%, transparent); color: var(--cyan); }
.feature-icon svg { width: 31px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { margin: 0 0 11px; font-size: 23px; letter-spacing: -.035em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.session-preview {
  min-width: 0;
  height: 480px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 22px;
  display: grid;
  grid-template-columns: 70px 210px minmax(0, 1fr);
  overflow: hidden;
  background: oklch(17% 0.022 278);
  box-shadow: 0 38px 90px oklch(5% 0.025 280 / .44);
}
.discord-rail { padding: 18px 13px; border-right: 1px solid var(--border-soft); display: flex; flex-direction: column; align-items: center; gap: 12px; background: oklch(15% 0.025 278); }
.discord-rail span { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-raised); color: var(--fg); font-weight: 900; }
.discord-rail .rail-logo { background: var(--accent); color: var(--bg); box-shadow: 0 0 24px color-mix(in oklch, var(--accent) 34%, transparent); }
.discord-rail span:not(.rail-logo) { opacity: .55; }
.discord-channels { padding: 20px 12px; border-right: 1px solid var(--border-soft); color: var(--dim); background: color-mix(in oklch, var(--surface) 80%, var(--bg)); font-size: 13px; }
.mini-brand { display: flex; align-items: center; gap: 8px; margin: 0 8px 34px; color: var(--fg); font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.mini-brand i { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.discord-channels small { display: block; margin: 0 8px 8px; font-size: 9px; letter-spacing: .1em; }
.discord-channels > div:not(.mini-brand) { padding: 7px 10px; border-radius: 6px; }
.discord-channels .active { background: color-mix(in oklch, var(--accent) 11%, transparent); color: var(--fg); }
.discord-feed { min-width: 0; }
.feed-topbar { height: 55px; padding: 0 20px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; gap: 14px; }
.feed-topbar strong { font-size: 14px; }
.feed-topbar span { color: var(--dim); font-size: 12px; }
.plan-message { padding: 28px 25px; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 13px; }
.bot-avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--bg); font-size: 12px; font-weight: 900; }
.message-meta { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.message-meta b { padding: 1px 4px; border-radius: 3px; background: var(--accent); color: var(--bg); font-size: 8px; }
.message-meta span { color: var(--dim); font-size: 10px; }
.game-night-embed { max-width: 580px; margin-top: 10px; padding: 18px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 4px 12px 12px 4px; background: var(--surface); }
.embed-head { display: flex; align-items: center; gap: 8px; color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 9px var(--green); }
.embed-title { margin: 10px 0 16px; font-family: var(--display); font-size: 23px; font-weight: 800; }
.embed-game { display: flex; align-items: center; gap: 11px; }
.game-tile { width: 42px; height: 42px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(145deg, var(--violet), var(--accent)); color: var(--fg); font-family: var(--mono); font-size: 10px; font-weight: 900; }
.embed-game strong, .embed-game small { display: block; }
.embed-game strong { font-size: 13px; }
.embed-game small { color: var(--dim); font-size: 10px; }
.embed-meta { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 12px; }
.embed-meta span { padding-top: 10px; border-top: 1px solid var(--border-soft); }
.embed-meta small { display: block; color: var(--dim); font-size: 8px; letter-spacing: .1em; }
.thread-line { max-width: 580px; margin-top: 11px; padding: 9px 12px; border-radius: 8px; display: flex; align-items: center; gap: 8px; background: color-mix(in oklch, var(--accent) 7%, transparent); color: var(--muted); font-size: 11px; }
.thread-line strong { color: var(--accent); }
.thread-line span:last-child { margin-left: auto; color: var(--dim); }

.real-life { padding-top: 140px; }
.life-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(390px, .75fr); gap: clamp(40px, 8vw, 110px); align-items: center; }
.life-list { border-top: 1px solid var(--border-soft); }
.life-item { padding: 25px 0; border-bottom: 1px solid var(--border-soft); display: grid; grid-template-columns: 54px 1fr; gap: 18px; }
.life-number { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.life-item h3 { margin: -5px 0 5px; font-size: 23px; letter-spacing: -.03em; }
.life-item p { margin: 0; color: var(--muted); font-size: 15px; }
.night-board { position: relative; padding: 26px; border: 1px solid color-mix(in oklch, var(--warm) 42%, var(--border)); border-radius: 20px; background: linear-gradient(160deg, color-mix(in oklch, var(--warm) 6%, var(--surface)), var(--surface)); box-shadow: 0 30px 80px oklch(5% 0.02 280 / .4); }
.night-board::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; border-top: 1px solid color-mix(in oklch, var(--warm) 66%, transparent); pointer-events: none; }
.board-head { display: flex; justify-content: space-between; gap: 15px; color: var(--warm); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.board-head i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 11px var(--warm); }
.board-head small { color: var(--dim); font-size: 9px; }
.board-title { margin: 22px 0 28px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.board-title span { font-family: var(--display); font-size: 26px; font-weight: 800; }
.board-title b { padding: 4px 8px; border-radius: 999px; background: color-mix(in oklch, var(--green) 14%, transparent); color: var(--green); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.timeline { margin-bottom: 27px; }
.timeline-track { position: relative; height: 8px; border-radius: 99px; background: color-mix(in oklch, var(--border) 45%, transparent); }
.timeline-track::before { content: ""; position: absolute; inset: 0 39% 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--accent)); }
.now-marker { position: absolute; z-index: 1; left: 59%; top: -4px; width: 2px; height: 16px; background: var(--fg); box-shadow: 0 0 9px var(--fg); }
.time-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--dim); font-family: var(--mono); font-size: 9px; }
.roster-row { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--border-soft); display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 900; }
.avatar.blue { background: color-mix(in oklch, var(--cyan) 18%, transparent); color: var(--cyan); }
.avatar.purple { background: color-mix(in oklch, var(--accent) 18%, transparent); color: var(--accent); }
.avatar.orange { background: color-mix(in oklch, var(--warm) 16%, transparent); color: var(--warm); }
.availability { padding: 3px 7px; border-radius: 6px; font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.availability.full { color: var(--green); background: color-mix(in oklch, var(--green) 10%, transparent); }
.availability.late { color: var(--accent); background: color-mix(in oklch, var(--accent) 10%, transparent); }
.availability.early { color: var(--warm); background: color-mix(in oklch, var(--warm) 10%, transparent); }
.board-change { margin-top: 20px; padding: 13px; border: 1px solid color-mix(in oklch, var(--warm) 33%, var(--border)); border-radius: 11px; display: flex; align-items: center; gap: 11px; background: color-mix(in oklch, var(--warm) 7%, transparent); }
.board-change strong, .board-change small { display: block; }
.board-change strong { font-size: 12px; }
.board-change small { color: var(--dim); font-size: 9px; }

.how { padding-top: 145px; }
.steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { min-height: 320px; padding: 26px; border-top: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in oklch, var(--surface) 85%, transparent), transparent); }
.step-top { min-height: 128px; display: flex; justify-content: space-between; align-items: flex-start; }
.step-top > span { color: var(--dim); font-family: var(--mono); font-size: 11px; }
.step-glyph { width: 74px; height: 74px; position: relative; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--accent) 50%, var(--border)); border-radius: 20px; background: color-mix(in oklch, var(--accent) 8%, transparent); }
.server-glyph { gap: 5px; align-content: center; }
.server-glyph i { width: 38px; height: 8px; border: 1px solid var(--accent); border-radius: 3px; position: relative; }
.server-glyph i::after { content: ""; position: absolute; right: 3px; top: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--cyan); }
.bot-glyph i:first-child { width: 36px; height: 28px; border: 2px solid var(--accent); border-radius: 10px; }
.bot-glyph i:first-child::before, .bot-glyph i:first-child::after { content: ""; position: absolute; top: 29px; width: 4px; height: 4px; border-radius: 50%; background: var(--cyan); }
.bot-glyph i:first-child::before { left: 26px; }.bot-glyph i:first-child::after { right: 26px; }
.bot-glyph i:last-child { position: absolute; top: 14px; width: 2px; height: 11px; background: var(--accent); }
.bot-glyph i:last-child::after { content: ""; position: absolute; top: -3px; left: -2px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 7px var(--cyan); }
.plan-glyph i { width: 36px; height: 38px; border: 2px solid var(--accent); border-radius: 7px; }
.plan-glyph i::before { content: ""; position: absolute; width: 20px; height: 10px; left: 26px; top: 30px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }
.step h3 { margin: 8px 0 10px; font-size: 23px; letter-spacing: -.035em; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.operators { position: relative; padding-top: 150px; }
.operator-grid { padding: 65px; border: 1px solid var(--border); border-radius: 26px 26px 0 0; display: grid; grid-template-columns: minmax(0, .85fr) minmax(390px, 1fr); gap: clamp(45px, 8vw, 105px); background: color-mix(in oklch, var(--surface) 84%, transparent); }
.operator-copy > p { font-size: 16px; }
.operator-copy > p + p { margin-top: 15px; }
.stack-map { padding: 10px 0; }
.stack-node { padding: 16px; border: 1px solid var(--border); border-radius: 14px; display: grid; grid-template-columns: 36px 1fr; gap: 13px; background: var(--bg); }
.stack-node > span { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 14%, transparent); color: var(--accent); font-family: var(--mono); font-size: 9px; }
.stack-node small, .stack-node strong, .stack-node p { display: block; }
.stack-node small { color: var(--dim); font-family: var(--mono); font-size: 8px; letter-spacing: .11em; }
.stack-node strong { font-size: 15px; }
.stack-node p { margin: 2px 0 0; color: var(--dim); font-size: 11px; }
.stack-node.compose { border-color: color-mix(in oklch, var(--accent) 62%, var(--border)); }
.stack-connector { height: 42px; margin-left: 30px; display: flex; align-items: center; gap: 10px; color: var(--dim); font-family: var(--mono); font-size: 8px; }
.stack-connector i { width: 1px; height: 100%; margin-left: 1px; background: linear-gradient(var(--accent), var(--border)); }
.operator-notes { border: 1px solid var(--border); border-top: 0; border-radius: 0 0 26px 26px; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg); }
.operator-notes > div { min-height: 155px; padding: 28px; border-right: 1px solid var(--border-soft); }
.operator-notes > div:last-child { border-right: 0; }
.note-dot { width: 7px; height: 7px; display: block; margin-bottom: 22px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.note-dot.blue { color: var(--cyan); background: var(--cyan); }.note-dot.purple { color: var(--accent); background: var(--accent); }.note-dot.orange { color: var(--warm); background: var(--warm); }
.operator-notes strong { font-size: 14px; }
.operator-notes p { margin: 6px 0 0; color: var(--dim); font-size: 12px; }

.permissions { padding-top: 145px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); gap: 70px; }
.privacy-callout { width: fit-content; margin-top: 24px; padding: 12px 15px; border: 1px solid color-mix(in oklch, var(--green) 45%, var(--border)); border-radius: 11px; display: flex; align-items: center; gap: 10px; background: color-mix(in oklch, var(--green) 7%, transparent); }
.privacy-callout > span { color: var(--green); font-weight: 900; }
.privacy-callout p { margin: 0; color: var(--muted); font-size: 13px; }
.privacy-callout strong { color: var(--fg); }
.permission-list { border-top: 1px solid var(--border); }
.permission-list > div { min-height: 54px; padding: 0 4px; border-bottom: 1px solid var(--border-soft); display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 13px; }
.permission-list b { padding: 3px 7px; border-radius: 99px; background: color-mix(in oklch, var(--accent) 10%, transparent); color: var(--accent); font-family: var(--mono); font-size: 8px; letter-spacing: .05em; text-transform: uppercase; }
.permission-list .denied { color: var(--dim); }
.permission-list .denied b { background: color-mix(in oklch, var(--warm) 8%, transparent); color: var(--warm); }
.data-strip { grid-column: 1 / -1; margin-top: 8px; padding: 25px 28px; border: 1px solid var(--border); border-radius: 15px; display: grid; grid-template-columns: 180px 1fr; gap: 25px; background: color-mix(in oklch, var(--surface) 72%, transparent); }
.data-strip strong { font-family: var(--display); font-size: 18px; }
.data-strip p { margin: 0; color: var(--muted); font-size: 13px; }

.docs { padding-top: 150px; }
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.doc-card { min-height: 260px; padding: 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; transition: background .2s ease; }
.doc-card:hover { background: color-mix(in oklch, var(--accent) 7%, transparent); }
.doc-type { color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.doc-card h3 { margin: 35px 0 9px; font-size: 25px; letter-spacing: -.035em; }
.doc-card p { max-width: 430px; margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.doc-link { color: var(--accent); font-size: 12px; font-weight: 750; }
.doc-link b { display: inline-block; margin-left: 5px; transition: transform .2s ease; }
.doc-card:hover .doc-link b { transform: translateX(4px); }

.faq { padding-top: 145px; }
.faq-list { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border-soft); }
summary { min-height: 80px; padding: 0 5px; display: flex; align-items: center; justify-content: space-between; gap: 24px; cursor: pointer; list-style: none; font-family: var(--display); font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
summary::-webkit-details-marker { display: none; }
summary span { width: 24px; height: 24px; position: relative; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 50%; }
summary span::before, summary span::after { content: ""; position: absolute; left: 6px; right: 6px; top: 11px; height: 1px; background: var(--accent); transition: transform .2s ease; }
summary span::after { transform: rotate(90deg); }
details[open] summary span::after { transform: rotate(0); }
details p { max-width: 760px; margin: -6px 0 25px; color: var(--muted); font-size: 15px; }

.final-section { position: relative; min-height: 500px; margin-top: 100px; padding: 100px max(24px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--border); display: flex; align-items: center; overflow: hidden; background: color-mix(in oklch, var(--surface) 52%, var(--bg)); }
.final-copy { position: relative; z-index: 3; max-width: 700px; }
.final-copy h2 { margin: 0; font-size: clamp(52px, 7vw, 92px); line-height: .96; letter-spacing: -.065em; }
.final-copy > p:not(.kicker) { max-width: 570px; margin: 24px 0 30px; color: var(--muted); font-size: 18px; }
.final-section::after { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, transparent 45%, color-mix(in oklch, var(--violet) 10%, transparent)); pointer-events: none; }
.final-glow { position: absolute; z-index: 0; width: 620px; height: 620px; right: -100px; border-radius: 50%; background: color-mix(in oklch, var(--violet) 24%, transparent); filter: blur(80px); }

.site-footer { width: var(--page); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 35px; color: var(--dim); font-size: 12px; }
.site-footer p { text-align: center; }
.site-footer > div { display: flex; align-items: center; gap: 22px; }
.site-footer a:not(.brand) { color: var(--muted); font-weight: 700; text-decoration: none; }
.site-footer a:not(.brand):hover { color: var(--fg); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes hero-drift { 0%,100% { transform: translateY(0) rotate(-.25deg); } 50% { transform: translateY(-10px) rotate(.25deg); } }
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--warm) 55%, transparent); } 70%,100% { box-shadow: 0 0 0 10px transparent; } }

@media (max-width: 1050px) {
  .site-nav { gap: 18px; }
  .site-nav a:nth-child(2) { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 20px; }
  .signal-one { left: -5%; }.signal-two { right: -2%; }
  .operator-grid { padding: 48px; gap: 50px; }
  .permissions { gap: 45px; }
}

@media (max-width: 820px) {
  :root { --page: min(100% - 36px, 720px); }
  html { scroll-padding-top: 70px; }
  .nav-shell { min-height: 64px; }
  .site-nav {
    position: absolute;
    top: 64px;
    left: 18px;
    right: 18px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    display: grid;
    gap: 0;
    background: color-mix(in oklch, var(--surface) 96%, transparent);
    box-shadow: 0 20px 60px oklch(4% 0.02 280 / .5);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .site-nav a, .site-nav a:nth-child(2) { min-height: 44px; padding: 0 10px; display: flex; align-items: center; border-radius: 8px; }
  .site-nav a:hover { background: color-mix(in oklch, var(--accent) 8%, transparent); }
  .menu-toggle { width: 44px; height: 44px; margin-left: auto; padding: 0; border: 0; display: grid; place-content: center; gap: 6px; background: transparent; color: var(--fg); }
  .menu-toggle > span:not(.sr-only) { width: 21px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .nav-github span { display: none; }
  .nav-github { width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .hero { padding: 125px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { max-width: 680px; margin: 0 auto; }
  .eyebrow { justify-content: center; }
  h1 { margin: 0 auto; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  .primary-cta { margin-left: auto; margin-right: auto; }
  .hero-art { width: min(610px, 94vw); margin: 25px auto 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 240px; }
  .feature-icon { margin-bottom: 32px; }
  .session-preview { height: 430px; grid-template-columns: 60px minmax(0, 1fr); }
  .discord-channels { display: none; }
  .life-layout { grid-template-columns: 1fr; }
  .night-board { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: auto; padding: 24px; display: grid; grid-template-columns: 95px 1fr; column-gap: 22px; }
  .step-top { min-height: auto; grid-row: 1 / span 2; display: block; }
  .step-top > span { display: block; margin-bottom: 13px; }
  .step h3 { align-self: end; }
  .step p { grid-column: 2; }
  .operator-grid { padding: 40px; grid-template-columns: 1fr; }
  .operator-notes { grid-template-columns: 1fr; }
  .operator-notes > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .operator-notes > div:last-child { border-bottom: 0; }
  .permissions { grid-template-columns: 1fr; }
  .data-strip { grid-template-columns: 1fr; gap: 8px; }
  .final-section::after { background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--bg) 34%, transparent)); }
  .site-footer { grid-template-columns: 1fr auto; padding: 30px 0; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; margin: 0; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 28px); --radius: 15px; }
  .brand { font-size: 19px; }
  .brand-mark { width: 27px; height: 27px; }
  .hero { padding-top: 110px; }
  h1 { font-size: clamp(48px, 16.5vw, 72px); }
  .hero-lede { margin: 24px 0; font-size: 17px; }
  .primary-cta { width: 100%; padding: 0 14px; justify-content: center; }
  .signal-card { min-width: 155px; padding: 9px 10px; }
  .signal-card small { font-size: 8px; }.signal-card strong { font-size: 11px; }
  .signal-one { left: -2%; bottom: 10%; }.signal-two { right: -2%; top: 21%; }
  .section { padding: 86px 0; }
  .section-intro { margin-bottom: 38px; }
  .section-intro h2, .operator-copy h2, .permission-copy h2 { font-size: clamp(37px, 11vw, 50px); }
  .section-intro > p:last-child, .operator-copy > p, .permission-copy > p { font-size: 16px; }
  .feature-card { padding: 23px; }
  .session-preview { height: auto; min-height: 440px; grid-template-columns: 1fr; }
  .discord-rail { height: 60px; padding: 9px 12px; border-right: 0; border-bottom: 1px solid var(--border-soft); flex-direction: row; }
  .discord-rail span { width: 38px; height: 38px; }
  .discord-feed { min-width: 0; }
  .feed-topbar { padding: 0 14px; }
  .feed-topbar span { display: none; }
  .plan-message { padding: 20px 14px; grid-template-columns: 34px minmax(0, 1fr); gap: 9px; }
  .bot-avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 10px; }
  .message-meta span { display: none; }
  .game-night-embed { padding: 14px; }
  .embed-title { font-size: 20px; }
  .embed-meta { grid-template-columns: 1fr; }
  .thread-line span:last-child { display: none; }
  .life-item { grid-template-columns: 36px 1fr; gap: 10px; }
  .night-board { padding: 20px; }
  .board-title { align-items: flex-start; }
  .board-title span { font-size: 22px; }
  .roster-row { grid-template-columns: 30px minmax(65px, 1fr) auto; }
  .step { grid-template-columns: 76px 1fr; padding: 20px 12px; column-gap: 14px; }
  .step-glyph { width: 64px; height: 64px; border-radius: 16px; }
  .operator-grid { padding: 28px 20px; }
  .operator-notes > div { padding: 23px 20px; }
  .permissions { gap: 36px; }
  .permission-list > div { gap: 10px; }
  .data-strip { padding: 20px; }
  .doc-grid { grid-template-columns: 1fr; }
  .doc-card { min-height: 230px; padding: 25px; }
  summary { min-height: 76px; font-size: 17px; }
  .final-section { min-height: 500px; margin-top: 50px; padding-top: 80px; align-items: flex-start; }
  .final-copy h2 { font-size: clamp(48px, 15vw, 68px); }
  .site-footer { grid-template-columns: 1fr; gap: 14px; }
  .site-footer p { grid-column: 1; grid-row: auto; }
  .site-footer > div { justify-content: space-between; }
}

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

@media print {
  .site-header, .menu-toggle, .primary-cta { display: none !important; }
  body { background: white; color: black; }
  .section { padding: 40px 0; }
}
