:root {
  --blue: #3A82C4; --ink: #231F20; --muted: #6b6b6b; --line: #e7e4df;
  --bg: #ffffff; --soft: #f6f5f2; --card: #ece9e4;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Top bar */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand img { display: block; height: 34px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a {
  font-size: .9rem; font-weight: 600; letter-spacing: .06em;
  padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s;
}
.nav a:hover { background: var(--soft); color: var(--blue); }
.nav a[aria-current="page"] { background: var(--soft); color: var(--blue); }

main {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(32px, 6vh, 72px) var(--gutter);
}

/* Home: product grid */
.intro { text-align: center; margin-bottom: clamp(28px, 5vh, 52px); }
.intro h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
.intro p { margin: 10px auto 0; max-width: 520px; color: var(--muted); line-height: 1.55; }

.products { display: grid; gap: clamp(24px, 3vw, 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product {
  background: var(--soft); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.media { display: block; aspect-ratio: 4 / 3; background: var(--card); }
.media video, .media img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.info { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.name h2 { font-size: 1.4rem; font-weight: 700; letter-spacing: .04em; }
.name h2 span, .detail h1 span { color: var(--blue); }
.tag { font-size: .78rem; font-weight: 600; color: var(--blue); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.info > p { margin-top: 8px; color: var(--muted); line-height: 1.55; }
.more {
  align-self: flex-start; margin-top: 20px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; transition: background .2s;
}
.more:hover { background: var(--blue); }

/* Specs table */
.specs { margin-top: 18px; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--line); }
.specs dt, .specs dd { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.specs dt { color: var(--muted); padding-right: 20px; }
.specs dd { text-align: right; font-weight: 500; }
.swatches { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px 14px; }
.swatch { display: inline-flex; align-items: center; gap: 6px; }
.swatch i {
  width: 16px; height: 16px; border-radius: 50%; display: inline-block;
  border: 1px solid rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.swatch .black { background: #1b1b1d; }
.swatch .white { background: #ffffff; }
.swatch .grey  { background: #8e9093; }

/* Product page */
main.detail { justify-content: flex-start; padding-top: clamp(20px, 3vh, 32px); }
.back { align-self: flex-start; color: var(--muted); font-size: .9rem; margin-bottom: 18px; transition: color .2s; }
.back:hover { color: var(--blue); }
.stage {
  width: min(100%, calc((100vh - 170px) * 4 / 3)); min-width: min(100%, 520px);
  margin: 0 auto; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--card);
}
.stage video { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.about {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(28px, 5vh, 48px); align-items: start;
}
.detail h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: .03em; }
.detail .tag { display: inline-block; margin-top: 10px; }
.lead { margin-top: 14px; color: var(--muted); line-height: 1.6; font-size: 1.05rem; }
.about .specs { margin-top: 0; }
.others { margin-top: clamp(40px, 7vh, 72px); }
.others h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }
.others-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mini { background: var(--soft); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .2s; }
.mini:hover { border-color: var(--blue); }
.mini .media img { pointer-events: auto; }
.mini p { padding: 12px 14px; font-weight: 700; letter-spacing: .04em; }
.mini p span { color: var(--blue); }

/* Share */
.share { position: relative; display: inline-block; margin-top: 18px; }
.intro .share { margin-top: 18px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s;
}
.share-btn:hover, .share-btn[aria-expanded="true"] { border-color: var(--blue); color: var(--blue); }
.share-menu {
  position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; min-width: 190px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .12); display: flex; flex-direction: column; text-align: left;
}
.intro .share-menu { left: 50%; transform: translateX(-50%); }
.share-menu[hidden] { display: none; }
.share-menu a, .share-menu button {
  display: block; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none;
  font: inherit; font-size: .92rem; color: var(--ink); text-align: left; cursor: pointer;
}
.share-menu a:hover, .share-menu button:hover { background: var(--soft); color: var(--blue); }

/* Footer */
footer { border-top: 1px solid var(--line); }
.foot {
  max-width: 1180px; margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--muted); font-size: .85rem;
}
.foot img { height: 22px; width: auto; display: block; opacity: .85; }

@media (max-width: 760px) {
  .products { grid-template-columns: 1fr; }
  .brand img { height: 28px; }
  .nav { gap: 2px; }
  .nav a { padding: 7px 10px; }
  .info { padding: 18px 18px 22px; }
  .stage { border-radius: 14px; min-width: 0; }
  .about { grid-template-columns: 1fr; }
  .others-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mini p { padding: 8px 10px; font-size: .85rem; }
  .foot { flex-direction: column; text-align: center; }
}
