:root {
  --bg: #090b0c;
  --panel: #101315;
  --panel-2: #15191c;
  --text: #f1eee6;
  --muted: #9aa1a6;
  --orange: #f7931a;
  --orange-soft: #ffad49;
  --line: #2a3034;
  --green: #8bcf8b;
  --max: 1180px;
  --radius: 2px;
  --shadow: 0 18px 60px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.55;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  z-index: 20;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03), rgba(255,255,255,.03) 1px, transparent 1px, transparent 4px);
}
::selection { background: var(--orange); color: #080808; }
a { color: inherit; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  top: -50px;
  left: 12px;
  z-index: 99;
  padding: 8px 12px;
  background: var(--orange);
  color: #000;
}
.skip-link:focus { top: 12px; }

.shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(9,11,12,.88);
  backdrop-filter: blur(14px);
}
.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .08em;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 15px;
  box-shadow: 3px 3px 0 rgba(247,147,26,.18);
}
.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 9px 10px;
  border: 1px solid transparent;
}
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}
.site-nav .nav-contact { color: var(--orange); border-color: rgba(247,147,26,.35); }

.hero {
  padding: 82px 0 72px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: "> "; }
.wordmark {
  margin: 0 0 28px;
  color: var(--text);
  font-size: clamp(7px, 1.05vw, 13px);
  line-height: 1.05;
  letter-spacing: .02em;
  white-space: pre;
  text-shadow: 4px 4px 0 rgba(247,147,26,.12);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 56px;
  align-items: end;
}
.hero h1 {
  margin: 0;
  max-width: 850px;
  font-family: inherit;
  font-size: clamp(34px, 5vw, 68px);
  line-height: .98;
  letter-spacing: -.055em;
}
.hero h1 span { color: var(--orange); }
.hero-copy {
  max-width: 710px;
  margin: 24px 0 0;
  color: #c6cbce;
  font-size: clamp(16px, 1.6vw, 20px);
}
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  box-shadow: 3px 3px 0 rgba(255,255,255,.04);
}
.button:hover, .button:focus-visible { transform: translate(-1px,-1px); border-color: #555e64; }
.button.primary { background: var(--orange); border-color: var(--orange); color: #080808; font-weight: 800; box-shadow: 4px 4px 0 #5d3709; }
.button.ghost { background: transparent; }

.status-box {
  border: 1px solid var(--line);
  background: rgba(16,19,21,.8);
  box-shadow: var(--shadow);
}
.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.dot { display: inline-block; width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 10px rgba(139,207,139,.45); }
.status-body { padding: 16px; font-size: 13px; }
.status-body p { margin: 0 0 10px; }
.status-body p:last-child { margin-bottom: 0; }
.prompt { color: var(--orange); }

.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  margin-bottom: 34px;
  align-items: start;
}
.section-kicker { margin: 0; color: var(--orange); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker::before { content: "// "; color: var(--muted); }
.section-title { margin: 0; max-width: 800px; font-size: clamp(27px, 3.3vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.section-intro { color: var(--muted); max-width: 780px; margin: 14px 0 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(16,19,21,.76);
  padding: 24px;
  min-height: 100%;
  box-shadow: 5px 5px 0 rgba(255,255,255,.025);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover { transform: translateY(-2px); border-color: #454d52; background: rgba(21,25,28,.88); }
.card-index { color: var(--orange); font-size: 12px; margin-bottom: 28px; }
.card h3 { margin: 0 0 10px; font-size: 22px; letter-spacing: -.03em; }
.card p { margin: 0 0 18px; color: var(--muted); }
.card a { color: var(--orange-soft); text-underline-offset: 4px; }
.card-footer { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; padding: 4px 7px; border: 1px solid var(--line); color: #adb4b8; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tag.live { border-color: rgba(139,207,139,.35); color: var(--green); }
.tag.orange { border-color: rgba(247,147,26,.35); color: var(--orange-soft); }

.feature-card { display: grid; grid-template-columns: 1fr 170px; gap: 18px; overflow: hidden; }
.ascii-art {
  margin: 0;
  align-self: stretch;
  min-height: 152px;
  display: grid;
  place-items: center;
  border-left: 1px solid var(--line);
  color: #6d767c;
  font-size: 10px;
  line-height: 1.05;
  white-space: pre;
  overflow: hidden;
}
.feature-card:hover .ascii-art { color: var(--orange); }

.bitcoin-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
}
.metric-stack { display: grid; gap: 18px; }
.metric { border: 1px solid var(--line); background: var(--panel); padding: 20px; }
.metric strong { display: block; color: var(--orange); font-size: 30px; line-height: 1; margin-bottom: 8px; }
.metric span { color: var(--muted); font-size: 12px; }

.exit-feature {
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(250px,.5fr);
  gap: 34px;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(247,147,26,.08), transparent 42%), var(--panel);
}
.exit-feature blockquote { margin: 0; font-size: clamp(24px, 3vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.exit-feature .aside { border-left: 1px solid var(--line); padding-left: 24px; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 48px; }
.about-copy { font-size: 18px; color: #cbd0d3; }
.about-copy p:first-child { margin-top: 0; }
.timeline { border-left: 1px solid var(--line); margin-left: 8px; }
.timeline-item { padding: 0 0 28px 24px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; width: 7px; height: 7px; left: -4px; top: 7px; background: var(--orange); }
.timeline-item small { color: var(--orange); display: block; margin-bottom: 5px; }
.timeline-item p { margin: 0; color: var(--muted); }

.contact-cta { padding: 56px 0; }
.contact-box { border: 1px solid var(--line); background: var(--panel); padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.contact-box h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 46px); }
.contact-box p { margin: 0; color: var(--muted); }

.site-footer { padding: 30px 0 42px; color: var(--muted); font-size: 12px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--text); }

.contact-page { padding: 84px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr .78fr; gap: 54px; align-items: start; }
.contact-page h1 { margin: 0; font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -.06em; }
.contact-page .lead { color: #c6cbce; font-size: clamp(17px, 2vw, 21px); max-width: 680px; margin: 26px 0 0; }
.contact-methods { display: grid; gap: 14px; }
.contact-method { border: 1px solid var(--line); background: var(--panel); padding: 20px; text-decoration: none; }
.contact-method:hover { border-color: var(--orange); }
.contact-method small { color: var(--orange); display: block; margin-bottom: 6px; }
.contact-method strong { display: block; font-size: 20px; }
.contact-method span { color: var(--muted); font-size: 13px; }
.contact-method .npub { display: block; margin: 8px 0 10px; color: var(--text); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; word-break: break-word; }
.ascii-contact { margin-top: 50px; padding: 24px; border: 1px solid var(--line); color: #61696e; overflow: hidden; }
.ascii-contact pre { margin: 0; font-size: clamp(7px, 1vw, 11px); line-height: 1.1; }

.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 50px 0; }
.not-found .code { font-size: clamp(90px, 20vw, 220px); color: var(--orange); line-height: .8; font-weight: 900; letter-spacing: -.08em; }
.not-found p { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .bitcoin-hero, .about-grid, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .section-head { grid-template-columns: 1fr; gap: 10px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .exit-feature { grid-template-columns: 1fr; }
  .exit-feature .aside { border-left: 0; border-top: 1px solid var(--line); padding: 22px 0 0; }
}

@media (max-width: 720px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .site-header { position: relative; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 60px;
    padding: 10px;
    border: 1px solid var(--line);
    background: #0d1012;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 12px; }
  .hero { padding: 54px 0; }
  .wordmark { font-size: 6.4px; }
  .section { padding: 56px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feature-card { grid-template-columns: 1fr; }
  .ascii-art { border-left: 0; border-top: 1px solid var(--line); min-height: 120px; }
  .contact-box { align-items: flex-start; flex-direction: column; }
  .footer-grid { flex-direction: column; }
  .contact-page { padding: 56px 0; }
}

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

.status-inline {
  display: inline-block;
  margin-left: 0.55rem;
  padding: 0.16rem 0.38rem;
  border: 1px solid var(--orange);
  color: var(--orange);
  font-size: 0.56em;
  line-height: 1;
  letter-spacing: 0.08em;
  vertical-align: middle;
}
