*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Pulled directly from the VELIQ icon — deep navy bg, white V mark */
  --bg:      #0d0f20;   /* icon background navy */
  --bg2:     #11132b;   /* slightly lighter surface */
  --fg:      #f2f3f9;   /* near-white, cool tint to match navy */
  --muted:   #5c6278;   /* muted text */
  --border:  rgba(255,255,255,0.07);
  --accent:  #7b98ff;   /* electric blue — complement to the navy */
  --accent-dim: rgba(123,152,255,0.1);
  --cta-bg:  #f2f3f9;   /* white CTA button, matches wordmark background */
  --cta-fg:  #0d0f20;   /* navy text on white button */
  --radius:  12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* NAV */
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}
body > nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(13,15,32,0.88);
  backdrop-filter: blur(18px);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 0.08em;    /* spaced out caps — matches the wordmark */
  text-transform: uppercase;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-right a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-right a:hover { color: var(--fg); }

.btn-nav {
  background: var(--cta-bg) !important;
  color: var(--cta-fg) !important;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem !important;
  letter-spacing: 0.01em;
}
.btn-nav:hover { opacity: 0.88; }

/* BUTTONS */
.btn-primary {
  display: inline-block;
  background: var(--cta-bg);
  color: var(--cta-fg);
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--fg);
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid var(--border);
  width: 100%;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10rem 2.5rem 6rem;
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* DIVIDER ROW */
.divider-row {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.divider-row span {
  flex: 1;
  text-align: center;
  padding: 1rem 0.5rem;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
}
.divider-row span:last-child { border-right: none; }

/* SECTIONS */
.section {
  padding: 7rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.section-alt {
  max-width: 100%;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7rem 2.5rem;
}
.section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }

.section-header { margin-bottom: 4rem; }

.label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--fg);
}

/* FEATURE CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);   /* always 4 across — no orphans */
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }   /* clean 2×2 */
}
@media (max-width: 500px) {
  .cards { grid-template-columns: 1fr; }               /* stack on mobile */
}
.card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.card:hover { background: #10122a; }
.card-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* STATS */
.stats-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 2.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.stat-n {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 700;
  color: var(--fg);         /* white — matches the "V" on the icon */
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-l {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.stat-sep {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 2rem;
}

/* WHO IT'S FOR */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 768px) {
  .who-grid { grid-template-columns: 1fr; }
}
.who-item {
  background: var(--bg);
  padding: 2.5rem 2rem;
  transition: background 0.2s;
}
.who-item:hover { background: #10122a; }
.who-item h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.who-item p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 1.4rem 2rem;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--fg);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  letter-spacing: -0.01em;
  transition: color 0.2s;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 1.5rem;
  transition: transform 0.25s cubic-bezier(0.22,1,0.36,1);
  line-height: 1;
}
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item[open] > summary { color: var(--accent); }
.faq-item p {
  padding: 0 2rem 1.4rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 680px;
}

/* CTA SECTION */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8rem 2.5rem;
}
.cta-section .eyebrow { margin-bottom: 1.25rem; }
.cta-section h2 { font-size: clamp(2.25rem, 5vw, 3.5rem); margin-bottom: 1.25rem; }
.cta-section p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.cta-note { font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* FOOTER */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 2.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-nav { display: flex; gap: 1.75rem; }
.footer-nav a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--fg); }
.footer-copy { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7,9,20,0.8);
  backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: #11132b;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  position: relative;
}
.modal h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.modal p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  line-height: 1.65;
}
.modal-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--fg); }
#book-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
#book-form input,
#book-form select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--fg);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  width: 100%;
  transition: border-color 0.2s;
}
#book-form input::placeholder { color: var(--muted); }
#book-form input:focus,
#book-form select:focus { border-color: var(--accent); }
#book-form select { color: var(--muted); cursor: pointer; }
#book-form option { background: #11132b; }
#book-form .btn-primary { width: 100%; margin-top: 0.25rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Spinner inside submit button */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid var(--cta-fg);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Success checkmark */
@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.success-check {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(123,152,255,0.12);
  border: 1px solid rgba(123,152,255,0.25);
  color: var(--accent);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  animation: popIn 0.4s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* --- Keyframes --- */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-14px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes countLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --- Scroll progress bar --- */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
  transform-origin: left;
}

/* --- Hero entrance (CSS-driven, no JS needed) --- */
.hero .eyebrow {
  opacity: 0;
  animation: heroFadeIn 0.6s ease forwards;
  animation-delay: 0.15s;
}
.hero h1 {
  opacity: 0;
  animation: heroFadeUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: 0.3s;
}
.hero p {
  opacity: 0;
  animation: heroFadeUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: 0.48s;
}
.hero-actions {
  opacity: 0;
  animation: heroFadeUp 0.75s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: 0.62s;
}

/* --- Generic reveal base --- */
.reveal {
  opacity: 0;
}

/* Variant: fade up (default) */
.reveal-up {
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1),
              transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

/* Variant: slide in from left (labels) */
.reveal-left {
  transform: translateX(-14px);
  transition: opacity 0.5s ease,
              transform 0.5s ease;
}

/* Activated state */
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- Divider row animation --- */
.divider-row span {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.divider-row.visible span { opacity: 1; transform: none; }

/* --- Stat accent line under number --- */
.stat-n {
  position: relative;
  display: inline-block;
}
.stat-n::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
  margin-top: 6px;
}
.stat.visible .stat-n::after {
  transform: scaleX(1);
}

/* --- Card border glow on reveal --- */
.card {
  transition: background 0.2s, box-shadow 0.4s ease;
}
.card.visible {
  box-shadow: inset 0 0 0 1px rgba(123,152,255,0.12);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body > nav { padding: 1rem 1.5rem; }
  .nav-right a:not(.btn-nav) { display: none; }
  .hero { padding: 8rem 1.5rem 4rem; }
  .section { padding: 5rem 1.5rem; }
  .section-alt { padding: 5rem 1.5rem; }
  .stats-section { flex-direction: column; gap: 2rem; }
  .stat-sep { width: 48px; height: 1px; margin: 0; }
  .divider-row { display: none; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-wrap: wrap; gap: 1.25rem; }
}
