:root {
  --bg: #07080c;
  --bg-elevated: #0e1017;
  --surface: #141722;
  --surface-hover: #1a1e2c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f2f3f7;
  --muted: #8b92a8;
  --accent: #c8f542;
  --accent-ink: #0a0c10;
  --lime: #c8f542;
  --lime-deep: #9bc41f;
  --blue: #5b8cff;
  --radius: 16px;
  --font-display: "Archivo Black", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(200, 245, 66, 0.1), transparent 55%),
    radial-gradient(900px 480px at -12% 35%, rgba(50, 90, 180, 0.14), transparent 52%),
    linear-gradient(180deg, #090b11 0%, var(--bg) 42%, #05060a 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  width: 100%;
}

.site-header-solid {
  position: relative;
  background: rgba(7, 8, 12, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.logo-word span {
  color: var(--accent);
}

.logo-img,
.hero-logo {
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  background: #0a0c10;
  box-shadow: 0 0 0 1px rgba(200, 245, 66, 0.25);
}

.logo-img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
}

.logo-img-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
}

.hero-logo {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 1px rgba(200, 245, 66, 0.35),
    0 18px 40px rgba(0, 0, 0, 0.45);
  animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a,
.back-link {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav a:hover,
.back-link:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: min(100vh, 900px);
  display: grid;
  align-items: end;
  padding: 6.5rem clamp(1.5rem, 4vw, 3.5rem) 4.5rem;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate(-1%, 1%); }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 10, 0.88) 0%, rgba(5, 6, 10, 0.45) 38%, rgba(5, 6, 10, 0.12) 70%, rgba(5, 6, 10, 0.35) 100%),
    linear-gradient(180deg, rgba(5, 6, 10, 0.4) 0%, rgba(5, 6, 10, 0.05) 42%, rgba(5, 6, 10, 0.85) 100%),
    radial-gradient(ellipse 45% 40% at 78% 40%, rgba(200, 245, 66, 0.12), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  animation: riseIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brand-signal {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.4rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
}

.hero-headline {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.88rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #d6ff63;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-unlock {
  width: 100%;
  min-height: 3.15rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem 4.5rem;
}

.section-head {
  margin-bottom: 2rem;
  max-width: 36rem;
}

.section-head h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.disclaimer h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 52rem;
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.coupon {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent 42%),
    var(--surface);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.coupon::before {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--coupon-accent, var(--accent));
  opacity: 0.14;
  filter: blur(16px);
}

.coupon:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--coupon-accent, var(--accent)) 42%, transparent);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), transparent 42%),
    var(--surface-hover);
}

.coupon-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.coupon-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo-wrap-lg {
  width: 64px;
  height: 64px;
  border-radius: 12px;
}

.brand-logo-wrap-xl {
  width: 76px;
  height: 76px;
  border-radius: 16px;
}

.coupon-logo-only {
  min-height: 250px;
}

.coupon-logo-stage {
  display: grid;
  place-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0.35rem;
}

.coupon-top-end {
  justify-content: flex-end;
}

.brand-wordmark {
  display: block;
  width: min(100%, 220px);
  height: 36px;
  object-fit: contain;
}

.brand-wordmark-lg {
  width: min(100%, 280px);
  height: 44px;
  margin: 0.35rem auto 0.75rem;
}

.generator-brand-stack {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
}

.generator-brand-stack .claim-copy {
  width: 100%;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.brand-logo[src$=".svg"] {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.brand-logo-wrap.is-loaded .brand-logo {
  opacity: 1;
}

.brand-fallback {
  position: absolute;
  font-family: var(--font-display);
  color: var(--bg);
  font-size: 1.1rem;
  display: none;
}

.brand-logo-wrap.is-fallback {
  background: linear-gradient(145deg, var(--accent), var(--lime-deep));
}

.brand-logo-wrap.is-fallback .brand-fallback {
  display: grid;
  place-items: center;
  color: var(--accent-ink);
  inset: 0;
}

.coupon-brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.coupon-tag {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.coupon-value {
  flex-shrink: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--coupon-accent, var(--accent)) 45%, transparent);
  color: var(--coupon-accent, var(--accent));
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.25);
}

.coupon-offer {
  margin: 1rem 0 0;
  color: #d8dce8;
  font-size: 0.95rem;
  font-weight: 500;
}

.coupon-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--line-strong);
}

.coupon-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.steps li {
  padding: 1.35rem 1.2rem;
  border-top: 2px solid var(--accent);
  background: linear-gradient(180deg, rgba(200, 245, 66, 0.06), transparent 65%);
}

.step-num {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 0.95rem;
}

.steps h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.95rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.generator-page {
  min-height: 100vh;
}

.generator {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

.generator-card {
  padding: 1.5rem 1.35rem 1.6rem;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(200, 245, 66, 0.06), transparent 40%),
    var(--bg-elevated);
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.generator-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.generator-kicker {
  margin: 0 0 0.25rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.generator-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.generator-sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.stage[hidden] {
  display: none;
}

.radar {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0.5rem auto 1.35rem;
}

.radar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(200, 245, 66, 0.28);
  animation: radarPulse 2.4s ease-out infinite;
}

.radar-ring:nth-child(2) {
  inset: 18%;
  animation-delay: 0.4s;
}

.radar-ring:nth-child(3) {
  inset: 36%;
  animation-delay: 0.8s;
}

@keyframes radarPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1); }
}

.radar-beam {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(200, 245, 66, 0.45) 50deg, transparent 80deg);
  animation: spin 2.2s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.radar-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(200, 245, 66, 0.2);
}

.code-window {
  position: relative;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.code-scramble {
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-align: center;
  color: #e8ecd8;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--blue), transparent);
  animation: scanMove 1.6s ease-in-out infinite;
  opacity: 0.85;
}

@keyframes scanMove {
  0% { top: 8%; }
  50% { top: 82%; }
  100% { top: 8%; }
}

.progress-wrap {
  margin-bottom: 1.15rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.progress-track {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--lime-deep), var(--accent), #9be05a);
  transition: width 0.12s linear;
}

.scan-log {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0.9rem;
  max-height: 150px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}

.scan-log li {
  animation: riseIn 0.35s ease both;
}

.scan-log li::before {
  content: "› ";
  color: var(--accent);
  font-weight: 700;
}

.stage-result {
  text-align: center;
  padding-top: 0.35rem;
  animation: riseIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(200, 245, 66, 0.35);
  background: rgba(200, 245, 66, 0.1);
  color: #d8f58a;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.result-label {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.result-code {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 auto 1rem;
  max-width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px dashed color-mix(in srgb, var(--coupon-accent, var(--accent)) 50%, transparent);
  background: rgba(0, 0, 0, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  letter-spacing: 0.1em;
  user-select: none;
  /* No blur — visible prefix, masked suffix only */
  filter: none;
}

.code-visible {
  color: var(--text);
  font-weight: 600;
}

.code-hidden {
  color: color-mix(in srgb, var(--coupon-accent, var(--accent)) 75%, #fff 25%);
  opacity: 0.7;
  letter-spacing: 0.18em;
}

.result-hint {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .hero {
    min-height: 78vh;
    align-items: center;
    padding-bottom: 3rem;
  }

  .hero-content {
    margin: 0;
  }

  .coupon-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .coupon-footer .btn {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
