:root {
  color-scheme: dark;
  --bg: #080d12;
  --panel: #0e1720;
  --panel-strong: #14212c;
  --text: #f4f7f8;
  --muted: #9bacb7;
  --cyan: #43d9e8;
  --lime: #b9f65a;
  --red: #ff5e62;
  --line: #263643;
  --content: min(1180px, calc(100vw - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, a { font: inherit; }
button { letter-spacing: 0; }
a { color: inherit; text-decoration: none; }

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 68px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 13, 18, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
.brand img { width: 36px; height: 36px; object-fit: cover; border: 1px solid var(--line); }
nav { display: flex; align-items: center; gap: 24px; color: var(--muted); font-size: 14px; }
nav a:hover, nav a:focus-visible { color: var(--text); }

.hero {
  min-height: min(900px, 94vh);
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  padding: 110px max(20px, calc((100vw - 1180px) / 2)) 70px;
  background-image: linear-gradient(90deg, rgba(5, 8, 12, 0.98) 0%, rgba(5, 8, 12, 0.82) 34%, rgba(5, 8, 12, 0.08) 70%), url("assets/last-online-cat-hero.webp");
  background-size: cover;
  background-position: center;
}
.hero-content { width: min(600px, 56vw); }
.status-line, .eyebrow, .hero-caption, .ticker, .viewer-bar, footer {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
.status-line { display: flex; align-items: center; gap: 9px; color: var(--lime); font-size: 13px; font-weight: 700; }
.status-dot { width: 9px; height: 9px; background: var(--lime); box-shadow: 0 0 16px rgba(185, 246, 90, 0.8); }
.launch-window { margin: 18px 0 0; display: grid; gap: 4px; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.launch-window span, .launch-window small { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.launch-window strong { color: var(--text); font-size: 15px; }
.launch-window small { color: var(--cyan); }
h1 { margin: 24px 0 4px; max-width: 680px; font-size: clamp(56px, 8vw, 112px); line-height: 0.86; font-weight: 900; }
.ticker { margin: 20px 0; color: var(--cyan); font-size: clamp(20px, 3vw, 34px); font-weight: 800; }
.tagline { margin: 0; color: #d9e1e6; font-size: clamp(24px, 3vw, 38px); line-height: 1.2; }
.hero-actions { margin-top: 38px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.command-button, .secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 4px;
  border: 1px solid var(--cyan);
}
.command-button { background: var(--cyan); color: #051014; cursor: pointer; font-weight: 800; }
.command-button:disabled { cursor: not-allowed; background: #18242d; border-color: #31434f; color: #90a1ac; }
.secondary-action { color: var(--text); border-color: #536673; }
.secondary-action:hover { border-color: var(--text); }
.hero-caption { position: absolute; left: max(20px, calc((100vw - 1180px) / 2)); bottom: 24px; color: #73838d; font-size: 11px; }

.file-section, .proof-section { width: var(--content); margin: 0 auto; padding: 110px 0; }
.section-heading { display: grid; grid-template-columns: minmax(200px, 0.7fr) 1.5fr; align-items: end; gap: 40px; margin-bottom: 50px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: 12px; font-weight: 800; }
h2 { margin: 0; font-size: clamp(36px, 5vw, 66px); line-height: 1; }
.file-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.file-item {
  min-height: 116px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.file-item:hover, .file-item.is-active { color: var(--text); background: var(--panel); }
.file-item.is-active { box-shadow: inset 0 3px 0 var(--lime); }
.file-icon { color: var(--cyan); font-family: monospace; font-weight: 800; }
.file-viewer { min-height: 270px; margin-top: 24px; border: 1px solid var(--line); background: #090f15; }
.viewer-bar { height: 42px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.viewer-body { padding: 28px; max-width: 780px; color: #d3dce1; font-family: monospace; font-size: 15px; line-height: 1.75; white-space: pre-line; }

.launch-band { padding: 86px max(20px, calc((100vw - 1180px) / 2)); background: #e7efe7; color: #091014; }
.launch-band > div:first-child { max-width: 800px; }
.launch-band .eyebrow { color: #087d88; }
.launch-facts { margin: 60px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #91a7a2; }
.launch-facts div { padding: 22px 18px 0 0; }
.launch-facts dt { min-height: 42px; color: #50615f; font-size: 13px; }
.launch-facts dd { margin: 12px 0 0; font-size: clamp(28px, 4vw, 48px); font-weight: 900; }

.proof-section { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 80px; }
.proof-copy p:last-child { max-width: 540px; color: var(--muted); line-height: 1.7; }
.proof-table { border-top: 1px solid var(--line); }
.proof-table > div { min-height: 76px; display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 24px; border-bottom: 1px solid var(--line); }
.proof-table span { color: var(--muted); font-size: 13px; }
.proof-table strong, .copy-value { min-width: 0; overflow-wrap: anywhere; color: var(--text); text-align: left; }
.copy-value { padding: 0; border: 0; background: transparent; cursor: pointer; font-family: monospace; font-size: 12px; line-height: 1.5; }
.copy-value:hover { color: var(--cyan); }

footer { width: var(--content); margin: 0 auto; padding: 28px 0 42px; display: flex; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: #6f7e87; font-size: 11px; }
footer p { margin: 0; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 30; padding: 12px 16px; background: var(--lime); color: #0a1014; font-size: 13px; font-weight: 800; opacity: 0; transform: translateY(8px); pointer-events: none; transition: 160ms ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  nav { gap: 14px; }
  nav a:not(.social-link) { display: none; }
  .hero { min-height: 840px; align-items: end; padding-bottom: 95px; background-image: linear-gradient(0deg, rgba(5, 8, 12, 1) 0%, rgba(5, 8, 12, 0.84) 35%, rgba(5, 8, 12, 0.08) 72%), url("assets/last-online-cat-hero.webp"); background-position: 68% center; }
  .hero-content { width: 100%; }
  h1 { font-size: clamp(54px, 17vw, 82px); }
  .section-heading, .proof-section { grid-template-columns: 1fr; gap: 28px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-table > div { grid-template-columns: 130px minmax(0, 1fr); }
  footer { flex-direction: column; }
}

@media (max-width: 480px) {
  :root { --content: calc(100vw - 28px); }
  .topbar { height: 60px; padding: 0 14px; }
  .brand span { display: none; }
  .hero { min-height: 780px; padding-left: 14px; padding-right: 14px; }
  .hero-caption { left: 14px; }
  .file-section, .proof-section { padding: 78px 0; }
  .file-item { min-height: 100px; padding: 16px; }
  .viewer-body { padding: 20px; font-size: 13px; }
  .launch-band { padding: 70px 14px; }
  .launch-facts { grid-template-columns: 1fr 1fr; }
  .launch-facts dd { font-size: 28px; }
  .proof-table > div { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
}

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