:root {
  --ink: #0b1210;
  --panel: #16201c;
  --text: #f2f6f3;
  --muted: #9aafa4;
  --lime: #c8f542;
  --coral: #ff6b4a;
  --line: rgba(242, 246, 243, 0.1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(200, 245, 66, 0.12), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(255, 107, 74, 0.12), transparent 50%),
    var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

.top-chrome {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 18, 16, 0.92);
  backdrop-filter: blur(14px);
}

.notice-bar {
  overflow: hidden;
  padding: 9px 0;
  background: linear-gradient(90deg, rgba(200, 245, 66, 0.14), rgba(255, 107, 74, 0.16));
  border-bottom: 1px solid rgba(200, 245, 66, 0.28);
}

.notice-bar[hidden] {
  display: none;
}

.notice-track {
  display: flex;
  width: max-content;
  animation: notice-scroll 28s linear infinite;
}

.notice-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 650;
  color: #eaf7c8;
}

.notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

@keyframes notice-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 750;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-meta strong {
  color: var(--lime);
}

.nav-coffee {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 100, 0.45);
  background: linear-gradient(135deg, rgba(255, 170, 80, 0.22), rgba(120, 60, 30, 0.16));
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nav-coffee:hover {
  border-color: rgba(255, 200, 120, 0.75);
}

.live-visitors {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 22, 0.86);
  color: var(--text);
  font-weight: 700;
  pointer-events: none;
}

.live-visitors-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #5ee29a;
  box-shadow: 0 0 0 0 rgba(94, 226, 154, 0.55);
  animation: live-pulse 1.6s ease-out infinite;
}

.live-visitors-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

@keyframes live-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(94, 226, 154, 0);
  }
}

main {
  max-width: none;
  margin: 0 auto;
  padding: 0 0 72px;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(200, 245, 66, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 245, 66, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 18%, #000 15%, transparent 72%);
}

.bg-orb {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.bg-orb-a {
  width: 420px;
  height: 420px;
  top: -90px;
  right: -60px;
  background: rgba(200, 245, 66, 0.16);
}

.bg-orb-b {
  width: 340px;
  height: 340px;
  top: 18%;
  left: -120px;
  background: rgba(124, 92, 255, 0.16);
}

.top-chrome,
.hero,
.how,
.scroll-hint,
#catalogs {
  position: relative;
  z-index: 1;
}

.how,
#catalogs,
.why {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
  max-width: 1120px;
  min-height: min(78vh, 720px);
  margin: 0 auto;
  padding: 48px 24px 28px;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 28px;
  }

  .hero-stage,
  .hero-char {
    min-height: 280px;
    height: 280px;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 750;
  text-decoration: none;
}

.btn-primary {
  background: var(--lime);
  color: #142008;
}

.btn-ghost {
  border-color: rgba(242, 246, 243, 0.18);
  color: var(--text);
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.hero-glow {
  position: absolute;
  width: 280px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 245, 66, 0.28), transparent 70%);
  filter: blur(8px);
}

.hero-char {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  height: 380px;
  object-fit: contain;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.35));
}

.hero-name {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  color: var(--lime);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px auto 36px;
  color: var(--lime);
  font-weight: 800;
  text-decoration: none;
}

.scroll-hint-arrow {
  animation: hint-bob 1.2s ease-in-out infinite;
}

@keyframes hint-bob {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero h1,
.how h2,
.why h2,
.section-head h2,
.card h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 0.95;
}

.lede {
  max-width: 42rem;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.how {
  margin-top: 48px;
}

.how h2,
.section-head h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.section-head p,
.steps p {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--lime);
  color: #142008;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 4px;
}

.why {
  margin-top: 48px;
}

.why h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.why-lead {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 18px;
}

.why-grid article {
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.why-grid h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.why-grid p,
.why-grid li {
  margin: 0;
  color: var(--muted);
}

.why-grid ul {
  margin: 0;
  padding-left: 1.1rem;
}

.why-grid li + li {
  margin-top: 6px;
}

.catalog-section {
  margin-top: 48px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.section-head code {
  color: var(--lime);
  font-size: 0.92em;
}

.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: visible;
}

.card.is-active {
  border-color: #ffb020;
  background: #2a2114;
  box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.7), 0 0 28px rgba(255, 160, 40, 0.45);
  animation: active-glow 1.8s ease-in-out infinite;
}

