:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-soft: #f4f2ec;
  --text: #151515;
  --muted: #66655f;
  --line: rgba(18, 18, 18, 0.1);
  --blue: #4b8dff;
  --blue-soft: #e9f2ff;
  --indigo: #5762d5;
  --indigo-soft: #efefff;
  --green: #60b894;
  --shadow: 0 24px 70px rgba(38, 37, 32, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --header-height: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(233, 242, 255, 0.46), transparent 320px),
    linear-gradient(140deg, rgba(255, 255, 255, 0), rgba(96, 184, 148, 0.08) 48%, rgba(255, 255, 255, 0) 78%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
  background: rgba(251, 250, 247, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(121, 87, 20, 0.2));
}

.footer-brand .brand-emblem {
  width: 34px;
  height: 34px;
}

@media (min-width: 981px) {
  .site-header .brand {
    gap: 24px;
    font-size: 3.25rem;
    font-weight: 760;
    line-height: 1;
  }

  .site-header .brand-emblem {
    width: 200px;
    height: 200px;
  }
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.site-footer a {
  transition: color 180ms ease;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.language-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-button {
  min-width: 42px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.language-button.is-active {
  background: var(--text);
  color: #fff;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

#apps,
#privacy,
#support {
  scroll-margin-top: 132px;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 52px;
  padding: 84px 0 96px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 720;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: 4.45rem;
  line-height: 0.98;
  font-weight: 760;
}

.hero-subtitle,
.section-lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 1.28rem;
}

.primary-link,
.secondary-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 20px;
  font: inherit;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-link {
  padding: 0 24px;
  background: var(--text);
  color: #fff;
  box-shadow: 0 18px 34px rgba(18, 18, 18, 0.16);
}

.secondary-link {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  cursor: default;
}

.primary-link:hover,
.secondary-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(18, 18, 18, 0.14);
}

.secondary-link:disabled:hover {
  transform: none;
  box-shadow: none;
}

.hero-cards {
  display: grid;
  gap: 18px;
}

.app-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.app-card h2 {
  margin: 24px 0 8px;
  font-size: 1.65rem;
}

.app-card p {
  max-width: 330px;
  margin-bottom: 0;
  color: var(--muted);
}

.app-card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 17px;
}

.music-icon {
  background: linear-gradient(135deg, #ddecff, #f5faff);
}

.music-icon span {
  width: 22px;
  height: 26px;
  border: 3px solid var(--blue);
  border-left-width: 7px;
  border-radius: 12px 12px 12px 4px;
}

.sleep-icon {
  background: linear-gradient(135deg, #ececff, #faf9ff);
}

.sleep-icon span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--indigo);
  box-shadow: inset -8px 1px 0 #f8f6ff;
}

.card-lines {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 8px;
}

.card-lines span {
  width: 86px;
  height: 8px;
  border-radius: 999px;
  background: rgba(75, 141, 255, 0.18);
}

.card-lines span:nth-child(2) {
  width: 122px;
}

.card-lines span:nth-child(3) {
  width: 66px;
}

.moon-orbit {
  position: absolute;
  right: 28px;
  bottom: 22px;
  width: 132px;
  height: 58px;
  display: grid;
  align-items: end;
}

.moon-orbit span {
  width: 118px;
  height: 42px;
  border: 1px solid rgba(87, 98, 213, 0.22);
  border-left: 0;
  border-right: 0;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(87, 98, 213, 0.18) 18% 21%, transparent 21% 47%, rgba(87, 98, 213, 0.34) 47% 50%, transparent 50% 76%, rgba(75, 141, 255, 0.2) 76% 79%, transparent 79% 100%);
}

.product-section {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  align-items: center;
  gap: 72px;
  padding: 118px 0;
  border-top: 1px solid var(--line);
}

.product-section-alt {
  grid-template-columns: 0.88fr 1fr;
}

.product-copy h2,
.privacy-section h2,
.support-section h2 {
  margin-bottom: 18px;
  font-size: 3.15rem;
  line-height: 1.04;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 8px;
}

.feature-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(75, 141, 255, 0.18);
  border-radius: 999px;
  background: rgba(233, 242, 255, 0.78);
  color: #234a83;
  font-weight: 680;
  font-size: 0.94rem;
}

.sleep-features span {
  border-color: rgba(87, 98, 213, 0.18);
  background: rgba(239, 239, 255, 0.82);
  color: #383f91;
}

