/* ==========================================================================
   StormSync Media — Shared Design System
   Served from assets.sswx.space — every subdomain links to this file so
   branding updates happen in ONE place.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* --- Color tokens --- */
  --bg: #0A0E16;
  --bg-elevated: #121826;
  --bg-elevated-2: #171F30;
  --border: #232C3F;

  --storm-blue: #3B6FE0;
  --storm-blue-bright: #6D93F0;
  --radar-teal: #1FD8C4;
  --alert-gold: #F5B400;

  --text-primary: #EDF1F7;
  --text-muted: #8A94A6;
  --text-faint: #5C6578;

  --gradient-headline: linear-gradient(90deg, var(--storm-blue-bright), var(--radar-teal));

  /* --- Type tokens --- */
  --font-display: 'Chakra Petch', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* --- Layout tokens --- */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-width: 1180px;
  --space-section: clamp(64px, 10vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--radar-teal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gradient-text {
  background: var(--gradient-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--storm-blue);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(59,111,224,0);
}
.btn-primary:hover { background: var(--storm-blue-bright); box-shadow: 0 6px 24px -6px rgba(59,111,224,0.55); }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--storm-blue-bright); color: var(--storm-blue-bright); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --- Cards --- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

/* --- Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,14,22,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand img { height: 28px; width: 28px; }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 0.85rem;
}

/* --- Visually hidden (a11y) --- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Focus visibility --- */
:focus-visible {
  outline: 2px solid var(--radar-teal);
  outline-offset: 2px;
}
