@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,520;9..144,640&family=Instrument+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  color: #f4f1ea;
  background: #0c0d10;
  font: 16px/1.5 'Instrument Sans', system-ui, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, summary { font: inherit; color: inherit; }

.bgfx, .glow { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.glow {
  height: 100%;
  background:
    radial-gradient(420px 280px at 50% -10%, rgba(255, 248, 236, .18), transparent 70%),
    radial-gradient(680px 320px at 70% 20%, rgba(125, 168, 196, .14), transparent 72%);
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

.dock {
  position: sticky;
  top: 14px;
  z-index: 5;
  width: min(720px, calc(100% - 28px));
  margin: 18px auto 0;
  padding: 8px 8px 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(18, 19, 23, .78);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand svg { width: 22px; height: 18px; }
.dock nav { display: flex; gap: 4px; }
.dock nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #c8c4bb;
  font-size: 14px;
}
.dock nav a:hover { background: rgba(255,255,255,.06); color: #fff; }

main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.hero { padding: 72px 0 36px; text-align: center; }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: #d7d2c8;
  font-size: 13px;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9ddead;
  box-shadow: 0 0 0 4px rgba(157, 222, 173, .12);
}
h1 {
  margin: 18px 0 14px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(3.2rem, 8vw, 6.2rem);
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: .92;
}
h1 em {
  font-style: italic;
  font-weight: 520;
  color: #f3e7cf;
  display: inline-block;
  animation: sway 7s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.lead {
  max-width: 460px;
  margin: 0 auto;
  color: #a7a39b;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  padding: 28px 0 18px;
}
.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015));
  transition: border-color .2s ease, transform .2s ease;
}
.tile.wide { grid-column: span 4; }
.tile { animation: lift .7s ease both; }
.tile:nth-child(2) { animation-delay: .08s; }
.tile:nth-child(3) { animation-delay: .16s; }
.tile:nth-child(4) { animation-delay: .24s; }
.tile:nth-child(5) { animation-delay: .32s; }
.tile:hover { border-color: rgba(243, 231, 207, .45); transform: translateY(-6px); }
@keyframes lift {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.stage {
  position: relative;
  flex: 1;
  min-height: 196px;
  border-radius: 16px;
  overflow: hidden;
  background: #121318;
}
.tone-ice { background: radial-gradient(120% 90% at 80% 0%, rgba(148, 186, 214, .28), #12141a 58%); }
.tone-sky { background: radial-gradient(120% 90% at 20% 100%, rgba(125, 211, 252, .2), #12141a 60%); }
.tone-warm { background: radial-gradient(120% 80% at 0% 0%, rgba(232, 196, 154, .22), #141311 62%); }
.tone-mint { background: radial-gradient(100% 80% at 100% 100%, rgba(167, 214, 190, .2), #121614 62%); }
.tone-pearl { background: radial-gradient(90% 120% at 50% 0%, rgba(255,255,255,.08), #141416 70%); }

.stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform .6s ease;
}
.tile:hover .stage img { transform: scale(1.12); }

.chip {
  position: absolute;
  z-index: 2;
  top: 12px;
  height: 24px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
}
.chip.ok {
  left: 12px;
  color: #d7efd4;
  background: rgba(20, 32, 24, .72);
  border: 1px solid rgba(157, 222, 173, .35);
}
.chip.ok::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #9ddead;
}
.chip.mark {
  right: 12px;
  color: #1c140c;
  background: #e7d3b0;
}

.win {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 46px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(8, 9, 12, .72);
  overflow: hidden;
}
.win-top {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #cfc8bc;
  font-size: 11px;
}
.win-top i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.win-top b { margin-left: 6px; font-weight: 600; }
.win-body {
  flex: 1;
  display: grid;
  grid-template-columns: 36px 1fr;
  min-height: 0;
}
.win-body aside {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px 8px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.win-body aside b {
  height: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.16);
}
.win-body aside .on { background: #e7d3b0; }
.win pre {
  margin: 0;
  padding: 10px 12px;
  overflow: hidden;
  color: #d9d3c7;
  font: 11px/1.55 'JetBrains Mono', ui-monospace, monospace;
  white-space: pre;
}
.win-body.vel { grid-template-columns: 72px 1fr; }
.meter {
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 10px 8px;
  border-right: 1px solid rgba(255,255,255,.06);
}
.meter i {
  flex: 1;
  display: block;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(#f4f1ea, rgba(244,241,234,.2));
}
.meter i:nth-child(1) { height: 28%; }
.meter i:nth-child(2) { height: 48%; }
.meter i:nth-child(3) { height: 70%; }
.meter i:nth-child(4) { height: 100%; }
.win.hub ul { list-style: none; padding: 8px 14px; }
.win.hub li {
  padding: 7px 0;
  border-top: 1px solid rgba(255,255,255,.06);
  color: #e7e1d6;
  font-size: 13px;
}
.win.hub li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 2px;
  background: #e7d3b0;
}

.meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 8px 6px;
}
.meta strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.meta span { color: #9c978e; font-size: 13px; }
.meta em {
  font-style: normal;
  height: 32px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f4f1ea;
  color: #161513;
  font-size: 13px;
  font-weight: 600;
}

.faq { width: min(640px, 100%); margin: 54px auto 20px; text-align: center; }
.faq h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 2.4rem;
  font-weight: 520;
  letter-spacing: -.03em;
}
.faq > p { margin: 6px 0 18px; color: #9c978e; }
.faq details {
  margin-top: 8px;
  text-align: left;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.faq summary {
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details p { padding: 0 16px 14px; color: #b7b2a8; }

footer {
  width: min(1080px, calc(100% - 32px));
  margin: 28px auto 36px;
  display: flex;
  justify-content: space-between;
  color: #7d786f;
  font-size: 13px;
}

@media (max-width: 860px) {
  .catalog { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: auto; }
  .hero { padding-top: 48px; }
}
@media (max-width: 640px) {
  .catalog { grid-template-columns: 1fr; }
  .dock nav a:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .glow, h1 em, .tile { animation: none; }
  .tile:hover, .tile:hover .stage img { transform: none; }
}
