/* =========================================================
   Neurova Labs — styles
   Minimal, dark, Apple-quiet. System font stack (no network
   dependency = nothing to break at deploy time).
   ========================================================= */

:root {
  --bg:        #000000;
  --bg-soft:   #0a0a0c;
  --fg:        #f5f5f7;
  --muted:     #9a9aa2;
  --muted-dim: #8a8a92;
  --line:      rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
          Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;

  --nav-h: 64px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.22, 0.61, 0.30, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

::selection { background: rgba(255, 255, 255, 0.18); }

:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Keyboard skip link — hidden until focused */
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--fg);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  transform: translateY(-150%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.kicker--center { text-align: center; }

.measure { max-width: 720px; }

.lead {
  margin: 0 0 22px;
  font-size: clamp(1.06rem, 1.6vw, 1.32rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 640px;
}
.lead:last-child { margin-bottom: 0; }
.lead--center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
              color 0.25s var(--ease), border-color 0.25s var(--ease),
              opacity 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--fg); color: #000; }
.btn--primary:hover { background: #fff; }

.btn--ghost { color: var(--fg); border-color: var(--line); }
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.32); background: rgba(255, 255, 255, 0.04); }

.btn--sm { padding: 12px 18px; font-size: 14px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, 0.55);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav__name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.mark { color: var(--fg); display: block; }

.nav__links {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 8px;
}
.nav__links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--fg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  min-height: 100vh;   /* fallback for browsers without svh (Safari < 15.4, older Chrome/Firefox) */
  min-height: 100svh;  /* modern browsers use the small-viewport unit */
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
/* radial vignette so the headline always stays readable over the field */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 90% at 50% 38%, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.82) 100%),
    linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 2; }

.hero__title {
  margin: 0 0 26px;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.hero__sub {
  margin: 0 auto 38px;
  max-width: 580px;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero__scroll span {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--muted);
  animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { opacity: 0; transform: translateY(-4px); }
  35%  { opacity: 1; }
  70%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 0; }
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  position: relative;
  padding: clamp(96px, 16vh, 184px) 0;
  border-top: 1px solid var(--line-soft);
}
.section--center { text-align: center; }
.section--center .container { display: flex; flex-direction: column; align-items: center; }
.section--soft { background: var(--bg-soft); }
.section--close { text-align: center; }

.section__title {
  margin: 0 0 30px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.statement {
  margin: 0 auto 30px;
  max-width: 900px;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ---------- Product steps ---------- */
.steps {
  margin-top: clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: clamp(30px, 3.4vw, 46px);
}
.step__index {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted-dim);
  margin-bottom: 26px;
}
.step__title {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step__body {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.contact__cta {
  margin-top: 38px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.contact__note {
  margin: 24px 0 0;
  font-size: 14px;
  color: var(--muted-dim);
  letter-spacing: 0.01em;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}
.footer__brand { display: inline-flex; align-items: center; gap: 12px; }
.footer__wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.footer__name { font-size: 15px; font-weight: 600; letter-spacing: 0.18em; }
.footer__sub { font-size: 11px; font-weight: 500; letter-spacing: 0.42em; color: var(--muted-dim); }

.footer__links { display: flex; gap: 12px 28px; flex-wrap: wrap; }
.footer__links a {
  display: inline-block;
  padding: 12px 4px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer__links a:hover { color: var(--fg); }

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--muted-dim);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
/* Only hide content up-front when JS is present to reveal it again.
   Without JS (or with the .js class absent) everything stays visible. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer__links { gap: 6px 24px; }
}

/* Very narrow phones — shrink headings so forced line breaks fit, stack the CTAs */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .hero__title    { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .hero__sub      { font-size: clamp(1rem, 4.4vw, 1.2rem); }
  .statement      { font-size: clamp(1.6rem, 7.4vw, 2.4rem); }
  .section__title { font-size: clamp(1.7rem, 7.4vw, 2.4rem); }
  .hero__cta, .contact__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn, .contact__cta .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* =========================================================
   REDUCED MOTION — turn everything calm
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__scroll span { opacity: 1; }
}
