/* ========== reset & base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  background: #0a0a0c;
  color: #f4f4f4;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== background ========== */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255, 215, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 215, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(198, 54, 60, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 10% 90%, rgba(12, 64, 118, 0.22), transparent 60%);
}

/* ========== layout helpers ========== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 24px; position: relative; }
.kicker {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: #ffd700; letter-spacing: 0.08em;
  margin-bottom: 16px; opacity: 0.7;
}
h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05; letter-spacing: 0.5px;
  margin-bottom: 32px;
}
h2 em { font-style: italic; color: #ffd700; }

/* ========== Serbian flag (waving) ========== */
.flag-wrap {
  position: fixed; top: 24px; left: 24px;
  z-index: 50; pointer-events: none;
  width: 110px; height: 80px;
}
.flagpole {
  position: absolute; left: 0; top: -10px;
  width: 4px; height: 120px;
  background: linear-gradient(180deg, #d4af37, #8b6914);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}
.flagpole::before {
  content: ''; position: absolute; top: -6px; left: -3px;
  width: 10px; height: 10px; background: #d4af37; border-radius: 50%;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}
.flag {
  position: absolute; left: 4px; top: 0;
  width: 100px; height: 66px;
  display: flex; flex-direction: column;
  transform-origin: left center;
  animation: flagWave 2.4s ease-in-out infinite;
  filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.5));
}
.stripe { flex: 1; transform-origin: left center; }
.stripe.red { background: #c6363c; animation: stripeWave 2.4s ease-in-out infinite; animation-delay: 0s; }
.stripe.blue { background: #0c4076; animation: stripeWave 2.4s ease-in-out infinite; animation-delay: 0.1s; }
.stripe.white { background: #f4f4f4; animation: stripeWave 2.4s ease-in-out infinite; animation-delay: 0.2s; }

@keyframes flagWave {
  0%, 100% { transform: skewY(-2deg) translateX(0); }
  25%      { transform: skewY(2deg)  translateX(2px); }
  50%      { transform: skewY(3deg)  translateX(-1px); }
  75%      { transform: skewY(-3deg) translateX(1px); }
}
@keyframes stripeWave {
  0%, 100% { transform: skewX(0deg); }
  50%      { transform: skewX(-4deg); }
}

/* ========== music box ========== */
.music-box {
  position: fixed; top: 24px; right: 24px; z-index: 50;
}
#music-toggle {
  background: rgba(20, 20, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  color: #ffd700;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s ease;
}
#music-toggle:hover {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
  transform: translateY(-1px);
}
#music-toggle.playing { background: #ffd700; color: #0a0a0c; }
#music-frame { position: absolute; top: -9999px; left: -9999px; }

/* ========== hero ========== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
}
.badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.2em;
  color: #ffd700; padding: 6px 14px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 11vw, 144px);
  line-height: 0.9; letter-spacing: 1px;
  background: linear-gradient(180deg, #fff 0%, #ffd700 60%, #c6363c 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 60px rgba(255, 215, 0, 0.15);
  margin-bottom: 24px;
}
.hero h1 .tm {
  font-size: 0.3em; vertical-align: super;
  -webkit-text-fill-color: #ffd700;
  letter-spacing: 0;
}
.tagline {
  font-size: clamp(18px, 2.4vw, 26px);
  max-width: 720px;
  color: #d8d8d8; margin-bottom: 12px;
}
.hl { color: #ffd700; font-weight: 900; }
.sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(14px, 1.6vw, 18px);
  color: #999; margin-bottom: 40px;
  font-style: italic;
}
.micro { margin-top: 24px; font-size: 12px; color: #666; letter-spacing: 0.1em; }
.ghost { color: #444; }

/* ========== CTA button ========== */
.cta {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 0.1em;
  background: linear-gradient(135deg, #ffd700 0%, #c6363c 100%);
  color: #0a0a0c;
  border: none;
  padding: 18px 44px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 900;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25);
  animation: ctaPulse 2.4s ease-in-out infinite;
}
.cta.big { font-size: 28px; padding: 22px 60px; }
.cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5); }
.cta:active { transform: translateY(0) scale(0.98); }
.cta.shake { animation: shake 0.4s ease-in-out; }

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25); }
  50%      { box-shadow: 0 8px 50px rgba(255, 215, 0, 0.55); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-2deg); }
  40% { transform: translateX(8px) rotate(2deg); }
  60% { transform: translateX(-6px) rotate(-1deg); }
  80% { transform: translateX(6px) rotate(1deg); }
}

