:root {
  --bg: #000;
  --panel: rgba(255, 210, 0, 0.05);
  --panel-2: rgba(255, 255, 255, 0.02);
  --line: rgba(255, 210, 0, 0.18);
  --line-2: rgba(255, 210, 0, 0.08);
  --text: #f7f4e8;
  --muted: #b8b09a;
  --quiet: #7a7464;
  --gold: #ffd000;
  --gold-2: #ffe566;
  --gold-deep: #c49200;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --nav-h: 68px;
  --font: Outfit, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: #000;
  color: var(--text);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  html, body {
    cursor: url("/cursor.svg") 4 4, auto;
  }
  a, button, summary, .btn, .burger, label {
    cursor: url("/cursor-hot.svg") 4 4, pointer;
  }
}

::selection { background: rgba(255, 208, 0, 0.45); color: #000; }

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; display: block; height: auto; }

.cursor-dot, .cursor-ring { display: none !important; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: #000;
  padding: 8px 12px;
  z-index: 70;
}
.skip:focus { left: 12px; top: 12px; }

#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold) 40%, var(--gold-2));
  pointer-events: none;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--nav-h);
  padding: 14px max(24px, calc((100vw - var(--max)) / 2));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
}
.nav.is-stuck {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
.nav-end { display: flex; align-items: center; gap: 10px; justify-self: end; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-size: 0.95rem;
}
.brand:hover { color: #fff; }

.logo {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold) 45%, var(--gold-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  transition: transform 0.3s var(--ease);
}
.logo::after {
  content: "K";
  color: #111;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}
.brand:hover .logo { transform: rotate(-8deg) scale(1.06); }

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  position: relative;
  padding: 9px 11px;
  color: #8f8e95;
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 650;
  border-radius: 10px;
}
.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}
.nav-links a.active { color: #fff; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  cursor: pointer;
}

.btn {
  position: relative;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 13px;
  padding: 12px 18px;
  font-size: 0.9rem;
  font-weight: 760;
  letter-spacing: -0.01em;
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary:hover { color: #111; }
.btn-primary {
  color: #111;
  background: linear-gradient(135deg, #b8860b 0%, #ffd000 42%, #fff1a0 100%);
  box-shadow: 0 10px 32px rgba(255, 208, 0, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.btn-primary::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 30%;
  height: 140%;
  background: rgba(255, 255, 255, 0.26);
  transform: translate3d(-260%, 0, 0) skewX(-20deg);
  transition: transform 0.32s var(--ease);
}
.btn-primary:hover::after { transform: translate3d(430%, 0, 0) skewX(-20deg); }
.btn-ghost {
  color: #eee;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.11);
  text-decoration: none;
}
.btn-ghost:hover { border-color: rgba(255, 208, 0, 0.55); color: var(--gold-2); }

.wrap, .hero, .section, footer {
  position: relative;
  z-index: 1;
}

.hero, .section, .wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px 40px;
  align-items: start;
  min-height: 0;
  padding: 40px 0 28px;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 700px;
  height: 420px;
  right: -140px;
  top: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 208, 0, 0.16), transparent 67%);
  pointer-events: none;
}
.hero-compact {
  display: block;
  min-height: 0;
  padding: 28px 0 4px;
}
.hero-compact h1 {
  margin: 8px 0 0;
}
.hero-compact + .section {
  padding-top: 12px;
}

.kicker {
  color: var(--gold-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0;
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  vertical-align: middle;
  margin-right: 10px;
  background: linear-gradient(90deg, var(--gold), #fff1a0);
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  max-width: 16ch;
  margin: 16px 0 22px;
  font-weight: 840;
  color: #fff;
}
.hero-title {
  text-transform: uppercase;
  font-size: clamp(3.1rem, 8vw, 5.4rem);
  max-width: 11ch;
  letter-spacing: -0.06em;
  line-height: 0.92;
  color: var(--gold);
  background: linear-gradient(180deg, #fff6c2 0%, #ffd000 55%, #b8860b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-compact h1, .page-hero h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 4vw, 3.1rem);
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 28px 0 16px;
  font-weight: 800;
}
h3 { font-size: 1.08rem; margin: 0 0 8px; color: #f1f0f4; }

.lead, p { color: var(--muted); }
.lead { font-size: 1.04rem; max-width: 62ch; }
.cta-row, .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: #eadfa8;
}

.crumbs { color: var(--quiet); font-size: 0.86rem; margin-bottom: 14px; }
.crumbs a { color: var(--gold); text-decoration: none; }

.section { padding: 28px 0 56px; }
.section + .section { border-top: 1px solid var(--line-2); }

.hero-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.22);
  background: #050505;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 208, 0, 0.08);
  transform: translateZ(0);
  animation: float-img 8s ease-in-out infinite;
}
.hero-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform 0.28s var(--ease);
}
.hero-visual:hover img { transform: scale(1.03); }
@keyframes float-img {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -6px, 0); }
}
.hero-visual.is-paused { animation: none; }
.section.download-page {
  padding-top: 0;
  padding-bottom: 56px;
}
.download-stage {
  min-height: calc(100svh - var(--nav-h) - 120px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 18px;
  box-sizing: border-box;
}
.download-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px 36px;
  align-items: center;
  margin: 0;
  flex: 1;
}
.download-split h1 {
  max-width: 11ch;
  font-size: clamp(2.6rem, 6vw, 4.35rem);
  margin: 8px 0 14px;
  line-height: 0.96;
  letter-spacing: -0.055em;
}
.download-split .lead {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.5;
  max-width: 38ch;
}
.download-split .crumbs {
  margin-bottom: 10px;
}
.download-split .hero-actions {
  margin-top: 22px;
}
.download-split .download-meta {
  margin: 16px 0 0;
}
.download-copy {
  min-width: 0;
}
.download-shot {
  margin: 0;
  max-width: 520px;
  width: 100%;
  justify-self: stretch;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 208, 0, 0.22);
  background: #050505;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 28px rgba(255, 208, 0, 0.08);
}
.download-shot img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform 0.28s var(--ease);
}
.download-shot:hover img { transform: scale(1.05); }
.shot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin: 28px 0;
}
.shot-grid figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #050505;
}
.shot-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  transition: transform 0.28s var(--ease);
}
.shot-grid figure:hover img { transform: scale(1.04); }
.shot-grid figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line-2);
}
.shot-wide { grid-column: 1 / -1; }
.preview-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #84828b;
  font-size: 10px;
}
.preview-top span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55535a;
}
.preview-top b { margin-left: 8px; color: #d9d6df; }
.preview-top em { margin-left: auto; font-style: normal; color: #6e6c74; }
.preview-body {
  display: grid;
  grid-template-columns: 48px 1fr 126px;
  height: calc(100% - 44px);
}
.preview-sidebar {
  padding: 16px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.preview-sidebar i {
  display: block;
  height: 7px;
  width: 24px;
  margin: 0 auto 16px;
  border-radius: 5px;
  background: linear-gradient(90deg, #2a2408, #c49200);
}
.preview-editor {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 208, 0, 0.08), transparent 35%);
}
.preview-tabs {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.preview-tabs span {
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 8px;
  color: #7c7982;
}
.preview-tabs span:first-child {
  color: #e7e4eb;
  background: rgba(255, 208, 0, 0.18);
}
.code-lines { padding: 18px 16px; display: grid; gap: 10px; }
.code-lines i {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255, 208, 0, 0.55), rgba(255, 255, 255, 0.04));
}
.code-lines i:nth-child(1) { width: 68%; }
.code-lines i:nth-child(2) { width: 84%; }
.code-lines i:nth-child(3) { width: 55%; }
.code-lines i:nth-child(4) { width: 77%; }
.code-lines i:nth-child(5) { width: 48%; }
.code-lines i:nth-child(6) { width: 72%; }
.preview-panel {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 9px;
  color: #6f6d75;
}
.preview-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 208, 0, 0.32), transparent 70%);
}

