@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600&display=swap');

:root {
  color-scheme: dark;
  --ground: #0e0f12;
  --surface: #16181d;
  --raised: #1e2127;
  --line: #2a2d34;
  --text: #f2f3f5;
  --muted: #9b9da5;
  --indigo: #a9b2ff;
  --indigo-site: #7885ff;
  --green: #4ade9a;
  --coral: #ff7a70;
  --amber: #ffb547;
  --orchid: #e29cf5;
  font-family: Geist, Inter, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--ground); color: var(--text); font-size: 14px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 4px; }
img { max-width: 100%; }

.topbar {
  height: 68px;
  max-width: 1240px;
  margin: auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff0d;
}
.brand { display: flex; align-items: center; gap: 10px; font: 500 10px 'Geist Mono', monospace; letter-spacing: .1em; }
.brand img { width: 28px; height: 28px; }
.brand b { color: #fff; font-weight: 500; }
.topbar nav { display: flex; gap: 32px; color: #b4b5bd; font-size: 12px; }
.topbar nav a, footer a, .text-link { transition: color .18s ease; }
.topbar nav a:hover, footer a:hover, .text-link:hover { color: var(--indigo); }
.topbar nav span, .text-link span { color: var(--indigo); }

.button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid #8793ff;
  border-radius: 5px;
  background: #3f4bcb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { background: #5360e0; transform: translateY(-1px); }
.button-small { min-height: 36px; padding: 0 12px; font-size: 11px; }
.eyebrow, .card-index, .terminal-top, .terminal-caption, .tool-card-head, .tool-row span, .principle-strip>div>span {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .11em;
}
.eyebrow { color: #bec5ff; }
.eyebrow i { color: #5e6068; font-style: normal; padding: 0 3px; }

.hero {
  max-width: 1180px;
  min-height: 552px;
  margin: auto;
  padding: 72px 30px 68px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 64px;
}
.pulse { display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 11px #4ade9a88; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(46px, 5.4vw, 70px); line-height: 1.03; letter-spacing: -.065em; font-weight: 600; }
.hero h1 em, .rules-copy h2 em { color: var(--indigo); font-style: normal; }
.hero-lede { max-width: 425px; margin: 0; color: #d1d2d8; font-size: 16px; line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 25px; }
.text-link { color: #d2d3da; font-size: 11px; }
.hero-note { display: flex; align-items: center; gap: 9px; margin: 31px 0 0; color: var(--muted); font-size: 10px; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.hero-art { position: relative; min-width: 0; margin: 0; padding: 10px 0; }
.terminal-frame { position: relative; overflow: hidden; border: 1px solid #363941; border-radius: 7px; background: #111318; box-shadow: 0 26px 75px #0008; }
.terminal-top { min-height: 35px; padding: 0 12px; display: flex; align-items: center; justify-content: space-between; color: #a8aab2; background: #14161a; border-bottom: 1px solid #ffffff12; font-size: 8px; }
.terminal-top small { color: #777983; }
.mode-pill { padding: 3px 6px; border: 1px dashed #626777; border-radius: 3px; color: #c2c4cd; font-size: 7px; }
.terminal-frame>img { width: 100%; display: block; }
.terminal-caption { position: absolute; right: 0; bottom: 0; left: 0; height: 28px; padding: 0 11px; display: flex; align-items: center; justify-content: space-between; color: #a4a6af; background: #101115ed; border-top: 1px solid #ffffff12; font-size: 7px; }
.terminal-caption i { display: inline-block; width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.principle-strip {
  max-width: 1120px;
  margin: 0 auto;
  padding: 19px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.principle-strip>div { min-height: 39px; padding: 0 25px; display: grid; grid-template-columns: 29px auto; align-content: center; column-gap: 10px; border-right: 1px solid var(--line); }
.principle-strip>div:last-child { border: 0; }
.principle-strip>div>span { grid-row: span 2; align-self: center; color: var(--indigo); }
.principle-strip b { font-size: 11px; font-weight: 600; }
.principle-strip small { color: var(--muted); font-size: 9px; }

.section { max-width: 1180px; margin: auto; padding: 102px 30px 108px; }
.section-heading { text-align: center; }
.section-heading h2, .rules-copy h2, .closing h2 { margin: 15px 0 12px; font-size: clamp(34px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.055em; font-weight: 600; }
.section-heading>p { margin: 0; color: var(--muted); font-size: 12px; }
.tour-grid { margin-top: 43px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tour-card { overflow: hidden; padding: 18px 18px 0; border: 1px solid var(--line); border-radius: 6px; background: linear-gradient(145deg, #17191e, #111216); }
.tour-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 26px; padding: 22px 22px 0; }
.tour-copy { padding: 2px 0 15px; }
.card-index { color: var(--indigo); font-size: 8px; }
.tour-copy h3 { margin: 10px 0 6px; font-size: 15px; letter-spacing: -.025em; font-weight: 600; }
.tour-copy p { max-width: 400px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.tour-card img { width: 100%; display: block; border: 1px solid #353840; border-bottom: 0; border-radius: 4px 4px 0 0; }
.tour-card-wide img { align-self: end; }

.rules-section { padding: 76px max(30px, calc((100% - 1120px) / 2)); display: grid; grid-template-columns: 1fr .82fr; align-items: center; gap: 70px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #121318; }
.rules-copy h2 { font-size: clamp(34px, 4vw, 45px); }
.rules-copy>p { max-width: 470px; margin: 0 0 19px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.tool-card { padding: 15px 17px 13px; border: 1px solid #343740; border-radius: 5px; background: #17191e; box-shadow: 0 16px 45px #0004; }
.tool-card-head, .tool-row { display: flex; align-items: center; justify-content: space-between; }
.tool-card-head { padding: 2px 3px 10px; color: #858791; border-bottom: 1px solid var(--line); font-size: 8px; }
.tool-row { min-height: 35px; border-bottom: 1px solid #ffffff0b; }
.tool-row code { color: #d6d7dd; font: 10px 'Geist Mono', monospace; }
.tool-row span { font-size: 7px; }
.allowed { color: var(--green); }
.blocked { color: #a0a1a8; }
.tool-card>p { margin: 12px 3px 0; color: var(--muted); font-size: 9px; }

.safety-section { max-width: 1120px; margin: 66px auto 0; padding: 21px 24px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 16px; border: 1px solid #765a2c80; border-radius: 5px; background: #ffb54708; }
.safety-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ffb54788; border-radius: 50%; color: var(--amber); font: 13px 'Geist Mono', monospace; }
.safety-section .eyebrow { color: var(--amber); font-size: 8px; }
.safety-section h2 { margin: 3px 0 4px; font-size: 17px; font-weight: 600; }
.safety-section p { max-width: 730px; margin: 0; color: #b5b6bd; font-size: 9px; line-height: 1.75; }
.safety-section .text-link { white-space: nowrap; font-size: 9px; }

.closing { position: relative; overflow: hidden; padding: 92px 24px 96px; text-align: center; }
.closing-orb { position: absolute; top: 5px; left: 50%; width: 580px; height: 300px; transform: translateX(-50%); background: radial-gradient(ellipse, #3f4bcb25, transparent 68%); pointer-events: none; }
.closing>*:not(.closing-orb) { position: relative; }
.closing h2 { margin-top: 14px; font-size: clamp(36px, 5vw, 54px); }
.closing>p { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.closing .hero-actions { justify-content: center; margin-top: 23px; }
.coffee-link { color: #d0d1d7; font-size: 10px; }
.coffee-link:hover { color: var(--indigo); }
.coffee-link span { color: var(--indigo); }
footer { min-height: 70px; max-width: 1240px; margin: auto; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #90919a; font-size: 9px; }
footer>div { display: flex; gap: 20px; }
.footer-brand { color: #b6b7bf; font-size: 8px; }
.footer-brand img { width: 22px; height: 22px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 62px; }
  .hero-copy { max-width: 620px; }
  .hero-art { width: 100%; max-width: 720px; margin: auto; }
  .principle-strip { margin: 0 22px; }
  .rules-section { padding: 64px 30px; grid-template-columns: 1fr 1fr; gap: 35px; }
  .safety-section { margin-right: 25px; margin-left: 25px; }
}

@media (max-width: 600px) {
  .topbar { height: 60px; padding: 0 18px; }
  .topbar nav { display: none; }
  .brand { gap: 7px; font-size: 8px; }
  .brand img { width: 24px; height: 24px; }
  .button-small { min-height: 34px; padding: 0 9px; font-size: 9px; }
  .hero { min-height: 0; padding: 54px 21px 51px; }
  .hero h1 { font-size: 47px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { gap: 17px; }
  .hero-art { padding-bottom: 8px; }
  .principle-strip { grid-template-columns: 1fr; padding: 7px 0; }
  .principle-strip>div { padding: 11px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .principle-strip>div:last-child { border-bottom: 0; }
  .section { padding: 73px 20px 78px; }
  .section-heading h2 { font-size: 37px; }
  .tour-grid { grid-template-columns: 1fr; margin-top: 31px; }
  .tour-card-wide { grid-column: auto; grid-template-columns: 1fr; gap: 8px; padding: 17px 15px 0; }
  .tour-card { padding: 16px 15px 0; }
  .tour-copy { padding-bottom: 14px; }
  .rules-section { padding: 58px 21px; grid-template-columns: 1fr; gap: 27px; }
  .rules-copy h2 { font-size: 36px; }
  .safety-section { margin: 26px 16px 0; padding: 16px 14px; grid-template-columns: 30px 1fr; gap: 10px; }
  .safety-section .text-link { grid-column: 2; }
  .closing { padding: 72px 20px 75px; }
  .closing .hero-actions { flex-direction: column; gap: 14px; }
  .closing .button { width: 100%; max-width: 290px; }
  footer { padding: 17px 18px; flex-wrap: wrap; gap: 12px; }
  footer>span { order: 3; width: 100%; }
  footer>div { gap: 12px; }
}

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