:root {
  --sun: #ffd98f;
  --sun-strong: #ffc465;
  --coral: #f36f61;
  --lavender: #d5b7f6;
  --sky: #9dcbff;
  --mint: #83ecaa;
  --paper: #fffaf2;
  --surface: #ffffff;
  --ink: #161616;
  --muted: #5a5a5a;
  --night: #171445;
  --night-soft: #2d2877;
  --line: rgba(22, 22, 22, 0.12);
  --shadow: 0 24px 70px rgba(31, 25, 16, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

.lang-en {
  display: none;
}

html[data-lang="en"] .lang-de {
  display: none;
}

html[data-lang="en"] .lang-en {
  display: inline;
}

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1120px, calc(100% - 28px));
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 14px 44px rgba(35, 28, 18, 0.11);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
}

.brand,
.site-nav,
.header-actions,
.site-footer nav,
.legal-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 8px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--sun);
  font-size: 0.72rem;
}

.site-nav {
  gap: 6px;
  justify-content: center;
}

.site-nav a,
.nav-download,
.legal-nav a,
.site-footer a {
  text-decoration: none;
}

.site-nav a,
.nav-download {
  padding: 9px 13px;
  border-radius: 999px;
  color: #303030;
  font-size: 0.94rem;
  font-weight: 800;
}

.site-nav a:hover,
.nav-download {
  background: rgba(255, 217, 143, 0.55);
}

.header-actions {
  justify-content: flex-end;
  gap: 8px;
}

.language-toggle {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.language-toggle button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 8px 10px;
}

.language-toggle button.active {
  background: var(--ink);
  color: var(--sun);
}

.section-full {
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 32px;
  align-items: center;
  padding: 130px max(28px, calc((100vw - 1120px) / 2)) 72px;
  background:
    linear-gradient(145deg, rgba(255, 217, 143, 0.92), rgba(255, 250, 242, 0.96) 48%, rgba(157, 203, 255, 0.36));
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42vw;
  height: 100%;
  background: linear-gradient(115deg, rgba(213, 183, 246, 0), rgba(213, 183, 246, 0.28));
  pointer-events: none;
}

