:root {
  --blue: #509ae1;
  --blue-deep: #2d9ce7;
  --blue-ink: #1a6fb8;
  --green: #3ec379;
  --ink: #1a1a1a;
  --ink-soft: #5c6370;
  --fog: #fafbfc;
  --line: rgba(26, 26, 26, 0.08);
  --white: #ffffff;
  --font: "Satoshi", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
  --nav-h: 72px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

/* —— Nav —— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.45s var(--ease), backdrop-filter 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.nav.is-solid {
  background: rgba(250, 251, 252, 0.82);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  height: 28px;
  color: #fff;
}

.nav.is-solid .nav-brand {
  color: var(--blue);
}

.nav.is-solid .nav-logo .logo-check {
  fill: #fff;
}

.nav-logo {
  display: block;
  height: 28px;
  width: auto;
}

.nav-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: background 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-download:hover {
  background: rgba(255, 255, 255, 0.28);
}

.nav.is-solid .nav-download {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.nav.is-solid .nav-download:hover {
  background: #000;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 24px) clamp(20px, 4vw, 48px) 0;
  background:
    radial-gradient(
      120% 80% at 70% 20%,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0) 55%
    ),
    linear-gradient(165deg, #47a8eb 0%, var(--blue-deep) 48%, #1f7bc0 100%);
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 96px;
  background: linear-gradient(
    180deg,
    rgba(250, 251, 252, 0) 0%,
    var(--fog) 100%
  );
  pointer-events: none;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  inset: auto -20% 10% -20%;
  height: 55%;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.22) 0%,
    rgba(255, 255, 255, 0) 68%
  );
  pointer-events: none;
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-bottom: clamp(48px, 10vh, 120px);
}

.hero-logo {
  width: min(220px, 55vw);
  height: auto;
  margin-bottom: 28px;
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 11ch;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34ch;
  margin-bottom: 32px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.store-badge {
  display: flex;
  align-items: center;
  height: 48px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge img {
  height: 48px;
  width: auto;
}

.store-badge-play {
  height: 48px;
  overflow: hidden;
}

.store-badge-play img {
  height: 72px;
  width: auto;
  margin: -12px -14px;
  max-width: none;
}

.hero-device {
  justify-self: center;
  width: min(100%, 380px);
  filter: drop-shadow(0 40px 80px rgba(10, 40, 80, 0.35));
  transform-origin: center bottom;
}

.hero-device img {
  width: 100%;
  border-radius: 36px 36px 0 0;
}

/* —— Sections —— */
.section {
  padding: clamp(88px, 14vh, 160px) clamp(20px, 4vw, 48px);
}

.section h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-ink);
  margin-bottom: 18px;
}

.lede {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  color: var(--ink-soft);
  letter-spacing: -0.015em;
  line-height: 1.5;
  max-width: 40ch;
}

/* Featured quote */
.quote-featured {
  background: var(--fog);
  padding-top: clamp(64px, 10vh, 112px);
}

.quote-block {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.quote-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.quote-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 28px;
}

.quote-name {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.quote-role {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.quote-block blockquote {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--ink);
}

/* Strategy */
.strategy {
  width: min(100%, 820px);
  margin: 0 auto;
  text-align: center;
}

.strategy h2 {
  margin-bottom: 22px;
}

.strategy .lede {
  margin: 0 auto;
}

/* Quote carousel */
.quotes {
  background: var(--fog);
  padding-top: clamp(72px, 12vh, 120px);
  padding-bottom: clamp(72px, 12vh, 120px);
}

.quotes-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  text-align: center;
}

.quotes-track {
  position: relative;
  min-height: 220px;
  cursor: pointer;
}

.quote-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    visibility 0.7s;
}

.quote-slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.quote-slide p {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1.4;
  margin-bottom: 28px;
}

.quote-slide footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quote-slide cite {
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.quote-slide span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.quote-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px auto 0;
}

.quote-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.quote-nav-btn:hover {
  color: var(--ink);
  background: rgba(26, 26, 26, 0.05);
}

.quote-nav-btn svg {
  display: block;
  flex-shrink: 0;
}

.quote-nav-btn[data-quote-prev] svg {
  transform: translateX(-1px);
}

.quote-nav-btn[data-quote-next] svg {
  transform: translateX(1px);
}

