/* =====================================================================
   Bluneuron — "Launching Soon" landing page
   Ultra-minimal lead-capture. Stark white canvas, soft sapphire ambient
   gradients, one oversized headline, one glowing CTA, one modal form.
   Mobile-first, no horizontal scroll, no dependencies.
   ===================================================================== */

:root {
  color-scheme: light;

  --bg:          #FFFFFF;
  --ink:         #0B0E14;
  --ink-soft:    #5A5F6B;
  --muted:       #8A8F9C;
  --line:        rgba(11, 14, 20, 0.10);

  --blue:        #2456E6;
  --blue-bright: #0052FF;
  --blue-azure:  #2F7BF0;   /* softer azure — headline accent / countdown */
  --blue-wash:   rgba(36, 86, 230, 0.10);
  --blue-glow:   rgba(36, 86, 230, 0.50);

  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* soft sapphire ambient gradients */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(46% 40% at 10% -6%, rgba(36, 86, 230, 0.13), transparent 70%),
    radial-gradient(44% 42% at 106% 106%, rgba(36, 86, 230, 0.10), transparent 72%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2 { margin: 0; font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -56px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 700; transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Header (glassmorphic) ---------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center;
}
.brand { display: inline-flex; }
.brand img { height: 24px; width: auto; }
@media (min-width: 768px) {
  .header__inner { height: 72px; padding: 0 40px; }
  .brand img { height: 26px; }
}

/* ---------- Hero (layout modelled on Pictures/reference.jpeg) ---------- */
.hero {
  position: relative; z-index: 1; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(48px, 8vw, 84px) 24px clamp(60px, 9vw, 96px);
  text-align: center;
  overflow: hidden;                 /* clips the decorative wave accents */
}
/* soft flowing blue accents — heaviest on the left, like the reference */
.hero__wave {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%;
}
.hero__wave--tl {
  width: min(58vw, 640px); aspect-ratio: 1; top: -24%; left: -18%;
  background: radial-gradient(circle, rgba(36, 86, 230, 0.13), transparent 68%);
  filter: blur(50px);
}
.hero__wave--bl {
  width: min(66vw, 740px); aspect-ratio: 1.25; bottom: -32%; left: -26%;
  background: radial-gradient(closest-side, rgba(120, 165, 255, 0.30), transparent 76%);
  filter: blur(48px);
}
.hero__ribbon {
  position: absolute; z-index: 0; pointer-events: none;
  left: 0; bottom: 0;
  width: min(52vw, 560px); height: min(52vw, 560px);
  opacity: 0.7;
}
@media (max-width: 640px) { .hero__ribbon { width: 90vw; height: 90vw; opacity: 0.55; } }

.hero__inner {
  position: relative; z-index: 1;
  max-width: 900px; width: 100%;
  display: flex; flex-direction: column; align-items: center;
}

.hero__eyebrow {
  margin: 0 0 clamp(18px, 3.4vw, 30px);
  font-size: clamp(11px, 1.3vw, 13px); font-weight: 600;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--muted);
  padding-left: 0.42em;                 /* balances the trailing tracking */
}

.hero__title {
  font-weight: 300;
  font-size: clamp(2.4rem, 8.2vw, 5rem);
  line-height: 1.06; letter-spacing: -0.02em;
  color: var(--ink);
}
.hero__title-accent { color: var(--blue-azure); }

.hero__sub {
  margin: clamp(16px, 2.6vw, 24px) auto 0;
  max-width: 42ch;
  color: var(--ink-soft); font-weight: 500;
  font-size: clamp(1rem, 2.1vw, 1.2rem); line-height: 1.55;
}

/* ---------- Countdown ---------- */
.countdown {
  display: flex; align-items: flex-start; justify-content: center;
  width: 100%; max-width: 520px;
  margin: clamp(30px, 6vw, 52px) 0 clamp(28px, 5vw, 44px);
}
.countdown__unit {
  position: relative; flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 clamp(4px, 2vw, 18px);
}
.countdown__unit + .countdown__unit::before {
  content: ''; position: absolute; left: 0; top: 4%; bottom: 24%;
  width: 1px; background: var(--line);
}
.countdown__num {
  font-weight: 300; letter-spacing: -0.02em; color: var(--ink); line-height: 1;
  font-size: clamp(1.85rem, 6.4vw, 3rem); font-variant-numeric: tabular-nums;
}
.countdown__label {
  font-size: clamp(8px, 1.5vw, 10px); font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.countdown.is-live .countdown__num { color: var(--blue-azure); }
.countdown__live { margin: -14px 0 8px; font-weight: 700; color: var(--blue-azure); }

/* ---------- CTA ---------- */
.cta {
  margin-top: clamp(6px, 1.6vw, 14px);
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 18px clamp(34px, 6vw, 46px); border: 0; border-radius: 100px;
  background: linear-gradient(180deg, #3F86F7 0%, #1D4ED8 100%);
  color: #fff;
  font-weight: 700; font-size: clamp(11.5px, 1.5vw, 13.5px);
  letter-spacing: 0.22em; text-transform: uppercase;
  box-shadow: 0 18px 44px -12px var(--blue-glow);
  transition: transform 0.18s var(--ease), box-shadow 0.3s var(--ease), filter 0.2s var(--ease);
  animation: cta-pulse 3.4s ease-in-out infinite;
}
.cta svg { width: 18px; height: 18px; }
.cta:hover { transform: scale(1.035); box-shadow: 0 26px 62px -12px rgba(36, 86, 230, 0.66); filter: brightness(1.06); }
.cta:active { transform: scale(0.97); }
.cta--full { width: 100%; margin-top: 8px; animation: none; padding-left: 22px; padding-right: 22px; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 16px 44px -12px rgba(36, 86, 230, 0.4); }
  50%      { box-shadow: 0 20px 60px -8px rgba(36, 86, 230, 0.66); }
}

/* ---------- Footer ---------- */
.footer {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 24px 34px; border-top: 1px solid var(--line);
}
.footer__mark { width: 24px; height: 24px; opacity: 0.9; }
.footer p { font-size: 12.5px; color: var(--muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.26s var(--ease), visibility 0s linear 0.26s;
}
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 14, 20, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal__card {
  position: relative; z-index: 1;
  width: 100%; max-width: 440px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 24px;
  padding: 34px 30px;
  box-shadow: 0 44px 100px -34px rgba(11, 14, 20, 0.5);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s var(--ease);
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal.is-open .modal__card { transform: none; }
.modal__close {
  position: absolute; top: 13px; right: 13px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(11, 14, 20, 0.06);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background 0.18s var(--ease);
}
.modal__close:hover { background: rgba(11, 14, 20, 0.12); }
.modal__close svg { width: 16px; height: 16px; }
.modal__title { font-size: 1.55rem; margin-bottom: 6px; }
.modal__lead { font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; }
body.modal-open { overflow: hidden; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field__label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.field__opt { color: var(--muted); font-weight: 500; }
.field input {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 13px 16px; font: inherit; font-size: 14.5px; color: var(--ink);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder { color: var(--muted); }
.field input:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.field input[aria-invalid="true"] { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.16); }

/* honeypot — visually and functionally hidden from real users, still in the DOM for bots */
.vip-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.vip-error {
  margin-top: 12px; text-align: center;
  font-size: 13px; font-weight: 600; color: #C7362B;
}
.vip-error a { color: inherit; text-decoration: underline; }
.cta[disabled] { opacity: 0.6; cursor: progress; animation: none; }

/* ---------- Success ---------- */
.vip-success { text-align: center; padding: 12px 4px 6px; }
.vip-success__tick {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue); color: #fff;
  box-shadow: 0 0 0 8px var(--blue-wash), 0 16px 40px -12px var(--blue-glow);
  animation: pop 0.5s var(--ease);
}
.vip-success__tick svg { width: 28px; height: 28px; }
.vip-success__msg { font-size: 1.05rem; font-weight: 700; color: var(--ink); }
@keyframes pop {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
