/* Novaleo pre-launch teaser, direction A: light and product-led.
   Colours, type and radii come from doc/brand-identity.md. Light theme only:
   the screenshots are the light app, and direction A was chosen as a light page. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque-700-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --primary: #12395D;
  --primary-hover: #1A4B7A;
  --primary-active: #0C2740;
  --accent: #42B7DA;
  --accent-text: #299FCD;
  --light-blue: #E0F2FE;

  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --text: #0F172A;
  --heading: #0C2740;
  --muted: #475569;

  --radius-btn: 12px;
  --radius-shot: 20px;
  --shadow-shot: 0 1px 2px rgba(18, 57, 93, .06), 0 24px 48px -16px rgba(18, 57, 93, .18);

  --container: 1200px;
  --gutter: 24px;
  --section: 120px;

  --font-display: "Bricolage Grotesque", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; }

a { color: var(--primary); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  background: var(--primary);
  color: #FFFFFF;
  border-radius: var(--radius-btn);
}
.skip:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Buttons: one primary action on the page, so one label everywhere. */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-btn);
  font: 600 16px/1.2 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(12, 39, 64, .2);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { background: var(--primary-active); }

.btn-light {
  background: #FFFFFF;
  color: var(--primary);
}
.btn-light:hover { background: var(--light-blue); }
.btn-light:active { background: #CDE9FB; }
.closing .btn-light:focus-visible { outline-color: var(--accent); }

.btn-sm { padding: 10px 18px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
@supports (backdrop-filter: blur(12px)) {
  .site-header { backdrop-filter: saturate(180%) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
  font: 700 23px/1 var(--font-display);
  letter-spacing: -0.02em;
}
.brand img { width: 44px; height: auto; }

/* Hero */
.hero {
  padding: 72px 0 56px;
  background: var(--bg);
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 24px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: var(--light-blue);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.04;
}

.lead {
  max-width: 34rem;
  margin: 24px 0 32px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--muted);
}

/* The grey band that the next section continues starts behind the screenshot,
   wherever the screenshot lands, so it never cuts through the hero text. */
.hero-shot { position: relative; margin-top: 64px; }
.hero-shot::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 40%;
  bottom: -56px;
  left: -100vw;
  right: -100vw;
  background: var(--bg-alt);
}

.shot {
  width: 100%;
  border-radius: var(--radius-shot);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-shot);
  background: #FFFFFF;
}

/* Feature splits: text beside a screenshot that runs past the container edge. */
.feature { padding: var(--section) 0; background: var(--bg-alt); }
.feature-drive { padding-top: calc(var(--section) - 56px); }
.feature-groups { background: var(--bg); padding-top: var(--section); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: center;
}
.split-reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.split-reverse .split-text { order: 2; }
.split-reverse .split-media { order: 1; }

.split-text h2,
.study-head h2,
.safety-head h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.1;
}
.split-text p,
.study-head p,
.safety-head p {
  margin-top: 20px;
  max-width: 34rem;
  font-size: 18px;
  color: var(--muted);
}

/* Study band: the differentiator gets the widest image on the page. */
.study { padding: var(--section) 0; background: var(--bg-alt); }

.study-head { max-width: 40rem; }

.study-shot { margin: 56px 0 0; }

.methods {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.methods li { padding-top: 20px; border-top: 1px solid var(--border); }
.methods .icon { width: 22px; height: 22px; color: var(--primary); }
.methods h3 {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.methods p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* Safety */
.safety { padding: var(--section) 0; background: var(--bg); }

.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 64px;
  align-items: start;
}

.safety-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 48px;
  margin: 0;
}
.safety-list div { padding-top: 20px; border-top: 1px solid var(--border); }
.safety-list dt {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}
.safety-list dt .icon { width: 20px; height: 20px; color: var(--primary); }
.safety-list dd { margin: 8px 0 0; color: var(--muted); }

/* Closing band: the one dark moment, on the approved navy gradient. */
.closing {
  padding: 136px 0;
  background: linear-gradient(135deg, #0C2740 0%, #12395D 100%);
  color: #F1F5F9;
  text-align: center;
}
.closing-inner { display: flex; flex-direction: column; align-items: center; }

.star {
  width: 56px;
  height: 56px;
  margin-bottom: 32px;
  fill: var(--accent);
  overflow: visible;
}

.closing h2 {
  color: #F1F5F9;
  font-size: clamp(34px, 4.6vw, 56px);
}
.closing p {
  max-width: 30rem;
  margin: 20px 0 36px;
  font-size: 18px;
  color: #CBD5E1;
}

.socials {
  display: flex;
  gap: 8px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  color: #CBD5E1;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.socials a:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.socials a:active { background: rgba(255, 255, 255, .16); }
.socials a:focus-visible { outline-color: var(--accent); }
.socials .icon { width: 18px; height: 18px; }

/* Footer */
.site-footer {
  padding: 32px 0;
  background: var(--primary-active);
  color: #94A3B8;
  font-size: 14px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  justify-content: space-between;
  border-top: 1px solid rgba(148, 163, 184, .2);
  padding-top: 24px;
}
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer a:focus-visible { outline-color: var(--accent); }

/* Motion: fade up as sections arrive, and the closing star igniting once.
   Nothing moves when the visitor has asked for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .js .methods li:nth-child(2), .js .safety-list div:nth-child(2) { transition-delay: .08s; }
  .js .methods li:nth-child(3), .js .safety-list div:nth-child(3) { transition-delay: .16s; }
  .js .methods li:nth-child(4), .js .safety-list div:nth-child(4) { transition-delay: .24s; }

  .hero .container > * { animation: rise .9s var(--ease) both; }
  .hero .container > :nth-child(2) { animation-delay: .06s; }
  .hero .container > :nth-child(3) { animation-delay: .12s; }
  .hero .container > :nth-child(4) { animation-delay: .18s; }
  .hero-shot { animation: rise 1.1s var(--ease) .24s both; }

  .js .star { opacity: .25; transform: scale(.6) rotate(-20deg); filter: none; }
  .js .star.is-lit {
    animation: ignite 1.4s var(--ease) forwards;
  }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}

@keyframes ignite {
  0% { opacity: .25; transform: scale(.6) rotate(-20deg); filter: drop-shadow(0 0 0 rgba(66, 183, 218, 0)); }
  55% { opacity: 1; transform: scale(1.15) rotate(4deg); filter: drop-shadow(0 0 18px rgba(99, 198, 227, .8)); }
  100% { opacity: 1; transform: scale(1) rotate(0); filter: drop-shadow(0 0 10px rgba(66, 183, 218, .45)); }
}

/* Tablet */
@media (max-width: 1023px) {
  :root { --section: 88px; }
  .split, .split-reverse, .safety-grid { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-text { order: 1; }
  .split-reverse .split-media { order: 2; }
  .methods { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}

/* Phone */
@media (max-width: 639px) {
  :root { --gutter: 16px; --section: 64px; --radius-shot: 12px; }
  .header-row { height: 64px; }
  .brand { font-size: 20px; }
  .brand img { width: 38px; }
  .hero { padding-top: 48px; padding-bottom: 40px; }
  .hero-shot::before { bottom: -40px; }
  .hero-shot { margin-top: 40px; }
  .methods, .safety-list { grid-template-columns: 1fr; gap: 24px; }
  .closing { padding: 88px 0; }
  .footer-row { flex-direction: column; }
}
