/* ============================================================
   EWG Klingon Tools — Shared Stylesheet  (kling.css)
   Covers: klingon_translator_full.html
           klingon_grammar_tool.html
           kling_tos.html
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&family=Share+Tech+Mono&display=swap");

/* ── Design Tokens ─────────────────────────────── */
:root {
  --blood: #8b1a1a;
  --ember: #c0392b;
  --gold: #b8860b;
  --gold-light: #daa520;
  --dark: #0a0604;
  --surface: #120c08;
  --panel: #1a1008;
  --border: #3d2b0a;
  --text: #e8d5a3;
  --muted: #8a7355;
  --green: #2d6a2d;
  --green-light: #4caf50;
}

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

/* ── Base ──────────────────────────────────────── */
body {
  background: var(--dark);
  color: var(--text);
  font-family: "Crimson Pro", serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse at 15% 15%,
      rgba(139, 26, 26, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      ellipse at 85% 85%,
      rgba(184, 134, 11, 0.07) 0%,
      transparent 50%
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184, 134, 11, 0.015) 2px,
      rgba(184, 134, 11, 0.015) 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ────────────────────────────────────── */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
/* ── Navigation ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(4, 6, 15, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-eye {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand-label {
  font-family: "Crimson Pro", serif;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.25;
}

.brand-label span {
  display: block;
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.35em;
}

.nav-links {
  display: none;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: "Share Tech Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--accent);
  transition: right 0.3s;
}

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

.nav-links a:hover::after {
  right: 0;
}

.nav-btn {
  font-family: "Crimson Pro", serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  clip-path: polygon(
    8px 0,
    100% 0,
    100% calc(100% - 8px),
    calc(100% - 8px) 100%,
    0 100%,
    0 8px
  );
}

.nav-btn:hover {
  background: rgba(0, 212, 255, 0.1);
  box-shadow: var(--glow);
}

/* ── Header / Hero ─────────────────────────────── */
header {
  text-align: center;
  padding: 1.8rem 0 1.2rem;
}

.trefoil-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.7rem;
}

.trefoil {
  width: 68px;
  height: 68px;
  filter: drop-shadow(0 0 12px rgba(192, 57, 43, 0.7))
    drop-shadow(0 0 24px rgba(192, 57, 43, 0.3));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(192, 57, 43, 0.7))
      drop-shadow(0 0 24px rgba(192, 57, 43, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(192, 57, 43, 0.95))
      drop-shadow(0 0 44px rgba(192, 57, 43, 0.5));
  }
}

h1 {
  font-family: "Cinzel Decorative", cursive;
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--gold-light);
  text-shadow: 0 0 30px rgba(218, 165, 32, 0.4);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.subtitle {
  font-style: italic;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  letter-spacing: 0.1em;
}

.entry-count {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.68rem;
  color: var(--blood);
  margin-top: 0.3rem;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--gold),
    var(--blood),
    var(--gold),
    transparent
  );
  margin: 1.1rem 0;
  opacity: 0.6;
}

/* ── Tabs ──────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.tab {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
}

.tab.active {
  background: var(--blood);
  border-color: var(--ember);
  color: var(--text);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ── Section title ─────────────────────────────── */
.section-title {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Panels ────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blood), var(--gold), var(--blood));
}
.panel-label {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  padding: 0.6rem 0.9rem 0.3rem;
  border-bottom: 1px solid var(--border);
}

/* ── Result / Output boxes ─────────────────────── */
.result-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 0 2px 2px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
  display: none;
}
.result-box.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}
.result-klingon {
  font-family: "Share Tech Mono", monospace;
  font-size: 1.5rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.result-breakdown {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.9;
  white-space: pre-wrap;
}
.result-english {
  font-style: italic;
  color: var(--text);
  font-size: 0.95rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.output-text {
  min-height: 120px;
  padding: 0.85rem;
  font-family: "Crimson Pro", serif;
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--gold-light);
  white-space: pre-wrap;
  word-break: break-word;
}
.output-text.empty {
  color: var(--muted);
  font-style: italic;
  font-size: 0.92rem;
}

/* ── Pronunciation box ─────────────────────────── */
.pron-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blood);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
  display: none;
}
.pron-box.visible {
  display: block;
  animation: fadeIn 0.4s ease;
}
.pron-title {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.58rem;
  color: var(--ember);
  letter-spacing: 0.15em;
  margin-bottom: 0.45rem;
}
.pron-text {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.9;
  white-space: pre-wrap;
}
.pron-note {
  font-style: italic;
  color: var(--muted);
  font-size: 0.75rem;
  margin-top: 0.45rem;
  font-family: "Crimson Pro", serif;
  border-top: 1px solid var(--border);
  padding-top: 0.38rem;
}

