*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #F5F0EA;
  --cream-dark: #EDE6DD;
  --warm-white: #FAF8F5;
  --charcoal: #1A1A1A;
  --charcoal-light: #3A3A3A;
  --text-muted: #6B6560;
  --border: #E0D9D0;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--charcoal);
  background-color: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  transition: background 0.4s ease, border-color 0.4s ease;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

nav.scrolled .nav-logo { color: var(--charcoal); }
nav.scrolled .nav-cta { background: var(--charcoal); color: var(--warm-white); }
nav.scrolled .nav-link { color: var(--text-muted); }

nav.dark {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(255,255,255,0.08);
}

nav.dark .nav-logo { color: var(--warm-white); }
nav.dark .nav-cta { background: var(--warm-white); color: var(--charcoal); }
nav.dark .nav-link { color: rgba(255,255,255,0.6); }

/* Nav used on non-hero pages (solid from the start) */
nav.solid {
  background: var(--warm-white);
  border-bottom-color: var(--border);
}
nav.solid .nav-logo { color: var(--charcoal); }
nav.solid .nav-cta { background: var(--charcoal); color: var(--warm-white); }
nav.solid .nav-link { color: var(--text-muted); }

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: white;
  text-decoration: none;
  transition: color 0.4s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover { opacity: 0.8; }

.nav-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  background: white;
  color: var(--charcoal);
  border: 2px solid white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 2px 8px rgba(0,0,0,0.2);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15), 0 4px 12px rgba(0,0,0,0.25);
}

nav.scrolled .nav-cta {
  background: white;
  color: var(--charcoal);
  border-color: white;
}

nav.dark .nav-cta {
  background: var(--charcoal-light);
  color: white;
  border-color: rgba(255,255,255,0.2);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 45%;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.35) 35%,
    rgba(0,0,0,0.05) 65%,
    rgba(0,0,0,0.0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 3rem 10rem 6rem;
  max-width: 700px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: white;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-headline em { font-style: italic; font-weight: 300; }

.hero-line {
  width: 40px;
  height: 1px;
  background: white;
  opacity: 0.4;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-sub {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 420px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  background: white;
  color: var(--charcoal);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.75s forwards;
  align-self: flex-start;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== SECTION SHARED ===== */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ===== PRODUCT HERO ===== */
.product-hero {
  padding: 8rem 2rem;
  background: var(--cream);
  text-align: center;
}

.product-hero-inner { max-width: 900px; margin: 0 auto; }

.product-hero img {
  width: 100%;
  max-width: 750px;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.08));
}

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 8rem 2rem; background: var(--warm-white); }
.how-it-works.stakes { padding: 4rem 2rem; }
.how-it-works.stakes h2 { margin-bottom: 1.5rem; }
.how-it-works-inner { max-width: 1100px; margin: 0 auto; }
.how-it-works .section-eyebrow { text-align: center; margin-bottom: 1rem; }

.how-it-works h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
}

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4rem; }
.step { text-align: center; }

.step-number {
  font-family: var(--serif);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--text-muted);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.step h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 400; margin-bottom: 0.75rem; }
.step p { font-size: 0.9375rem; font-weight: 300; color: var(--text-muted); line-height: 1.7; }

/* ===== BUTTON DIAGRAM ===== */
.button-diagram { padding: 6rem 2rem 8rem; background: var(--cream); }
.button-diagram-inner { max-width: 800px; margin: 0 auto; }
.button-diagram .section-eyebrow { text-align: center; margin-bottom: 1rem; }

.button-diagram h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 4rem;
}

.diagram-container { position: relative; max-width: 700px; margin: 0 auto; }
.diagram-container img { width: 100%; height: auto; display: block; }

.btn-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.btn-label-line { width: 1px; background: var(--charcoal); opacity: 0.3; }

.btn-label-text {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  white-space: nowrap;
  padding: 0.5rem 0;
}

