@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@400;600;700;800&display=swap");

/* ============================================================
   Tivo — design tokens
   Palette pulled from the app icon gradient (blue → violet →
   magenta) over a deeper-than-poster void so the device shots
   read as the brightest thing on the page.
   ============================================================ */

:root {
  --void: #08050f;
  --deep: #150a2e;
  --panel: #17102e;
  --electric: #3b6bff;
  --violet: #8b4dff;
  --magenta: #ff4fd8;
  --blush: #ffa8e4;

  --ink: #f7f3ff;
  --mute: #b4a3d8;
  --faint: #7d6da3;

  --line: rgba(255, 255, 255, 0.09);

  --font-display: "Unbounded", "Trebuchet MS", sans-serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;

  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 22px;

  --grad-brand: linear-gradient(100deg, var(--electric), var(--violet) 48%, var(--magenta));
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ============================================================
   Ambient background — one fixed aurora field, not per-section
   gradients, so scrolling feels like moving through one room.
   ============================================================ */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58vw 46vw at 74% -6%, rgba(139, 77, 255, 0.34), transparent 62%),
    radial-gradient(46vw 40vw at 8% 12%, rgba(59, 107, 255, 0.24), transparent 60%),
    radial-gradient(52vw 44vw at 50% 104%, rgba(255, 79, 216, 0.16), transparent 62%);
}

/* ============================================================
   Header
   ============================================================ */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(8, 5, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.masthead.is-stuck {
  border-bottom-color: var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 68px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.wordmark img {
  width: auto;
  height: 30px;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.mainnav a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.mainnav .btn {
  color: var(--ink);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease,
    border-color 0.25s ease;
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn--primary {
  color: #fff;
  background-image: var(--grad-brand);
  background-size: 220% 100%;
  background-position: 0% 50%;
  box-shadow: 0 12px 34px -14px rgba(255, 79, 216, 0.85);
}

.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(255, 79, 216, 0.95);
}

.btn--quiet {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.btn--quiet:hover {
  border-color: rgba(255, 168, 228, 0.55);
  transform: translateY(-2px);
}

.btn--sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ============================================================
   Signature: the voice line
   A live waveform is the one motif this page is built around —
   it is what the product turns speech into on screen.
   ============================================================ */

.wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  height: 44px;
  width: 100%;
}

.wave span {
  flex: none;
  width: 3px;
  height: var(--h, 40%);
  border-radius: 999px;
  background: var(--c, var(--violet));
  opacity: 0.45;
  transform-origin: center;
  animation: wave-pulse 2.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes wave-pulse {
  0%,
  100% {
    opacity: 0.32;
    transform: scaleY(0.55);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

.wave--rule {
  height: 26px;
  opacity: 0.7;
}

.wave--hero {
  height: 52px;
  max-width: 420px;
}

.wave--finale {
  height: 64px;
  max-width: 620px;
  margin-inline: auto;
}

/* Divider between narrative sections */
.voice-rule {
  padding-block: clamp(1rem, 4vw, 2rem);
}

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

.hero {
  position: relative;
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 8vw, 5.5rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
  }
}

.hero__brand {
  width: clamp(190px, 26vw, 280px);
  margin-bottom: 1.4rem;
  filter: drop-shadow(0 6px 30px rgba(255, 79, 216, 0.35));
}

.hero__kicker {
  margin: 0 0 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blush);
}

.hero__title {
  margin: 0 0 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 6.2vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.hero__title em {
  font-style: normal;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34rem;
  margin: 0 0 1.9rem;
  color: var(--mute);
  font-size: 1.05rem;
}

.hero__wave {
  margin-top: 2.2rem;
}

.hero__note {
  margin: 0.9rem 0 0;
  font-size: 0.82rem;
  color: var(--faint);
}

/* Device presentation — shared by hero and narrative sections */
.device {
  position: relative;
  margin-inline: auto;
  width: 100%;
  max-width: 340px;
}

.device::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(139, 77, 255, 0.5), rgba(59, 107, 255, 0.16) 58%, transparent 76%);
  filter: blur(8px);
}

.device img {
  width: 100%;
  border-radius: var(--radius);
}

.device__tag {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.device__tag::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--grad-brand);
}

.hero .device {
  max-width: 400px;
}

/* ============================================================
   Narrative sections
   ============================================================ */

.chapter {
  padding-block: clamp(2.5rem, 5.5vw, 3.75rem);
}

.chapter__grid {
  display: grid;
  gap: clamp(2.25rem, 6vw, 4rem);
  align-items: center;
}

@media (min-width: 900px) {
  .chapter__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  }

  /* Flip the device to the left on alternating chapters. Source
     order stays copy-first so mobile and screen readers get the
     heading before the picture. The column widths flip with it, so
     the device always sits in the narrower track. */
  .chapter--flip .chapter__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  }

  .chapter--flip .chapter__copy {
    order: 2;
  }
}

.chapter__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.9rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blush);
}

.chapter__eyebrow .wave {
  width: 46px;
  height: 18px;
  flex: none;
}

.chapter__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.chapter__body {
  max-width: 34rem;
  margin: 0 0 1rem;
  color: var(--mute);
}

.chapter__body:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Pair band — gifts + safety, no device shots so the rhythm
   breaks before the final call to action.
   ============================================================ */

.pair {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.pair__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

@media (min-width: 820px) {
  .pair__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(23, 16, 46, 0.9), rgba(12, 7, 24, 0.72));
}

.card__title {
  margin: 1.1rem 0 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
}

.card__body {
  margin: 0;
  color: var(--mute);
}

.card .wave {
  width: 78px;
  height: 26px;
}

/* ============================================================
   Finale
   ============================================================ */

.finale {
  padding-block: clamp(3.5rem, 9vw, 6rem);
  text-align: center;
}

.finale__title {
  margin: 1.6rem auto 1.1rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.finale__body {
  max-width: 46rem;
  margin: 0 auto 2rem;
  color: var(--mute);
}

.finale .btn-row {
  justify-content: center;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer__links a {
  color: var(--mute);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer__legal {
  margin: 0;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ============================================================
   Motion
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

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

  .wave span {
    animation: none;
    opacity: 0.75;
    transform: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn {
    transition: none;
  }

  .btn--primary:hover,
  .btn--quiet:hover {
    transform: none;
  }
}

/* ============================================================
   Legal pages
   ============================================================ */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(3rem, 7vw, 4.5rem);
}

.legal__doc {
  max-width: 74ch;
  margin-inline: auto;
  color: var(--mute);
}

.legal__doc h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  color: var(--ink);
}

.legal__doc h2 {
  margin: 2.5rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal__doc h3 {
  margin: 1.6rem 0 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blush);
}

.legal__doc p,
.legal__doc li {
  margin: 0 0 0.85rem;
}

.legal__doc ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

.legal__doc a {
  color: var(--blush);
  text-underline-offset: 3px;
}

.legal__doc strong {
  color: var(--ink);
}
