/* =============================================================
   WEBVAR DESIGN SYSTEM v1
   Drop into any page:  <link rel="stylesheet" href="/webvar-design-system.css">
   Pair with Google Font:
     <link href="https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
   ============================================================= */

/* ── 1. RESET ───────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--wv-font);
  background: var(--wv-bg);
  color: var(--wv-text);
  line-height: 1.55;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em
}

a {
  text-decoration: none;
  color: inherit
}

img,
svg {
  display: block;
  max-width: 100%
}

/* ── 2. TOKENS ──────────────────────────────────────────────── */
:root {
  /* Surfaces (darkest → lightest) */
  --wv-bg: #070e14;
  --wv-bg2: #0a1520;
  --wv-bg3: #0d1c2e;
  --wv-surface: #111e2b;
  --wv-surface2: #16263a;
  --wv-surface3: #1c3048;

  /* Borders */
  --wv-border: rgba(255, 255, 255, 0.07);
  --wv-border-c: rgba(0, 200, 212, 0.18);

  /* Text */
  --wv-text: #edf4f8;
  --wv-sub: #7a9aae;
  --wv-dim: #3d5a6d;

  /* Brand */
  --wv-cyan: #00c8d4;
  --wv-cyan2: #00e5f0;
  --wv-cyan3: #5af7ff;
  --wv-navy: #1a2535;

  /* Status */
  --wv-green: #22c55e;
  --wv-amber: #f59e0b;
  --wv-red: #ef4444;
  --wv-aws: #ff9900;

  /* Gradients */
  --wv-grad: linear-gradient(135deg, #00c8d4, #0090e0);
  --wv-grad-text: linear-gradient(135deg, #00c8d4 0%, #00e5f0 50%, #5af7ff 100%);
  --wv-glow: rgba(0, 200, 212, 0.20);
  --wv-glow2: rgba(0, 144, 224, 0.15);

  /* Typography */
  --wv-font: 'Geist', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --wv-font-mono: 'Geist Mono', ui-monospace, monospace;

  /* Radius (single source of truth — match the rest of the site) */
  --wv-r: 10px;
  --wv-r-sm: 6px;
  --wv-r-pill: 999px;

  /* Spacing scale (use multiples of these) */
  --wv-sp-1: .25rem;
  /* 4px  */
  --wv-sp-2: .5rem;
  /* 8px  */
  --wv-sp-3: .75rem;
  /* 12px */
  --wv-sp-4: 1rem;
  /* 16px */
  --wv-sp-5: 1.5rem;
  /* 24px */
  --wv-sp-6: 2rem;
  /* 32px */
  --wv-sp-7: 3rem;
  /* 48px */
  --wv-sp-8: 4rem;
  /* 64px */
  --wv-sp-9: 6rem;
  /* 96px */
  --wv-sp-10: 9.5rem;
  /* section padding */

  /* Easing & duration */
  --wv-ease: cubic-bezier(.2, .7, .2, 1);
  --wv-dur-fast: .2s;
  --wv-dur: .35s;
  --wv-dur-slow: 1.1s;

  /* Shadows */
  --wv-shadow-sm: 0 2px 8px rgba(0, 0, 0, .2);
  --wv-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --wv-shadow-lg: 0 32px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 200, 212, .08);
  --wv-glow-btn: 0 0 32px rgba(0, 200, 212, .22);
  --wv-glow-btn-hover: 0 0 56px rgba(0, 200, 212, .42);
}

/* ── 3. LAYOUT ──────────────────────────────────────────────── */
.wv-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px
}

@media(max-width:900px) {
  .wv-container {
    padding: 0 32px
  }
}

@media(max-width:600px) {
  .wv-container {
    padding: 0 20px
  }
}

section.wv-section {
  padding: var(--wv-sp-10) 0;
  position: relative;
  overflow: hidden
}

@media(max-width:900px) {
  section.wv-section {
    padding: 5.5rem 0
  }
}

@media(max-width:640px) {
  section.wv-section {
    padding: 4.5rem 0
  }
}