/* ========== stats ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stat .num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(48px, 6vw, 88px);
  line-height: 1; color: #ffd700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}
.stat .lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 0.15em;
  color: #888; margin-top: 8px;
}

/* ========== about ========== */
.about p { font-size: 18px; color: #d0d0d0; max-width: 700px; margin-bottom: 16px; }
.about strong { color: #ffd700; }
.about .aside {
  font-style: italic; color: #888; font-family: 'JetBrains Mono', monospace;
  font-size: 14px; margin-top: 24px;
}

/* ========== curriculum ========== */
.modules { list-style: none; display: grid; gap: 16px; }
.modules li {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.25s ease;
}
.modules li:hover {
  border-color: rgba(255, 215, 0, 0.4);
  background: rgba(255, 215, 0, 0.03);
  transform: translateX(6px);
}
.modules .n {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; color: #ffd700; line-height: 1;
  min-width: 60px;
}
.modules h3 { font-size: 18px; margin-bottom: 4px; color: #fff; }
.modules p { color: #999; font-size: 14px; }

/* ========== testimonials ========== */
.quotes { display: grid; gap: 24px; }
@media (min-width: 800px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
blockquote {
  padding: 28px;
  border-left: 3px solid #c6363c;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 8px 8px 0;
}
blockquote p { font-size: 16px; color: #d0d0d0; margin-bottom: 16px; font-style: italic; }
blockquote cite { font-style: normal; font-size: 13px; color: #888; font-family: 'JetBrains Mono', monospace; }

/* ========== bonuses ========== */
.bonuses ul { list-style: none; display: grid; gap: 12px; }
.bonuses li {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 215, 0, 0.04);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}
.bonuses li:hover { border-color: rgba(255, 215, 0, 0.4); transform: translateX(4px); }
.bonuses li span { font-size: 24px; }

/* ========== pricing ========== */
.price-card {
  text-align: center;
  padding: 64px 32px;
  background: linear-gradient(135deg, rgba(198, 54, 60, 0.08), rgba(255, 215, 0, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 16px;
  max-width: 600px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; inset: -2px; z-index: -1;
  background: conic-gradient(from 0deg, #ffd700, #c6363c, #0c4076, #ffd700);
  filter: blur(40px); opacity: 0.3;
  animation: spin 12s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.price-old {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; color: #666;
  text-decoration: line-through;
  margin-bottom: 8px;
}
.price-new {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 120px; line-height: 1;
  color: #ffd700;
  text-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  margin-bottom: 16px;
}
.price-note { color: #aaa; margin-bottom: 32px; font-size: 15px; line-height: 1.6; }
.urgency {
  margin-top: 24px; font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: #c6363c; letter-spacing: 0.1em;
}

/* ========== footer ========== */
footer {
  padding: 80px 24px 60px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.brand { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: #ffd700; letter-spacing: 0.1em; }
.motto { color: #888; margin: 12px 0; font-style: italic; }
.disclaimer { color: #555; font-size: 12px; max-width: 600px; margin: 32px auto 0; line-height: 1.6; }

/* ========== reveal animation ========== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ========== modal ========== */
.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 100;
}
.modal.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-card {
  background: #161618;
  border: 1px solid rgba(255, 215, 0, 0.3);
  padding: 40px 48px;
  border-radius: 12px;
  text-align: center;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-card p {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px; color: #ffd700;
  margin-bottom: 24px; letter-spacing: 1px;
}
.modal-buttons { display: flex; gap: 12px; justify-content: center; }
.modal-buttons button {
  padding: 12px 28px; border: none; border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px; letter-spacing: 0.1em;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
#modal-yes { background: linear-gradient(135deg, #ffd700, #c6363c); color: #0a0a0c; font-weight: 900; }
#modal-no { background: rgba(255,255,255,0.08); color: #fff; }
.modal-buttons button:hover { transform: translateY(-2px); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ========== confetti ========== */
.confetti {
  position: fixed; pointer-events: none; z-index: 200;
  width: 10px; height: 14px;
  animation: fall linear forwards;
}
@keyframes fall {
  to { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

/* ========== mobile ========== */
@media (max-width: 600px) {
  .flag-wrap { width: 70px; height: 50px; top: 16px; left: 16px; }
  .flag { width: 64px; height: 42px; }
  .flagpole { height: 80px; }
  #music-toggle .music-label { display: none; }
  #music-toggle { padding: 10px 12px; }
  section { padding: 64px 20px; }
  .hero { padding: 80px 20px 60px; }
  .modules li { padding: 18px 20px; gap: 16px; }
  .modules .n { font-size: 36px; min-width: 44px; }
}
