/* ============================================
   APEX COMMAND SYSTEMS — Design System
   Premium / Executive / Operator
   ============================================ */

:root {
  --navy:      #0A0F1E;
  --navy-2:    #0F172A;
  --navy-3:    #1E293B;
  --navy-4:    #2D3F55;
  --gold:      #C8A96A;
  --gold-light:#DFC08A;
  --white:     #F8F9FC;
  --gray-1:    #E2E8F0;
  --gray-2:    #94A3B8;
  --gray-3:    #64748B;
  --gray-4:    #475569;
  --green:     #22C55E;
  --red:       #EF4444;
  --accent:    var(--gold);
  --bg:        var(--navy);
  --bg-2:      var(--navy-2);
  --bg-3:      var(--navy-3);
  --text:      var(--white);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--white); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--white); }
h3 { font-size: 1.4rem; color: var(--white); }
h4 { font-size: 1.1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
em { font-style: italic; color: var(--gold); }

p { color: var(--gray-2); line-height: 1.75; }

a { color: var(--gold); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

/* ── NAVIGATION ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: rgba(10, 15, 30, 0.95);
  border-bottom: 1px solid rgba(200, 169, 106, 0.15);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-3);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; opacity: 1 !important; }

/* ── HERO ── */
.hero {
  position: relative;
  padding: 120px 48px 100px;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(200,169,106,0.3);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 32px;
}
.hero h1 { margin-bottom: 24px; max-width: 820px; }
.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-2);
  max-width: 620px;
  margin-bottom: 48px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-secondary {
  font-size: 14px;
  color: var(--gray-3);
  margin-top: 20px;
}
.hero-secondary a { color: var(--gold); border-bottom: 1px solid rgba(200,169,106,0.3); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 32px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 32px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.btn-ghost {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(200,169,106,0.4);
  transition: border-color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold); opacity: 1; }

/* ── SECTIONS ── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px;
}
.section-sm {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 48px;
}
.dark-section { background: var(--bg-2); }
.darker-section { background: var(--bg-3); }
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.section-heading { margin-bottom: 24px; }
.section-body { color: var(--gray-2); line-height: 1.8; margin-bottom: 20px; max-width: 680px; }

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 0 32px;
}

/* ── PROBLEM SECTION ── */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.problem-card {
  padding: 32px;
  border: 1px solid rgba(200,169,106,0.15);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.problem-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.problem-card p { font-size: 14px; color: var(--gray-3); line-height: 1.7; }

/* ── METHODOLOGY ── */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.method-card {
  padding: 28px;
  background: rgba(200,169,106,0.05);
  border-top: 2px solid var(--gold);
}
.method-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-bottom: 12px;
}
.method-card h3 { font-size: 1rem; margin-bottom: 10px; }
.method-card p { font-size: 13px; color: var(--gray-3); line-height: 1.65; }

/* ── SERVICES / OFFER CARDS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  padding: 36px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: var(--bg-3);
  position: relative;
}
.service-card.featured {
  border-color: rgba(200,169,106,0.4);
  background: rgba(200,169,106,0.06);
}
.service-badge {
  position: absolute;
  top: -1px;
  right: 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 5px 12px;
  border-radius: 0 0 4px 4px;
}
.service-price {
  font-size: 1.8rem;
  font-family: 'DM Serif Display', serif;
  color: var(--gold);
  margin-bottom: 4px;
}
.service-name { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.service-desc { font-size: 14px; color: var(--gray-3); line-height: 1.7; margin-bottom: 24px; }
.service-includes { list-style: none; margin-bottom: 28px; }
.service-includes li {
  font-size: 13px;
  color: var(--gray-2);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-left: 20px;
  position: relative;
}
.service-includes li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 12px;
}

/* ── CREDENTIALS ── */
.credential-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.credential-logo {
  padding: 10px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-3);
  letter-spacing: 0.05em;
}

/* ── STATS ── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin: 48px 0;
  padding: 48px;
  border-top: 1px solid rgba(200,169,106,0.15);
  border-bottom: 1px solid rgba(200,169,106,0.15);
}
.stat { text-align: left; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { font-size: 13px; color: var(--gray-3); max-width: 160px; line-height: 1.5; }

/* ── CHECKLIST ── */
.checklist { list-style: none; margin-bottom: 32px; }
.checklist li {
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 15px;
  color: var(--gray-2);
  position: relative;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* ── PULL QUOTE ── */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 24px 32px;
  background: rgba(200,169,106,0.04);
  margin: 40px 0;
}
.pull-quote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-1);
  line-height: 1.8;
}

/* ── CTA SECTION ── */
.cta-section {
  text-align: center;
  padding: 100px 48px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid rgba(200,169,106,0.1);
}
.cta-section h2 { margin-bottom: 16px; }
.cta-section .section-body { margin: 0 auto 40px; max-width: 540px; }

/* ── FORM ── */
.opt-in-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.opt-in-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 16px 20px;
  background: var(--bg-3);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  color: var(--white);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.opt-in-form input[type="email"]:focus { border-color: var(--gold); }
.opt-in-form button { cursor: pointer; }
.form-note { font-size: 13px; color: var(--gray-4); }

/* ── PAGE HEADER ── */
.page-header {
  padding: 100px 48px 64px;
  max-width: 1100px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.page-header h1 { margin-bottom: 20px; max-width: 720px; }
.page-header p { font-size: 1.1rem; max-width: 580px; color: var(--gray-2); line-height: 1.8; }

/* ── FOOTER ── */
footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(200,169,106,0.12);
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  max-width: 100%;
}
.footer-brand .logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 8px;
}
.footer-brand .logo span { color: var(--gold); }
.footer-brand .tagline { font-size: 12px; color: var(--gold); letter-spacing: 0.08em; margin-bottom: 12px; }
.footer-brand .desc { font-size: 13px; color: var(--gray-4); line-height: 1.6; max-width: 280px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-3); margin-bottom: 20px; font-family: 'Inter', sans-serif; }
.footer-col a { display: block; font-size: 14px; color: var(--gray-3); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--gray-4); }
.footer-bottom a { font-size: 12px; color: var(--gray-4); margin-left: 24px; }
.footer-bottom a:hover { color: var(--gray-2); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
  .hamburger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy-2);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .hero { padding: 64px 24px 64px; }
  .section { padding: 56px 24px; }
  .section-sm { padding: 56px 24px; }
  .problem-grid, .method-grid, .services-grid { grid-template-columns: 1fr; }
  .stats-row { flex-direction: column; gap: 32px; padding: 32px 24px; }
  footer { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 20px 24px; }
  .footer-bottom a { margin-left: 0; margin-right: 16px; }
  .cta-section { padding: 64px 24px; }
  .page-header { padding: 64px 24px 48px; }
}