.panel, .card, .stat {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat { padding: 20px; color: var(--quiet); font-size: 0.89rem; }
.stat b { display: block; font-size: 1.24rem; margin-bottom: 7px; color: #f4f2f8; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.download-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 8px;
  padding: 0;
  list-style: none;
}
.download-meta li {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #c9c6d0;
  font-size: 0.82rem;
  font-weight: 650;
}
.notice-good { border-color: rgba(255, 208, 0, 0.45); }
.notice-bad { border-color: rgba(255, 208, 0, 0.22); }
.notice {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.card h2, .card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.btn-lg {
  min-height: 64px;
  padding: 16px 28px;
  font-size: 1.12rem;
  border-radius: 16px;
}
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}
.foot-note {
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 0.82rem;
  color: #63626a;
}
.foot-note a { color: #8b8a93; }
.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  margin-top: 18px;
}
.card {
  padding: 24px;
  text-decoration: none;
  transition: transform 0.22s var(--ease), border-color 0.22s ease;
}
.card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: rgba(255, 208, 0, 0.45);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}
th { color: var(--gold); font-weight: 750; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
.tag {
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c9c6d0;
}

.faq details {
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 17px 19px;
  margin: 11px 0;
}
.faq details[open], .faq details:hover { border-color: rgba(255, 208, 0, 0.45); }
.faq summary { cursor: pointer; font-weight: 700; color: #f1f0f4; }
.faq details p { margin: 12px 0 0; }
.about-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 28px;
  padding: 0;
  list-style: none;
}
.about-toc a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--gold-2);
  font-size: 0.82rem;
  font-weight: 650;
}
.about-toc a:hover { border-color: rgba(255, 208, 0, 0.5); color: #fff; }
.pullquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 208, 0, 0.05);
  color: #efe7c8;
  font-size: 1.08rem;
  line-height: 1.45;
}
.about-shot {
  margin: 28px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: 720px;
}
.about-shot img { width: 100%; display: block; }
.about-shot figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line-2);
}

form { display: grid; gap: 12px; max-width: 560px; }
input, textarea, select {
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  font: inherit;
}
.toast { display: none; margin-top: 10px; color: var(--gold); }

.disclaimer {
  font-size: 0.9rem;
  color: var(--muted);
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid rgba(255, 208, 0, 0.28);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
}

ol {
  display: grid;
  gap: 11px;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
  max-width: 900px;
}
ol li {
  position: relative;
  padding: 18px 20px 18px 58px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 15px;
}
ol li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 17px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 850;
}

footer {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 58px 0 78px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 0.88rem;
}
.foot {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 28px;
}
.foot strong { color: #f1eff4; }
.foot a {
  display: inline-block;
  color: #797880;
  text-decoration: none;
  margin: 8px 0;
}
.foot a:hover { color: #fff; }

#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(10, 10, 0, 0.94);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s var(--ease);
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav .btn-primary { display: none; }
  .burger { display: flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.97);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-bottom: 36px;
  }
  .hero-visual { animation: none; }
  .shot-grid { grid-template-columns: 1fr; }
  .download-split { grid-template-columns: 1fr; }
  .download-stage { min-height: 0; }
  .download-shot { max-width: none; justify-self: stretch; }
  .foot { grid-template-columns: 1.3fr 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .hero, .section, .wrap, footer { width: min(var(--max), calc(100% - 36px)); }
  h1 { max-width: 100%; }
  .foot { grid-template-columns: 1fr; }
  .cursor-dot, .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
