/* ============================================
   AEGIS — Autonomous AI vCIO for MSPs
   Theme CSS
   ============================================ */

/* --- Variables --- */
:root {
  --bg:        #0a0e1a;
  --bg-2:      #0f1525;
  --fg:        #e8e4d9;
  --fg-muted:  #9a978e;
  --gold:      #c9a84c;
  --gold-light:#e8d5a3;
  --gold-dark: #9a7830;
  --teal:      #00d4aa;
  --teal-dim:  #00d4aa44;
  --border:    rgba(201,168,76,0.18);
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg);
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

::selection { background: var(--gold); color: var(--bg); }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.nav-tagline {
  font-size: 12px;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 48px 80px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0,212,170,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  font-weight: 500;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 28px;
}
.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
/* Shield Visual */
.shield-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.shield-svg {
  width: 100%;
  max-width: 360px;
  filter: drop-shadow(0 0 40px rgba(0,212,170,0.15)) drop-shadow(0 0 80px rgba(201,168,76,0.1));
  animation: shieldPulse 4s ease-in-out infinite;
}
@keyframes shieldPulse {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(0,212,170,0.15)) drop-shadow(0 0 80px rgba(201,168,76,0.1)); }
  50%       { filter: drop-shadow(0 0 60px rgba(0,212,170,0.25)) drop-shadow(0 0 100px rgba(201,168,76,0.15)); }
}
.shield-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 500;
}
.shield-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--fg-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--teal); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px var(--teal); }
}

/* --- Manifesto --- */
.manifesto {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
}
.manifesto-deck {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.manifesto-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 36px;
}
.manifesto-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.manifesto-body:last-child { margin-bottom: 0; }

/* --- Features --- */
.features {
  padding: 100px 48px;
}
.features-header {
  max-width: 820px;
  margin: 0 auto 72px;
  text-align: center;
}
.section-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg);
  padding: 48px 40px;
  transition: background 0.2s;
}
.feature-card:hover { background: var(--bg-2); }
.feature-icon {
  margin-bottom: 24px;
}
.feature-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.feature-desc {
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.7;
}

/* --- QBR Section --- */
.qbr-section {
  padding: 100px 48px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.qbr-inner {
  max-width: 900px;
  margin: 0 auto;
}
.qbr-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}
.qbr-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 64px;
}
.qbr-flow {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.qbr-step {
  flex: 1;
  border: 1px solid var(--border);
  padding: 28px 24px;
  background: var(--bg);
}
.qbr-step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  color: var(--gold-dark);
  opacity: 0.5;
  margin-bottom: 16px;
  line-height: 1;
}
.qbr-step-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 10px;
}
.qbr-step-content p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.qbr-arrow {
  display: flex;
  align-items: center;
  padding-top: 28px;
  flex-shrink: 0;
}

/* --- Closing --- */
.closing {
  padding: 120px 48px;
}
.closing-inner {
  max-width: 760px;
  margin: 0 auto;
}
.closing-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--gold-light);
  margin-bottom: 40px;
}
.closing-body {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.75;
  margin-bottom: 24px;
}
.closing-statement {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--fg);
  letter-spacing: -0.01em;
}

/* --- Footer --- */
.footer {
  padding: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.footer-tagline {
  font-size: 13px;
  color: var(--fg-muted);
}
.footer-sub {
  font-size: 12px;
  color: var(--fg-muted);
  opacity: 0.5;
  letter-spacing: 0.04em;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .shield-svg { max-width: 260px; }
  .features-grid { grid-template-columns: 1fr; }
  .qbr-flow { flex-direction: column; }
  .qbr-arrow { transform: rotate(90deg); padding: 0; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 600px) {
  .nav { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .manifesto, .features, .qbr-section, .closing { padding: 72px 24px; }
  .footer { padding: 36px 24px; }
  .hero-headline { font-size: 44px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}