:root {
  color-scheme: light;
  --ink: #1d2330;
  --muted: #697183;
  --line: #e5e7eb;
  --paper: #fbfaf7;
  --white: #ffffff;
  --lavender: #7d65bd;
  --rose: #d9738d;
  --mint: #4c9b85;
  --amber: #c98635;
  --charcoal: #27313f;
  --shadow: 0 18px 45px rgba(36, 42, 56, 0.14);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.82);
  background: rgba(251, 250, 247, 0.9);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 26px;
  height: 26px;
  clip-path: polygon(50% 0, 92% 27%, 80% 86%, 50% 100%, 20% 86%, 8% 27%);
  background: linear-gradient(135deg, var(--lavender), var(--rose) 55%, var(--mint));
  box-shadow: 0 6px 18px rgba(125, 101, 189, 0.24);
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover,
.header-action:hover,
.footer a:hover {
  color: var(--lavender);
}

.header-action {
  font-weight: 700;
  color: var(--charcoal);
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 4vw, 56px);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 247, 0.96) 0%, rgba(251, 250, 247, 0.72) 42%, rgba(251, 250, 247, 0.1) 74%),
    url("assets/hero-crystals.png") center right / cover no-repeat;
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--lavender);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 9vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-content p,
.section-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions,
.filter-bar,
.ai-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.filter,
.tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.button.primary,
.filter.is-active,
.tab.is-active {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.74);
}

.button.full {
  width: 100%;
}

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

.compact {
  padding-block: 26px;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.section-heading {
  margin-bottom: 30px;
}

.position-grid,
.product-grid,
.collection-grid {
  display: grid;
  gap: 18px;
}

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

.position-grid > div {
  min-height: 86px;
  padding: 18px;
  border-left: 3px solid var(--lavender);
}

.metric-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.product-card,
.collection-grid article,
.ai-panel,
.faq details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(36, 42, 56, 0.06);
}

.product-card {
  display: grid;
  overflow: hidden;
}

.product-art {
  min-height: 190px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.75), transparent 28%),
    linear-gradient(135deg, var(--tone-a), var(--tone-b));
}

.crystal-shape {
  width: 76px;
  height: 118px;
  clip-path: polygon(50% 0, 86% 24%, 72% 100%, 28% 100%, 14% 24%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.06)), var(--tone-c);
  box-shadow: 0 20px 38px rgba(29, 35, 48, 0.2);
}

.product-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.product-body p {
  color: var(--muted);
  line-height: 1.6;
}

.price {
  color: var(--charcoal);
  font-size: 20px;
  font-weight: 900;
}

.buy-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--lavender);
  color: var(--white);
  font-weight: 900;
}

.buy-link:hover {
  background: var(--charcoal);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: #f2f5f1;
}

.sticky-copy {
  position: sticky;
  top: 96px;
}

.ai-panel {
  padding: clamp(18px, 4vw, 34px);
}

.ai-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--charcoal);
  font-weight: 800;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--lavender);
}

.range-value {
  color: var(--muted);
  font-weight: 700;
}

.result {
  margin-top: 18px;
  padding: 18px;
  border-radius: 8px;
  background: #f8f7ff;
  line-height: 1.65;
}

.result:empty {
  display: none;
}

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

.recommendation-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.recommendation-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(125, 101, 189, 0.18);
  border-radius: 8px;
  background: var(--white);
}

.recommendation-rank {
  color: var(--rose);
  font-weight: 900;
}

.recommendation-card h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.recommendation-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.compact-buy {
  width: fit-content;
}

.collection-grid article {
  padding: 24px;
}

.collection-grid span {
  color: var(--rose);
  font-weight: 900;
}

.collection-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-list a {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 800;
}

.blog-list a:hover {
  border-color: var(--lavender);
}

.faq {
  max-width: 980px;
  margin-inline: auto;
}

.faq details {
  padding: 18px 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq p {
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .position-grid,
  .product-grid,
  .collection-grid,
  .blog-list,
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: 720px;
    align-items: end;
  }

  .hero-media {
    background:
      linear-gradient(180deg, rgba(251, 250, 247, 0.32) 0%, rgba(251, 250, 247, 0.97) 62%),
      url("assets/hero-crystals.png") top center / auto 52% no-repeat;
  }

  .position-grid,
  .product-grid,
  .collection-grid,
  .blog-list,
  .split {
    grid-template-columns: 1fr;
  }

  .footer {
    display: grid;
  }
}
