/* =========================================================
   ATRONICS LABS — vital.io-inspired design system
   Lime + Navy on White. YC-serious.
   ========================================================= */

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

:root {
  --white: #FFFFFF;
  --ice: #F0F4FA;
  --ice-2: #E4EBF5;
  --cream: #FFF9E6;
  --paper: #FAFBFC;

  --ink: #0A0F1C;
  --ink-2: #1B2333;
  --navy: #1B2A4E;
  --navy-2: #2A3F6B;
  --navy-3: #3D5A8A;

  --text: #2D3748;
  --text-2: #4A5568;
  --muted: #718096;
  --rule: #E2E8F0;
  --rule-2: #CBD5E0;

  --lime: #D6F24A;
  --lime-deep: #A8C61E;
  --lime-soft: #EDF9AF;

  --success: #22A56B;
  --alert: #E5533C;
  --alert-soft: #FCE8E4;

  --nav-h: 72px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(.16,.84,.28,1);
  --ease-inout: cubic-bezier(.65,.05,.36,1);

  --shadow-sm: 0 1px 2px rgba(10,15,28,0.06), 0 1px 1px rgba(10,15,28,0.04);
  --shadow-md: 0 4px 12px rgba(10,15,28,0.08), 0 2px 4px rgba(10,15,28,0.04);
  --shadow-lg: 0 20px 40px -12px rgba(10,15,28,0.15), 0 8px 16px -8px rgba(10,15,28,0.08);
  --shadow-xl: 0 40px 80px -20px rgba(10,15,28,0.2), 0 16px 32px -12px rgba(10,15,28,0.1);
  --shadow-navy: 0 20px 40px -12px rgba(27,42,78,0.25), 0 8px 16px -8px rgba(27,42,78,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 800;
}
h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.75rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 700; }
h4 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }
h5 { font-size: 1rem; font-weight: 700; }

p { color: var(--text); }
.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
  font-weight: 400;
}

.accent-navy { color: var(--navy); }
.accent-lime { color: var(--lime-deep); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Pill badge (POWERED BY AI style) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pill.pill-navy { background: var(--navy); color: var(--white); }
.pill.pill-white { background: var(--white); color: var(--navy); border: 1px solid var(--rule); box-shadow: var(--shadow-sm); }
.pill.pill-ice { background: var(--ice); color: var(--navy); }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ---------- Layout ---------- */
.container { max-width: 1320px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-wide { max-width: 1480px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.container-narrow { max-width: 1080px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

section { padding: clamp(80px, 12vh, 140px) 0; position: relative; }
section.tight { padding: clamp(48px, 7vh, 88px) 0; }

.section-band-ice { background: var(--ice); }
.section-band-navy { background: var(--navy); color: var(--white); }
.section-band-navy h1, .section-band-navy h2, .section-band-navy h3, .section-band-navy h4 { color: var(--white); }
.section-band-navy p { color: rgba(255,255,255,0.75); }
.section-band-navy .lede { color: rgba(255,255,255,0.8); }
.section-band-cream { background: var(--cream); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 20px; left: 20px; right: 20px;
  z-index: 100;
  max-width: 1320px;
  margin: 0 auto;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border: 1px solid rgba(226,232,240,0.8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s var(--ease-out);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  height: var(--nav-h);
  padding: 0 12px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-brand-mark {
  width: 28px; height: 28px;
  background: var(--lime);
  border-radius: 8px;
  display: grid; place-items: center;
}
.nav-brand-mark svg { width: 16px; height: 16px; }
.nav-links {
  display: flex;
  gap: clamp(4px, 1vw, 12px);
  align-items: center;
}
.nav-links a:not(.nav-cta) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.005em;
  padding: 10px 16px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); background: var(--ice); }
.nav-links a.active { color: var(--navy); font-weight: 600; }
.nav-cta {
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--navy-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all .25s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); box-shadow: var(--shadow-navy); transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--navy); }
.btn-lime:hover { background: var(--lime-deep); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--rule-2); }
.btn-ghost:hover { background: var(--ice); border-color: var(--navy); }
.btn-white { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-white:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-arrow::after { content: '→'; font-size: 1.1em; transition: transform .25s; }
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-flat { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; padding: 32px; box-shadow: none; }

/* ---------- Stat number ---------- */
.stat-num {
  font-family: var(--sans);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.03em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.stat-num .plus, .stat-num .unit { color: var(--lime-deep); }
.stat-num .navy-plus { color: var(--navy); }
.stat-label {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 22ch;
  line-height: 1.45;
}

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }
.reveal-delay-5 { transition-delay: .4s; }

/* word-by-word (rarely used) */
.kinetic .kw {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.kinetic.in .kw { opacity: 1; transform: none; }

/* ---------- Utility ---------- */
.grid { display: grid; }
.flex { display: flex; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; } .mt-80 { margin-top: 80px; }
.text-navy { color: var(--navy); }
.text-muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Section eyebrow row */
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 100px 0 40px;
}
.footer h2, .footer h3 { color: var(--white); }
.footer p { color: rgba(255,255,255,0.7); }
.footer .rule { height: 1px; background: rgba(255,255,255,0.12); border: 0; }
.footer-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: end;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-hero h2 { max-width: 16ch; }
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 40px;
}
.footer-col h5 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.12);
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-hero { grid-template-columns: 1fr; gap: 40px; }
  .nav { top: 12px; left: 12px; right: 12px; }
  .nav-inner { padding: 0 8px 0 20px; }
  .nav-links a:not(.nav-cta):not(.mobile-keep) { display: none; }
}
