/* ============================================================
   StratoData — Night Cockpit Cinematic v3
   ============================================================ */

:root {
  --void: #06080f;
  --navy: #0a0f1e;
  --navy-brand: #1E2761;
  --surface: #0f172a;
  --slate: #1e293b;
  --white: #ffffff;
  --g50: #f8fafc;
  --g100: #f1f5f9;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --sky: #0ea5e9;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --tw: #ffffff;
  --tl: #e2e8f0;
  --tm: #94a3b8;
  --td: #0f172a;
  --tds: #334155;
  --tdm: #64748b;
  --ff-d: 'Plus Jakarta Sans', sans-serif;
  --ff-b: 'DM Sans', sans-serif;
  --ff-m: 'JetBrains Mono', monospace;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--ff-b); font-size: 18px; line-height: 1.7; background: var(--void); color: var(--tl); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input { font-family: inherit; }

/* ---- Page Loader ---- */
#page-loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--void);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease;
}
#page-loader.done { opacity: 0; pointer-events: none; }
.loader-line {
  width: 0; height: 1px;
  background: var(--blue);
  box-shadow: 0 0 16px var(--blue), 0 0 40px rgba(59,130,246,0.3);
  animation: loader-draw 0.8s 0.5s ease-out forwards;
}
@keyframes loader-draw { to { width: 140px; } }

/* ---- Scroll Progress ---- */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  width: 0; background: var(--blue); z-index: 9999;
}

/* ---- Utility ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.sec-light { background: var(--white); color: var(--td); padding: 120px 0; }
.sec-dark { background: var(--navy); color: var(--tl); padding: 120px 0; position: relative; }
.sec-blue { background: var(--surface); }

.sh {
  font-family: var(--ff-d); font-weight: 800;
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.15; letter-spacing: -0.03em;
  color: var(--td); margin-bottom: 60px; text-align: center;
}
.sh--lt { color: var(--tw); }

/* ---- Reveals ---- */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal { transform: translateY(30px); }
.reveal-left { transform: translateX(-40px); }
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible {
  opacity: 1; transform: translate(0);
}

/* ---- Navigation ---- */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s ease;
  pointer-events: none;
}
#nav.visible { opacity: 1; transform: translateY(0); pointer-events: all; }
#nav.scrolled {
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: baseline; }
.logo-s {
  font-family: var(--ff-d); font-weight: 700; font-size: 22px;
  color: var(--tw); letter-spacing: -0.02em;
}
.logo-d {
  font-family: var(--ff-d); font-weight: 700; font-size: 22px;
  color: var(--blue); letter-spacing: -0.02em;
}
#nav-links { display: flex; align-items: center; gap: 2rem; }
#nav-links a {
  font-size: 15px; color: var(--tm); font-weight: 500;
  transition: color 0.2s;
}
#nav-links a:hover { color: var(--tw); }
#nav-links a.active { color: var(--tw); }
.nav-cta {
  background: var(--blue) !important; color: var(--tw) !important;
  padding: 10px 20px !important; border-radius: 6px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover { background: #2563eb !important; transform: translateY(-1px); }

/* Client Portal link */
.nav-portal {
  font-size: 14px !important; color: var(--tm) !important;
  opacity: 0.8; transition: color 0.2s, opacity 0.2s !important;
}
.nav-portal:hover { color: var(--tw) !important; opacity: 1; }

#nav-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 4px;
}
#nav-toggle span {
  width: 22px; height: 2px; background: var(--tw);
  transition: transform 0.3s, opacity 0.3s;
}
#nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.active span:nth-child(2) { opacity: 0; }
#nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block; background: var(--blue); color: var(--tw);
  padding: 14px 32px; border-radius: 6px;
  font-family: var(--ff-d); font-weight: 600; font-size: 15px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: #2563eb; transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59,130,246,0.3);
}

