/* =========================================
   COBALT ID — SHARED STYLES
   Single source of truth for all shared CSS.
   Every page links to this file.
   Root pages:    <link rel="stylesheet" href="shared.css">
   Subdir pages:  <link rel="stylesheet" href="../shared.css">
   ========================================= */

/* =========================================
   CSS VARIABLES
   ========================================= */
:root {
  --bg-primary: #060817;
  --bg-secondary: #0A0E1A;
  --bg-card: #111827;
  --bg-card-hover: #151D2E;
  --cyan: #0074B7;
  --cyan-dim: #005D94;
  --cyan-glow: rgba(0, 116, 183, 0.10);
  --cyan-glow-strong: rgba(0, 116, 183, 0.22);
  --text-primary: #F0F4F8;
  --text-secondary: #8896AB;
  --text-dim: #4B5C73;
  --border: #202631;
  --border-hover: rgba(0, 116, 183, 0.5);
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* =========================================
   RESET
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* =========================================
   NAV
   ========================================= */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6, 8, 23, 0.85);
  backdrop-filter: blur(20px);
  transition: all 0.3s;
}
nav.scrolled { background: rgba(6, 8, 23, 0.95); }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo {
  display: flex; align-items: center;
  text-decoration: none; flex-shrink: 0;
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--text-secondary); text-decoration: none; font-size: 14px;
  font-weight: 500; transition: color 0.2s; letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); }
.nav-dropdown { position: relative; }
.nav-drop-btn {
  background: none; border: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: var(--font); display: flex; align-items: center; gap: 4px;
  transition: color 0.2s; padding: 20px 0; letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-drop-btn:hover { color: var(--text-primary); }
.drop-arrow { font-size: 10px; transition: transform 0.2s; opacity: 0.6; }
.nav-dropdown:hover .drop-arrow { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px; min-width: 260px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: all 0.18s ease; z-index: 200;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 116, 183, 0.06);
}
.dropdown-menu.wide { min-width: 300px; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px;
  border-radius: 8px; text-decoration: none; transition: background 0.15s; color: inherit;
}
.dropdown-item:hover { background: rgba(255,255,255,0.04); }
.drop-icon {
  width: 32px; height: 32px; border-radius: 6px; background: var(--cyan-glow);
  border: 1px solid rgba(0, 116, 183, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; margin-top: 1px;
}
.drop-text strong { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 1px; }
.drop-text span { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }
.dropdown-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.dropdown-header { padding: 6px 12px 4px; font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }

/* CTA button in nav */
.btn-demo {
  background: var(--cyan); color: #FFFFFF; border: none;
  padding: 8px 20px; border-radius: 6px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  text-decoration: none; display: inline-block; white-space: nowrap;
  will-change: transform;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease-out;
}
.btn-demo:hover {
  background: #005D94;
  box-shadow: 0 4px 16px rgba(0, 116, 183, 0.18);
  transform: scale(0.995);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

/* Mobile nav */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-primary); font-size: 24px; cursor: pointer; }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg-secondary);
  padding: 24px; z-index: 99; max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 4px; }