/* ── Buttons ───────────────────────────────────── */
.translate-btn,
.build-btn {
  width: 100%;
  padding: 0.82rem;
  background: linear-gradient(135deg, var(--blood), #6b1010);
  border: 1px solid var(--ember);
  color: var(--text);
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  box-shadow: 0 0 15px rgba(139, 26, 26, 0.3);
  margin-bottom: 1.1rem;
}
.translate-btn:hover,
.build-btn:hover {
  border-color: var(--gold);
  box-shadow: 0 0 25px rgba(139, 26, 26, 0.6);
  transform: translateY(-1px);
}
.translate-btn:active,
.build-btn:active {
  transform: translateY(0);
}

/* Translator direction bar */
.direction-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.dir-label {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  min-width: 125px;
  text-align: center;
}
.swap-btn {
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 0 10px rgba(184, 134, 11, 0.2);
}
.swap-btn:hover {
  background: var(--blood);
  border-color: var(--ember);
  transform: rotate(180deg);
  box-shadow: 0 0 20px rgba(192, 57, 43, 0.5);
}

.translator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

textarea {
  width: 100%;
  min-height: 120px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: "Crimson Pro", serif;
  font-size: 1.08rem;
  padding: 0.85rem;
  resize: vertical;
  line-height: 1.6;
}
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
  font-style: italic;
}

/* ── Search / Dictionary ────────────────────────── */
.search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.search-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Crimson Pro", serif;
  font-size: 0.98rem;
  padding: 0.52rem 0.82rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus {
  border-color: var(--gold);
}
.search-input::placeholder {
  color: var(--muted);
  font-style: italic;
}
.search-btn {
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 0.52rem 1rem;
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 2px;
  white-space: nowrap;
}
.search-btn:hover {
  background: var(--blood);
  border-color: var(--ember);
}
.dict-results {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.dict-entry {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blood);
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0 2px 2px 0;
}
.dict-entry:hover {
  border-left-color: var(--gold);
  background: rgba(184, 134, 11, 0.05);
}
.entry-klingon {
  font-family: "Share Tech Mono", monospace;
  color: var(--gold-light);
  font-size: 0.92rem;
  margin-bottom: 0.12rem;
}
.entry-english {
  color: var(--text);
  font-size: 0.86rem;
}
.entry-type {
  font-style: italic;
  color: var(--muted);
  font-size: 0.74rem;
}
.entry-pron {
  font-family: "Share Tech Mono", monospace;
  color: var(--ember);
  font-size: 0.73rem;
  margin-top: 0.18rem;
}

