/* Coverwave — shared system */

:root {
  --bg: #020617;
  --bg-elev: #060d1f;
  --bg-card: #0a1428;
  --bg-card-hi: #0f1c36;
  --border: rgba(148, 163, 184, 0.10);
  --border-hi: rgba(148, 163, 184, 0.18);
  --border-glow: rgba(34, 211, 238, 0.30);

  --fg: #f8fafc;
  --fg-2: #e2e8f0;
  --fg-3: #cbd5e1;
  --body: #94a3b8;
  --muted: #64748b;
  --dim: #475569;

  --cyan: #22d3ee;
  --cyan-2: #67e8f9;
  --blue: #2563eb;
  --blue-2: #3b82f6;

  --grad: linear-gradient(135deg, #22d3ee 0%, #2563eb 100%);
  --grad-text: linear-gradient(180deg, #f8fafc 0%, #94a3b8 100%);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 40px);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--fg-2);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

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

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

/* ── Layout ───────────────────────────────────────────────── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); overflow: hidden; }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* ── Type ─────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--cyan);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.7);
}

.h-display {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.h1 {
  font-size: clamp(36px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.h3 {
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--fg);
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--body);
  max-width: 60ch;
  margin: 0;
  font-weight: 400;
}
.body { color: var(--body); }
.mono { font-family: var(--font-mono); }
.gradient-text {
  background: linear-gradient(120deg, #fff 0%, #67e8f9 60%, #3b82f6 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #fff;
  color: #020617;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 0 0 1px rgba(255,255,255,0.12);
}
.btn-primary:hover { background: #e2e8f0; transform: translateY(-1px); }
.btn-ghost {
  color: var(--fg-2);
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(148, 163, 184, 0.3); }
.btn-cyan {
  background: var(--grad);
  color: #021526;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(34,211,238,0.3), 0 8px 32px -8px rgba(34, 211, 238, 0.6);
}
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(34,211,238,0.5), 0 12px 40px -8px rgba(34, 211, 238, 0.8); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: rgba(2, 6, 23, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-size: 15px;
}
.logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0;
  font-feature-settings: "ss01";
  box-shadow: 0 4px 16px -4px rgba(34,211,238,0.5), inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav-links {
  display: flex;
  gap: 4px;
  font-size: 14px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 6px;
  color: var(--body);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--fg); }
.nav-cta { display: flex; gap: 8px; align-items: center; }

.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-hi);
  background: rgba(255,255,255,0.02);
  place-items: center;
  color: var(--fg-2);
  cursor: pointer;
  transition: background 0.15s;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.05); }
.nav-mobile {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(2,6,23,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 49;
  padding: 24px var(--pad);
}
.nav-mobile.open { display: grid; gap: 4px; align-content: start; }
.nav-mobile a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--fg-2);
  transition: background 0.15s;
}
.nav-mobile a:hover { background: rgba(255,255,255,0.04); }
.nav-mobile .mobile-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.nav-mobile .mobile-cta .btn { justify-content: center; }

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: grid; }
  .nav-inner { gap: 12px; }
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  background:
    radial-gradient(ellipse 800px 200px at 50% 0%, rgba(34,211,238,0.06), transparent 60%),
    var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; color: var(--body); }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ── Backgrounds: grid + glow ─────────────────────────────── */
.bg-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148,163,184,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(148,163,184,0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.bg-glow {
  position: absolute;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(34,211,238,0.22), rgba(37,99,235,0.10) 35%, transparent 70%);
  filter: blur(40px);
}
.bg-glow--hero {
  top: -120px; left: 50%;
  width: 1100px; height: 540px;
  transform: translateX(-50%);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, rgba(15, 28, 54, 0.6) 0%, rgba(10, 20, 40, 0.4) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 30%);
  pointer-events: none;
}

/* ── Pill / chip ──────────────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-hi);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--fg-3);
  text-transform: uppercase;
}
.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(34,211,238,0.7);
}

/* ── Section header ───────────────────────────────────────── */
.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
  max-width: 720px;
}
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .lead { margin-left: auto; margin-right: auto; }

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
  border: 0;
}

/* ── Anim ─────────────────────────────────────────────────── */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
