:root {
  --ink: #07111f;
  --blueblack: #0b1d33;
  --blue: #174a7c;
  --accent: #2f7df6;
  --muted: #66758a;
  --line: #e3e8ef;
  --paper: #ffffff;
  --surface: #f6f8fb;
  --white: #ffffff;
  --orange: #ed6f3f;
  --shadow: 0 14px 36px rgba(7, 17, 31, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.desktop-nav,
.hero-actions,
.filters {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 12px;
}

.desktop-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 4px;
  font-weight: 900;
  cursor: pointer;
}

.header-cta {
  padding: 0 16px;
  background: var(--ink);
  color: var(--white);
}

.button {
  padding: 0 18px;
  font-size: 14px;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button.full {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(54px, 8vw, 108px) clamp(18px, 4vw, 56px) 52px;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

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

h1 {
  max-width: 800px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}

h3 {
  line-height: 1.25;
}

.hero-subtitle {
  max-width: 640px;
  color: #3f4c5f;
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-panel,
.quiz-card,
.result-card,
.seller-card,
.detail-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.hero-panel {
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 900;
}

.panel-top strong {
  color: var(--orange);
}

.routine-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.routine-card span {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
}

.routine-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.section {
  padding: 70px clamp(18px, 4vw, 56px);
  background: var(--white);
}

.strip {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) 1.3fr;
  gap: 30px;
  background: var(--blueblack);
  color: var(--white);
}

.strip .eyebrow,
.seller-section .eyebrow {
  color: #8ab9ff;
}

.value-grid,
.product-grid {
  display: grid;
  gap: 14px;
}

.value-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.value-grid p,
.seller-copy p,
.detail-main p {
  color: var(--muted);
  line-height: 1.75;
}

.strip .value-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 840px;
  margin-bottom: 28px;
}

.section-heading.row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.quiz-section,
#products,
.detail-section {
  background: var(--surface);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
}

.quiz-card,
.result-card,
.seller-card {
  padding: 22px;
}

.quiz-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

select {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.result-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: center;
}

.result-card h3 {
  font-size: 28px;
}

.filters {
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.filter-button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  padding: 16px;
  text-align: left;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-visual {
  display: grid;
  height: 112px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #edf3fa, #dfeaf7);
  color: var(--blue);
  font-size: 28px;
  font-weight: 900;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.product-card p {
  color: var(--muted);
  line-height: 1.55;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag,
.product-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 4px;
  background: #edf2f7;
  color: #263b56;
  font-size: 12px;
  font-weight: 900;
}

.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  padding: clamp(22px, 4vw, 36px);
}

.detail-main h3 {
  margin: 16px 0;
  font-size: clamp(26px, 4vw, 42px);
}

.spec-table {
  overflow: hidden;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
}

.spec-table div:last-child {
  border-bottom: 0;
}

.spec-table span {
  color: var(--muted);
}

.seller-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 24px;
  align-items: start;
  background: var(--blueblack);
  color: var(--white);
}

.seller-section .seller-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.seller-card {
  color: var(--ink);
}

.seller-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  margin-bottom: 22px;
}

.mobile-tab {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(7, 17, 31, 0.62);
}

.modal-backdrop[hidden] {
  display: none;
}

.product-modal {
  position: relative;
  width: min(680px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.product-modal h2 {
  margin: 18px 44px 14px 0;
  font-size: clamp(28px, 5vw, 42px);
}

.product-modal p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.modal-spec {
  margin: 22px 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 980px) {
  .hero,
  .strip,
  .quiz-layout,
  .detail-card,
  .seller-section {
    grid-template-columns: 1fr;
  }

  .value-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading.row {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 68px;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .site-header {
    padding: 12px 16px;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 17px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .value-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 16px;
  }

  .spec-table div {
    flex-direction: column;
    gap: 4px;
  }

  .mobile-tab {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 34px rgba(7, 17, 31, 0.14);
    backdrop-filter: blur(14px);
  }

  .mobile-tab a {
    display: grid;
    min-height: 52px;
    place-items: center;
    border-right: 1px solid var(--line);
    font-size: 13px;
    font-weight: 900;
  }

  .mobile-tab a:last-child {
    border-right: 0;
  }

  .modal-actions .button {
    width: 100%;
  }
}
