/* ============================================================
   Navia Landing Page — Styles
   ============================================================ */

/* ── Reset & Base ── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Lenis smooth scroll — these are required for the library to work */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto; /* Lenis owns scrolling, prevent native fighting */
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--cream);
  color: var(--black);
}

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

/* ── Design Tokens ── */

:root {
  /* Colors */
  --black: #0d0d0d;
  --white: #ffffff;
  --cream: #faf9f7;
  --grey-50: #f5f4f2;
  --grey-100: #ebeae6;
  --grey-200: #dcdbd6;
  --grey-300: #c2c1ba;
  --grey-500: #6c6e74;
  --grey-700: #3a3a3a;
  --accent: #2b180a;
  --green: #22c55e;
  --amber: #f59e0b;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Layout */
  --max-w: 1280px;
  --pad-x: 48px;
}


/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  background: rgba(250, 249, 247, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav__logo {
  font-family: "IBM Plex Serif", serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  background: var(--black);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nav__cta:hover { opacity: 0.85; }


/* ============================================================
   Hero
   ============================================================ */

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 110px var(--pad-x) 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 56px;
}

.hero__top {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-700);
  animation: fade-up 0.6s ease both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Headline */
.hero__headline {
  font-family: "IBM Plex Serif", serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -2.5px;
  color: var(--accent);
  animation: fade-up 0.6s ease 0.1s both;
}

.hero__headline em { font-style: italic; }

/* Subtitle */
.hero__subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-500);
  max-width: 520px;
  animation: fade-up 0.6s ease 0.2s both;
}

/* CTA buttons */
.hero__cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  animation: fade-up 0.6s ease 0.3s both;
}

.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 52px;
  padding: 0 24px;
  background: transparent;
  color: var(--grey-700);
  font-size: 15px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--grey-200);
  cursor: pointer;
  transition: all 0.2s;
}

.btn--secondary:hover { border-color: var(--grey-500); }
.btn--secondary svg { transition: transform 0.2s; }
.btn--secondary:hover svg { transform: translateX(3px); }

.btn--white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  background: var(--white);
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

/* Visual (image + glass card) */
.hero__visual {
  width: 100%;
  max-width: 820px;
  position: relative;
  border-radius: 36px;
  overflow: hidden;
  animation: fade-up 0.7s ease 0.35s both;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass {
  position: relative;
  z-index: 2;
  margin: 5px;
  border-radius: var(--r-xl);
  background: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.glass__tint {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.16);
  border-radius: var(--r-xl);
  pointer-events: none;
  z-index: 0;
}

.glass__inner {
  position: relative;
  z-index: 1;
  padding: 24px 28px 10px;
}

.glass__caption {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 12px 0 14px;
  font-size: 15px;
  letter-spacing: -0.5px;
  color: rgba(255, 255, 255, 0.9);
}

/* Voice bar inside glass card */
.voice-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid rgba(153, 161, 175, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 10px 20px rgba(0, 0, 0, 0.04);
}

.voice-bar__icon {
  color: var(--grey-500);
  display: flex;
  flex-shrink: 0;
}

.voice-bar__input {
  flex: 1;
  border: none;
  outline: none;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.3px;
  color: #4a5565;
  background: transparent;
}

.voice-bar__input::placeholder { color: #4a5565; }

.voice-bar__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}


/* ============================================================
   Shared Section Styles
   ============================================================ */

.section {
  padding: 120px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 20px;
}

.section__label::before {
  content: "";
  display: block;
  width: 16px;
  height: 1px;
  background: var(--grey-300);
}

.section__title {
  font-family: "IBM Plex Serif", serif;
  font-size: 44px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -2px;
  color: var(--accent);
  max-width: 640px;
}

.section__title em { font-style: italic; }

.section__subtitle {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--grey-500);
  max-width: 480px;
}

.divider {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  border-bottom: 1px solid var(--grey-100);
}


