/* ═══════════════════════════════════════════════
   CODEJET — Precision Launch Design System
   ═══════════════════════════════════════════════ */

:root {
  --bg:        #09090f;
  --surface:   #111119;
  --elevated:  #17172a;
  --purple:    #6d28d9;
  --purple-l:  #8b5cf6;
  --purple-ll: #c084fc;
  --white:     #fafaf9;
  --gray:      #9ca3af;
  --dim:       #4b5563;
  --border:    rgba(109, 40, 217, 0.2);
  --border-h:  rgba(139, 92, 246, 0.5);
  --glow:      rgba(109, 40, 217, 0.35);
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--purple) var(--surface);
  scrollbar-width: thin;
}

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a, a:hover, a:focus { text-decoration: none; color: inherit; }

/* ── Starfield ────────────────────────────────── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Ambient glow orbs ────────────────────────── */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}
.glow-1 {
  width: 640px; height: 640px;
  background: rgba(109, 40, 217, 0.07);
  top: -220px; left: -120px;
}
.glow-2 {
  width: 480px; height: 480px;
  background: rgba(192, 132, 252, 0.05);
  bottom: 0; right: -120px;
}

/* ── Page wrapper ─────────────────────────────── */
.page-wrap { position: relative; z-index: 1; }

/* ── Navbar ───────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(9, 9, 15, 0.88);
  border-bottom: 1px solid var(--border);
}

.header .container-fluid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 40px;
}

.header .brand-container { justify-self: start; }
.header .nav             { justify-self: center; }
.header .nav-toggle      { justify-self: end; }

.brand-container a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  color: var(--purple-l);
  display: flex;
  align-items: center;
  transition: transform 0.35s ease;
}
.brand-container a:hover .brand-icon {
  transform: rotate(-15deg) translateY(-2px);
}

.navbar-brand,
.navbar-brand span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.55rem;
  letter-spacing: 0.1em;
  color: var(--white) !important;
  line-height: 1;
}

.blinking-cursor {
  color: var(--purple-l);
  animation: blink 1s step-end infinite;
  font-family: 'Figtree', sans-serif;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Nav pill */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 5px 8px;
  position: relative;
}

.nav-item {
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--gray);
  padding: 7px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.nav-item:hover { color: var(--white); }
.nav-item.is-active { color: var(--white); }

.nav-indicator {
  position: absolute;
  height: 5px;
  bottom: -1px;
  border-radius: 8px 8px 0 0;
  transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

/* ── Main area ────────────────────────────────── */
.main-area {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.sub-page .main-area { min-height: auto; }

/* ── Hero ─────────────────────────────────────── */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 80px 0 100px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-ll);
  background: rgba(109, 40, 217, 0.1);
  border: 1px solid rgba(109, 40, 217, 0.28);
  border-radius: 50px;
  padding: 6px 16px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-ll);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.2rem, 6.5vw, 5.8rem);
  line-height: 1.0;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 22px;
}
.hero-title .hero-accent {
  background: linear-gradient(90deg, var(--purple-l) 0%, var(--purple-ll) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 440px;
  line-height: 1.75;
  margin-bottom: 40px;
}

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-primary-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--purple);
  color: var(--white) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: all 0.22s ease;
}
.btn-primary-cta:hover {
  background: var(--purple-l);
  box-shadow: 0 8px 32px var(--glow);
  transform: translateY(-2px);
  color: var(--white) !important;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  color: var(--gray) !important;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.93rem;
  transition: all 0.22s ease;
}
.btn-ghost:hover {
  border-color: var(--border-h);
  color: var(--white) !important;
}

