:root {
  --bg: #0D0D0B;
  --surface: #161613;
  --text: #F0EDE6;
  --muted: #908E88;
  --accent: #c8ff00;
  --border: #252521;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;
  --font-logo: 'JetBrains Mono', monospace;

  --max-w: 760px;
  --masthead-h: 47px;
  --space-xs: 8px;
  --space-md: 16px;
  --space-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  animation: fade-in 150ms ease-out;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--masthead-h) 24px 0;
}

.masthead-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 13, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.masthead {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 24px 12px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.masthead-logo {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
}

.masthead-logo .accent {
  color: var(--accent);
}

.masthead-right {
  display: flex;
  align-items: baseline;
  gap: var(--space-lg);
}

.header-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  transition: background 150ms ease, color 150ms ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.lang-switch a:hover { color: var(--text); }
.lang-switch .active { color: var(--text); }
.lang-switch .sep { color: var(--border); }

.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 13vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 18px;
  max-width: 520px;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 36px;
}

.terminal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 2px;
  background: var(--surface);
  transition: border-color 150ms ease;
}

.terminal-cta:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(200, 255, 0, 0.08);
}

.terminal-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.terminal-cta .prompt {
  color: var(--muted);
  margin-right: 8px;
}

.cmd {
  display: inline;
  white-space: nowrap;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cta-fallback {
  display: inline-block;
  padding: 14px 0;
  margin-top: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}

.cta-fallback:hover,
.cta-fallback:visited {
  color: var(--muted);
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 40px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.steps {
  border-bottom: 1px solid var(--border);
}

.step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  min-width: 28px;
  padding-top: 2px;
  flex-shrink: 0;
}

.step h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.includes {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.includes-list li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.includes-list li::before {
  content: '\2192';
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  flex-shrink: 0;
}

.specimens {
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--border);
}

.specimen-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.specimen-tab {
  appearance: none;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

.specimen-note {
  max-width: 560px;
  margin: -6px 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.specimen-tab:hover,
.specimen-tab[aria-pressed='true'] {
  border-color: var(--muted);
  color: var(--text);
  background: var(--surface);
}

.specimen-tab:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.specimen {
  min-width: 0;
}

.specimen-frame {
  position: relative;
  aspect-ratio: 960 / 690;
  overflow: hidden;
}

.specimen-frame::before {
  content: none;
}

.specimen-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about {
  padding: 40px 0;
}

.about p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.fit {
  border-bottom: 1px solid var(--border);
}

.fit-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.fit-label {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  padding-top: 1px;
}

.fit dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.site-footer {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-cta {
  font-size: 12px;
  padding: 10px 14px;
}

@media (max-width: 480px) {
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .fit-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
  .cursor {
    animation: none;
    opacity: 1;
  }
}