/* ---- Announcement Bar ---- */
#announce-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1100;
  background: linear-gradient(90deg, var(--navy-brand) 0%, #162052 50%, var(--navy-brand) 100%);
  border-top: 1px solid rgba(59,130,246,0.15);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 9px 2rem;
  font-size: 12px; letter-spacing: 0.06em; color: var(--tm);
  transition: transform 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
#announce-bar.dismissed { transform: translateY(100%); opacity: 0; pointer-events: none; }
.announce-text {
  white-space: nowrap; text-transform: uppercase;
  font-family: var(--ff-m); font-size: 11px; letter-spacing: 0.1em;
}
.announce-text::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue); margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--blue);
  animation: announce-pulse 2s ease-in-out infinite;
}
@keyframes announce-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.announce-link {
  color: var(--tw) !important; font-weight: 600;
  font-family: var(--ff-d); font-size: 12px;
  white-space: nowrap; transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 1px;
}
.announce-link:hover { color: var(--blue) !important; border-color: var(--blue); }
#announce-close {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--tm); font-size: 16px; line-height: 1; padding: 4px 8px;
  opacity: 0.4; transition: opacity 0.2s;
}
#announce-close:hover { opacity: 1; }

/* ---- Trust Strip ---- */
#trust-strip {
  background: var(--void);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px 2rem; text-align: center;
}
.trust-stats {
  font-family: var(--ff-d); font-size: 14px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tm);
}
.trust-sub {
  font-size: 13px; font-style: italic; color: var(--tdm);
  margin-top: 8px;
}

/* ---- Hero CTAs ---- */
.hero-ctas { display: flex; align-items: center; gap: 24px; }
.hero-secondary {
  font-family: var(--ff-d); font-size: 15px; font-weight: 600;
  color: var(--tm); transition: color 0.2s;
}
.hero-secondary:hover { color: var(--tw); }

/* ---- Cookie Consent ---- */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1200;
  background: var(--surface); border-top: 1px solid var(--slate);
  padding: 16px 2rem;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#cookie-banner.visible { opacity: 1; transform: translateY(0); }
#cookie-banner p {
  font-size: 13px; color: var(--tm); line-height: 1.5; margin: 0;
}
#cookie-banner a { color: var(--blue); }
#cookie-banner a:hover { text-decoration: underline; }
#cookie-accept {
  flex-shrink: 0; padding: 8px 20px;
  background: var(--blue); color: var(--tw);
  border-radius: 5px; font-family: var(--ff-d);
  font-size: 13px; font-weight: 600;
  transition: background 0.2s;
}
#cookie-accept:hover { background: #2563eb; }
@media (max-width: 640px) {
  #cookie-banner { flex-direction: column; gap: 12px; text-align: center; }
}

/* ---- Footer ---- */
#footer {
  background: var(--void); padding: 60px 0 40px;
  border-top: 1px solid rgba(59,130,246,0.06);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem; text-align: center;
}
.footer-brand { margin-bottom: 24px; }
.footer-brand p { font-size: 14px; color: var(--tm); margin-top: 8px; }
.footer-links {
  margin-bottom: 24px; display: flex; justify-content: center;
  align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-links a { font-size: 14px; color: var(--tm); transition: color 0.2s; }
.footer-links a:hover { color: var(--tw); }
.footer-sep { color: var(--slate); font-size: 14px; }
.footer-copy { font-size: 12px; color: var(--tm); opacity: 0.6; }

/* ---- Responsive: Nav only ---- */
@media (max-width: 640px) {
  #nav-toggle { display: flex; }
  #nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(10,15,30,0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    flex-direction: column; padding: 20px 2rem; gap: 16px;
    transform: translateY(-10px); opacity: 0; pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
  }
  #nav-links.open { opacity: 1; transform: translateY(0); pointer-events: all; }
  #announce-bar { font-size: 11px; gap: 8px; padding: 6px 40px 6px 1rem; flex-wrap: wrap; justify-content: center; }
  .hero-ctas { flex-direction: column; gap: 16px; }
}