/* Features */
.features-intro {
  width: min(100%, 720px);
  margin: 0 auto 48px;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 48px);
}

.features-intro h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.features-showcase {
  width: min(100%, 980px);
  margin: 0 auto clamp(56px, 8vh, 88px);
  padding: 12px clamp(20px, 4vw, 48px) 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(16px, 3vw, 36px);
}

.showcase-phone {
  width: min(28%, 240px);
  height: auto;
  border-radius: 22px;
  filter: drop-shadow(0 24px 48px rgba(20, 50, 90, 0.16));
  opacity: 0.88;
  transform: translateY(12px);
}

.showcase-phone-center {
  width: min(34%, 290px);
  opacity: 1;
  transform: translateY(0);
  z-index: 1;
}

.features-list {
  list-style: none;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 40px) clamp(32px, 5vw, 56px);
}

.feature-item {
  padding: 0;
}

.feature-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.feature-item p {
  font-size: 0.98rem;
  color: var(--ink-soft);
  letter-spacing: -0.01em;
  line-height: 1.5;
  max-width: 36ch;
}

/* CTA */
.cta {
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--fog) 0%,
    #eef5fb 55%,
    #e7f1fa 100%
  );
}

.cta h2 {
  margin-bottom: 12px;
}

.cta .lede {
  margin: 0 auto 32px;
}

.store-badges-dark {
  justify-content: center;
}

/* Footer */
.footer {
  padding: 48px clamp(20px, 4vw, 48px) 56px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 22px;
  justify-items: start;
}

.footer-brand img {
  height: 26px;
  width: auto;
}

.footer-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.footer-links a:hover,
.footer-social a:hover {
  color: var(--ink);
}

.footer-links a.is-active {
  color: var(--ink);
  font-weight: 600;
}

/* —— Subpages (Contact / Terms / Privacy) —— */
body.subpage {
  background: var(--fog);
}

.subpage-main {
  padding-top: var(--nav-h);
  min-height: calc(100svh - 220px);
}

.page-hero {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(56px, 10vh, 96px) clamp(20px, 4vw, 48px) 28px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.page-hero .lede {
  margin: 0 auto;
}

.contact-panel {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: 12px clamp(20px, 4vw, 48px) clamp(80px, 12vh, 120px);
  display: grid;
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 28px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(20, 50, 90, 0.08);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-value {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--blue-ink);
}

.contact-social {
  padding: 24px 28px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.contact-social-links a:hover {
  color: var(--blue-ink);
}

.legal-body {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px) clamp(88px, 12vh, 140px);
  color: var(--ink);
}

.legal-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}

.legal-body h4 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 28px 0 10px;
}

.legal-body p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-body a {
  color: var(--blue-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-body a:hover {
  color: var(--ink);
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 14px 1.2em;
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.legal-body li {
  margin-bottom: 6px;
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(26, 26, 26, 0.45);
}

/* Motion targets — JS sets initial state when animating */
.js-motion [data-reveal],
.js-motion [data-hero-el] {
  will-change: transform, opacity;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero {
    align-items: stretch;
    min-height: auto;
    padding-bottom: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 24px;
  }

  .hero-copy {
    padding-bottom: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    max-width: 14ch;
  }

  .hero-sub {
    max-width: 36ch;
  }

  .store-badges {
    justify-content: center;
  }

  .hero-device {
    width: min(78vw, 300px);
  }

  .features-showcase {
    gap: 12px;
  }

  .showcase-phone {
    width: min(30%, 180px);
  }

  .showcase-phone-center {
    width: min(38%, 220px);
  }

  .features-list {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
}

@media (max-width: 520px) {
  .store-badge,
  .store-badge-play {
    height: 44px;
  }

  .store-badge img {
    height: 44px;
  }

  .store-badge-play img {
    height: 66px;
    margin: -11px -12px;
  }

  .quotes-track {
    min-height: 260px;
  }

  .features-showcase {
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 20px;
    gap: 18px;
    mask-image: linear-gradient(
      90deg,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    );
  }

  .showcase-phone,
  .showcase-phone-center {
    flex: 0 0 58%;
    width: 58%;
    max-width: 220px;
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
  }

  .features-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    justify-items: center;
    text-align: center;
  }

  .footer-links,
  .footer-social {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
