:root {
  --ink: #0b1210;
  --ink-2: #121a17;
  --panel: #16201c;
  --text: #f2f6f3;
  --muted: #9aafa4;
  --lime: #c8f542;
  --lime-deep: #9fc91e;
  --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: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}

.ext-banner {
  padding: 12px 18px;
  background: rgba(255, 107, 74, 0.16);
  border-bottom: 1px solid rgba(255, 107, 74, 0.35);
  color: var(--text);
  font-size: 0.92rem;
  text-align: center;
}

.ext-banner strong {
  color: #ffb3a0;
}

.ext-banner a {
  color: var(--lime);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ext-banner a:hover {
  color: #e8ff8a;
}

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

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

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

.bg-orb-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -40px;
  background: rgba(200, 245, 66, 0.18);
  animation: drift 12s ease-in-out infinite alternate;
}

.bg-orb-b {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -100px;
  background: rgba(255, 107, 74, 0.14);
  animation: drift 16s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to { transform: translate(30px, 40px); }
}

.nav,
.hero,
.how,
.catalog-section,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px clamp(20px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

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

.brand img {
  border-radius: 10px;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.nav-coffee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 180, 100, 0.4);
  background: linear-gradient(135deg, rgba(255, 170, 80, 0.22), rgba(120, 60, 30, 0.16));
  color: var(--text) !important;
  font-weight: 650 !important;
}

.nav-coffee:hover {
  border-color: rgba(255, 200, 120, 0.7);
  color: var(--text) !important;
}

.nav-meta {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.nav-meta strong {
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  min-height: min(88vh, 820px);
  padding: clamp(32px, 6vh, 72px) clamp(20px, 4vw, 48px) clamp(40px, 6vh, 64px);
  max-width: 1200px;
  margin: 0 auto;
}

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

.brand-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.lede {
  margin: 0 0 28px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary:hover {
  background: var(--lime-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: rgba(200, 245, 66, 0.45);
}

.hero-stage {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 70%;
  height: 55%;
  bottom: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 245, 66, 0.35), transparent 70%);
  animation: pulse 3.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-char {
  position: relative;
  z-index: 2;
  width: min(100%, 380px);
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.55));
  animation: floaty 4.2s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.hero-char.is-swap {
  opacity: 0;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-desk {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(242, 246, 243, 0.12), transparent);
  z-index: 1;
}

.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 48px) 56px;
}

.how h2,
.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

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

.steps li {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 32, 28, 0.9), rgba(18, 26, 23, 0.6));
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--lime);
  color: #102010;
  font-weight: 800;
  font-size: 0.85rem;
}

.steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.catalog-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px clamp(20px, 4vw, 48px) 80px;
}

.section-head {
  margin-bottom: 22px;
}

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

.catalog {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 245, 66, 0.35);
  box-shadow: var(--shadow);
}

.card-preview {
  aspect-ratio: 1;
  background:
    radial-gradient(ellipse at 50% 80%, rgba(200, 245, 66, 0.12), transparent 55%),
    #0d1411;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
}

.card-preview img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  object-position: center bottom;
}

.card-body {
  padding: 14px 16px 16px;
  display: grid;
  gap: 10px;
}

.card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.btn-add {
  width: 100%;
  padding: 11px 14px;
  border: none;
  border-radius: 12px;
  background: var(--lime);
  color: #102010;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
}

.btn-add:hover {
  background: var(--lime-deep);
  transform: scale(1.01);
}

.btn-add.is-added {
  background: transparent;
  color: var(--lime);
  border: 1px solid rgba(200, 245, 66, 0.45);
}

.btn-add.is-remove {
  color: #ffb3a0;
  border-color: rgba(255, 107, 74, 0.45);
}

.btn-add.is-full {
  background: transparent;
  color: var(--coral);
  border: 1px solid rgba(255, 107, 74, 0.45);
}

.badge-free {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 18, 16, 0.75);
  color: var(--lime);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-lock {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 18, 16, 0.8);
  color: #ffc46b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.card.is-locked .card-preview img {
  filter: brightness(0.55);
}

.btn-add.is-locked {
  background: transparent;
  color: #ffc46b;
  border: 1px solid rgba(255, 196, 107, 0.45);
}

.license-section {
  padding: 48px clamp(20px, 4vw, 48px) 32px;
  max-width: 920px;
  margin: 0 auto;
}

.license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.license-head-copy {
  flex: 1;
  min-width: 220px;
}

.license-head-copy h2 {
  margin: 0 0 8px;
}

.license-head-copy p {
  margin: 0;
}

.coffee-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 180, 100, 0.4);
  background: linear-gradient(135deg, rgba(255, 170, 80, 0.22), rgba(120, 60, 30, 0.18));
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.coffee-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 200, 120, 0.7);
}

.coffee-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.coffee-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.coffee-text strong {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 750;
}

.coffee-text small {
  color: var(--muted);
  font-size: 0.82rem;
}

.license-panel {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.license-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.license-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11, 18, 16, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.license-input:focus {
  outline: none;
  border-color: rgba(200, 245, 66, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 245, 66, 0.15);
}

.license-msg {
  margin: 0;
  font-size: 0.9rem;
}

.license-msg.is-error {
  color: var(--coral);
}

.license-msg.is-ok {
  color: var(--lime);
}

.premium-unlocked {
  margin: 18px 0 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--lime);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px clamp(20px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
}

.footer-muted {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(90px);
  padding: 12px 18px;
  border-radius: 12px;
  background: #1a2621;
  border: 1px solid rgba(200, 245, 66, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.live-visitors {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  pointer-events: none;
  user-select: 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 strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  font-size: 1.05rem;
  min-width: 1.2em;
  text-align: center;
}

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

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

@media (max-width: 640px) {
  .live-visitors {
    left: 10px;
    bottom: 10px;
    font-size: 0.86rem;
    padding: 8px 12px 8px 10px;
  }

  .live-visitors strong {
    font-size: 0.98rem;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-stage {
    min-height: 320px;
    order: -1;
  }

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

  .nav-links {
    display: none;
  }
}