/* ── 4. TYPOGRAPHY ──────────────────────────────────────────── */
.wv-grad-text {
  background: var(--wv-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent
}

.wv-h1 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.05;
  margin-bottom: 2rem
}

.wv-h2,
.wv-sec-title {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.02;
  margin-bottom: 1.6rem
}

.wv-h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem
}

.wv-h4 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin-bottom: .6rem
}

.wv-sub,
.wv-sec-sub {
  font-size: 1.1rem;
  color: var(--wv-sub);
  max-width: 560px;
  line-height: 1.6
}

.wv-body {
  font-size: 1rem;
  color: var(--wv-text);
  line-height: 1.65
}

.wv-small {
  font-size: .84rem;
  color: var(--wv-sub);
  line-height: 1.55
}

.wv-mono {
  font-family: var(--wv-font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
  color: var(--wv-dim)
}

.wv-eyebrow,
.wv-sec-eyebrow {
  font-family: var(--wv-font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--wv-cyan);
  margin-bottom: 1.6rem;
  display: inline-block
}

.wv-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(0, 200, 212, .06);
  border: 1px solid var(--wv-border-c);
  color: var(--wv-cyan2);
  font-family: var(--wv-font-mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: var(--wv-r)
}

.wv-eyebrow-pill .wv-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wv-cyan);
  box-shadow: 0 0 7px var(--wv-cyan);
  animation: wvBlink 2s infinite
}

/* ── 5. BUTTONS ─────────────────────────────────────────────── */
.wv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--wv-font);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -.005em;
  padding: 1rem 2.2rem;
  border-radius: var(--wv-r);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--wv-dur) var(--wv-ease), box-shadow var(--wv-dur) var(--wv-ease), background var(--wv-dur) var(--wv-ease), border-color var(--wv-dur) var(--wv-ease), opacity .25s;
  white-space: nowrap;
  text-decoration: none
}

.wv-btn-primary {
  background: var(--wv-grad);
  color: #fff;
  box-shadow: var(--wv-glow-btn)
}

.wv-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--wv-glow-btn-hover)
}

.wv-btn-outline {
  background: transparent;
  color: var(--wv-text);
  border-color: rgba(255, 255, 255, .12)
}

.wv-btn-outline:hover {
  background: var(--wv-surface);
  border-color: rgba(255, 255, 255, .16)
}

.wv-btn-ghost {
  background: transparent;
  color: var(--wv-sub);
  padding: .55rem 1rem
}

.wv-btn-ghost:hover {
  color: var(--wv-text);
  background: var(--wv-surface)
}

.wv-btn-sm {
  padding: .55rem 1.4rem;
  font-size: .85rem
}

.wv-btn-lg {
  padding: 1.15rem 2.6rem;
  font-size: 1rem
}

/* ── 6. CARDS (signature hover-glow + gradient ring) ────────── */
.wv-card {
  position: relative;
  background: transparent;
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-r);
  padding: 1.8rem;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
  --mx: 50%;
  --my: 50%
}

.wv-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 280px at var(--mx) var(--my), rgba(0, 200, 212, .12), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none
}

.wv-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--wv-r);
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 200, 212, .5), rgba(0, 144, 224, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none
}

.wv-card:hover {
  border-color: transparent;
  transform: translateY(-2px)
}

.wv-card:hover::before,
.wv-card:hover::after {
  opacity: 1
}

.wv-card>* {
  position: relative;
  z-index: 1
}

.wv-card-solid {
  background: var(--wv-surface);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-r);
  padding: 1.8rem;
  box-shadow: var(--wv-shadow)
}

/* ── 7. STATUS PILLS / BADGES ───────────────────────────────── */
.wv-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .64rem;
  font-weight: 600;
  padding: .18rem .6rem;
  border-radius: var(--wv-r-pill);
  white-space: nowrap;
  border: 1px solid
}

.wv-pill-cyan {
  background: rgba(0, 200, 212, .1);
  color: var(--wv-cyan);
  border-color: rgba(0, 200, 212, .2)
}

.wv-pill-green {
  background: rgba(34, 197, 94, .1);
  color: var(--wv-green);
  border-color: rgba(34, 197, 94, .25)
}