.phone-stage {
  display: grid;
  place-items: center;
  min-height: 620px;
  border-radius: var(--radius-lg);
}

.music-stage {
  background: linear-gradient(145deg, rgba(233, 242, 255, 0.72), rgba(255, 255, 255, 0.35));
}

.sleep-stage {
  background: linear-gradient(145deg, rgba(239, 239, 255, 0.72), rgba(255, 255, 255, 0.35));
}

.phone-frame {
  position: relative;
  width: 292px;
  height: 586px;
  padding: 12px;
  border: 1px solid rgba(18, 18, 18, 0.12);
  border-radius: 42px;
  background: #fbfbfb;
  box-shadow: 0 26px 80px rgba(29, 31, 38, 0.16);
}

.phone-speaker {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 78px;
  height: 21px;
  border-radius: 999px;
  background: #101010;
  transform: translateX(-50%);
  z-index: 2;
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 32px;
  padding: 62px 20px 20px;
}

.music-screen {
  background:
    linear-gradient(180deg, rgba(75, 141, 255, 0.12), transparent 42%),
    #f9fbff;
}

.sleep-screen {
  background:
    linear-gradient(180deg, rgba(87, 98, 213, 0.14), transparent 45%),
    #fafaff;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-weight: 760;
}

.screen-top small {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 0.72rem;
}

.search-pill {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #8a8a86;
  font-size: 0.88rem;
}

.album-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.album-stack div {
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, #74a7ff, #b8dcff);
}

.album-stack div:nth-child(2) {
  background: linear-gradient(135deg, #67c4a2, #cceee1);
}

.album-stack div:nth-child(3) {
  background: linear-gradient(135deg, #8f92ff, #dadbff);
}

.track-list {
  display: grid;
  gap: 12px;
}

.track-list span {
  height: 44px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.mini-player {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 74px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(20, 27, 39, 0.94);
  color: #fff;
}

.mini-player small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.play-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
}

.sleep-summary {
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
}

.sleep-summary span {
  color: var(--muted);
}

.sleep-summary strong {
  font-size: 2.2rem;
}

.sleep-bars {
  display: flex;
  align-items: end;
  gap: 9px;
  height: 112px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
}

.sleep-bars span {
  flex: 1;
  min-height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #7680f3, #c9cbff);
}

.sleep-bars span:nth-child(1) {
  height: 54px;
}

.sleep-bars span:nth-child(2) {
  height: 74px;
}

.sleep-bars span:nth-child(3) {
  height: 92px;
}

.sleep-bars span:nth-child(4) {
  height: 64px;
}

.sleep-bars span:nth-child(5) {
  height: 84px;
}

.journal-card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
}

.journal-card small {
  color: var(--muted);
}

.journal-card p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.habit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.habit-row span {
  height: 36px;
  border-radius: 16px;
  background: rgba(87, 98, 213, 0.13);
}

.privacy-section {
  padding: 118px 0;
  border-top: 1px solid var(--line);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.privacy-grid article {
  min-height: 242px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
}

.privacy-grid span {
  color: var(--blue);
  font-weight: 800;
}

.privacy-grid h3 {
  margin: 26px 0 10px;
  font-size: 1.24rem;
}

.privacy-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.placeholder-note {
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.support-section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 42px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  gap: 18px;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .app-card,
  .phone-frame,
  .privacy-grid article {
    animation: rise-in 620ms ease both;
  }

  .app-card:nth-child(2),
  .sleep-stage .phone-frame {
    animation-delay: 90ms;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .product-section,
  .product-section-alt {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  h1 {
    font-size: 3.35rem;
  }

  .product-copy h2,
  .privacy-section h2,
  .support-section h2 {
    font-size: 2.45rem;
  }

  .product-section-alt .phone-stage {
    order: 2;
  }

  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .section-shell,
  .site-header,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    gap: 16px;
  }

  .main-nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .language-button {
    min-width: 38px;
  }

  .hero {
    gap: 32px;
    padding: 46px 0 76px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .hero-subtitle,
  .section-lead {
    font-size: 1.08rem;
  }

  .app-card {
    min-height: 214px;
    padding: 22px;
  }

  .card-lines,
  .moon-orbit {
    display: none;
  }

  .product-section,
  .privacy-section {
    padding: 76px 0;
  }

  .phone-stage {
    min-height: 540px;
  }

  .phone-frame {
    width: 258px;
    height: 520px;
  }

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

  .site-footer nav {
    flex-wrap: wrap;
  }
}
