/* ====================================================
   HOMEPAGE — King Burger's Store
   Requires: theme.css + cp.css loaded first
   ==================================================== */

body {
  background: var(--cp-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: var(--cp-text);
}
main { flex: 1; }

.sr-only:focus-visible {
  position: fixed;
  top: 1rem; left: 1rem;
  width: auto; height: auto;
  padding: 0.75rem 1.5rem;
  margin: 0; overflow: visible;
  clip: auto; white-space: normal;
  background: var(--cp-cyan); color: #000;
  font-weight: 700; border-radius: 2px;
  box-shadow: var(--glow-c); z-index: 9999;
  text-decoration: none;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.08em;
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: 52% 48%;
  min-height: 92vh;
  min-height: 92svh;
}

.hero-left {
  background: var(--cp-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 5rem 3.5rem 4.5rem 4.5rem;
}
.hero-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at -5% 0%, rgba(0,240,255,0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 110% 105%, rgba(255,0,102,0.07) 0%, transparent 50%);
  pointer-events: none;
}

.hero-wm {
  position: absolute;
  bottom: -2.5rem;
  left: -1rem;
  font-size: clamp(5.5rem, 12vw, 11rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,240,255,0.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  z-index: 1;
}

.hero-left-body { position: relative; z-index: 2; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,240,255,0.05);
  border: 1px solid rgba(0,240,255,0.22);
  color: var(--cp-cyan);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  font-family: 'Orbitron', sans-serif;
}
.hero-eyebrow i { font-size: 0.58rem; }

.hero-title {
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.75rem;
  text-transform: uppercase;
}
.hero-title .glitch-line {
  display: block;
  animation: glitch 9s ease-in-out infinite;
}
.hero-title .accent-line {
  display: block;
  font-size: 0.8em;
  color: var(--cp-cyan);
  text-shadow: var(--glow-c);
}

@keyframes glitch {
  0%, 88%, 100% { text-shadow: none; transform: translate(0); }
  90%  { text-shadow: -3px 0 var(--cp-pink), 3px 0 var(--cp-cyan); transform: translate(-1px, 0); }
  92%  { text-shadow: 3px 0 var(--cp-pink), -3px 0 var(--cp-cyan); transform: translate(1px, 0); }
  94%  { text-shadow: -2px 0 var(--cp-pink), 2px 0 var(--cp-cyan); transform: translate(0); }
  96%  { text-shadow: 4px 0 var(--cp-pink), -4px 0 var(--cp-cyan); transform: translate(-1px, 1px); }
  98%  { text-shadow: none; transform: translate(0); }
}

.hero-sub {
  font-size: 0.9375rem;
  color: var(--cp-muted);
  line-height: 1.8;
  margin-bottom: 2.75rem;
  max-width: 380px;
}

.hero-btns { display: flex; gap: 0.875rem; flex-wrap: wrap; }

/* Override .btn-neon padding for the larger hero buttons */
.hero-btns .btn-neon,
.hero-btns .btn-ghost-neon {
  padding: 0.9375rem 2rem;
}

/* Hero right panel */
.hero-right {
  background: var(--cp-bg2);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 3rem;
}
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.hero-right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 100% 0%, rgba(255,0,102,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero-right-wm {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 10vw, 8.5rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,240,255,0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  z-index: 1;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #0a0a30, #04040f);
  border: 1.5px solid rgba(0,240,255,0.35);
  box-shadow:
    0 0 0 12px rgba(0,240,255,0.04),
    0 0 0 30px rgba(0,240,255,0.02),
    0 0 60px rgba(0,240,255,0.22),
    inset 0 0 40px rgba(0,240,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: orb-float 7s ease-in-out infinite;
}
.hero-orb i { font-size: 5rem; color: var(--cp-cyan); text-shadow: var(--glow-c); }

@keyframes orb-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-14px) scale(1.02); }
}

.chip {
  position: absolute;
  background: rgba(8,8,24,0.92);
  border: 1px solid var(--cp-border);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  box-shadow: 0 0 20px rgba(0,240,255,0.08), 0 8px 28px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.625rem;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}