.wv-pill-amber {
  background: rgba(245, 158, 11, .1);
  color: var(--wv-amber);
  border-color: rgba(245, 158, 11, .25)
}

.wv-pill-red {
  background: rgba(239, 68, 68, .1);
  color: var(--wv-red);
  border-color: rgba(239, 68, 68, .25)
}

.wv-pill-gray {
  background: rgba(148, 163, 184, .08);
  color: var(--wv-sub);
  border-color: rgba(148, 163, 184, .15)
}

/* ── 8. INPUTS ──────────────────────────────────────────────── */
.wv-input,
.wv-textarea,
.wv-select {
  font-family: var(--wv-font);
  font-size: .92rem;
  color: var(--wv-text);
  background: var(--wv-bg3);
  border: 1px solid var(--wv-border);
  border-radius: var(--wv-r);
  padding: .7rem 1rem;
  width: 100%;
  transition: border-color .2s, box-shadow .2s
}

.wv-input:focus,
.wv-textarea:focus,
.wv-select:focus {
  outline: none;
  border-color: var(--wv-cyan);
  box-shadow: 0 0 0 3px rgba(0, 200, 212, .15)
}

.wv-input::placeholder,
.wv-textarea::placeholder {
  color: var(--wv-dim)
}

.wv-label {
  display: block;
  font-size: .78rem;
  font-weight: 500;
  color: var(--wv-sub);
  margin-bottom: .4rem
}

/* ── 9. NAV (floating rectangle, 20px top margin) ───────────── */
.wv-nav {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  z-index: 200;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 18, 26, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--wv-r);
  box-shadow: var(--wv-shadow), var(--wv-shadow-sm);
  transition: background .3s, border-color .3s, box-shadow .3s
}

.wv-nav-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px
}

.wv-nav-links {
  display: flex;
  gap: .1rem;
  list-style: none
}

.wv-nav-links a {
  color: var(--wv-sub);
  font-size: .86rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: 7px;
  display: block;
  transition: color .2s, background .2s
}

.wv-nav-links a:hover {
  color: var(--wv-text);
  background: var(--wv-surface)
}

@media(max-width:900px) {
  .wv-nav-links {
    display: none
  }
}

@media(max-width:640px) {
  .wv-nav {
    top: 12px;
    left: 12px;
    right: 12px;
    height: 56px
  }
}

/* Body offset so content clears the fixed nav */
.wv-has-nav {
  padding-top: 104px
}

@media(max-width:640px) {
  .wv-has-nav {
    padding-top: 80px
  }
}

/* ── 10. ANIMATIONS ─────────────────────────────────────────── */
@keyframes wvBlink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .3
  }
}

@keyframes wvFadeUp {
  from {
    opacity: 0;
    transform: translateY(16px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes wvFadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes wvScrollLeft {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(-50%)
  }
}

.wv-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--wv-ease), transform 1.1s var(--wv-ease)
}

.wv-reveal.in {
  opacity: 1;
  transform: none
}

.wv-reveal.d1 {
  transition-delay: .1s
}

.wv-reveal.d2 {
  transition-delay: .2s
}

.wv-reveal.d3 {
  transition-delay: .3s
}

.wv-anim-fade-up {
  animation: wvFadeUp 1.2s var(--wv-ease) both
}

.wv-anim-fade-in {
  animation: wvFadeIn .8s ease both
}

/* ── 11. JS HELPERS (paste into <script> on each page) ──────── */
/*
// Reveal-on-scroll
const io=new IntersectionObserver(es=>{es.forEach(e=>{if(e.isIntersecting){e.target.classList.add('in');io.unobserve(e.target)}})},{threshold:0.12,rootMargin:'0px 0px -80px 0px'});
document.querySelectorAll('.wv-reveal').forEach(el=>io.observe(el));

// Mouse-following card glow
document.querySelectorAll('.wv-card').forEach(card=>{
  card.addEventListener('mousemove',e=>{
    const r=card.getBoundingClientRect();
    card.style.setProperty('--mx',(e.clientX-r.left)+'px');
    card.style.setProperty('--my',(e.clientY-r.top)+'px');
  });
});
*/