/* ============================================================
   木星X / JUPITER X
   Deep-space observatory — minimal, technical, jovian
   ============================================================ */

:root {
  --void: #06080b;
  --void-2: #0b0f14;
  --ink: #eceff2;
  --ink-2: #a8b1bb;
  --muted: #697481;
  --line: rgba(236, 239, 242, .11);
  --line-2: rgba(236, 239, 242, .055);
  --jovian: #e0bd93;
  --rust: #b95534;

  --font-display: "Syne", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --font-zh: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --pad: clamp(22px, 5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-zh);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(120% 70% at 78% 8%, rgba(224, 189, 147, .055), transparent 60%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--jovian); color: var(--void); }
:focus-visible { outline: 1px solid var(--jovian); outline-offset: 5px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px var(--pad);
  border-bottom: 1px solid var(--line-2);
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand__mark {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #f0d6b0, #c69a6c 52%, #7a5238 100%);
  box-shadow: 0 0 0 1px rgba(224, 189, 147, .28), 0 0 18px rgba(224, 189, 147, .35);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -5px;
  top: 5px;
  height: 1px;
  background: rgba(224, 189, 147, .55);
  transform: rotate(-22deg);
}

.brand__name { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.brand__latin { font-family: var(--font-mono); font-size: 9px; letter-spacing: .2em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); font-size: 13px; color: var(--ink-2); }
.nav a { transition: color .25s ease; }
.nav a:hover { color: var(--jovian); }
.nav__cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--jovian);
  border: 1px solid rgba(224, 189, 147, .35);
  padding: 9px 16px;
  transition: background .25s ease, color .25s ease;
}
.nav__cta:hover { background: rgba(224, 189, 147, .1); color: var(--jovian); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: min(760px, calc(100vh - 80px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px var(--pad) 96px;
}

.hero__copy { position: relative; z-index: 3; max-width: min(720px, 58vw); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(28px, 5vw, 52px);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--muted);
  text-transform: uppercase;
}
.eyebrow__sep { color: rgba(224, 189, 147, .5); }
.signal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--jovian);
  box-shadow: 0 0 10px var(--jovian);
  animation: pulse 2.8s ease-in-out infinite;
}

.wordmark {
  margin: 0 0 clamp(20px, 3vw, 34px);
  font-size: clamp(76px, 12vw, 172px);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.045em;
  white-space: nowrap;
}
.wordmark__x {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--jovian);
  margin-left: .06em;
  letter-spacing: -.08em;
  text-shadow: 0 0 60px rgba(224, 189, 147, .22);
}

.hero__line {
  margin: 0 0 14px;
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: .05em;
  color: var(--ink);
}
.hero__sub {
  margin: 0;
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--muted);
}
.hero__actions { margin-top: clamp(36px, 5vw, 56px); }

.hero__foot {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .2em;
  color: var(--muted);
}
.hero__foot-line { flex: 1; height: 1px; background: var(--line-2); }

/* ---------- Jupiter / observatory ---------- */
.observatory {
  position: absolute;
  z-index: 1;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: min(58vw, 760px);
  aspect-ratio: 1;
  pointer-events: none;
}

.planet-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 189, 147, .18), rgba(181, 85, 52, .06) 55%, transparent 72%);
  filter: blur(46px);
}

.planet {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 60px rgba(224, 189, 147, .1));
  animation: planetIn 1.8s cubic-bezier(.2, .7, .2, 1) both;
}

.bands {
  transform-box: view-box;
  transform-origin: center;
  animation: drift 90s ease-in-out infinite alternate;
}
.storm-group {
  transform-box: view-box;
  transform-origin: center;
  animation: stormDrift 60s ease-in-out infinite alternate;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(224, 189, 147, .13);
  border-radius: 50%;
}
.orbit--outer {
  width: 122%;
  height: 58%;
  transform: translate(-50%, -50%) rotate(-19deg);
}
.orbit--inner {
  width: 98%;
  height: 88%;
  border-color: rgba(236, 239, 242, .045);
  transform: translate(-50%, -50%) rotate(14deg);
}

.satellite {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--jovian);
  box-shadow: 0 0 12px var(--jovian);
}
@supports (offset-path: ellipse(50% 50% at 50% 50%)) {
  .satellite {
    left: 0;
    top: 0;
    margin: 0;
    offset-path: ellipse(61% 29% at 50% 50%);
    animation: travel 34s linear infinite, pulse 3s ease-in-out infinite;
  }
}

.scanline {
  position: absolute;
  left: -6%;
  right: -6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 189, 147, .45), transparent);
  opacity: .55;
  animation: scan 9s ease-in-out infinite alternate;
}

.hud {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  line-height: 1.9;
  color: var(--muted);
  text-transform: uppercase;
}
.hud b { display: block; font-weight: 500; color: var(--ink-2); }
.hud::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin-bottom: 9px;
  background: rgba(224, 189, 147, .45);
}
.hud--tr { top: 3%; right: 20%; text-align: right; }
.hud--tr::before { margin-left: auto; }
.hud--bl { bottom: 5%; left: 4%; }

.ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  height: 12px;
  opacity: .45;
  background: repeating-linear-gradient(90deg, rgba(236, 239, 242, .2) 0 1px, transparent 1px 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 15px 22px;
  font-size: 13px;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .3s cubic-bezier(.2, .7, .2, 1), color .3s ease, border-color .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1);
}
.btn .arrow { font-family: var(--font-mono); font-size: 15px; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.btn--outline { border: 1px solid rgba(224, 189, 147, .42); color: var(--jovian); }
.btn--outline:hover { background: var(--jovian); color: var(--void); }
.btn--outline:hover .arrow { transform: translate(3px, -3px); }
.btn--solid { border: 1px solid var(--jovian); background: var(--jovian); color: #0a0c10; font-weight: 700; }
.btn--solid:hover { background: #f2d5af; border-color: #f2d5af; transform: translateY(-2px); }
.btn--solid:hover .arrow { transform: translateY(3px); }
.btn--solid.is-pending { background: transparent; color: var(--jovian); border-color: rgba(224, 189, 147, .4); }
.btn--solid.is-pending:hover { background: rgba(224, 189, 147, .08); transform: none; }

/* ---------- Products ---------- */
.products {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 10vw, 120px) var(--pad) clamp(90px, 11vw, 130px);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(11, 15, 20, .55), transparent 70%);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto 56px;
}
.section-head__index {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--jovian);
}
.section-head__index span { color: var(--muted); }
.section-head__title { margin: 0; font-size: clamp(30px, 4vw, 52px); font-weight: 600; letter-spacing: .02em; }
.section-head__note { margin: 0 0 6px; font-size: 13px; color: var(--muted); }

.product {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr minmax(250px, 300px);
  gap: clamp(24px, 4vw, 64px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.product::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--jovian);
  opacity: 0;
  transition: opacity .4s ease;
}
.product:hover::before { opacity: 1; }

.product__idx {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--muted);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jovian);
  box-shadow: 0 0 10px var(--jovian);
}

.product__name { margin: 0 0 6px; font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: .01em; }
.product__en { margin: 0 0 22px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .28em; color: var(--jovian); }
.product__desc { max-width: 34em; margin: 0 0 26px; font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { padding: 6px 12px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }

.product__side { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 22px; }
.spec { display: flex; flex-direction: column; gap: 9px; width: 100%; margin: 0; }
.spec > div { display: flex; justify-content: space-between; padding-bottom: 9px; border-bottom: 1px solid var(--line-2); }
.spec dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.spec dd { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.product__hint { margin: 0; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; color: var(--muted); }

.product-next {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--muted);
}
.product-next p { flex: 1; margin: 0; font-family: var(--font-zh); font-size: 13px; letter-spacing: .04em; }
.product-next__state { opacity: .65; }

/* ---------- Studio ---------- */
.studio { max-width: 1240px; margin: 0 auto; padding: clamp(90px, 12vw, 160px) var(--pad); }
.studio__eyebrow { margin: 0 0 36px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .22em; color: var(--jovian); }
.studio__line { margin: 0 0 52px; font-size: clamp(24px, 4.2vw, 52px); font-weight: 500; line-height: 1.55; letter-spacing: .02em; }
.studio__line span { color: var(--muted); }
.studio__name { margin: 0; font-size: 13px; color: var(--ink-2); }
.studio__name span { margin-left: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  padding: 34px var(--pad);
  border-top: 1px solid var(--line-2);
  font-size: 11px;
  color: var(--muted);
}
.site-footer__main { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.site-footer__meta { display: flex; gap: 32px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.to-top { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; transition: color .25s ease; }
.to-top:hover { color: var(--jovian); }

.compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}
.compliance[hidden], .compliance__link[hidden] { display: none; }
.compliance__link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); transition: color .25s ease; }
.compliance__link:hover { color: var(--jovian); }
.compliance__badge {
  position: relative;
  width: 11px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 2px 2px 5px 5px;
}
.compliance__badge::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 40px);
  padding: 14px 22px;
  background: rgba(16, 21, 27, .94);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  text-align: center;
  transition: opacity .35s ease, transform .35s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Motion ---------- */
.reveal { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes planetIn { from { opacity: 0; transform: scale(.94) translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drift { from { transform: translateX(-24px); } to { transform: translateX(24px); } }
@keyframes stormDrift { from { transform: translateX(-10px); } to { transform: translateX(14px); } }
@keyframes scan { from { top: 14%; } to { top: 86%; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes travel { to { offset-distance: 100%; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { min-height: auto; padding: 100px var(--pad) 130px; }
  .hero__copy { max-width: none; text-shadow: 0 2px 30px rgba(6, 8, 11, .9); }
  .observatory { width: min(96vw, 620px); right: -26%; top: 38%; opacity: .42; }
  .product { grid-template-columns: 1fr; gap: 28px; }
  .product__idx { padding-top: 0; }
  .section-head { grid-template-columns: 1fr; }
  .section-head__note { margin-top: 8px; }
  .btn--solid { justify-content: center; }
}

@media (max-width: 600px) {
  .brand__latin { display: none; }
  .nav { gap: 16px; font-size: 12px; }
  .nav a:not(.nav__cta) { display: none; }
  .wordmark { font-size: clamp(64px, 20vw, 120px); }
  .observatory { right: -42%; top: 34%; opacity: .3; }
  .hud { font-size: 8px; }
  .product-next { gap: 18px; }
  .product-next__state { display: none; }
  .site-footer__main { flex-direction: column; align-items: flex-start; gap: 14px; }
  .site-footer__meta { flex-direction: column; gap: 6px; }
  .compliance { gap: 8px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
