:root {
  --clear: #f7fbff;
  --milky: #f3f0ea;
  --blue: #7dc8ff;
  --lime: #b8e95a;
  --peach: #f5a2b9;
  --purple: #a98ae8;
  --honey: #f3c65d;
  --navy: #0d2c57;
  --gray: #d9dde2;
  --ink: #142236;
  --muted: #697384;
  --line: rgba(13, 44, 87, 0.14);
  --card: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 80px rgba(13, 44, 87, 0.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--milky);
  font-family: Inter, Pretendard, SUIT, system-ui, -apple-system, Segoe UI, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.announce {
  padding: 10px 18px;
  color: var(--clear);
  background: var(--navy);
  text-align: center;
  font-size: 0.78rem;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 18px 40px;
  background: rgba(243, 240, 234, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brandmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  font-size: 1.3rem;
}
.nav-links { display: flex; justify-content: center; gap: 24px; font-size: 0.92rem; }
.nav-links a, .footer-grid a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.cart-link { justify-self: end; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; }
.menu-toggle { display: none; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 42px 40px 48px;
}
.hero h1, .page-hero h1, .product-detail h1 {
  margin: 0;
  font-family: "Cormorant Garamond", "Instrument Serif", "Noto Serif KR", Georgia, serif;
  font-weight: 500;
  font-size: 5rem;
  line-height: 0.94;
}
.hero-copy { max-width: 610px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--navy);
  font: 0.76rem/1.2 "IBM Plex Mono", "Geist Mono", monospace;
  text-transform: uppercase;
}
.lede { font-size: 1.35rem; line-height: 1.55; color: #26364c; }
.korean { color: var(--muted); line-height: 1.7; }
.hero-actions, .button-row, .product-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 12px 18px;
  background: transparent;
}
.button.primary { color: var(--clear); background: var(--navy); border-color: var(--navy); }
.button.ghost { background: rgba(255, 255, 255, 0.58); }
.button.small { min-height: 38px; padding: 8px 14px; }
.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}
.icon-button.active { color: var(--peach); }
.hero-points {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted);
}
.hero-points li { border-left: 2px solid var(--peach); padding-left: 10px; }
.hero-image img, .connect-scene img, .sleep-image img, .detail-image {
  border-radius: 30px;
  box-shadow: var(--shadow);
}
.hero-note {
  grid-column: 2;
  justify-self: end;
  max-width: 280px;
  margin-top: -54px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.72);
}

.band {
  max-width: 1600px;
  margin: 0 auto;
  padding: 74px 40px;
}
.section-head {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}
.section-head h2, .footer h2, .sleep-copy h2 {
  margin: 0;
  font-family: "Cormorant Garamond", "Noto Serif KR", Georgia, serif;
  font-weight: 500;
  font-size: 3rem;
  line-height: 1.05;
}
.signal-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(140px, 1fr));
  gap: 14px;
}
.signal-tile {
  min-height: 280px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.52);
  transition: transform 180ms ease, border-color 180ms ease;
}
.signal-tile:hover, .signal-tile:focus-visible { transform: translateY(-4px); border-color: var(--state); }
.signal-tile img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.signal-tile strong { display: block; margin: 12px 0 6px; }
.signal-tile span { color: var(--muted); font-size: 0.86rem; line-height: 1.45; }

.product-grid {
  display: grid;
  gap: 16px;
}
.product-grid.featured { grid-template-columns: repeat(6, 1fr); }
.product-grid.collection { grid-template-columns: repeat(7, 1fr); }
.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(13, 44, 87, 0.06);
}
.product-card img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }
.product-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-top: 14px; }
.product-row h3 { margin: 0; font-size: 1rem; }
.product-card p { color: var(--muted); line-height: 1.5; font-size: 0.9rem; min-height: 68px; }

.customizer-grid, .connect-grid, .checkout-grid {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 26px;
  align-items: stretch;
}
.control-panel, .connect-controls, .support-form, [data-checkout] {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(247, 251, 255, 0.64);
}
label { display: grid; gap: 8px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { color: var(--muted); margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: var(--swatch); }
.live-preview {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px;
  background: #f7fbff;
}
.live-preview img { height: 100%; object-fit: cover; }
.preview-glow {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--custom-color, var(--blue)), transparent 70%);
  filter: blur(10px);
  mix-blend-mode: screen;
  animation: breathe 3s ease-in-out infinite;
}
.live-preview p { position: absolute; bottom: 18px; left: 18px; right: 18px; padding: 12px 14px; border-radius: 18px; background: rgba(255,255,255,.72); }

