/* ========================================
   Matrix Landing Page — Neo Art-Deco
   Pure CSS, zero JavaScript
   ======================================== */

:root {
  --bg: #0b0a09;
  --bg-alt: #100f0d;
  --surface: #17160f;
  --border: #2a2518;
  --text: #c8c4b8;
  --text-muted: #6b6456;
  --text-bright: #eae6d9;
  --accent: #d4a843;
  --accent-dim: rgba(212, 168, 67, 0.13);
  --accent-warm: #e0b94e;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Language toggle */
.lang-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
}

.lang-toggle {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 16px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: border-color 0.2s;
}

.lang-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Layout */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 560px;
}

/* Typography */
h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-bright);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--text-bright);
  letter-spacing: 0em;
  margin-bottom: 48px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 12px;
}

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

/* Sections */
.section {
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid rgba(212, 168, 67, 0.12);
}

.section-alt + .section:not(.section-alt) {
  border-top: 1px solid rgba(212, 168, 67, 0.12);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 24px;
}

/* ========================================
   Hero
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      55deg,
      transparent,
      transparent 58px,
      rgba(212, 168, 67, 0.04) 58px,
      rgba(212, 168, 67, 0.04) 59px
    ),
    repeating-linear-gradient(
      -55deg,
      transparent,
      transparent 58px,
      rgba(212, 168, 67, 0.04) 58px,
      rgba(212, 168, 67, 0.04) 59px
    );
  background-size: 100% 100%;
  animation: grid-drift 30s linear infinite;
}

@keyframes grid-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(0, 60px); }
}

.hero-content {
  position: relative;
  text-align: center;
}

.hero-label {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text);
  margin-top: 28px;
  font-weight: 300;
  line-height: 1.7;
}

.hero-tagline {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text);
  margin-top: 36px;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.hero-highlight {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
  margin-top: 20px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-cta {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-warm);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ========================================
   Matrix For
   ======================================== */

.matrix-for {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.matrix-for-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.matrix-for-item:hover {
  border-color: var(--accent);
  background: rgba(212, 168, 67, 0.03);
}

.matrix-for-name {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-bright);
}

.matrix-for-arrow {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color 0.2s;
}

.matrix-for-item:hover .matrix-for-arrow {
  color: var(--accent);
}

/* ========================================
   Problem — Time Split
   ======================================== */

.timesplit {
  margin-bottom: 48px;
}

.timesplit:last-of-type {
  margin-bottom: 0;
}

.timesplit-label {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timesplit-bar {
  display: flex;
  gap: 1px;
  border-radius: 2px;
  overflow: hidden;
  height: 56px;
}

.timesplit-bar .ts {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  font-size: 0.65rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.timesplit-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.timesplit-punchline {
  margin-top: 48px;
  font-size: 1.1rem;
  color: var(--text-bright);
  font-weight: 400;
  text-align: center;
  letter-spacing: -0.01em;
}

.timesplit-quote {
  margin-top: 48px;
  text-align: center;
  border: none;
  padding: 24px 0;
  border-top: 1px solid rgba(212, 168, 67, 0.2);
  border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.timesplit-quote p {
  font-size: 1.3rem;
  color: var(--text-bright);
  font-style: italic;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.timesplit-quote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.8rem;
  font-family: var(--mono);
  color: var(--text-muted);
  font-style: normal;
  letter-spacing: 0.05em;
}

.timesplit-quip {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--accent);
  text-align: center;
  font-weight: 400;
}

/* Chaos bar */
.timesplit-bar--chaos { background: var(--bg); }
.timesplit-bar--chaos .ts-1  { flex: 2.5; background: rgba(212, 168, 67, 0.04); }
.timesplit-bar--chaos .ts-2  { flex: 2;   background: rgba(200, 180, 140, 0.03); }
.timesplit-bar--chaos .ts-3  { flex: 3.5; background: rgba(212, 168, 67, 0.05); }
.timesplit-bar--chaos .ts-4  { flex: 2.8; background: rgba(200, 180, 140, 0.04); }
.timesplit-bar--chaos .ts-5  { flex: 2.2; background: rgba(212, 168, 67, 0.06); }
.timesplit-bar--chaos .ts-6  { flex: 1.8; background: rgba(200, 180, 140, 0.03); }
.timesplit-bar--chaos .ts-7  { flex: 2.5; background: rgba(212, 168, 67, 0.04); }
.timesplit-bar--chaos .ts-8  { flex: 1.5; background: rgba(200, 180, 140, 0.05); }
.timesplit-bar--chaos .ts-9  { flex: 2;   background: rgba(212, 168, 67, 0.04); }
.timesplit-bar--chaos .ts-10 { flex: 1.8; background: rgba(200, 180, 140, 0.06); }

.timesplit-bar--chaos .ts-work {
  flex: 0.8;
  background: var(--accent-dim);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  font-weight: 500;
}

/* Calm bar */
.timesplit-bar--calm { background: var(--bg); }

.timesplit-bar--calm .ts-agent {
  flex: 1;
  background: rgba(200, 180, 140, 0.04);
  color: var(--text-muted);
}

.timesplit-bar--calm .ts-realwork {
  flex: 7;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ========================================
   Cards (How it works)
   ======================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.card::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.card::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.card-highlight {
  border-color: rgba(212, 168, 67, 0.2);
  background: linear-gradient(135deg, var(--surface), rgba(212, 168, 67, 0.03));
}

.card-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 16px;
}

.card p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.cards-footer {
  text-align: center;
  margin-top: 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   Self-extending flow
   ======================================== */

.extend-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.extend-step {
  text-align: center;
  flex: 1;
  max-width: 240px;
}

.extend-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 1rem;
  margin-bottom: 16px;
}

.extend-connector {
  width: 60px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-bottom: 32px;
}

.extend-step p {
  font-size: 0.95rem;
  color: var(--text);
}

.extend-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ========================================
   Principles
   ======================================== */

.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.principle {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.principle::before,
.principle::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.principle::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--accent);
  border-left: 1px solid var(--accent);
}

.principle::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}

