/*
 * shared/styles.css — design tokens and shared component styles
 *
 * Covers: CSS variables, reset, typography, nav, footer, buttons, modals
 * Page-specific styles stay inside each HTML file's <style> block.
 *
 * Usage in any HTML file:
 *   <link rel="stylesheet" href="/shared/styles.css">
 */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=IBM+Plex+Mono:wght@400;500;600&family=Figtree:wght@300;400;500;600;700&display=swap');

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  --navy:   #0D1B2E;
  --navy2:  #112240;
  --navy3:  #162d4a;
  --blue:   #3B8EF0;
  --blue2:  #5BA3F5;
  --mint:   #2ED8A8;
  --mint2:  #52E4B9;
  --amber:  #F0A030;
  --red:    #E05252;
  --white:  #FFFFFF;
  --muted:  #8FA8C8;
  --border:  rgba(59,142,240,0.15);
  --border2: rgba(255,255,255,0.08);
  --fd: 'Bricolage Grotesque', sans-serif;
  --fb: 'Figtree', sans-serif;
  --fm: 'IBM Plex Mono', monospace;
}

/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fb);
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: var(--fb); cursor: pointer; border: none; background: none; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ── Typography helpers ───────────────────────────────────────────────────── */
.lbl { font-family: var(--fm); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); margin-bottom: 16px; display: block; }
.h1  { font-family: var(--fd); font-size: clamp(40px,6vw,78px); font-weight: 800; line-height: 1.02; letter-spacing: -3px; color: var(--white); }
.h2  { font-family: var(--fd); font-size: clamp(30px,4vw,52px); font-weight: 800; line-height: 1.08; letter-spacing: -2px; color: var(--white); }
.h3  { font-family: var(--fd); font-size: 22px; font-weight: 700; letter-spacing: -.5px; }
.sub { font-size: 19px; color: var(--muted); line-height: 1.65; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-ghost {
  font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border2);
  transition: all .15s; background: transparent;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }

.btn-primary {
  font-size: 14px; font-weight: 700; color: var(--navy);
  padding: 9px 22px; border-radius: 8px;
  background: linear-gradient(135deg,var(--mint),var(--mint2));
  transition: all .2s; box-shadow: 0 2px 12px rgba(46,216,168,0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(46,216,168,0.5); }

.btn-primary-lg {
  font-size: 16px; font-weight: 700; color: var(--navy);
  padding: 14px 32px; border-radius: 10px;
  background: linear-gradient(135deg,var(--mint),var(--mint2));
  transition: all .2s; box-shadow: 0 4px 20px rgba(46,216,168,0.4);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary-lg:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(46,216,168,0.55); }

.btn-outline-lg {
  font-size: 16px; font-weight: 600; color: var(--white);
  padding: 14px 32px; border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04); transition: all .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline-lg:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }

/* ── Decorative ───────────────────────────────────────────────────────────── */
.glow-b { position: absolute; border-radius: 50%; background: radial-gradient(circle,rgba(59,142,240,0.18) 0%,transparent 70%); pointer-events: none; }
.glow-m { position: absolute; border-radius: 50%; background: radial-gradient(circle,rgba(46,216,168,0.12) 0%,transparent 70%); pointer-events: none; }
.grid-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; background-image: linear-gradient(rgba(59,142,240,0.04) 1px,transparent 1px),linear-gradient(90deg,rgba(59,142,240,0.04) 1px,transparent 1px); background-size: 64px 64px; }

/* ── Animations ───────────────────────────────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(22px) } to { opacity:1; transform:translateY(0) } }
@keyframes pulse  { 0%,100% { opacity:1; transform:scale(1) } 50% { opacity:.5; transform:scale(.85) } }
.fu { animation: fadeUp .55s ease-out both; }
.d1 { animation-delay: .1s } .d2 { animation-delay: .2s } .d3 { animation-delay: .3s } .d4 { animation-delay: .35s }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(13,27,46,0.88); backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border2); height: 64px;
}
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; height: 64px; }
.nav-logo   { display: flex; align-items: center; gap: 10px; font-family: var(--fd); font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--white); margin-right: 40px; cursor: pointer; }
.nav-badge  { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg,var(--blue),var(--blue2)); display: flex; align-items: center; justify-content: center; font-family: var(--fd); font-size: 11px; font-weight: 800; color: white; box-shadow: 0 2px 8px rgba(59,142,240,0.4); }
.nav-links  { display: flex; gap: 4px; list-style: none; flex: 1; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); padding: 6px 14px; border-radius: 7px; transition: color .15s,background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Hamburger ────────────────────────────────────────────────────────────── */
.nav-hamburger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--border2); cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-hamburger span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s,opacity .2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu ──────────────────────────────────────────────────────────── */
.nav-mobile-menu { position: fixed; top: 64px; left: 0; right: 0; z-index: 199; background: rgba(11,23,40,.97); backdrop-filter: blur(24px) saturate(160%); border-bottom: 1px solid var(--border2); padding: 12px 20px 24px; display: none; flex-direction: column; gap: 2px; }
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a { font-size: 15px; font-weight: 500; color: var(--muted); padding: 13px 14px; border-radius: 8px; display: block; transition: color .15s,background .15s; }
.nav-mobile-menu a:hover, .nav-mobile-menu a.m-active { color: var(--white); background: rgba(255,255,255,.07); }
.nav-mob-divider { height: 1px; background: var(--border2); margin: 10px 0; }
.nav-mob-btns { display: flex; flex-direction: column; gap: 10px; }
.nav-mob-btns .btn-ghost, .nav-mob-btns .btn-primary { width: 100%; text-align: center; padding: 12px; font-size: 15px; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
footer { padding: 56px 28px 38px; border-top: 1px solid var(--border2); }
.ft-inner { max-width: 1160px; margin: 0 auto; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 48px; }
.ft-desc { font-size: 14px; color: var(--muted); line-height: 1.7; margin-top: 12px; max-width: 250px; }
.ft-col h4 { font-family: var(--fm); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.ft-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-col li a { font-size: 14px; color: rgba(255,255,255,.45); transition: color .15s; }
.ft-col li a:hover { color: var(--white); }
.ft-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border2); flex-wrap: wrap; gap: 10px; }
.ft-copy { font-size: 13px; color: var(--muted); }
.ft-disc { font-size: 12px; color: rgba(143,168,200,.45); max-width: 580px; line-height: 1.5; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn-ghost, .nav-actions .btn-primary { display: none; }
  .ft-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .ft-top { grid-template-columns: 1fr !important; gap: 28px; }
  .ft-bot { flex-direction: column; gap: 8px; text-align: center; }
  .ft-disc { font-size: 10px; }
  .h2 { letter-spacing: -1px; font-size: clamp(26px,7vw,48px); }
  .sub { font-size: 17px; }
}