.chip-1 {
  top: -1.25rem; right: -3rem;
  animation: chip-float-a 9s ease-in-out infinite;
}
.chip-2 {
  bottom: -0.75rem; left: -2.75rem;
  animation: chip-float-b 11s ease-in-out infinite;
  border-color: rgba(255,0,102,0.2);
  box-shadow: 0 0 20px rgba(255,0,102,0.08), 0 8px 28px rgba(0,0,0,0.5);
}
@keyframes chip-float-a {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%       { transform: translateY(-10px) rotate(1deg); }
}
@keyframes chip-float-b {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50%       { transform: translateY(-8px) rotate(-1.5deg); }
}
.chip-icon {
  width: 28px; height: 28px;
  border-radius: 2px;
  background: rgba(0,240,255,0.07);
  border: 1px solid rgba(0,240,255,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chip-2 .chip-icon { background: rgba(255,0,102,0.07); border-color: rgba(255,0,102,0.18); }
.chip-icon i { color: var(--cp-cyan); font-size: 0.75rem; }
.chip-2 .chip-icon i { color: var(--cp-pink); }
.chip-kicker {
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(216,228,255,0.3);
  display: block;
  font-family: 'Orbitron', sans-serif;
}
.chip-val { font-size: 0.875rem; font-weight: 700; color: var(--cp-text); display: block; letter-spacing: -0.01em; }

.hero-edge-label {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(0,240,255,0.16);
  white-space: nowrap;
  pointer-events: none;
  font-family: 'Orbitron', sans-serif;
}

/* ── Stats Strip ── */
.stats-strip {
  background: #050510;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid rgba(0,240,255,0.07);
  border-bottom: 1px solid rgba(0,240,255,0.07);
  position: relative;
  overflow: hidden;
}
.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(0,240,255,0.018) 48px,
    rgba(0,240,255,0.018) 49px
  );
  pointer-events: none;
}
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.stat {
  text-align: center;
  padding: 0.75rem 1rem;
  border-right: 1px solid rgba(0,240,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  color: var(--cp-cyan);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0,240,255,0.38);
}
.stat-num sup { font-size: 0.5em; color: var(--cp-pink); vertical-align: super; }
.stat-tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216,228,255,0.28);
  font-family: 'Orbitron', sans-serif;
}

/* ── Showcase Cards ── */
.showcase-section { background: var(--cp-bg); padding: 5rem 1.5rem; }
.showcase-wrap {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.scard {
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.25rem 2.5rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid rgba(0,240,255,0.1);
  transition: transform 250ms cubic-bezier(0.22,1,0.36,1), box-shadow 250ms, border-color 250ms;
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 45px rgba(0,240,255,0.13), 0 28px 60px rgba(0,0,0,0.55);
  border-color: rgba(0,240,255,0.38);
}
.scard:focus-visible { outline: 2px solid var(--cp-cyan); outline-offset: 4px; }
.scard-dark { background: #080818; }
.scard-brand { background: #0b0020; border-color: rgba(255,0,102,0.14); }
.scard-brand:hover {
  border-color: rgba(255,0,102,0.42);
  box-shadow: 0 0 45px rgba(255,0,102,0.12), 0 28px 60px rgba(0,0,0,0.55);
}
.scard::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.018) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.scard-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 85% 12%, rgba(0,240,255,0.07) 0%, transparent 55%);
  pointer-events: none;
}
.scard-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 55% at 85% 12%, rgba(255,0,102,0.1) 0%, transparent 55%);
  pointer-events: none;
}
.scard-bg-icon {
  position: absolute;
  top: 1.75rem; right: 2rem;
  font-size: 7rem;
  color: rgba(0,240,255,0.038);
  pointer-events: none;
  line-height: 1;
  z-index: 1;
}
.scard-brand .scard-bg-icon { color: rgba(255,0,102,0.045); }
.scard-body { position: relative; z-index: 2; }
.scard-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-cyan);
  margin-bottom: 0.875rem;
  font-family: 'Orbitron', sans-serif;
}
.scard-brand .scard-kicker { color: var(--cp-pink); }
.scard-kicker::before {
  content: '';
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  flex-shrink: 0;
}
.scard-title {
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  max-width: 280px;
}
.scard-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background 180ms, box-shadow 180ms;
}
.scard-dark .scard-btn { background: transparent; color: var(--cp-cyan); border: 1.5px solid rgba(0,240,255,0.32); }
.scard-dark .scard-btn:hover { background: rgba(0,240,255,0.08); box-shadow: var(--glow-c); }
.scard-brand .scard-btn { background: transparent; color: var(--cp-pink); border: 1.5px solid rgba(255,0,102,0.32); }
.scard-brand .scard-btn:hover { background: rgba(255,0,102,0.08); box-shadow: var(--glow-p); }

