:root {
  color-scheme: light dark;
  --background: #eef3ff;
  --background-deep: #dbe8ff;
  --text: #101629;
  --muted: #58637b;
  --blue: #315efb;
  --cyan: #68d8ff;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.84);
  --shadow: 0 24px 60px rgba(41, 76, 152, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(104, 216, 255, 0.42), transparent 32rem),
    radial-gradient(circle at 88% 12%, rgba(75, 94, 255, 0.24), transparent 36rem),
    linear-gradient(145deg, var(--background), var(--background-deep));
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 750;
}

.language-switcher {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  background: var(--glass);
}

.language-switcher button {
  padding: 4px 7px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher button.active {
  color: white;
  background: var(--blue);
}

[hidden] {
  display: none !important;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
  min-height: 620px;
  padding: 54px;
  border-radius: 42px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.lead {
  max-width: 36rem;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--blue), #6298ff);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(49, 94, 251, 0.25);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.app-store-button {
  gap: 13px;
  min-height: 68px;
  padding: 10px 24px 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 22px;
  background: linear-gradient(125deg, #3478ed 0%, #4267f1 48%, #7659fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 30px rgba(49, 94, 251, 0.3);
  text-align: left;
}

.app-store-button:hover,
.app-store-button:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 18px 36px rgba(49, 94, 251, 0.36);
}

.apple-mark {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1;
}

.app-store-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app-store-copy > span {
  font-size: 0.78rem;
  font-weight: 650;
}

.app-store-copy strong {
  margin-top: 3px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(93, 177, 255, 0.22);
  filter: blur(34px);
}

.hero-art img {
  position: relative;
  width: min(100%, 420px);
  border-radius: 30%;
  filter: drop-shadow(0 30px 38px rgba(29, 75, 170, 0.24));
}

.hero-art.pillow-fight {
  isolation: isolate;
}

.hero-art.pillow-fight::before {
  width: 96%;
  background: rgba(93, 177, 255, 0.3);
}

.hero-art.pillow-fight img {
  grid-area: 1 / 1;
  width: min(112%, 520px);
  max-width: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  box-shadow: 0 28px 55px rgba(29, 75, 170, 0.2);
  filter: none;
  transform: rotate(1.5deg);
  animation:
    pillow-fight-float 5s ease-in-out infinite,
    pillow-fight-crossfade 20s ease-in-out infinite;
}

.hero-art.pillow-fight img:nth-child(2) {
  animation-delay: 0s, -10s;
}

@keyframes pillow-fight-float {
  0%,
  100% {
    transform: translateY(0) rotate(1.5deg);
  }

  50% {
    transform: translateY(-8px) rotate(0.5deg);
  }
}

@keyframes pillow-fight-crossfade {
  0%,
  45%,
  100% {
    opacity: 1;
  }

  50%,
  95% {
    opacity: 0;
  }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0 80px;
}

.app-preview {
  padding: 88px 0 72px;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  max-width: 34rem;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.screens {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(0px, 2vw, 28px);
}

.screen {
  position: relative;
  margin: 0;
  transform: rotate(-2deg);
}

.screen:nth-child(2) {
  z-index: 1;
  transform: translateY(-18px);
}

.screen:nth-child(3) {
  transform: rotate(2deg);
}

.screen img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: clamp(24px, 3vw, 38px);
  box-shadow: 0 28px 60px rgba(29, 75, 170, 0.2);
}

.screen figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  color: #101629;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  font-size: 0.86rem;
  font-weight: 720;
  text-align: center;
}

.card {
  padding: 28px;
  border-radius: 28px;
}