/* ── Hero visual (rocket + orbits) ───────────── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 440px;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(109, 40, 217, 0.18);
}
.orbit-1 { width: 300px; height: 300px; animation: spin 22s linear infinite; }
.orbit-2 { width: 200px; height: 200px; border-color: rgba(192,132,252,0.13); animation: spin 15s linear infinite reverse; }
.orbit-3 { width: 400px; height: 400px; border-color: rgba(109,40,217,0.07); animation: spin 34s linear infinite; }

.orbit::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple-l);
  top: -4px; left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--purple-l), 0 0 20px rgba(139,92,246,0.4);
}
.orbit-3::after { background: var(--purple-ll); box-shadow: 0 0 8px var(--purple-ll); width: 6px; height: 6px; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-rocket {
  position: relative;
  z-index: 2;
  animation: rocketFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 0 32px rgba(109,40,217,0.45)) drop-shadow(0 0 64px rgba(109,40,217,0.2));
}
@keyframes rocketFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

/* ── Generic section ──────────────────────────── */
.section { position: relative; z-index: 1; padding: 100px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--white);
  margin-bottom: 14px;
}

.section-sub {
  font-size: 1rem;
  color: var(--gray);
  line-height: 1.75;
  max-width: 520px;
}

.heading-center { text-align: center; }
.heading-center .section-sub { margin: 0 auto; }

/* ── Pricing ──────────────────────────────────── */
.price-section { position: relative; z-index: 1; padding: 100px 0; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 52px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(109,40,217,0.04) 0%, transparent 55%);
  pointer-events: none;
}
.price-card:hover {
  border-color: var(--border-h);
  box-shadow: 0 0 40px rgba(109,40,217,0.1), 0 20px 48px rgba(0,0,0,0.35);
  transform: translateY(-4px);
}
.price-card.featured {
  border-color: rgba(109,40,217,0.48);
  background: rgba(109,40,217,0.06);
}
.price-card.featured::after {
  content: 'NEJOBLÍBENĚJŠÍ';
  position: absolute;
  top: 46px; right: -36px;
  background: var(--purple);
  color: var(--white);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 5px 52px;
  transform: rotate(45deg);
  white-space: nowrap;
}

.price-tier {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-l);
  margin-bottom: 14px;
}

.price-amount {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount-note {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 28px;
  font-family: 'Figtree', sans-serif;
}

.price-features {
  list-style: none;
  flex: 1;
  margin-bottom: 28px;
}
.price-features li {
  font-size: 0.88rem;
  color: var(--gray);
  padding: 9px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.price-features li:last-child { border-bottom: none; }
.price-features li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple-l);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(139,92,246,0.5);
}

.price-cta {
  display: block;
  text-align: center;
  padding: 13px 20px;
  background: rgba(109,40,217,0.1);
  color: var(--purple-l) !important;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}
.price-cta:hover {
  background: var(--purple);
  color: var(--white) !important;
  border-color: var(--purple);
  box-shadow: 0 0 24px var(--glow);
}
.price-card.featured .price-cta {
  background: var(--purple);
  color: var(--white) !important;
  border-color: var(--purple);
}
.price-card.featured .price-cta:hover {
  background: var(--purple-l);
  box-shadow: 0 0 32px var(--glow);
}

/* ── Footer ───────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 36px 0;
  text-align: center;
}
.site-footer p {
  color: var(--dim);
  font-size: 0.85rem;
  margin: 0;
}

/* ── Fade-in ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-1 { animation: fadeUp 0.6s ease both 0.05s; }
.fade-2 { animation: fadeUp 0.6s ease both 0.2s; }
.fade-3 { animation: fadeUp 0.6s ease both 0.35s; }
.fade-4 { animation: fadeUp 0.6s ease both 0.5s; }
.fade-5 { animation: fadeUp 0.6s ease both 0.65s; }

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
  .price-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero-visual { display: none; }
  .hero-sub { margin: 0 auto 36px; }
  .btn-group { justify-content: center; }
  .header .container-fluid { padding: 14px 20px; }
  .price-grid { grid-template-columns: 1fr; max-width: 340px; }
  .section { padding: 70px 0; }
  .price-section { padding: 70px 0; }
}


@media (prefers-reduced-motion: reduce) {
  .glow-orb, .orbit, .hero-rocket,
  .fade-1, .fade-2, .fade-3, .fade-4, .fade-5,
  #starfield, .blinking-cursor { animation: none !important; }
}