.mobile-section-label { font-size: 11px; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; padding: 12px 0 4px; }
.mobile-menu a { color: var(--text-secondary); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-menu a.btn-demo { margin-top: 12px; text-align: center; border-bottom: none; }

/* =========================================
   LAYOUT
   ========================================= */
section { padding: 100px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

/* =========================================
   SECTION HEADERS
   ========================================= */
.section-label {
  font-size: 12px; font-weight: 600; color: var(--cyan); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; line-height: 1.2;
  margin-bottom: 16px; letter-spacing: -0.01em;
  text-align: center;
}
.section-subtitle {
  font-size: 17px; color: var(--text-secondary); max-width: 640px; line-height: 1.7;
  text-align: center; margin-left: auto; margin-right: auto;
}
p.section-subtitle { text-align: center; margin-left: auto; margin-right: auto; }

/* =========================================
   PAGE HERO (all non-homepage pages)
   ========================================= */
.page-hero {
  padding: 140px 24px 80px; background: var(--bg-primary);
  position: relative; overflow: hidden; text-align: center;
}
.page-hero::before {
  content: ''; position: absolute; top: -200px; right: -100px;
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 116, 183, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 13px; font-weight: 600; color: var(--cyan); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
  justify-content: center;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--cyan); }
.page-hero h1 {
  font-size: clamp(32px, 4.5vw, 52px); font-weight: 600; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -0.02em; max-width: 800px; margin-left: auto; margin-right: auto;
}
.page-hero h1 em { font-style: normal; color: var(--cyan); }
.page-hero .subtitle {
  font-size: 18px; color: var(--text-secondary); max-width: 600px;
  line-height: 1.7; margin-bottom: 36px;
}
.hero-ctas { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
  background: var(--cyan); color: #FFFFFF; border: none;
  padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 600;
  cursor: pointer; font-family: var(--font);
  text-decoration: none; display: inline-block;
  will-change: transform;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease-out;
}
.btn-primary:hover {
  background: #005D94;
  box-shadow: 0 4px 16px rgba(0, 116, 183, 0.18);
  transform: scale(0.995);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.btn-secondary {
  background: transparent; color: var(--text-primary); border: 1px solid var(--border);
  padding: 14px 32px; border-radius: 8px; font-size: 16px; font-weight: 500;
  cursor: pointer; font-family: var(--font);
  text-decoration: none; display: inline-block;
  will-change: transform;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.25s ease-out;
}
.btn-secondary:hover {
  border-color: var(--cyan);
  box-shadow: 0 4px 14px rgba(0, 116, 183, 0.10);
  transform: scale(0.995);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

/* =========================================
   BOTTOM CTA
   ========================================= */
.bottom-cta {
  background: var(--bg-primary); text-align: center; padding: 120px 24px;
  position: relative; overflow: hidden;
}
.bottom-cta::before {
  content: ''; position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 116, 183, 0.1) 0%, rgba(0, 116, 183, 0.02) 40%, transparent 70%);
  pointer-events: none;
}
.bottom-cta h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; margin-bottom: 16px; position: relative; }
.bottom-cta p { font-size: 17px; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; position: relative; }
.bottom-cta .cta-sub { font-size: 14px; color: var(--text-dim); margin-top: 16px; margin-bottom: 0; }
.bottom-cta .cta-sub a { color: var(--cyan); text-decoration: none; }
.bottom-cta .cta-sub a:hover { text-decoration: underline; }

/* =========================================
   FOOTER
   ========================================= */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 64px 24px 0;
}
.footer-main {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: start; gap: 56px;
}
.footer-brand { flex: 0 0 220px; margin-right: auto; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.7; margin-top: 8px; max-width: 220px; }
.footer-col { flex: 0 0 150px; }
.footer-col h4 { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-secondary); text-decoration: none; margin-bottom: 10px; transition: color 0.2s; line-height: 1.4; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0; padding: 24px 0 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 12px; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: var(--text-dim); text-decoration: none; }
.footer-legal a:hover { color: var(--cyan); }

/* =========================================
   ICON BOX UTILITY
   ========================================= */
.icon-box {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0, 116, 183, 0.08);
  border: 1px solid rgba(0, 116, 183, 0.12);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.icon-box svg { width: 22px; height: 22px; stroke: #0074B7; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeUp 0.6s ease forwards; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .footer-main { flex-wrap: wrap; gap: 40px; }
  .footer-brand { flex: 0 0 100%; margin-right: 0; }
}
@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; }
  .mobile-menu-btn { display: block; }
  .footer-main { flex-wrap: wrap; gap: 32px; }
  .footer-brand { flex: 0 0 100%; }
  .footer-col { flex: 0 0 calc(50% - 16px); }
  section { padding: 60px 16px; }
  .page-hero { padding: 100px 16px 60px; }
}
@media (max-width: 480px) {
  .footer-col { flex: 0 0 100%; }
}
