/* ============================================================
   AVIATOOLS.AI — Design Tokens & Global Reset
   tokens.css · v2.0
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

:root {
  /* ── Palette ── */
  --ink:        #060a10;
  --ink2:       #0c1219;
  --ink3:       #111820;
  --paper:      #f0ede8;
  --paper2:     #a8a49e;
  --dim:        #5a5750;
  --rule:       rgba(255,255,255,0.07);
  --rule2:      rgba(255,255,255,0.04);

  /* ── Brand Accents ── */
  --gold:       #c8a84b;
  --gold2:      #e8c96a;
  --gold-faint: rgba(200,168,75,0.08);
  --gold-glow:  rgba(200,168,75,0.15);
  --blue:       #3a6ea8;
  --blue-faint: rgba(58,110,168,0.1);
  --red:        #c84b4b;
  --green:      #4bc87a;
  --orange:     #e87e3e;

  /* ── Tier Colors ── */
  --t-blue:    rgba(58,110,168,0.1);
  --t-teal:    rgba(75,200,183,0.08);
  --t-amber:   rgba(200,168,75,0.08);
  --t-coral:   rgba(200,100,75,0.09);
  --t-green:   rgba(75,200,122,0.08);
  --t-pink:    rgba(200,75,150,0.08);

  /* ── Typography ── */
  --mono: 'Space Mono', monospace;
  --sans: 'DM Sans', sans-serif;

  /* ── Layout ── */
  --max:     1140px;
  --nav-h:   56px;
  --gutter:  2rem;
  --radius:  3px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 40px rgba(200,168,75,0.06);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scanlines atmosphere */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 3px,
    rgba(0,0,0,0.018) 3px, rgba(0,0,0,0.018) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Utility classes ── */
.wrap    { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.gold    { color: var(--gold); }
.dim     { color: var(--paper2); }
.mono    { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Section commons ── */
section { padding: 5rem 0; }
.section-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200,168,75,0.2);
  max-width: 200px;
}
h2.section-h2 {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: rgba(240,237,232,0.55);
  max-width: 640px;
  line-height: 1.8;
  margin-bottom: 3rem;
}
.divider { width: 100%; height: 1px; background: var(--rule); }

/* ── Buttons ── */
.btn-primary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--gold2); transform: translateY(-1px); }

.btn-secondary {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 14px 28px;
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  border-radius: var(--radius);
  text-decoration: none;
  display: inline-block;
  transition: border-color .2s, color .2s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s;
}
.btn-link:hover { color: var(--gold); }

/* ── Tag / badge ── */
.tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 1px;
  color: var(--dim);
  border: 1px solid rgba(255,255,255,0.08);
  display: inline-block;
}
.tag-gold {
  background: var(--gold-faint);
  color: var(--gold);
  border-color: rgba(200,168,75,0.25);
}

/* ── Panel / Modal ── */
.overlay {
  position: fixed; inset: 0;
  z-index: 2000;
  background: rgba(3,5,10,0.88);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.overlay.open { display: flex; }
.panel {
  background: var(--ink);
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 4px;
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  animation: panel-in .2s ease;
}
@keyframes panel-in { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
.panel-close {
  position: absolute; top: 1.25rem; right: 1.25rem;
  background: none; border: none;
  color: var(--paper2);
  font-family: var(--mono);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
}
.panel-close:hover { color: var(--paper); }
.panel-badge {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.panel-title {
  font-family: var(--mono);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.panel-body { font-size: 13px; color: rgba(240,237,232,0.72); line-height: 1.8; }
.panel-body p { margin-bottom: 1rem; }
.panel-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.panel-body li { margin-bottom: .4rem; }
.panel-kv { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin-top: 1.25rem; }
.panel-k { font-family: var(--mono); font-size: 9px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; padding-top: 2px; }
.panel-v { font-size: 12px; color: var(--paper); }

/* ── Responsive helpers ── */
@media (max-width: 600px) { :root { --gutter: 1.25rem; } section { padding: 3.5rem 0; } }