@keyframes active-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 176, 32, 0.55), 0 0 18px rgba(255, 160, 40, 0.28);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255, 196, 64, 0.95), 0 0 34px rgba(255, 170, 40, 0.62);
  }
}

.card-preview {
  display: grid;
  place-items: center;
  height: 176px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(232, 236, 228, 0.16), transparent 58%),
    linear-gradient(180deg, #24302a 0%, #151c19 100%);
}

.card-preview img {
  width: 104px;
  height: 104px;
  object-fit: contain;
  image-rendering: auto;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.card h3 {
  margin: 0;
  min-height: 2.6em;
  font-size: 1.15rem;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add {
  margin-top: auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: var(--lime);
  color: #142008;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.btn-add.is-active,
.btn-add.is-active:disabled {
  cursor: default;
  opacity: 1;
  background: #ffb020;
  color: #2a1604;
}

.badge-active {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(200, 245, 66, 0.16);
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 750;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: #f2f6f3;
  color: #142008;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.license-section {
  display: block;
  clear: both;
  width: 100%;
  max-width: 1080px;
  margin: 64px auto 0;
  padding: 0 20px 48px;
  position: relative;
  z-index: 1;
}

.license-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 18px;
  background: #121a17;
  border: 1px solid rgba(242, 246, 243, 0.12);
}

.license-copy h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.license-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  max-width: 36rem;
}

.license-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  font-weight: 750;
  color: var(--muted);
}

.license-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.license-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(242, 246, 243, 0.18);
  background: #0b1210;
  color: var(--text);
  font: inherit;
}

.license-row .btn {
  height: 44px;
  flex: 0 0 auto;
  padding: 0 16px;
}

.license-msg {
  margin: 10px 0 0;
  font-weight: 700;
}

.license-msg.is-error {
  color: #ff8b74;
}

.premium-unlocked {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--lime);
  font-weight: 750;
}

@media (max-width: 760px) {
  .license-card {
    grid-template-columns: 1fr;
  }
}

.btn-add.is-puzzle {
  background: #7c5cff;
  color: #fff;
}

.btn-add.is-unlock {
  background: #f5c16c;
  color: #2a1c08;
}

.badge-puzzle.is-license {
  background: rgba(245, 193, 108, 0.18);
  color: #f5c16c;
}

.badge-puzzle {
  align-self: flex-start;
  min-height: 1.6em;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.18);
  color: #d7ccff;
  font-size: 0.78rem;
  font-weight: 750;
}

.badge-puzzle.is-empty {
  visibility: hidden;
}

.puzzle-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.puzzle-modal[hidden] {
  display: none;
}

.puzzle-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 7, 0.72);
}

.puzzle-sheet {
  position: relative;
  width: min(420px, 100%);
  padding: 22px 20px 18px;
  border-radius: 18px;
  background: #16201c;
  border: 1px solid rgba(242, 246, 243, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.puzzle-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f2f6f3;
  font-size: 22px;
  cursor: pointer;
}

.puzzle-eyebrow {
  margin: 0 0 6px;
  color: #c8f542;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.puzzle-title {
  margin: 0;
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-size: 1.8rem;
}

.puzzle-sub,
.puzzle-hint {
  color: #9aafa4;
}

.puzzle-scramble {
  margin: 12px 0;
  letter-spacing: 0.28em;
  font-size: 1.6rem;
  font-weight: 800;
}

.puzzle-input {
  width: 100%;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(242, 246, 243, 0.16);
  background: #0b1210;
  color: #f2f6f3;
  font: inherit;
}

.puzzle-msg {
  min-height: 1.2em;
  margin: 0 0 10px;
  font-weight: 700;
}

.puzzle-msg.is-error {
  color: #ff8b74;
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

  .steps,
  .why-grid {
    grid-template-columns: 1fr;
  }
}