/* ── Best Sellers ── */
.bestsellers-section {
  background: var(--cp-bg2);
  padding: 5.5rem 1.5rem 6rem;
  border-top: 1px solid rgba(0,240,255,0.06);
}
.bestsellers-wrap { max-width: 1200px; margin: 0 auto; }
.bestsellers-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.bestsellers-kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cp-cyan);
  margin-bottom: 0.625rem;
  font-family: 'Orbitron', sans-serif;
}
.bestsellers-kicker::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1.5px;
  background: var(--cp-cyan);
  border-radius: 1px;
}
.bestsellers-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  line-height: 0.97;
  text-transform: uppercase;
  color: #fff;
}
.bestsellers-title .muted { color: rgba(255,255,255,0.1); }
.bestsellers-sub { margin-top: 0.625rem; color: var(--cp-muted); font-size: 0.9375rem; }

.bestsellers-section .kb-btn-outline {
  border-color: rgba(0,240,255,0.28);
  color: var(--cp-cyan);
  background: transparent;
  border-radius: 2px;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.bestsellers-section .kb-btn-outline:hover {
  background: rgba(0,240,255,0.06);
  border-color: var(--cp-cyan);
  box-shadow: var(--glow-c);
  transform: translateY(-1px);
}

#products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1.25rem;
}

/* ── CTA Section ── */
.cta-section {
  background: #03030c;
  position: relative;
  overflow: hidden;
  padding: 7rem 1.5rem;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 65% at 50% 50%, rgba(157,0,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 35% 35% at 5% 10%, rgba(0,240,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse 35% 35% at 95% 90%, rgba(255,0,102,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.cta-wm {
  position: absolute;
  bottom: -2.5rem; right: -1rem;
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,240,255,0.045);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
  z-index: 1;
}
.cta-inner { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; }
.cta-kicker {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cp-cyan);
  display: block;
  margin-bottom: 1.5rem;
  font-family: 'Orbitron', sans-serif;
  text-shadow: 0 0 10px rgba(0,240,255,0.4);
}
.cta-title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 900;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 0.97;
  margin-bottom: 1.125rem;
  text-transform: uppercase;
  text-wrap: balance;
}
.cta-title .italic { color: var(--cp-pink); font-style: normal; text-shadow: var(--glow-p); }
.cta-sub { color: var(--cp-muted); font-size: 1rem; margin-bottom: 3rem; line-height: 1.75; }
.cta-btns { display: flex; gap: 0.875rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer {
  background: #020208;
  border-top: 1px solid rgba(0,240,255,0.06);
  padding: 2rem 1.5rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand { font-size: 0.6rem; font-family: 'Orbitron', sans-serif; letter-spacing: 0.08em; color: rgba(216,228,255,0.28); }
.footer-brand strong { color: var(--cp-cyan); }
.footer-nav { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a {
  font-size: 0.58rem;
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(216,228,255,0.22);
  text-decoration: none;
  transition: color 180ms, text-shadow 180ms;
}
.footer-nav a:hover { color: var(--cp-cyan); text-shadow: 0 0 8px rgba(0,240,255,0.5); }
.footer-copy { font-size: 0.58rem; font-family: 'Orbitron', sans-serif; letter-spacing: 0.07em; color: rgba(216,228,255,0.14); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-left { min-height: 65vh; padding: 5.5rem 2rem 3.5rem; justify-content: flex-end; }
  .hero-right { min-height: 320px; padding: 3.5rem 2rem; }
  .hero-edge-label { display: none; }
  .chip-1 { top: 1.5rem; right: 1.5rem; }
  .chip-2 { bottom: 1.5rem; left: 1.5rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .showcase-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-left { padding: 5rem 1.5rem 3rem; }
  .hero-orb { width: 168px; height: 168px; }
  .hero-orb i { font-size: 3.75rem; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(0,240,255,0.05); }
  .stat:last-child, .stat:nth-last-child(2) { border-bottom: none; }
  .bestsellers-header { align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; max-width: 280px; margin: 0 auto; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-nav { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
