:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5f6975;
  --line: #d9e0e8;
  --paper: #fbfcfd;
  --mist: #eef3f7;
  --red: #e63135;
  --teal: #087f8c;
  --gold: #c89416;
  --green: #2f7d54;
  --shadow: 0 18px 45px rgba(16, 24, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 224, 232, 0.82);
  background: rgba(251, 252, 253, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 22px;
  border-radius: 7px;
  background: var(--red);
  position: relative;
  box-shadow: 0 8px 18px rgba(230, 49, 53, 0.24);
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 6px;
  border-left: 9px solid #fff;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

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

.nav .nav-cta {
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: clamp(34px, 5vw, 76px) clamp(18px, 5vw, 72px) 40px;
  background:
    linear-gradient(135deg, rgba(238, 243, 247, 0.96), rgba(251, 252, 253, 0.8) 42%, rgba(255, 246, 226, 0.84)),
    radial-gradient(circle at 18% 18%, rgba(8, 127, 140, 0.16), transparent 30%);
}

.page-hero {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(44px, 8vw, 110px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(135deg, rgba(238, 243, 247, 0.96), rgba(251, 252, 253, 0.88) 48%, rgba(255, 246, 226, 0.78)),
    linear-gradient(115deg, rgba(8, 127, 140, 0.14), rgba(230, 49, 53, 0.08));
}

.page-hero h1 {
  max-width: 900px;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow,
.section-kicker,
.video-tag {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: #394554;
  font-size: clamp(17px, 2vw, 20px);
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button.secondary {
  background: #fff;
}

.hero-player,
.feature-layout iframe {
  aspect-ratio: 16 / 9;
}

.hero-player {
  width: 100%;
  border: 1px solid rgba(16, 24, 32, 0.14);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0d1117;
}

iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.section {
  padding: clamp(42px, 6vw, 84px) clamp(18px, 5vw, 72px);
}

.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

.section-note {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(48px, 6vw, 90px);
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.06);
}

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mist);
}

.thumb-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.001);
  transition: opacity 180ms ease, transform 180ms ease;
}

.thumb-image.is-loaded {
  opacity: 1;
}

.thumb-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 180ms ease;
}

.thumb-visual::before {
  content: "";
  position: absolute;
  width: 68px;
  height: 48px;
  left: calc(50% - 34px);
  top: calc(50% - 24px);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.thumb-visual::after {
  content: "";
  position: absolute;
  left: calc(50% - 8px);
  top: calc(50% - 11px);
  border-left: 20px solid var(--red);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.visual-red {
  background: linear-gradient(135deg, #e63135, #101820);
}

.visual-teal {
  background: linear-gradient(135deg, #087f8c, #f2c14e);
}

.visual-gold {
  background: linear-gradient(135deg, #c89416, #2f7d54);
}

.thumb > span:not(.thumb-visual) {
  position: absolute;
  z-index: 2;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 6px;
  color: #fff;
  background: rgba(16, 24, 32, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.thumb > span.badge-live:not(.thumb-visual) {
  background: var(--red);
}

.thumb:hover .thumb-visual {
  transform: scale(1.035);
}

.thumb:hover .thumb-image.is-loaded {
  transform: scale(1.035);
}

.video-body {
  padding: 18px;
}

.video-body h3,
.feature-copy h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.video-body p:last-child,
.feature-copy p {
  margin: 10px 0 0;
  color: var(--muted);
}

.feature-band {
  background: #101820;
  color: #fff;
}

.sleep-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 28px;
  background: #fff;
}

.sleep-copy {
  max-width: 760px;
}

.sleep-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

.sleep-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sleep-list span {
  min-height: 58px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  border-left: 6px solid var(--teal);
  color: #263342;
  background: var(--paper);
  font-weight: 800;
}

.sleep-list span:nth-child(2),
.sleep-list span:nth-child(6) {
  border-left-color: var(--red);
}

.sleep-list span:nth-child(3) {
  border-left-color: var(--gold);
}

.feature-band .section-kicker {
  color: #f2c14e;
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  align-items: center;
  gap: 28px;
  margin-top: 24px;
}

.feature-layout iframe {
  border-radius: 8px;
  background: #080b10;
}

.feature-copy p {
  color: #c6d0db;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #f2c14e;
  font-weight: 800;
  text-decoration: none;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.category-list a {
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
  text-decoration: none;
}

.category-list a:nth-child(2) {
  border-left-color: var(--red);
}

.category-list a:nth-child(3) {
  border-left-color: var(--teal);
}

.category-list a:nth-child(4) {
  border-left-color: var(--gold);
}

.category-list a:nth-child(5) {
  border-left-color: var(--teal);
}

.category-list a:nth-child(6) {
  border-left-color: var(--red);
}

.mood-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 0;
}

.mood-panel {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(16, 24, 32, 0.05);
}

.mood-panel h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.mood-panel p:not(.section-kicker) {
  margin: 12px 0 0;
  color: var(--muted);
}

.mood-panel .text-link {
  color: var(--teal);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 900px) {
  .site-header,
  .split,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .sleep-support,
  .feature-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .video-grid,
  .mood-section,
  .category-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav a {
    padding-left: 0;
  }

  .nav .nav-cta {
    padding-left: 12px;
  }

  h1 {
    font-size: 40px;
  }

  .video-grid,
  .sleep-list,
  .mood-section,
  .category-list {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }
}
