:root,
[data-theme="light"] {
  --bg: #f7f6f3;
  --surface: rgba(255, 255, 255, 0.75);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(11, 18, 32, 0.12);
  --text: #0b1830;
  --muted: #506072;
  --line-soft: #a9c8ff;
  --midnight: #0b1830;
  --porcelain: #f7f6f3;
  --sandstone: #e8e1d6;
  --blush: #ebc9c6;
  --sage: #c8dad5;
  --tech: #a9c8ff;
  --primary: #0b1830;
  --accent: #a9c8ff;
  --shadow: 0 20px 50px rgba(11, 18, 32, 0.08);
}

[data-theme="dark"] {
  --bg: #09111f;
  --surface: rgba(10, 22, 40, 0.72);
  --surface-strong: rgba(14, 30, 54, 0.9);
  --border: rgba(247, 246, 243, 0.12);
  --text: #eff2f7;
  --muted: #b6c2d2;
  --line-soft: #8db9ff;
  --midnight: #08111d;
  --porcelain: #eff2f7;
  --sandstone: #d8d1c7;
  --blush: #cfa8a8;
  --sage: #a7c5c1;
  --tech: #8db9ff;
  --primary: #eff2f7;
  --accent: #8db9ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(169, 200, 255, 0.12), transparent 22%),
    radial-gradient(circle at bottom left, rgba(200, 218, 213, 0.12), transparent 26%),
    var(--bg);
  color: var(--text);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(11, 24, 48, 0.04), transparent 25%, transparent 75%, rgba(11, 24, 48, 0.04));
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle at 20% 20%, currentColor 0.7px, transparent 0.8px);
  background-size: 18px 18px;
  color: var(--text);
  mix-blend-mode: soft-light;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  z-index: 20;
}
.skip-link:focus { top: 1rem; }

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
}

.brand-image {
  width: min(360px, 72vw);
  height: auto;
  display: block;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  backdrop-filter: blur(18px);
}

.theme-toggle__track {
  width: 2.5rem;
  height: 1.45rem;
  border-radius: 999px;
  background: rgba(169, 200, 255, 0.2);
  position: relative;
}

.theme-toggle__thumb {
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--text);
  transition: transform 180ms ease;
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(1rem);
}

.theme-toggle__label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  padding-bottom: 2rem;
}

.panel {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.hero {
  min-height: 31rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, h3 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-weight: 300;
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.95;
  max-width: 9ch;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.intro,
.status-copy,
.principle p,
.product-note,
.site-footer {
  color: var(--muted);
}

.intro {
  margin: 1.5rem 0 0;
  max-width: 56ch;
  font-size: 1.04rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.button-primary {
  background: var(--midnight);
  color: var(--porcelain);
  border-color: transparent;
}

.button-secondary {
  background: var(--surface-strong);
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 31rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 85%, var(--accent)), var(--surface));
}

.product-stage {
  position: relative;
  min-height: 24rem;
  display: grid;
  place-items: center;
}

.halo {
  position: absolute;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 9%, transparent), 0 0 120px color-mix(in srgb, var(--accent) 22%, transparent);
}

.bottle-card {
  position: relative;
  width: 12rem;
  padding-top: 1.1rem;
}

.bottle-cap {
  width: 4rem;
  height: 4.8rem;
  margin: 0 auto -0.4rem;
  border-radius: 1rem 1rem 0.6rem 0.6rem;
  background: linear-gradient(180deg, #1b2331, #0b1220);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.bottle-glass {
  height: 15rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0.12));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18), 0 18px 40px rgba(11, 18, 32, 0.22);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
}

.bottle-label {
  padding: 1rem 1.3rem;
  border: 1px solid rgba(11, 24, 48, 0.1);
  background: rgba(247, 246, 243, 0.65);
  color: #5e6878;
  letter-spacing: 0.08em;
}

.status,
.palette,
.principles {
  min-height: 15rem;
}

.progress-group {
  margin-top: 2rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 0.9rem;
  border-radius: 999px;
  background: rgba(11, 24, 48, 0.08);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--midnight), var(--tech));
}

.swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.swatch {
  display: grid;
  gap: 0.55rem;
}

.swatch-color {
  display: block;
  width: 100%;
  aspect-ratio: 1.25 / 1;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.swatch-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.midnight { background: #0b1220; }
.porcelain { background: #f7f6f3; }
.sandstone { background: #e8e1d6; }
.blush { background: #ebc9c6; }
.sage { background: #c8dad5; }
.tech { background: #a9c8ff; }

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.principle {
  padding: 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
}

.site-footer {
  padding-bottom: 2rem;
  font-size: 0.95rem;
}

button, a {
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
button:hover, a:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }

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

  .hero,
  .product {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 1120px);
  }

  .site-header,
  .site-footer {
    flex-wrap: wrap;
  }

  .panel {
    padding: 1.1rem;
    border-radius: 22px;
  }

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

  .button {
    width: 100%;
    text-align: center;
  }

  .swatches,
  .principle-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .swatches,
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