/* ============================================================
   Problem Section
   ============================================================ */

.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.problem__list {
  display: flex;
  flex-direction: column;
}

.problem__item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--grey-100);
}

.problem__item:first-child { padding-top: 0; }
.problem__item:last-child  { border-bottom: none; }

.problem__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--grey-50);
  border: 1px solid var(--grey-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem__item h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 4px;
}

.problem__item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--grey-500);
}


/* ============================================================
   How It Works (Steps)
   ============================================================ */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 64px;
}

.step {
  padding: 0 48px 0 0;
  border-right: 1px solid var(--grey-100);
}

.step:last-child  { border-right: none; padding-left: 48px; padding-right: 0; }
.step:nth-child(2) { padding-left: 48px; }

.step__num {
  font-family: "IBM Plex Serif", serif;
  font-size: 48px;
  font-weight: 300;
  color: var(--grey-200);
  line-height: 1;
  margin-bottom: 24px;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-500);
}

.step__example {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--grey-700);
  font-style: italic;
  line-height: 1.5;
}

.step__example::before { content: "\201C"; }
.step__example::after  { content: "\201D"; }


/* ============================================================
   Demo Video
   ============================================================ */

.video-embed {
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.video-embed__inner {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--black);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

.video-embed__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ============================================================
   Stats Bar
   ============================================================ */

.stats {
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.stats__inner {
  background: var(--black);
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  overflow: hidden;
}

.stats__inner::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.08), transparent 70%);
}

.stats__item {
  padding: 0 32px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.stats__item:first-child { padding-left: 0; }
.stats__item:last-child  { border-right: none; }

.stats__num {
  font-family: "IBM Plex Serif", serif;
  font-size: 44px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 8px;
}

.stats__label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.55;
}


/* ============================================================
   CTA Banner
   ============================================================ */

.cta-banner {
  padding: 0 var(--pad-x) 120px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.cta-banner__inner {
  border-radius: var(--r-xl);
  padding: 72px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  background: var(--accent);
}

/* Blurred background image */
.cta-banner__inner::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("../cta_bg.png") center / cover no-repeat;
  filter: blur(8px);
  z-index: 0;
}

/* Dark overlay for text legibility */
.cta-banner__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 7, 20, 0.45);
  z-index: 1;
}

.cta-banner__text {
  position: relative;
  z-index: 2;
}

.cta-banner__text h2 {
  font-family: "IBM Plex Serif", serif;
  font-size: 40px;
  font-weight: 300;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.cta-banner__text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  line-height: 1.65;
}

.cta-banner .btn--white {
  position: relative;
  z-index: 2;
}


/* ============================================================
   Footer
   ============================================================ */

.footer {
  border-top: 1px solid var(--grey-100);
  padding: 40px var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: "IBM Plex Serif", serif;
  font-size: 16px;
  color: var(--accent);
}

.footer__copy {
  font-size: 13px;
  color: var(--grey-300);
}


/* ============================================================
   Animations & Scroll Reveal
   ============================================================ */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   Accessibility
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  @keyframes fade-up {
    from, to { opacity: 1; transform: none; }
  }
}


/* ============================================================
   Responsive — Mobile (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  .hero {
    padding: 120px var(--pad-x) 60px;
    gap: 40px;
  }

  .hero__headline { font-size: 36px; }
  .hero__visual   { max-width: 100%; }

  .section { padding: 80px var(--pad-x); }

  .problem__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .steps__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .step {
    border-right: none;
    padding: 0 !important;
    border-bottom: 1px solid var(--grey-100);
    padding-bottom: 40px !important;
  }

  .step:last-child { border-bottom: none; }

  .stats__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px;
  }

  .stats__item {
    border-right: none;
    padding: 0;
  }

  .cta-banner__inner {
    flex-direction: column;
    text-align: center;
    padding: 48px 32px;
  }

  .cta-banner__text p { max-width: 100%; }

  .footer {
    padding: 32px var(--pad-x);
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
