@font-face { font-family: "Outfit"; font-weight: 400; font-display: swap; src: url(fonts/outfit-400.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 500; font-display: swap; src: url(fonts/outfit-500.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 600; font-display: swap; src: url(fonts/outfit-600.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 700; font-display: swap; src: url(fonts/outfit-700.woff2) format("woff2"); }
@font-face { font-family: "Outfit"; font-weight: 800; font-display: swap; src: url(fonts/outfit-800.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0b1015;
  --surface: #121a22;
  --surface-2: #18232d;
  --line: rgb(255 255 255 / 0.08);
  --text: #e8edf2;
  --muted: #9aa7b6;
  --accent: #f2c14e;
  --accent-ink: #17130a;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }

a:focus-visible, button:focus-visible, summary:focus-visible, .tips:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.ic {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* Buttons: interactive elements are pills, containers use --radius */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.btn:hover { background: #f6cd6b; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-sm { padding: 9px 20px; font-size: 0.95rem; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.3s var(--ease);
}
.btn-ghost:hover { border-color: rgb(255 255 255 / 0.25); transform: translateY(-1px); }
.btn-ghost:active { transform: scale(0.98); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(11 16 21 / 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  width: min(100% - 40px, var(--max));
  height: 64px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 28px 0 40px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgb(242 193 78 / 0.1), transparent 60%),
    radial-gradient(800px 400px at 95% 10%, rgb(76 140 110 / 0.14), transparent 60%);
}
.hero-inner {
  width: min(100% - 40px, max(640px, calc((100dvh - 300px) * 16 / 9)), var(--max));
  margin-inline: auto;
}
.hero h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
.hero-sub { margin: 10px 0 22px; color: var(--muted); max-width: 72ch; }

.player {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(242 193 78 / 0.04);
  overflow: hidden;
}
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #070a0e;
}
.stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 50% 55%, rgb(7 10 14 / 0.1), rgb(7 10 14 / 0.65)),
    linear-gradient(to top, rgb(7 10 14 / 0.55), transparent 40%);
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.2s;
}
.play-button .ic { width: 1.1em; height: 1.1em; }
.play-button:hover { background: #f6cd6b; transform: scale(1.05); }
.play-button:active { transform: scale(0.97); }
.play-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--accent);
  pointer-events: none;
}

.player-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.is-playing .play-ring { display: none; }

/* Sections */
.section { padding: 96px 0; }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.section-head p { margin-top: 14px; color: var(--muted); }

/* Bento (12 col): a(7x2) b(5) c(5) / d(8) e(4) */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 220px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.cell:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 0.18); }
.cell h3 { font-size: 1.4rem; }
.cell p { color: var(--muted); max-width: 46ch; }
.cell-ic { width: 2rem; height: 2rem; color: var(--accent); margin-bottom: auto; }

.has-img { background: #0a0f14 var(--img) center / cover no-repeat; }
.has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(8 12 16 / 0.94) 8%, rgb(8 12 16 / 0.35) 60%, rgb(8 12 16 / 0.1));
}
.cell-body { position: relative; display: grid; gap: 8px; }
.has-img p { color: #c3ccd6; }

.cell-a { grid-column: 1 / span 7; grid-row: span 2; min-height: 460px; }
.cell-b { grid-column: 8 / span 5; background: var(--surface-2); }
.cell-c { grid-column: 8 / span 5; background: linear-gradient(150deg, #16303a, var(--surface)); }
.cell-d { grid-column: 1 / span 8; min-height: 300px; }
.cell-e { grid-column: 9 / span 4; background: linear-gradient(150deg, rgb(242 193 78 / 0.16), var(--surface) 70%); }

/* Split layout (how to play) */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.split-lead { position: sticky; top: 100px; }
.split-lead h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.split-lead p { margin-top: 14px; color: var(--muted); max-width: 40ch; }

.controls { display: grid; gap: 16px; }
.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 18px; }
.panel h3 .ic { color: var(--accent); }
.plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--muted); }
.plain li { padding-left: 18px; position: relative; }
.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
}

kbd {
  display: inline-block;
  min-width: 1.7em;
  padding: 1px 7px;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font: 600 0.85em "Outfit", sans-serif;
  text-align: center;
}
.keys {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  grid-template-areas: ". w ." "a s d";
  gap: 6px;
  margin-bottom: 22px;
}
.keys kbd { padding: 12px 0; font-size: 1.1rem; border-radius: 10px; }
.k-w { grid-area: w; } .k-a { grid-area: a; } .k-s { grid-area: s; } .k-d { grid-area: d; }

/* Run section */
.run {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.run-shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px rgb(0 0 0 / 0.4); }
.run-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 28px; }
.loop { margin: 0; display: grid; gap: 22px; }
.loop dt { font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.loop dd { margin: 4px 0 0; color: var(--muted); }

/* Tips: horizontal snap row */
.tips {
  display: flex;
  gap: 16px;
  padding: 4px max(20px, calc((100vw - var(--max)) / 2)) 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(20px, calc((100vw - var(--max)) / 2));
  scrollbar-width: thin;
  scrollbar-color: rgb(255 255 255 / 0.2) transparent;
}
.tip {
  flex: 0 0 min(320px, 80vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.tip:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / 0.18); }
.tip-ic { width: 2rem; height: 2rem; color: var(--accent); margin-bottom: 16px; }
.tip h3 { font-size: 1.3rem; }
.tip p { color: var(--muted); }

/* FAQ */
.faq-wrap { width: min(100% - 40px, 820px); margin-inline: auto; }
.faq { display: grid; gap: 12px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, background 0.3s;
}
details[open] { background: var(--surface-2); border-color: rgb(242 193 78 / 0.3); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "";
  width: 1.1em;
  height: 1.1em;
  flex: none;
  background: var(--accent);
  -webkit-mask: url(icons/plus.svg) center / contain no-repeat;
  mask: url(icons/plus.svg) center / contain no-repeat;
  transition: transform 0.35s var(--ease);
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 24px 22px; color: var(--muted); max-width: 64ch; }

/* CTA */
.cta {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(36px, 6vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #0a0f14 var(--img) center / cover no-repeat;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgb(8 12 16 / 0.95) 25%, rgb(8 12 16 / 0.55));
}
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.cta p { color: #c3ccd6; margin-bottom: 8px; }

/* Footer */
.footer { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; gap: 14px; }
.footer p { max-width: 70ch; color: var(--muted); font-size: 0.9rem; }

/* Motion */
.rise { animation: rise 0.8s var(--ease) both; }
.hero-sub.rise { animation-delay: 0.08s; }
.player.rise { animation-delay: 0.16s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.bento .reveal:nth-child(2), .faq .reveal:nth-child(2n) { transition-delay: 0.06s; }
.bento .reveal:nth-child(3) { transition-delay: 0.12s; }

.play-ring { animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.35, 1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .play-ring { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn-ghost, .cell, .tip, .play-button { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner .btn { margin-left: auto; }
  .section { padding: 64px 0; }
  .bento { grid-template-columns: 1fr; }
  .cell-a, .cell-b, .cell-c, .cell-d, .cell-e { grid-column: auto; grid-row: auto; min-height: 240px; }
  .cell-a { min-height: 340px; }
  .split, .run { grid-template-columns: 1fr; gap: 28px; }
  .split-lead { position: static; }
}

@media (max-width: 600px) {
  .player-bar { flex-direction: column; align-items: stretch; }
  .btn-ghost { justify-content: center; }
  .play-button { padding: 14px 30px; font-size: 1.05rem; }
  .chips li { font-size: 0.8rem; padding: 4px 11px; }
}
