/* ============================================================
   DERON DESIGN SYSTEM — "PRECISION MISSION"
   Multi-page SEO-ready architecture
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --bg-light:      #F7F6F2;
  --bg-white:      #FDFCF9;
  --bg-dark:       #0B0E13;
  --bg-mid:        #111720;
  --bg-section:    #F2F0EB;
  --text-primary:  #111111;
  --text-body:     #2A2A2A;
  --text-muted:    #6B6660;
  --text-inv:      #EDE9E3;
  --text-inv-muted:#8A9BAE;
  --red:           #C41E3A;
  --red-hover:     #A3172F;
  --green:         #2E5A3F;
  --gold:          #B8901A;
  --border:        #E0DDD6;
  --border-dark:   #232D3F;
  --font-display:  'Be Vietnam Pro', sans-serif;
  --font-body:     'Be Vietnam Pro', sans-serif;
  --font-label:    'Barlow Condensed', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --radius:        4px;
  --radius-lg:     8px;
  --transition:    200ms ease;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg-light);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- TYPOGRAPHY --- */
.label {
  font-family: var(--font-label);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
.label-red { color: var(--red); }
.label-inv { color: var(--text-inv-muted); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(42px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.01em;
}
p { max-width: 60ch; }

.text-inv { color: var(--text-inv); }
.text-inv p, .text-inv h1, .text-inv h2, .text-inv h3, .text-inv h4 { color: var(--text-inv); }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* --- NAVIGATION --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(11, 14, 19, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 18px; letter-spacing: 0.04em; color: #fff;
}
.nav-logo .dot { color: var(--red); }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
  font-family: var(--font-label);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  padding: 8px 14px; border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.08);
}
.nav-cta {
  font-family: var(--font-label);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; background: var(--red);
  padding: 9px 18px; border-radius: var(--radius);
  transition: background var(--transition);
  display: inline-block;
}
.nav-cta:hover { background: var(--red-hover); }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.07); }
.btn-outline-dark { border: 1.5px solid var(--border); color: var(--text-primary); }
.btn-outline-dark:hover { border-color: var(--text-primary); }
.btn-arrow::after { content: '→'; margin-left: 4px; transition: transform var(--transition); }
.btn-arrow:hover::after { transform: translateX(4px); }

/* --- HERO --- */
.hero {
  min-height: 80vh; background: var(--bg-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(196,30,58,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,30,58,0.04) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.4;
}
.hero-content {
  position: relative; z-index: 2;
  padding: 140px 32px 100px;
  max-width: 1200px; margin: 0 auto; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-label);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(196,30,58,0.35);
  padding: 6px 12px; border-radius: 2px;
  margin-bottom: 32px;
}
.hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-title {
  color: #fff;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900; line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 28px; max-width: 800px;
}
.hero-title span { color: var(--red); }
.hero-sub {
  font-size: 18px; font-weight: 400;
  color: var(--text-inv-muted);
  line-height: 1.7; margin-bottom: 48px; max-width: 520px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- PAGE HERO (smaller) --- */
.page-hero {
  background: var(--bg-dark);
  padding: 140px 0 80px;
  position: relative; overflow: hidden;
}

/* --- TILE GRID (gap-2px pattern) --- */
.tile-grid {
  display: grid;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tile-grid.dark {
  background: var(--border-dark);
  border-color: var(--border-dark);
}
.tile-grid .cell { background: var(--bg-white); padding: 44px 32px; }
.tile-grid.dark .cell { background: var(--bg-mid); padding: 40px 32px; }
.tile-grid.dark .cell h4 { color: var(--text-inv); }
.tile-grid.dark .cell p { color: var(--text-inv-muted); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --- SPEC TABLE --- */
.spec-table {
  width: 100%; border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); overflow: hidden;
}
.spec-row {
  display: grid; grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border-dark);
}
.spec-row:last-child { border-bottom: none; }
.spec-key {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-inv-muted);
  padding: 18px 24px;
  border-right: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.02);
}
.spec-val {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--text-inv);
  padding: 18px 24px;
}
.spec-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
  margin-left: 8px;
  background: rgba(196,30,58,0.15);
  color: var(--red);
}

/* --- STATUS BADGE --- */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(196,30,58,0.15);
  border: 1px solid rgba(196,30,58,0.3);
  border-radius: 4px; padding: 6px 12px;
}
.status-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--red); animation: pulse 2s infinite;
}
.status-badge span {
  font-family: var(--font-label);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}

/* --- TIMELINE --- */
.timeline { position: relative; margin-top: 48px; }
.timeline::before {
  content: ''; position: absolute; left: 32px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 32px; margin-bottom: 48px; position: relative;
}
.timeline-marker {
  display: flex; align-items: flex-start;
  justify-content: center; padding-top: 4px;
  position: relative; z-index: 1;
}
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red);
  border: 3px solid var(--bg-light);
  box-shadow: 0 0 0 1px var(--red);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--red);
  font-weight: 500; margin-bottom: 8px;
}
.timeline-content h4 { margin-bottom: 8px; }
.timeline-content p { color: var(--text-muted); font-size: 14px; max-width: 480px; }

/* --- FOOTER --- */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-dark);
  padding: 64px 32px 40px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 280px repeat(3, 1fr);
  gap: 48px; margin-bottom: 56px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display); font-weight: 900;
  font-size: 20px; letter-spacing: 0.02em;
  color: #fff; margin-bottom: 14px;
}
.footer-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  .footer-logo-light { display: none; }
  .footer-logo-dark { display: block; }
}
.footer-brand-desc {
  font-size: 13px; color: var(--text-inv-muted);
  line-height: 1.6; max-width: 220px; margin-bottom: 24px;
}
.footer-tagline {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(196,30,58,0.7);
}
.footer-col-title {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-inv-muted); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 14px; color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-link:hover { color: #fff; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-location {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.25);
}

/* --- REVEAL ANIMATION --- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* --- BREADCRUMB --- */
.breadcrumb {
  font-family: var(--font-label);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-inv-muted); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { margin: 0 8px; opacity: 0.4; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container, .container-narrow { padding: 0 20px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .cols-3 { grid-template-columns: 1fr; }
  .cols-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero-ctas { flex-direction: column; }
  .hero { min-height: 70vh; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-key { border-right: none; border-bottom: 1px solid var(--border-dark); }
}

/* --- FOCUS --- */
*:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* --- UTILITY --- */
.mt-0 { margin-top: 0; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.max-w-600 { max-width: 600px; }
.max-w-720 { max-width: 720px; }
.text-muted { color: var(--text-muted); }
.text-18 { font-size: 18px; }
.mono-sm { font-family: var(--font-mono); font-size: 11px; color: var(--red); }
