:root {
  color-scheme: dark;
  --bg: #071312;
  --panel: #101918;
  --panel-2: #182321;
  --text: #f7fbf7;
  --muted: #a8b8b4;
  --line: rgba(255, 255, 255, .14);
  --accent: #18d5c2;
  --accent-2: #f4b860;
  --soft: #e9fff9;
  --danger: #ff7a7a;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .38);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 26rem),
    linear-gradient(135deg, var(--bg), #0d1218 52%, #12140e);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 12px; top: -48px; z-index: 50; background: var(--accent); color: #00110e; padding: 10px 14px; border-radius: 6px; }
.skip-link:focus { top: 12px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, black);
  backdrop-filter: blur(18px);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand strong { display: block; line-height: 1; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.nav { display: flex; justify-content: center; gap: 8px; }
.nav a {
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.cart-button, .icon-button, .primary, .secondary, .wallet {
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,.06);
}
.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
}
.cart-button strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #06100d;
}
.hero {
  min-height: calc(100vh - 73px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(36px, 7vw, 92px) clamp(16px, 5vw, 72px) clamp(32px, 5vw, 64px);
}
.hero-copy { max-width: 760px; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 104px);
  line-height: .9;
  letter-spacing: 0;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}
h3 { font-size: 19px; margin-bottom: 8px; }
.lead {
  max-width: 680px;
  color: #d9e7e3;
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.45;
}
.hero-actions, .detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.primary, .secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 16px;
  font-weight: 800;
}
.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #07100e;
  border-color: transparent;
}
.secondary { color: var(--text); }
.full { width: 100%; }
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
  max-width: 640px;
}
.stat-row div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.05);
}
.stat-row strong { display: block; font-size: 26px; }
.stat-row span { color: var(--muted); font-size: 13px; }
.hero-visual { min-width: 0; }
.orbital-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.orbital-card img { display: block; width: 100%; height: auto; }
.batch-strip {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(0,0,0,.52);
}
.batch-strip span { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .1em; }
.notice-band, .catalog-preview, .quality, .focus-band, .ordering, .page-hero, .product-detail, .related {
  padding: clamp(42px, 7vw, 88px) clamp(16px, 5vw, 72px);
}
.notice-band {
  display: flex;
  gap: 14px;
  background: var(--soft);
  color: #091310;
  font-weight: 700;
}
.notice-band span { color: #203530; font-weight: 600; }
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}
.section-head a { color: var(--accent); font-weight: 800; }
.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(190px, .8fr) minmax(160px, .6fr);
  gap: 12px;
  margin-bottom: 22px;
}
.toolbar.compact { grid-template-columns: minmax(220px, 1fr) minmax(180px, .5fr); max-width: 840px; }
label span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 12px;
}
textarea { min-height: 150px; resize: vertical; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 258px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
}
.product-card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: rgba(255,255,255,.075); }
.product-card .category { color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; min-height: 30px; }
.product-card h3 { min-height: 48px; }
.product-card p { color: var(--muted); line-height: 1.45; flex: 1; }
.product-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  margin: 12px 0;
}
.code-pill { color: var(--soft); font-size: 12px; }
.price { font-size: 18px; font-weight: 900; color: var(--text); }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.card-actions a, .card-actions button {
  min-height: 40px;
  border-radius: 6px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.07);
  padding: 9px 10px;
  text-align: center;
  font-weight: 800;
}
.card-actions button { background: var(--accent); color: #07100e; border-color: transparent; min-width: 48px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.process-grid article, .batch-panel, .wallet-preview div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  padding: 18px;
}
.process-grid span { color: var(--accent); font-weight: 900; }
.process-grid p, .muted, .fine { color: var(--muted); line-height: 1.5; }
.focus-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: 34px;
  background: rgba(255,255,255,.04);
}
.focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.focus-list a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255,255,255,.055);
}
.focus-list span { color: var(--accent); }
.wallet-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
code {
  display: block;
  overflow-wrap: anywhere;
  color: #d8eee8;
  font-size: 12px;
  line-height: 1.4;
}
.page-hero {
  padding-bottom: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent);
}
.page-hero h1 { font-size: clamp(40px, 6vw, 80px); }
.full-catalog { padding-top: 24px; }
.dense .product-card { min-height: 238px; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
  gap: 28px;
  align-items: start;
}
.product-summary, .batch-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.055);
  padding: clamp(20px, 4vw, 34px);
}
.product-summary h1 { font-size: clamp(38px, 6vw, 74px); }
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
}
.specs div { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.specs dt { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .08em; }
.specs dd { margin: 5px 0 0; font-weight: 800; }
.batch-panel img { width: 100%; height: auto; border-radius: 6px; background: #0b1211; }
.cart-drawer, .pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}
.cart-drawer.is-open, .pay-modal.is-open { pointer-events: auto; opacity: 1; }
.cart-drawer { background: rgba(0,0,0,.45); }
.cart-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(440px, 100%);
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #0c1413;
  padding: 20px;
  transform: translateX(100%);
  transition: transform .18s ease;
}
.cart-drawer.is-open .cart-panel { transform: translateX(0); }
.cart-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 18px; }
.cart-head h2 { font-size: 30px; }
.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
}
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line strong { display: block; }
.qty { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; }
.qty button { width: 28px; height: 28px; border-radius: 4px; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.07); }
.cart-total { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0; font-size: 18px; }
.ack { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-bottom: 14px; color: var(--muted); line-height: 1.45; }
.ack input { width: auto; margin-top: 3px; }
.pay-modal {
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0,0,0,.66);
}
.pay-card-modal {
  position: relative;
  width: min(840px, 100%);
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0c1413;
  padding: clamp(18px, 4vw, 30px);
  box-shadow: var(--shadow);
}
.modal-close { position: absolute; right: 16px; top: 16px; }
.wallet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.wallet {
  text-align: left;
  padding: 12px;
}
.wallet span { display: block; margin-bottom: 6px; color: var(--accent); font-weight: 900; }
.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  padding: 34px clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer a { display: block; margin-top: 8px; color: var(--text); }
.footer-brand { color: var(--text); font-weight: 900; font-size: 18px; }
.is-hidden { display: none !important; }

body[data-theme="zenith"] {
  --panel: #101713;
  --panel-2: #182015;
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wallet-preview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 840px) {
  .topbar { grid-template-columns: 1fr auto; }
  .nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; }
  .hero, .focus-band, .product-detail { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .toolbar, .toolbar.compact { grid-template-columns: 1fr; }
  .product-grid, .process-grid, .wallet-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand small { display: none; }
  .stat-row, .focus-list, .specs { grid-template-columns: 1fr; }
  h1 { font-size: clamp(40px, 15vw, 66px); }
  .notice-band { display: block; }
  .batch-strip { position: static; margin: 0 14px 14px; }
  .hero-actions, .detail-actions { display: grid; grid-template-columns: 1fr; }
}