.connect-scene { position: relative; }
.connect-controls.sent::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--blue), transparent 70%);
  animation: travel 1.2s ease-in-out;
}
.connect-controls { position: relative; }

.sleep-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: center;
  margin: 60px 0;
  padding: 76px 40px;
  color: var(--clear);
  background: #13233f;
}
.sleep-copy { max-width: 540px; justify-self: end; }
.sleep-copy p { color: rgba(247, 251, 255, 0.72); line-height: 1.7; }

.value-grid, .material-grid, .support-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.value-card, .material-card, .journal-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px;
  background: rgba(255,255,255,.55);
}
.value-card p { color: var(--muted); line-height: 1.6; }
.material-card img, .journal-card img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 18px; }

.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 90px 40px 34px;
}
.page-hero p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.product-detail {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
}
.detail-copy p { color: var(--muted); line-height: 1.65; }
.price { margin: 22px 0; font-size: 1.25rem; }
.detail-specs { grid-template-columns: repeat(3, 1fr); display: grid; gap: 16px; }
.detail-specs article { border-top: 1px solid var(--line); padding-top: 20px; }
.journal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.journal-card h2 { font-size: 1.25rem; }
.journal-card p, .journal-detail p { color: var(--muted); line-height: 1.65; }
.journal-detail { max-width: 980px; margin: 0 auto; padding: 72px 40px; }
.journal-detail img { aspect-ratio: 14 / 9; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); margin-bottom: 34px; }
.cart-items { display: grid; gap: 12px; }
.cart-items article { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 0; }
.cart-items img { border-radius: 14px; aspect-ratio: 1 / 1; object-fit: cover; }
.cart-total { font-size: 1.4rem; }
.empty { color: var(--muted); }

.footer {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 34px;
  padding: 60px 40px;
  color: var(--clear);
  background: var(--navy);
}
.newsletter div { display: flex; gap: 10px; max-width: 480px; }
.newsletter input { border-color: rgba(247,251,255,.3); }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; align-content: start; }
.form-note { min-height: 24px; color: var(--lime); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes breathe {
  0%, 100% { transform: scale(0.82); }
  50% { transform: scale(1.08); }
}
@keyframes travel {
  0% { left: 10%; top: 35%; opacity: 0; }
  30% { opacity: .9; }
  100% { left: 72%; top: 18%; opacity: 0; }
}

@media (max-width: 1180px) {
  .site-header { padding: 18px 28px; }
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero h1, .page-hero h1, .product-detail h1 { font-size: 4rem; }
  .hero-note { grid-column: auto; justify-self: start; margin-top: 0; }
  .section-head, .customizer-grid, .connect-grid, .product-detail, .sleep-band, .footer, .checkout-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 64px; padding-bottom: 18px; }
  .signal-strip { overflow-x: auto; display: flex; padding-bottom: 10px; }
  .signal-tile { min-width: 220px; }
  .product-grid.featured { grid-template-columns: repeat(3, 1fr); }
  .product-grid.collection { grid-template-columns: repeat(4, 1fr); }
  .value-grid, .material-grid, .journal-grid, .support-grid { grid-template-columns: repeat(2, 1fr); }
  .sleep-copy { justify-self: start; }
}

@media (max-width: 820px) {
  .announce { font-size: 0.72rem; }
  .site-header { grid-template-columns: 1fr auto auto; padding: 14px 18px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    padding-top: 12px;
  }
  .site-header.open .nav-links { display: flex; }
}

@media (max-width: 640px) {
  .hero, .band, .page-hero, .product-detail, .journal-detail { padding-left: 18px; padding-right: 18px; }
  .hero { min-height: auto; }
  .hero h1, .page-hero h1, .product-detail h1 { font-size: 3rem; }
  .section-head h2, .footer h2, .sleep-copy h2 { font-size: 2.25rem; }
  .product-grid.featured, .product-grid.collection { grid-template-columns: repeat(2, 1fr); }
  .product-card p { min-height: 96px; }
  .signal-tile { min-width: 72vw; }
  .value-grid, .material-grid, .journal-grid, .support-grid, .detail-specs { grid-template-columns: 1fr; }
  .sleep-band { padding: 56px 18px; margin: 30px 0; }
  .live-preview { min-height: 420px; }
  .newsletter div { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