/* ── Phrase / Guide cards ───────────────────────── */
.phrases-grid,
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.45rem;
  max-height: 380px;
  overflow-y: auto;
}
.phrase-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  border-radius: 0 2px 2px 0;
}
.phrase-card:hover {
  border-left-color: var(--ember);
  background: rgba(184, 134, 11, 0.05);
}
.phrase-klingon {
  font-family: "Share Tech Mono", monospace;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-bottom: 0.18rem;
}
.phrase-english {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
}
.guide-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.82rem;
  border-radius: 0 2px 2px 0;
}
.guide-symbol {
  font-family: "Share Tech Mono", monospace;
  color: var(--gold-light);
  font-size: 0.88rem;
  margin-bottom: 0.18rem;
}
.guide-desc {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* ── Verb Builder fields ────────────────────────── */
.builder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field label {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.58rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
select,
input[type="text"] {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: "Crimson Pro", serif;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
select:focus,
input[type="text"]:focus {
  border-color: var(--gold);
}
option {
  background: var(--dark);
}

/* ── Pitfall cards ─────────────────────────────── */
.pitfall-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pitfall-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blood);
  padding: 0.85rem 1rem;
  border-radius: 0 2px 2px 0;
}
.pitfall-card.ok {
  border-left-color: var(--green);
}
.pitfall-num {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.6rem;
  color: var(--ember);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.pitfall-title {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}
.pitfall-body {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.pitfall-example {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.8rem;
  margin-top: 0.5rem;
  background: var(--surface);
  padding: 0.4rem 0.6rem;
  border-radius: 2px;
  color: var(--text);
}
.wrong {
  color: var(--ember);
}
.right {
  color: var(--green-light);
}

/* ── Prefix Table ──────────────────────────────── */
.prefix-table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.78rem;
}
th {
  background: var(--blood);
  color: var(--text);
  padding: 0.5rem 0.6rem;
  text-align: left;
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
}
td {
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
td:first-child {
  color: var(--gold);
  font-weight: bold;
}
tr:hover td {
  background: rgba(184, 134, 11, 0.05);
}
.empty-prefix {
  color: var(--muted);
  font-style: italic;
}

/* ── Suffix chips ──────────────────────────────── */
.suffix-section {
  margin-bottom: 1.2rem;
}
.suffix-type-label {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.suffix-type-label span {
  color: var(--muted);
  font-size: 0.55rem;
}
.suffix-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.chip {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.25rem 0.55rem;
  font-family: "Share Tech Mono", monospace;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
}
.chip:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}
.chip.selected {
  background: var(--blood);
  border-color: var(--ember);
  color: var(--text);
}
.chip.rover {
  border-color: var(--gold);
  color: var(--gold);
}
.chip.rover.selected {
  background: var(--gold);
  color: var(--dark);
}
.suffix-result {
  font-family: "Share Tech Mono", monospace;
  font-size: 1.1rem;
  color: var(--gold-light);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.65rem 0.9rem;
  border-radius: 2px;
  margin-top: 0.75rem;
  min-height: 2.5rem;
}

/* ── Misc helpers ──────────────────────────────── */
.hint {
  font-size: 0.76rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 0.65rem;
}
.no-results {
  color: var(--muted);
  font-style: italic;
  padding: 0.5rem;
  font-size: 0.88rem;
}

/* ── TOS / Legal document layout ───────────────── */
.tos-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.doc-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.doc-meta {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.72rem;
  color: var(--ember);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--blood);
  background: var(--panel);
  display: inline-block;
}

.doc-section {
  margin-bottom: 1.8rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blood);
  padding: 1.2rem 1.4rem;
  border-radius: 0 2px 2px 0;
  position: relative;
}

.doc-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blood), transparent);
}

.doc-section h2 {
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.doc-section p,
.doc-section li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 0.5rem;
}

.doc-section ul {
  list-style: none;
  padding: 0;
}

.doc-section ul li {
  padding-left: 1.2rem;
  position: relative;
}

.doc-section ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ember);
  font-size: 0.8rem;
}

.doc-section a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition:
    color 0.2s,
    border-color 0.2s;
}
.doc-section a:hover {
  color: var(--text);
  border-color: var(--gold);
}

.doc-highlight {
  font-family: "Share Tech Mono", monospace;
  font-size: 0.82rem;
  color: var(--gold-light);
  background: var(--surface);
  padding: 0.2rem 0.45rem;
  border-radius: 2px;
}

/* ── Footer ────────────────────────────────────── */
footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  font-style: italic;
  position: relative;
  z-index: 1;
}
footer strong {
  color: var(--gold);
  font-style: normal;
  font-family: "Cinzel Decorative", cursive;
  font-size: 0.6rem;
}

/* ── Animations ────────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  animation: fadeIn 0.3s ease forwards;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 580px) {
  .translator {
    grid-template-columns: 1fr;
  }
  .dir-label {
    min-width: 85px;
    font-size: 0.58rem;
  }
  h1 {
    font-size: clamp(1rem, 5vw, 1.5rem);
  }
  .builder-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Hamburger Menu ──────────────────────────────────────── */
/*.hamburger {
  display: none;*/
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold-light);
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {
  .nav-btn {
    display: none;
  }
  #hero {
    padding: 100px 20px 60px;
  }
  .hero-stats {
    width: 100%;
  }
}

.nav-links.open {
  display: flex;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(4, 6, 15, 0.98);
  border-bottom: 1px solid var(--border2);
  backdrop-filter: blur(16px);
  flex-direction: column;
  gap: 0;
  padding: 8px 0;
  z-index: 799;
}

.nav-links li {
  width: 100%;
}

.nav-links a {
  display: block;
  padding: 14px 24px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}

.nav-links li:last-child a {
  border-bottom: none;
}

.nav-links a::after {
  display: none;
}
  #hero {
    padding: 100px 20px 60px;
  }
  .hero-stats {
    width: 100%;
  }
}