.hero-copy,
.hero-visual,
.moment-copy,
.moment-visual,
.section-heading,
.feature-card,
.download-section,
.trust-strip {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  hyphens: auto;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(4rem, 10vw, 8.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.88;
  text-wrap: balance;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 6vw, 6.2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.94;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero-lead {
  max-width: 640px;
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.08;
}

.hero-support,
.moment-copy p,
.download-section p,
.trust-strip p,
.feature-card p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.hero-support,
.moment-copy p {
  max-width: 620px;
}

.hero-ctas,
.mode-pills,
.sleep-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-ctas {
  margin-top: 28px;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.primary-cta {
  background: var(--ink);
  color: var(--sun);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.secondary-cta {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.mode-pills {
  margin-top: 20px;
}

.mode-pills > span,
.sleep-metrics > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  font-weight: 900;
}

.mode-pills > span strong,
.premium-label strong {
  border-radius: 999px;
  background: var(--lavender);
  color: #241452;
  font-size: 0.68rem;
  padding: 3px 7px;
}

.hero-visual {
  justify-self: end;
  width: min(430px, 100%);
  transform: rotate(4deg);
}

.hero-visual img,
.moment-visual img,
.feature-card img {
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.trust-strip {
  width: min(960px, calc(100% - 36px));
  margin: 72px auto 0;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(31, 25, 16, 0.1);
  backdrop-filter: blur(18px);
}

.trust-strip p {
  margin: 0;
  text-align: center;
  font-weight: 800;
}

.guidance-note {
  border-color: rgba(243, 111, 97, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 217, 143, 0.28));
  box-shadow: 0 18px 42px rgba(243, 111, 97, 0.11);
}

.guidance-note p {
  color: #7d2c25;
}

.product-moment {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.75fr);
  gap: clamp(32px, 7vw, 92px);
  align-items: center;
  padding: 110px max(28px, calc((100vw - 1120px) / 2));
}

.outdoor-moment {
  background: linear-gradient(180deg, var(--paper), #fff 46%, rgba(157, 203, 255, 0.22));
}

.moment-visual {
  width: min(420px, 100%);
}

.moment-visual img {
  width: 100%;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 28px;
  color: #2c2c2c;
  font-weight: 900;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(131, 236, 170, 0.24);
}

.sleep-moment {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 0.95fr);
  background: linear-gradient(145deg, var(--night), var(--night-soft) 58%, #15122d);
  color: #fff;
}

.sleep-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(213, 183, 246, 0.24), rgba(213, 183, 246, 0) 42%),
    linear-gradient(315deg, rgba(157, 203, 255, 0.18), rgba(157, 203, 255, 0) 46%);
  opacity: 0.9;
}

.sleep-moment .moment-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.sleep-moment .eyebrow {
  color: var(--sun);
}

.sleep-device-visual {
  width: min(430px, 100%);
}

.phone-device {
  position: relative;
  width: 100%;
  aspect-ratio: 848 / 1672;
  padding: 3.3%;
  border: 2px solid #4d4d4d;
  border-radius: 13.5% / 6.8%;
  background:
    linear-gradient(120deg, #1d1d1f, #030304 42%, #2c2c2f 70%, #070708);
  box-shadow:
    0 34px 60px rgba(0, 0, 0, 0.4),
    inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-device::before {
  content: "";
  position: absolute;
  top: 2.1%;
  left: 50%;
  z-index: 3;
  width: 29%;
  height: 5.8%;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone-device::after {
  content: "";
  position: absolute;
  inset: 1.5%;
  border-radius: 12.7% / 6.3%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.phone-screen {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 11.6% / 5.8%;
  background: var(--night);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  border-radius: 0 !important;
  box-shadow: none !important;
  object-fit: cover;
}

.phone-button {
  position: absolute;
  z-index: 0;
  width: 1.8%;
  border-radius: 999px;
  background: linear-gradient(90deg, #111, #555, #151515);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone-button-left-top {
  top: 17.5%;
  left: -1.1%;
  height: 4.2%;
}

.phone-button-left-mid {
  top: 24.2%;
  left: -1.1%;
  height: 6.8%;
}

.phone-button-left-bottom {
  top: 33.1%;
  left: -1.1%;
  height: 6.8%;
}

.phone-button-right {
  top: 28.8%;
  right: -1.1%;
  height: 10.8%;
}

.sleep-metrics {
  margin-top: 28px;
}

.sleep-metrics span {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.feature-showcase {
  padding: 120px max(28px, calc((100vw - 1120px) / 2));
  background: linear-gradient(180deg, #fff, var(--paper));
}

.section-heading {
  max-width: 840px;
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 38px rgba(31, 25, 16, 0.08);
}

.feature-card:nth-child(1),
.feature-card:nth-child(2) {
  grid-column: span 2;
}

.feature-card img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 22px;
}

.compact-card {
  grid-column: span 2;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: flex-end;
}

.download-section {
  display: grid;
  justify-items: center;
  padding: 120px 28px;
  background: linear-gradient(145deg, rgba(255, 217, 143, 0.9), rgba(131, 236, 170, 0.34));
  text-align: center;
}

.download-section h2 {
  max-width: 900px;
}

.download-section p {
  max-width: 620px;
  margin-bottom: 26px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px max(28px, calc((100vw - 1120px) / 2));
  background: #111;
  color: #fff;
}

.site-footer p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer nav {
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.legal-page {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: linear-gradient(180deg, var(--paper), #fff 34%, rgba(213, 183, 246, 0.16));
}

.legal-page .site-header {
  position: sticky;
  transform: none;
  left: auto;
  margin: 14px auto 34px;
}

.legal-page > h1,
.legal-page > h2,
.legal-page > h3,
.legal-page > p,
.legal-page > ul {
  width: min(860px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}

.legal-page > h1 {
  margin-top: 82px;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 0.96;
  color: var(--ink) !important;
}

.legal-page > h2 {
  margin-top: 46px;
  color: #1b5f73 !important;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.legal-page > h3 {
  margin-top: 30px;
  color: #2f2f2f !important;
}

.legal-page > p,
.legal-page > ul {
  color: #3d3d3d;
  font-size: 1.04rem;
}

.legal-page .language-toggle {
  position: static !important;
}

.legal-page > .language-toggle {
  display: none;
}

.legal-shell {
  width: min(860px, calc(100% - 36px));
  margin: 0 auto 28px;
  padding-top: 108px;
}

.legal-kicker {
  color: var(--coral);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

  .site-nav {
    display: none;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .product-moment,
  .sleep-moment {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-visual,
  .moment-visual {
    justify-self: center;
    width: min(360px, 88vw);
  }

  .hero-visual {
    transform: rotate(2deg);
  }

  .sleep-moment .moment-visual {
    order: 2;
  }

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

  .feature-card:nth-child(1),
  .feature-card:nth-child(2),
  .compact-card {
    grid-column: span 1;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 540px) {
  .site-header {
    width: calc(100% - 18px);
    top: 9px;
  }

  .nav-download {
    display: none;
  }

  .hero,
  .product-moment,
  .feature-showcase,
  .download-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.6rem);
  }
}

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

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

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