.card h2,
.document h1,
.document h2 {
  letter-spacing: -0.035em;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.card p {
  min-height: 4.5em;
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.card a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.document {
  max-width: 820px;
  margin: 24px auto 80px;
  padding: clamp(28px, 6vw, 62px);
  border-radius: 36px;
}

.document h1 {
  max-width: none;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
}

.document h2 {
  margin-top: 36px;
  font-size: 1.45rem;
}

.document p,
.document li {
  color: var(--muted);
  line-height: 1.7;
}

.document strong {
  color: var(--text);
}

.language-divider {
  height: 1px;
  margin: 52px 0;
  background: rgba(69, 91, 140, 0.18);
}

.companions-shell {
  width: min(1240px, calc(100% - 32px));
}

.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 8px 0 58px;
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: white;
  background: linear-gradient(110deg, #315efb, #7558f8 55%, #f478a7);
  box-shadow: 0 14px 34px rgba(49, 94, 251, 0.24);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.coming-soon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
  animation: coming-soon-pulse 2.4s ease-in-out infinite;
}

@keyframes coming-soon-pulse {
  50% {
    transform: scale(0.72);
    opacity: 0.72;
  }
}

.companions-intro {
  max-width: 900px;
  margin: 0 auto 54px;
  text-align: center;
}

.companions-intro h1 {
  max-width: 11ch;
  margin: 0 auto;
  font-size: clamp(3.4rem, 8vw, 7rem);
}

.companions-intro .lead {
  margin-right: auto;
  margin-left: auto;
}

.light-table {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  grid-auto-rows: 190px;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: 46px;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.88) 45%, rgba(224, 236, 255, 0.78)),
    #f7faff;
  box-shadow:
    inset 0 0 80px rgba(87, 148, 255, 0.12),
    0 34px 80px rgba(29, 75, 170, 0.18);
}

.light-table::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(73, 108, 175, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 108, 175, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.companion-card {
  position: relative;
  display: flex;
  grid-column: span 4;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(225, 235, 255, 0.64));
  box-shadow:
    0 16px 32px rgba(36, 77, 157, 0.13),
    inset 0 1px 0 white;
  transform: rotate(-0.6deg);
}

.companion-card:nth-child(2n) {
  transform: rotate(0.7deg);
}

.companion-card:nth-child(3n) {
  transform: rotate(-1deg);
}

.companion-card.wide,
.companion-card.feature {
  grid-column: span 8;
}

.companion-card.feature {
  grid-row: span 3;
}

.companion-card.tall {
  grid-row: span 3;
}

.companion-card.pink {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 222, 237, 0.72));
}

.companion-card.blue {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(207, 225, 255, 0.74));
}

.companion-card.mint {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(202, 247, 241, 0.68));
}

.companion-card.warm {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 232, 205, 0.68));
}

.companion-card.cool {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(216, 211, 255, 0.68));
}

.companion-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 18px rgba(31, 65, 135, 0.18));
  transition: transform 320ms ease;
}

.companion-card:hover img {
  transform: translateY(-5px) scale(1.025);
}

.companion-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  color: #17203a;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  font-size: 0.78rem;
  font-weight: 760;
  box-shadow: 0 8px 18px rgba(42, 67, 122, 0.12);
}

.gallery-note {
  max-width: 620px;
  margin: 34px auto 80px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

footer {
  padding: 0 0 38px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #070b18;
    --background-deep: #111b34;
    --text: #f7f9ff;
    --muted: #b5bfd7;
    --glass: rgba(18, 31, 59, 0.58);
    --glass-border: rgba(181, 213, 255, 0.18);
    --shadow: 0 28px 70px rgba(0, 0, 0, 0.3);
  }

  .button.secondary {
    background: rgba(125, 168, 255, 0.1);
    border-color: rgba(181, 213, 255, 0.18);
  }
}

@media (max-width: 760px) {
  .nav-links {
    gap: 12px;
    font-size: 0.82rem;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px 24px 24px;
    border-radius: 30px;
  }

  .hero-art {
    order: -1;
  }

  .hero-art img {
    width: min(74vw, 330px);
  }

  .hero-art.pillow-fight img {
    width: min(100%, 520px);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .app-preview {
    padding: 68px 0 56px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .screens {
    gap: 10px;
    margin: 0 -8px;
  }

  .screen:nth-child(2) {
    transform: translateY(-10px);
  }

  .screen figcaption {
    display: none;
  }

  .card p {
    min-height: auto;
  }

  .coming-soon {
    margin-bottom: 42px;
  }

  .light-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 12px;
    padding: 14px;
    border-radius: 30px;
  }

  .companion-card,
  .companion-card.wide,
  .companion-card.feature {
    grid-column: span 1;
    grid-row: span 2;
    border-radius: 22px;
  }

  .companion-card.feature,
  .companion-card.wide {
    grid-column: span 2;
  }

  .companion-card figcaption {
    right: 9px;
    bottom: 9px;
  }
}

@media (max-width: 560px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
  }
}

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

  .hero-art.pillow-fight img {
    animation: none;
  }

  .hero-art.pillow-fight img:nth-child(2) {
    opacity: 0;
  }

  .coming-soon-dot {
    animation: none;
  }

  .companion-card img {
    transition: none;
  }
}