.btn-label-desc {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-label--start { left: 28%; bottom: 100%; transform: translateX(-50%); padding-bottom: 12px; }
.btn-label--start .btn-label-line { height: 40px; }
.btn-label--reset { left: 58%; bottom: 100%; transform: translateX(-50%); padding-bottom: 12px; }
.btn-label--reset .btn-label-line { height: 40px; }
.btn-label--sound { left: 73%; bottom: 100%; transform: translateX(-50%); padding-bottom: 12px; }
.btn-label--sound .btn-label-line { height: 40px; }

/* ===== FEATURES ===== */
.features { padding: 8rem 2rem; background: var(--charcoal); color: var(--warm-white); }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features .section-eyebrow { text-align: center; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }

.features h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 5rem;
}

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5rem 5rem; }
.feature { text-align: center; padding: 2rem 1.5rem; }
.feature-icon { width: 40px; height: 40px; margin: 0 auto 1.5rem; opacity: 0.6; }

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--warm-white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; }
.feature p { font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ===== SHOWCASE ===== */
.showcase { padding: 8rem 2rem; background: var(--cream); }

.showcase-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.showcase-image img { width: 100%; height: auto; display: block; }
.showcase-content .section-eyebrow { margin-bottom: 1rem; }

.showcase-content h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.showcase-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.showcase-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  background: var(--charcoal);
  color: var(--warm-white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.showcase-cta:hover {
  background: var(--charcoal-light);
  transform: translateY(-1px);
}

/* ===== PRODUCT PAGE ===== */
.product-page {
  padding: 7rem 2rem 4rem;
  background: var(--warm-white);
}

.product-page-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  position: sticky;
  top: 6rem;
}

.product-gallery-main {
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-gallery-main img {
  width: 85%;
  height: auto;
  object-fit: contain;
}

.product-gallery-thumbs {
  display: flex;
  gap: 0.75rem;
}

.product-thumb {
  width: 80px;
  height: 80px;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  overflow: hidden;
}

.product-thumb.active {
  border-color: var(--charcoal);
}

.product-thumb img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

/* Product Info */
.product-info {
  padding-top: 1rem;
}

.product-info h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.product-tagline {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.product-price {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.product-shipping {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.add-to-cart-btn {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 1.125rem 2rem;
  background: var(--charcoal);
  color: var(--warm-white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 1rem;
}

.add-to-cart-btn:hover {
  background: var(--charcoal-light);
}

.product-guarantee {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 3rem;
}

.product-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

.product-details h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.product-details p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.spec-list {
  list-style: none;
  padding: 0;
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 300;
}

.spec-list li:last-child { border-bottom: none; }
.spec-label { color: var(--text-muted); }
.spec-value { font-weight: 400; }

/* ===== CART MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--warm-white);
  max-width: 480px;
  width: 90%;
  padding: 3rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
}

.modal h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.modal p {
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.modal-form input {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 300;
  border: 1px solid var(--border);
  background: white;
  color: var(--charcoal);
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.modal-form input::placeholder { color: #B0A99F; }
.modal-form input:focus { border-color: var(--charcoal); }

.modal-form button {
  display: block;
  width: 100%;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem;
  background: var(--charcoal);
  color: var(--warm-white);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-form button:hover { background: var(--charcoal-light); }

.modal-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 300;
  text-align: center;
}

.modal-success {
  text-align: center;
  display: none;
}

.modal-success h2 {
  margin-bottom: 0.75rem;
}

.modal-success p {
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
footer {
  padding: 3rem;
  background: var(--charcoal);
  color: rgba(255,255,255,0.4);
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.footer-inner { max-width: 600px; margin: 0 auto; }

.footer-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.3s ease;
}

.footer-links a:hover { color: rgba(255,255,255,0.8); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .steps { grid-template-columns: 1fr; gap: 3rem; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .showcase-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .how-it-works-inner { grid-template-columns: 1fr !important; }
  .product-page-inner { grid-template-columns: 1fr; gap: 3rem; }
  .product-gallery { position: static; }
  .btn-label-text { font-size: 0.65rem; }
  .btn-label-desc { font-size: 0.6rem; }
}

@media (max-width: 600px) {
  .nav-logo { font-size: 1.25rem; }
  .nav-cta { padding: 0.6rem 1.25rem; font-size: 0.7rem; }
  .nav-link { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .btn-label--start { left: 25%; }
  .btn-label--reset { left: 55%; }
  .btn-label--sound { left: 70%; }
}