.principle-title {
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 12px;
  font-size: 1rem;
}

.principle p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========================================
   V1 Journey
   ======================================== */

.journey {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin-bottom: 48px;
}

.journey-step {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.journey-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--accent);
  flex-shrink: 0;
  width: 28px;
}

.journey-step p {
  color: var(--text);
  font-size: 1rem;
}

.journey-footer {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

/* ========================================
   For Builders
   ======================================== */

.section-builders {
  text-align: center;
}

.builders-text {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.section-builders .btn {
  margin-top: 16px;
}

.team-members {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 40px;
}

.team-member {
  text-align: center;
}

.team-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* ========================================
   Early Access
   ======================================== */

#early-access {
  text-align: center;
}

.early-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  margin-top: -24px;
  font-size: 1rem;
}

.email-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 14px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

.email-form input::placeholder {
  color: var(--text-muted);
}

.email-form input:focus {
  border-color: var(--accent);
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-logo {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ========================================
   How It Works — page-specific
   ======================================== */

.hero-short {
  min-height: 70vh;
}

.back-link {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 0.7;
}

/* Step headers */
.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.step-number {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid rgba(212, 168, 67, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-header .section-label {
  margin-bottom: 0;
}

/* Story blocks */
.story-block {
  max-width: 720px;
  margin-bottom: 56px;
}

.story-block h3 {
  margin-bottom: 16px;
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 24px;
}

.story-text:last-child {
  margin-bottom: 0;
}

/* Detail cards */
.story-detail {
  margin-top: 48px;
}

.detail-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  max-width: 720px;
}

.detail-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 12px;
}

.detail-card p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Conversation example */
.conversation-example {
  max-width: 720px;
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.conv-line {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.conv-line:last-child {
  border-bottom: none;
}

.conv-role {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.conv-you {
  background: rgba(200, 180, 140, 0.05);
  color: var(--text-muted);
}

.conv-agent {
  background: var(--accent-dim);
  color: var(--accent);
}

.conv-line p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}

/* Flow chain */
.flow-chain {
  max-width: 600px;
  margin: 48px 0;
}

.flow-node {
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.flow-node-end {
  border-color: rgba(212, 168, 67, 0.2);
  background: linear-gradient(135deg, var(--surface), rgba(212, 168, 67, 0.03));
}

.flow-node-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}

.flow-node-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.flow-arrow {
  text-align: center;
  color: var(--accent);
  font-size: 1.2rem;
  padding: 8px 0;
}

/* Graph insights */
.graph-insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.insight-card {
  padding: 28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.insight-metric {
  font-family: var(--mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.insight-card p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.graph-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
}

/* Trust extras */
.trust-extras {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.trust-item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
}

.trust-title {
  font-weight: 500;
  color: var(--text-bright);
  margin-bottom: 12px;
  font-size: 1rem;
}

.trust-item p:last-child {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Closing section */
.closing-section {
  text-align: center;
}

.closing-text {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  margin-top: -24px;
}

.closing-text + .closing-text {
  margin-top: 0;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .timesplit-bar--chaos .ts {
    font-size: 0;
    padding: 0 2px;
    min-width: 4px;
  }

  .timesplit-bar--chaos .ts-work {
    font-size: 0.55rem;
    padding: 0 6px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .matrix-for {
    grid-template-columns: repeat(2, 1fr);
  }

  .timesplit-bar {
    height: 48px;
  }

  .timesplit-bar .ts {
    font-size: 0;
    padding: 0 2px;
    min-width: 4px;
  }

  .timesplit-bar--chaos .ts-work,
  .timesplit-bar--calm .ts-realwork,
  .timesplit-bar--calm .ts-agent {
    font-size: 0.6rem;
    padding: 0 6px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .extend-flow {
    flex-direction: column;
    gap: 8px;
  }

  .extend-connector {
    width: 1px;
    height: 32px;
    margin-bottom: 0;
  }

  .email-form {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }

  .graph-insights {
    grid-template-columns: 1fr;
  }

  .trust-extras {
    grid-template-columns: 1fr;
  }

  .conv-line {
    flex-direction: column;
    gap: 8px;
  }

  .grid-bg {
    opacity: 0.5;
  }

  h1 br, h2 br, .hero-sub br, .builders-text br, .extend-bottom br {
    display: none;
  }

  .site-nav {
    top: 12px;
    right: 12px;
    gap: 12px;
  }

  .nav-link {
    font-size: 0.65rem;
    padding: 6px 10px;
  }

  .nav-dropdown-menu {
    right: 0;
  }
}

/* Floating navigation */
.site-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px;
}

.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 2px;
  transition: background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--accent-dim);
}

.nav-link[aria-current="page"] {
  background: var(--accent-dim);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 0.6rem;
  transition: transform 0.15s;
}

.nav-dropdown:hover .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  display: none;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  min-width: 160px;
  padding-top: 4px;
  margin-top: 0;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-menu a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  padding: 10px 16px;
  transition: color 0.15s, background 0.15s;
}

.nav-dropdown-menu a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-dropdown-menu a:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
