﻿:root {
  --ink: #111827;
  --navy: #062a54;
  --blue: #1459a8;
  --sky: #dbefff;
  --cream: #fff7ea;
  --warm: #ead7bd;
  --paper: #fffdf8;
  --charcoal: #25303a;
  --gold: #c89745;
  --shadow: 0 24px 70px rgba(8, 32, 56, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Trebuchet MS", "Gill Sans", Verdana, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px clamp(18px, 5vw, 58px);
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid rgba(6, 42, 84, 0.11);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  font-weight: 950;
  letter-spacing: -1px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 2px;
  color: #65717f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 900;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 15px 24px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 14px 30px rgba(20, 89, 168, 0.25);
  font-weight: 950;
  letter-spacing: -0.01em;
}

.button-small {
  min-height: 42px;
  padding: 11px 18px;
}

.button-ghost {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: none;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(34px, 7vw, 82px);
  background: var(--navy);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 42, 84, 0.96) 0%, rgba(6, 42, 84, 0.76) 42%, rgba(6, 42, 84, 0.16) 100%), url("assets/hero-tempur.jpg") center / cover;
}

.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 239, 255, 0.78), rgba(219, 239, 255, 0));
}

.hero-panel {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  color: white;
  background: rgba(8, 30, 56, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.tempur-logo {
  width: min(260px, 68vw);
  margin-bottom: 30px;
  filter: brightness(0) invert(1);
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.18;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(6, 42, 84, 0.12);
}

.intro-band div {
  min-height: 150px;
  padding: 34px clamp(22px, 4vw, 46px);
  background: var(--cream);
}

.intro-band span,
.trust-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro-band strong {
  display: block;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.12;
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 58px);
}

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

.section-heading p:not(.eyebrow) {
  color: #586575;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 700;
}

.product-section {
  background: linear-gradient(180deg, var(--paper), #f3ecdf);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
  border: 1px solid rgba(6, 42, 84, 0.12);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: var(--shadow);
}

.product-image {
  display: grid;
  min-height: 330px;
  place-items: center;
  padding: 30px;
}

.product-image img {
  max-height: 280px;
  object-fit: contain;
}

.soft-blue {
  background: linear-gradient(135deg, #eaf5ff, #ffffff);
}

.cool-blue {
  background: linear-gradient(135deg, #d8f1ff, #eef9ff);
}

.warm-neutral {
  background: linear-gradient(135deg, #f7ead7, #fffaf1);
}

.product-copy {
  padding: 28px;
}

.product-copy p:not(.card-kicker),
.benefit p,
.system-copy p,
.final-cta p,
.trust-card p {
  color: #5a6673;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 700;
}

.comfort-section {
  position: relative;
  overflow: hidden;
  padding: clamp(62px, 9vw, 112px) clamp(18px, 5vw, 58px);
  color: white;
  background: var(--navy);
}

.comfort-background {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background: linear-gradient(rgba(6, 42, 84, 0.88), rgba(6, 42, 84, 0.88)), url("assets/why-tempur.jpg") center / cover;
}

.comfort-section > *:not(.comfort-background) {
  position: relative;
  z-index: 1;
}

.light h2,
.light p:not(.eyebrow) {
  color: white;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.benefit {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.benefit img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.benefit h3,
.benefit p {
  padding-inline: 20px;
}

.benefit h3 {
  padding-top: 22px;
  color: white;
}

.benefit p {
  padding-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.sleep-system {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
  background: var(--cream);
}

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

.system-art {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at 30% 20%, #ffffff, #dceeff 52%, #c9dfff);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.system-art img {
  position: absolute;
  object-fit: contain;
}

.system-art .pillow {
  width: 42%;
  left: 8%;
  top: 10%;
}

.system-art .foundation {
  width: 64%;
  right: -3%;
  top: 29%;
}

.system-art .split {
  width: 52%;
  left: 10%;
  bottom: 8%;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(6, 42, 84, 0.2);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 58px);
  background: var(--paper);
}

.trust-card {
  padding: 30px;
  border: 1px solid rgba(6, 42, 84, 0.12);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: 0 16px 40px rgba(8, 32, 56, 0.08);
}

.final-cta {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(26px, 5vw, 60px);
  align-items: center;
  margin: clamp(18px, 4vw, 58px);
  padding: clamp(28px, 5vw, 58px);
  border-radius: var(--radius-xl);
  color: white;
  background: linear-gradient(135deg, var(--navy), #0b3b77);
  box-shadow: var(--shadow);
}

.final-cta img {
  border-radius: var(--radius-lg);
  background: white;
}

.final-cta p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 58px);
  color: white;
  background: var(--ink);
}

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

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

@media (max-width: 920px) {
  .top-actions a:not(.button) {
    display: none;
  }

  .hero {
    min-height: 690px;
  }

  .intro-band,
  .product-grid,
  .benefit-grid,
  .sleep-system,
  .trust,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .benefit img {
    height: 230px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 720px;
    padding: 22px;
  }

  .hero-bg {
    background: linear-gradient(180deg, rgba(6, 42, 84, 0.96) 0%, rgba(6, 42, 84, 0.76) 58%, rgba(6, 42, 84, 0.38) 100%), url("assets/hero-tempur-mobile.jpg") center / cover;
  }

  .hero-panel {
    padding: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .product-image {
    min-height: 250px;
  }

  .system-art {
    min-height: 410px;
  }

  .site-footer {
    display: block;
  }

  .site-footer span {
    display: block;
    margin-top: 8px;
  }
}

.comparison-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 54px);
  align-items: center;
  margin: clamp(18px, 4vw, 58px);
  padding: clamp(24px, 5vw, 48px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #fff7e8, #e8f2ff);
  border: 1px solid rgba(6, 42, 84, 0.14);
  box-shadow: var(--shadow);
}

.comparison-promo img {
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px rgba(8, 32, 56, 0.16);
}

.comparison-promo p:not(.eyebrow) {
  color: #5a6673;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
}

@media (max-width: 920px) {
  .comparison-promo {
    grid-template-columns: 1fr;
  }
}
