:root {
  color-scheme: light;
  --ink: #181614;
  --muted: #69635c;
  --line: #ddd7cf;
  --paper: #f8f5ef;
  --warm: #bd5e3a;
  --teal: #23756e;
  --gold: #c79a42;
  --charcoal: #2f3130;
  --white: #fffaf4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Pretendard, "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

button,
a {
  font: inherit;
}

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

img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(47, 49, 48, 0.12);
  background: rgba(248, 245, 239, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--teal);
}

.topnav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: end;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 56px) 36px;
  background:
    linear-gradient(90deg, rgba(24, 22, 20, 0.72), rgba(24, 22, 20, 0.08)),
    url("./assets/living-main.jpg") center / cover;
  color: white;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.02;
}

.lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 250, 244, 0.86);
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-actions a,
.sticky-buy button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-weight: 800;
}

.hero-actions a:first-child,
.sticky-buy .primary {
  border-color: var(--warm);
  background: var(--warm);
}

.roadmap {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(24, 22, 20, 0.42);
  backdrop-filter: blur(16px);
}

.roadmap strong,
.footer strong {
  display: block;
  margin-bottom: 14px;
  font-size: 18px;
}

.roadmap ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap li {
  display: grid;
  gap: 4px;
  line-height: 1.55;
}

.roadmap span {
  color: var(--gold);
  font-weight: 800;
}

.section {
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.16;
}

.device-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: stretch;
}

.desktop-preview,
.mobile-preview,
.detail-panel,
.sticky-buy,
.timeline-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 54px rgba(47, 49, 48, 0.08);
}

.desktop-preview {
  position: relative;
  overflow: hidden;
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.mock-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
}

.mock-nav strong {
  margin-right: auto;
}

.mock-nav button,
.anchor-tabs button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--charcoal);
  cursor: pointer;
}

.mega-menu {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f0ebe1;
}

.mega-menu.is-open {
  display: grid;
}

.mega-menu div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 6px;
  background: white;
}

.mega-menu span,
.product-card p,
.mobile-preview p,
.detail-body p,
.timeline-grid p,
.scope-note span,
.footer span {
  color: var(--muted);
  line-height: 1.65;
}

.desktop-hero {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  min-height: 340px;
  align-items: stretch;
}

.desktop-hero img {
  height: 100%;
}

.desktop-hero div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: var(--charcoal);
  color: white;
}

.desktop-hero h3 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.16;
}

.quick-menu {
  position: absolute;
  right: 18px;
  top: 150px;
  display: grid;
  gap: 8px;
}

.quick-menu button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-weight: 800;
}

.mobile-preview {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 16px;
}

.phone-top {
  width: 72px;
  height: 8px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: var(--line);
}

.mobile-preview img {
  height: 290px;
  border-radius: 6px;
}

.mobile-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: auto;
}

.mobile-tabs span {
  padding: 10px 4px;
  border-radius: 6px;
  background: #efe5d8;
  text-align: center;
  font-size: 13px;
}

.commerce-flow {
  background: #ede9df;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.product-card img {
  height: 270px;
  transition: transform 0.28s ease;
}

.product-card:hover img {
  transform: scale(1.04);
}

.product-card h3,
.product-card p {
  margin-left: 18px;
  margin-right: 18px;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.badge.sale {
  background: var(--warm);
}

.badge.b2b {
  background: var(--charcoal);
}

.checkout-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.checkout-map span {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-radius: 6px;
  background: white;
  color: var(--charcoal);
  font-weight: 800;
  text-align: center;
}

.detail-mock {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.anchor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.detail-body {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.detail-body img {
  height: 420px;
  border-radius: 6px;
}

.sticky-buy {
  position: sticky;
  top: 86px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.sticky-buy button {
  width: 100%;
  color: var(--charcoal);
  border-color: var(--line);
  background: white;
}

.sticky-buy .primary {
  color: white;
}

.skin-check {
  background: var(--charcoal);
  color: white;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 12px;
}

.checklist label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: 116px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.55;
}

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

.timeline-grid article {
  padding: 22px;
}

.timeline-grid span {
  color: var(--warm);
  font-weight: 900;
}

.scope-note {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #efe5d8;
}

.footer {
  padding: 28px clamp(18px, 4vw, 56px);
  background: #171514;
  color: white;
}

@media (max-width: 980px) {
  .topbar,
  .topnav {
    align-items: flex-start;
  }

  .topbar,
  .hero,
  .device-grid,
  .detail-mock,
  .desktop-hero,
  .detail-body {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .topnav {
    overflow-x: auto;
    max-width: 100%;
  }

  .product-grid,
  .timeline-grid,
  .checklist,
  .checkout-map {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    position: static;
    display: grid;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .scope-note {
    display: grid;
  }

  .product-grid,
  .timeline-grid,
  .checklist,
  .checkout-map,
  .anchor-tabs,
  .mega-menu.is-open {
    grid-template-columns: 1fr;
  }

  .quick-menu {
    position: static;
    grid-template-columns: repeat(3, 48px);
    padding: 16px 18px;
  }

  .detail-body img,
  .desktop-hero img,
  .mobile-preview img,
  .product-card img {
    height: 240px;
  }
}


/* R4801 top PDF download + premium dynamic UI */
.top-pdf-download,
.primary-download {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #23756e, #bd5e3a);
  color: #fffaf4 !important;
  box-shadow: 0 10px 28px rgba(47, 49, 48, 0.18);
  transform: translateZ(0);
}

.top-pdf-download {
  padding: 9px 14px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.primary-download::after,
.top-pdf-download::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
}

.primary-download:hover::after,
.top-pdf-download:hover::after {
  transform: translateX(120%);
}

.cursor-glow {
  position: fixed;
  width: 240px;
  height: 240px;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background: radial-gradient(circle, rgba(199, 154, 66, 0.24), rgba(35, 117, 110, 0.12) 36%, transparent 68%);
  mix-blend-mode: multiply;
  transition: opacity .25s ease;
}

body.has-pointer .cursor-glow { opacity: 1; }

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform .24s ease, box-shadow .24s ease;
}

[data-tilt].is-tilting {
  box-shadow: 0 24px 70px rgba(47,49,48,.16);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .58s ease, transform .58s ease;
}

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

.product-card,
.timeline-grid article,
.detail-panel,
.sticky-buy {
  will-change: transform;
}

.product-card:hover {
  transform: translateY(-6px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 8% 7% auto;
  width: min(280px, 36vw);
  height: min(280px, 36vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,154,66,.34), transparent 64%);
  filter: blur(6px);
  pointer-events: none;
}

.hero { position: relative; overflow: hidden; }
.hero-copy, .roadmap { position: relative; z-index: 1; }

@media (max-width: 820px) {
  .topnav { gap: 8px; overflow-x: auto; padding-bottom: 4px; }
  .top-pdf-download { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow { display: none; }
  [data-tilt], [data-reveal], .product-card:hover { transition: none; transform: none !important; opacity: 1; }
  .primary-download::after, .top-pdf-download::after { display: none; }
}
