/* ============================================================
   PlannedReady — Brand Design System (tokens + primitives)
   Stay Connected. Stay Prepared. Stay Calm.
   ============================================================ */

:root {
  /* — Core palette — */
  --ink-900: #05070F;   /* deepest background */
  --ink-800: #070B16;   /* base background */
  --ink-700: #0A1124;   /* raised background */
  --ink-600: #0E1730;   /* surface */
  --ink-500: #131F3D;   /* surface raised */

  --line: rgba(150, 178, 235, 0.12);
  --line-strong: rgba(150, 178, 235, 0.22);

  /* — Brand gradient stops — */
  --aqua: #22D3EE;
  --teal: #2DD4BF;
  --indigo: #6366F1;
  --violet: #818CF8;
  --calm: #F4B860;   /* warm "Stay Calm" accent */
  --ready: #34D399;  /* "Stay Prepared" success */
  --alert: #FB7185;  /* emergency only */

  /* — Text — */
  --text: #EAF0FF;
  --text-soft: #C2CFEC;
  --text-muted: #93A4C8;
  --text-faint: #5E6E92;

  /* — Brand gradients — */
  --grad-brand: linear-gradient(120deg, var(--aqua) 0%, var(--teal) 35%, var(--indigo) 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(34,211,238,.18), rgba(99,102,241,.18));
  --grad-text: linear-gradient(100deg, #7FF3FF 0%, #A8B4FF 60%, #C9B3FF 100%);
  --grad-calm: linear-gradient(120deg, #F4B860, #F2A65A);

  /* — Glass surfaces — */
  --glass: rgba(16, 23, 48, 0.55);
  --glass-2: rgba(20, 30, 60, 0.7);
  --glass-border: rgba(160, 185, 240, 0.14);
  --blur: 18px;

  /* — Glow / shadow — */
  --glow-aqua: 0 0 40px rgba(34, 211, 238, 0.35);
  --glow-indigo: 0 0 48px rgba(99, 102, 241, 0.4);
  --shadow-card: 0 24px 60px -24px rgba(2, 6, 23, 0.9), 0 2px 0 0 rgba(255,255,255,0.03) inset;
  --shadow-float: 0 40px 120px -30px rgba(34, 211, 238, 0.25);

  /* — Radius — */
  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* — Type — */
  --font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* — Layout — */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink-800);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* — Gradient text utility — */
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* — Brand mark sizing — */
.brandmark { display: inline-flex; align-items: center; gap: 10px; }
.brandmark svg { width: 32px; height: 32px; }
.brandmark .wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brandmark .wordmark b { color: var(--aqua); font-weight: 700; }

/* — Buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #04121b;
  font-weight: 700;
  box-shadow: 0 12px 40px -12px rgba(34, 211, 238, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -12px rgba(34, 211, 238, 0.7); }
.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* — Glass card — */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

/* — Pill / chip — */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  font-size: 0.82rem;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 10px var(--ready); }

/* — Section primitives — */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--aqua);
}

/* — Reveal-on-scroll — */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
