/* ============================================================
   STARGATE WORLDS — styles.css
   Global stylesheet for all pages
============================================================ */

/* ============================================================
   1. RESET & CUSTOM PROPERTIES
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --c-bg:            #020810;
  --c-surface:       #0a1628;
  --c-surface-2:     #0d1f3c;
  --c-border:        rgba(8, 145, 178, 0.18);
  --c-border-2:      rgba(8, 145, 178, 0.4);
  --c-primary:       #0891b2;
  --c-primary-dark:  #0e7490;
  --c-primary-light: #22d3ee;
  --c-accent:        #f59e0b;
  --c-accent-light:  #fbbf24;
  --c-text:          #e2e8f0;
  --c-muted:         #94a3b8;
  --c-faint:         #475569;
  --glow-sm:   0 0 15px rgba(8, 145, 178, 0.3);
  --glow-md:   0 0 30px rgba(8, 145, 178, 0.45);
  --glow-lg:   0 0 60px rgba(8, 145, 178, 0.3);
  --glow-gold: 0 0 30px rgba(245, 158, 11, 0.45);
  --nav-h:     70px;
  --radius:    8px;
  --radius-lg: 16px;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --t-fast: 0.2s ease;
  --t-med:  0.35s ease;
  --t-slow: 0.6s ease;
}

/* ============================================================
   2. BASE
============================================================ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; }
a   { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   3. KEYFRAMES
============================================================ */
@keyframes spin        { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes fadeInUp    { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes glowPulse   { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }

/* ============================================================
   4. LAYOUT UTILITIES
============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid var(--c-border-2);
  color: var(--c-primary-light);
  font-family: var(--font-head);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 1rem;
}
.section-title span {
  color: var(--c-primary-light);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--c-muted);
  max-width: 600px;
  font-weight: 400;
  line-height: 1.75;
}

.glow-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--c-primary), transparent);
  margin: 1.25rem 0;
  border-radius: 2px;
}
.glow-line-center {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  margin: 1.25rem auto;
  border-radius: 2px;
}

/* ============================================================
   5. BUTTONS
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--t-med);
  white-space: nowrap;
}
.btn-lg { padding: 1.05rem 2.4rem; font-size: 0.7rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-dark) 100%);
  color: #fff;
  border: 1px solid var(--c-border-2);
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255,255,255,0.08);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 50%, var(--c-primary) 100%);
  box-shadow: var(--glow-md);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--c-primary-light);
  border: 1px solid var(--c-border-2);
}
.btn-outline:hover {
  background: rgba(8, 145, 178, 0.1);
  border-color: var(--c-primary-light);
  color: #fff;
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}

.btn-accent {
  background: linear-gradient(135deg, #92400e 0%, var(--c-accent) 50%, #92400e 100%);
  color: #1c0a00;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255,255,255,0.12);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-accent-light) 50%, var(--c-accent) 100%);
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.6);
  transform: translateY(-2px);
}

/* ============================================================
   6. NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(2, 8, 16, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
  transition: background var(--t-med), box-shadow var(--t-med);
}
.navbar.scrolled {
  background: rgba(2, 8, 16, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Grid layout: logo | menu (centered) | lang | cta */
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
}

/* Logo — left column */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: start;
}
.nav-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(8, 145, 178, 0.65));
}
.nav-logo-text   { display: flex; flex-direction: column; line-height: 1; }
.nav-logo-title  {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}
.nav-logo-sub {
  font-family: var(--font-head);
  font-size: 0.48rem;
  font-weight: 400;
  color: var(--c-primary-light);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 3px;
}

/* Menu — center column */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  list-style: none;
}

.nav-link {
  padding: 0.4rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  border-radius: var(--radius);
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 18px; height: 2px;
  background: var(--c-primary-light);
  border-radius: 2px;
  transition: transform var(--t-med);
}
.nav-link:hover,
.nav-link.active { color: var(--c-text); }
.nav-link:hover::after,
.nav-link.active::after { transform: translateX(-50%) scaleX(1); }

/* CTA — right column */
.nav-cta { justify-self: end; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  justify-self: end;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: all var(--t-med);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — close button hidden on desktop */
.nav-menu-close { display: none; }

@media (max-width: 768px) {
  .nav-inner { grid-template-columns: auto 1fr auto auto; }
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  /* Semi-transparent backdrop behind the panel */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med);
  }
  .nav-backdrop.open { opacity: 1; pointer-events: all; }

  /* Panel slides in from the right */
  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    height: 100vh;
    height: 100dvh;
    width: min(300px, 85vw);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 5.5rem 1.75rem 2rem;
    background: rgba(5, 10, 22, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--c-border);
    box-shadow: -12px 0 50px rgba(0, 0, 0, 0.6);
    transform: translateX(100%);
    transition: transform var(--t-med);
    z-index: 1050;
    opacity: 1;
    pointer-events: none;
  }
  .nav-menu.open { transform: translateX(0); pointer-events: all; }

  /* Close (×) button inside the panel */
  .nav-menu-close {
    display: flex;
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid var(--c-border);
    color: var(--c-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--t-med);
  }
  .nav-menu-close:hover {
    background: rgba(8, 145, 178, 0.2);
    border-color: var(--c-border-2);
    color: var(--c-text);
  }

  /* Nav links full-width with separators */
  .nav-link {
    font-size: 0.88rem;
    padding: 1rem 0.25rem;
    width: 100%;
    border-bottom: 1px solid var(--c-border);
  }
  .nav-menu > li:last-child .nav-link { border-bottom: none; }
}

/* ============================================================
   7. FOOTER
============================================================ */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo img {
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(8, 145, 178, 0.55));
}
.footer-logo-text {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand p { font-size: 0.9rem; color: var(--c-faint); max-width: 280px; line-height: 1.75; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary-light);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.92rem; color: var(--c-faint); transition: color var(--t-fast); }
.footer-col ul a:hover { color: var(--c-text); }

.social-links { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  color: var(--c-faint);
  font-size: 1rem;
  transition: all var(--t-med);
}
.social-link:hover {
  border-color: var(--c-border-2);
  color: var(--c-text);
  background: rgba(8, 145, 178, 0.08);
  box-shadow: var(--glow-sm);
  transform: translateY(-2px);
}
.social-link.youtube:hover { border-color: #ff0000; color: #ff0000; background: rgba(255,0,0,0.08); box-shadow: 0 0 15px rgba(255,0,0,0.3); }
.social-link.discord:hover { border-color: #5865f2; color: #5865f2; background: rgba(88,101,242,0.08); box-shadow: 0 0 15px rgba(88,101,242,0.3); }

.footer-bottom {
  border-top: 1px solid var(--c-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.8rem; color: var(--c-faint); }
.footer-bottom a { color: var(--c-faint); transition: color var(--t-fast); }
.footer-bottom a:hover { color: var(--c-primary-light); }

@media (max-width: 768px) {
  .footer-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   8. INDEX — HERO CAROUSEL
============================================================ */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.77, 0, 0.175, 1);
}

.hero-slide {
  position: relative;
  width: 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide-1 {
  background:
    linear-gradient(160deg, rgba(2,8,16,0.55) 0%, rgba(4,22,48,0.45) 50%, rgba(2,8,16,0.65) 100%),
    url('/static/img/hero1.webp') center / cover no-repeat;
}
.slide-2 {
  background:
    linear-gradient(160deg, rgba(2,8,16,0.55) 0%, rgba(28,8,0,0.45) 50%, rgba(2,8,16,0.65) 100%),
    url('/static/img/hero2.webp') center / cover no-repeat;
}
.slide-3 {
  background:
    linear-gradient(160deg, rgba(2,8,16,0.55) 0%, rgba(0,26,26,0.45) 50%, rgba(2,8,16,0.65) 100%),
    url('/static/img/hero3.webp') center / cover no-repeat;
}

.hero-gate-wrap {
  position: absolute;
  right: -8%; top: 50%;
  transform: translateY(-50%);
  width: 520px; height: 520px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}
.hero-gate-wrap svg { width: 100%; height: 100%; animation: spin 35s linear infinite; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--nav-h) + 1rem) 1.5rem 4rem;
  max-width: 820px;
  animation: fadeInUp 0.9s var(--t-slow) both;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: var(--c-primary-light);
  font-family: var(--font-head);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2rem, 7vw, 4.8rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 0 50px rgba(34, 211, 238, 0.25);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.hero-title span { color: var(--c-primary-light); text-shadow: 0 0 30px rgba(34, 211, 238, 0.7); }
.slide-2 .hero-title span { color: var(--c-accent-light); text-shadow: 0 0 30px rgba(251, 191, 36, 0.7); }
.slide-3 .hero-title span { color: #67e8f9; text-shadow: 0 0 30px rgba(103, 232, 249, 0.7); }

.hero-text {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: rgba(226, 232, 240, 0.88);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(2, 8, 16, 0.5);
  border: 1px solid var(--c-border);
  color: var(--c-muted);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--t-med);
  backdrop-filter: blur(8px);
}
.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.18);
  border-color: var(--c-border-2);
  color: #fff;
  box-shadow: var(--glow-sm);
}
.hero-prev { left: 1.5rem; }
.hero-next { right: 1.5rem; }

.hero-dots {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
  border: none;
  cursor: pointer;
  transition: all var(--t-med);
  padding: 0;
}
.hero-dot.active {
  width: 26px;
  border-radius: 4px;
  background: var(--c-primary-light);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.65);
}

.hero-scroll {
  position: absolute;
  bottom: 1.75rem; right: 2rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-faint);
  font-family: var(--font-head);
  font-size: 0.42rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--c-primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   9. INDEX — FEATURES
============================================================ */
.features {
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.features::before, .features::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
}
.features::before { top: 0; }
.features::after  { bottom: 0; }

.features-header { text-align: center; margin-bottom: 3.5rem; }
.features-header .section-sub { margin: 0 auto; text-align: center; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card {
  background: rgba(13, 31, 60, 0.55);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.feature-card:hover {
  border-color: var(--c-border-2);
  transform: translateY(-6px);
  box-shadow: var(--glow-sm), 0 20px 40px rgba(0,0,0,0.3);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1px solid var(--c-border-2);
  background: rgba(8, 145, 178, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.4rem;
  color: var(--c-primary-light);
  transition: all var(--t-med);
}
.feature-card:hover .feature-icon { background: rgba(8, 145, 178, 0.2); box-shadow: var(--glow-sm); }
.feature-card h3 { font-size: 0.85rem; font-weight: 600; color: var(--c-text); margin-bottom: 0.75rem; letter-spacing: 0.04em; }
.feature-card p  { font-size: 0.95rem; color: var(--c-muted); line-height: 1.75; font-weight: 400; }

/* ============================================================
   10. INDEX — ABOUT
============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 380px;
}
.about-glow {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.14) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
.about-ring-outer        { width: 300px; height: 300px; position: absolute; }
.about-ring-outer svg    { width: 100%; height: 100%; animation: spin 22s linear infinite; filter: drop-shadow(0 0 12px rgba(8,145,178,0.35)); }
.about-ring-inner-el     { width: 195px; height: 195px; position: absolute; }
.about-ring-inner-el svg { width: 100%; height: 100%; animation: spinReverse 11s linear infinite; filter: drop-shadow(0 0 8px rgba(34,211,238,0.28)); }
.about-logo-center { position: absolute; width: 110px; filter: drop-shadow(0 0 14px rgba(8,145,178,0.75)); }

.about-content .section-sub { margin-bottom: 2rem; }

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 1.5rem;
  background: rgba(13, 31, 60, 0.5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
}
.about-stat         { text-align: center; }
.about-stat strong  { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; color: var(--c-primary-light); text-shadow: 0 0 15px rgba(34,211,238,0.4); }
.about-stat span    { font-size: 0.7rem; color: var(--c-faint); text-transform: uppercase; letter-spacing: 0.1em; }
.about-actions      { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   11. INDEX — CTA SECTION
============================================================ */
.cta-section { position: relative; text-align: center; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(8, 145, 178, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse at 75% 50%, rgba(245, 158, 11, 0.07) 0%, transparent 60%);
  pointer-events: none;
}
.cta-border-top, .cta-border-bottom { position: absolute; left: 0; right: 0; height: 1px; }
.cta-border-top    { top:    0; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); }
.cta-border-bottom { bottom: 0; background: linear-gradient(90deg, transparent, var(--c-accent),  transparent); }
.cta-inner              { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.cta-inner .section-sub { margin: 0 auto 2.5rem; text-align: center; }
.cta-actions            { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   12. TECHNOLOGIES & TALENTS SECTION
============================================================ */
.tech-section {
  background: var(--c-surface);
  position: relative;
  overflow: hidden;
}
.tech-section::before, .tech-section::after {
  content: '';
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
}
.tech-section::before { top: 0; }
.tech-section::after  { bottom: 0; }

.tech-header, .talents-header {
  text-align: center;
  margin-bottom: 3rem;
}
.tech-header .section-sub,
.talents-header .section-sub {
  margin: 0 auto;
  text-align: center;
}
.talents-header { margin-top: 4rem; }

/* Tech stack badges */
.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: rgba(13, 31, 60, 0.6);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  transition: all var(--t-med);
  min-width: 200px;
}
.tech-badge:hover {
  border-color: var(--c-border-2);
  box-shadow: var(--glow-sm);
  transform: translateY(-3px);
  background: rgba(13, 31, 60, 0.9);
}
.tech-badge > i {
  font-size: 1.75rem;
  color: var(--c-primary-light);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.tech-badge .fab.fa-python { color: #3b82f6; }
.tech-badge .fab.fa-linux  { color: #e2e8f0; }
.tech-badge .fab.fa-html5  { color: #f97316; }
.tech-badge .fab.fa-js     { color: #fbbf24; }

.tech-badge-info { display: flex; flex-direction: column; line-height: 1.3; }
.tech-badge-info strong {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: 0.04em;
}
.tech-badge-info span { font-size: 0.8rem; color: var(--c-faint); margin-top: 2px; }

/* Talents grid */
.talents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.talent-card {
  background: rgba(13, 31, 60, 0.5);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.talent-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
  opacity: 0;
  transition: opacity var(--t-med);
}
.talent-card:hover {
  border-color: var(--c-border-2);
  transform: translateY(-5px);
  box-shadow: var(--glow-sm), 0 16px 40px rgba(0,0,0,0.3);
}
.talent-card:hover::before { opacity: 1; }

.talent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-head);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.badge-urgent { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.35); color: #f87171; }
.badge-open   { background: rgba(8,145,178,0.1); border: 1px solid var(--c-border-2);    color: var(--c-primary-light); }

.talent-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.1);
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: var(--c-primary-light);
  margin-bottom: 1rem;
  transition: all var(--t-med);
}
.talent-card:hover .talent-icon { background: rgba(8, 145, 178, 0.2); box-shadow: var(--glow-sm); }

.talent-card h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-text);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}
.talent-card p { font-size: 0.9rem; color: var(--c-muted); line-height: 1.72; }

.talent-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}
.skill-tag {
  font-family: var(--font-head);
  font-size: 0.45rem;
  letter-spacing: 0.1em;
  padding: 0.22rem 0.65rem;
  background: rgba(8,145,178,0.07);
  border: 1px solid var(--c-border);
  border-radius: 4px;
  color: var(--c-muted);
  text-transform: uppercase;
}

/* ============================================================
   12b. DISCORD / CONTRIBUTE SECTION
============================================================ */
.discord-section {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.discord-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(88, 101, 242, 0.1) 0%, transparent 65%);
  pointer-events: none;
}

.discord-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.discord-inner .section-tag   { display: inline-flex; margin-bottom: 1.5rem; }
.discord-inner .section-title { margin-bottom: 0.75rem; }
.discord-inner .section-sub   { margin: 0 auto 2.5rem; text-align: center; }

.discord-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(88, 101, 242, 0.1);
  border: 1px solid rgba(88, 101, 242, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
  color: #7289da;
  transition: all var(--t-med);
}
.discord-icon-wrap:hover { box-shadow: 0 0 30px rgba(88,101,242,0.3); }

.discord-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-discord {
  background: linear-gradient(135deg, #3a45c0 0%, #5865f2 50%, #3a45c0 100%);
  color: #fff;
  border: 1px solid rgba(88,101,242,0.5);
  box-shadow: 0 0 20px rgba(88,101,242,0.25);
}
.btn-discord:hover {
  background: linear-gradient(135deg, #5865f2 0%, #7289da 50%, #5865f2 100%);
  box-shadow: 0 0 40px rgba(88,101,242,0.5);
  transform: translateY(-2px);
  color: #fff;
}

/* Responsive for new sections */
@media (max-width: 1024px) {
  .talents-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tech-stack    { gap: 0.75rem; }
  .tech-badge    { min-width: calc(50% - 0.375rem); }
  .talents-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tech-badge    { min-width: 100%; }
}

/* ============================================================
   13. REGISTER PAGE
============================================================ */
.register-page {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 3.5rem) 1.5rem 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.register-page::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(8, 145, 178, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 55%);
  pointer-events: none;
}

.reg-gate-bg { position: absolute; right: 3%; top: 50%; transform: translateY(-50%); width: 580px; height: 580px; opacity: 0.04; pointer-events: none; z-index: 0; }
.reg-gate-bg svg { width: 100%; height: 100%; animation: spin 45s linear infinite; }

.register-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  max-width: 980px;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.7s ease both;
}

.register-info { padding-right: 1rem; }
.register-info .section-tag  { display: inline-flex; margin-bottom: 1.5rem; }
.register-info .section-title { margin-bottom: 0.75rem; }
.register-info .section-sub   { margin-bottom: 2rem; }

.reg-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.reg-step  { display: flex; align-items: flex-start; gap: 1rem; }
.step-num {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(8, 145, 178, 0.12);
  border: 1px solid var(--c-border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.6rem; font-weight: 700;
  color: var(--c-primary-light);
}
.step-text { padding-top: 0.45rem; }
.step-text strong { display: block; font-family: var(--font-head); font-size: 0.7rem; font-weight: 600; color: var(--c-text); letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.step-text p { font-size: 0.9rem; color: var(--c-muted); }

.register-card {
  background: rgba(10, 22, 40, 0.92);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 60px rgba(8, 145, 178, 0.07), 0 24px 60px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}
.register-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-primary), transparent);
}

.card-gate-wrap { position: relative; width: 78px; height: 78px; margin: 0 auto 1.5rem; }
.card-gate-wrap svg { width: 100%; height: 100%; animation: spin 18s linear infinite; filter: drop-shadow(0 0 8px rgba(8,145,178,0.5)); }
.card-gate-logo { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; }

.card-heading { font-family: var(--font-head); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-muted); text-align: center; margin-bottom: 2rem; }

.msg { border-radius: var(--radius); padding: 0.85rem 1rem; margin-bottom: 1.5rem; font-size: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.msg-error   { background: rgba(200,40,40,0.1);  border: 1px solid rgba(200,40,40,0.4);  color: #fca5a5; }
.msg-success { background: rgba(0,180,80,0.1);   border: 1px solid rgba(0,180,80,0.4);   color: #86efac; }

.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-family: var(--font-head); font-size: 0.52rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-muted); margin-bottom: 0.45rem; }
.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(0, 28, 56, 0.65);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 500;
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.15); }
.form-hint { font-size: 0.75rem; color: var(--c-faint); margin-top: 0.35rem; }

.btn-submit {
  width: 100%; padding: 0.9rem; margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--c-primary-dark) 0%, var(--c-primary) 50%, var(--c-primary-dark) 100%);
  border: 1px solid var(--c-border-2);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font-head); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: all var(--t-med);
  box-shadow: var(--glow-sm);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}
.btn-submit:hover { background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 50%, var(--c-primary) 100%); box-shadow: var(--glow-md); transform: translateY(-1px); }

.success-state    { text-align: center; padding: 0.5rem 0; }
.success-name     { display: inline-block; margin: 1rem 0; padding: 0.6rem 1.5rem; background: rgba(0,180,80,0.1); border: 1px solid rgba(0,180,80,0.4); border-radius: var(--radius); color: #86efac; font-family: var(--font-head); font-size: 1.2rem; letter-spacing: 0.1em; }
.success-state p  { font-size: 0.95rem; color: var(--c-muted); line-height: 1.75; margin-bottom: 1.5rem; }
.card-divider     { border: none; border-top: 1px solid var(--c-border); margin: 1.75rem 0 1.25rem; }
.card-footer-note { text-align: center; font-family: var(--font-head); font-size: 0.48rem; letter-spacing: 0.16em; color: var(--c-faint); text-transform: uppercase; }

/* ============================================================
   13. CONDITIONS PAGE
============================================================ */
.cond-hero {
  padding: calc(var(--nav-h) + 4rem) 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cond-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(8,145,178,0.1) 0%, transparent 60%);
  pointer-events: none;
}
.cond-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-2), transparent);
}
.cond-hero-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.cond-hero-inner .section-sub { margin: 0 auto; text-align: center; }

.cond-content { max-width: 820px; margin: 0 auto; padding: 3.5rem 1.5rem 6rem; }

.cond-toc {
  background: rgba(10, 22, 40, 0.8);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.cond-toc h3 { font-family: var(--font-head); font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--c-primary-light); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.cond-toc ol { margin-left: 1.25rem; display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.cond-toc ol a { color: var(--c-muted); transition: color var(--t-fast); }
.cond-toc ol a:hover { color: var(--c-primary-light); }

.cond-section { margin-bottom: 3rem; }
.cond-section h2 { font-family: var(--font-head); font-size: 1rem; font-weight: 600; color: var(--c-text); margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--c-border); display: flex; align-items: center; gap: 0.75rem; }
.cond-section h2 i { color: var(--c-primary-light); font-size: 0.88rem; flex-shrink: 0; }
.cond-section p  { font-size: 0.98rem; color: var(--c-muted); line-height: 1.82; margin-bottom: 0.9rem; }
.cond-section ul { margin: 0.75rem 0 1rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cond-section ul li { font-size: 0.98rem; color: var(--c-muted); line-height: 1.75; }
.cond-section ul li::marker { color: var(--c-primary); }

.info-box, .warn-box { border-radius: var(--radius); padding: 1.1rem 1.4rem; display: flex; gap: 1rem; align-items: flex-start; margin: 1rem 0; }
.info-box { background: rgba(8,145,178,0.07);  border: 1px solid rgba(8,145,178,0.28);  }
.warn-box { background: rgba(245,158,11,0.07); border: 1px solid rgba(245,158,11,0.28); }
.info-box i { color: var(--c-primary-light); flex-shrink: 0; margin-top: 0.2rem; }
.warn-box i { color: var(--c-accent);        flex-shrink: 0; margin-top: 0.2rem; }
.info-box p, .warn-box p { margin: 0; font-size: 0.95rem; }

.cond-cta {
  margin-top: 3rem; padding: 2.5rem;
  background: rgba(10,22,40,0.8);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative; overflow: hidden;
}
.cond-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c-primary), transparent); }
.cond-cta p { font-size: 1.05rem; color: var(--c-muted); margin-bottom: 1.75rem; }
.cond-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   14. RESPONSIVE — shared breakpoints
============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid    { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual  { height: 260px; }
  .about-ring-outer    { width: 230px; height: 230px; }
  .about-ring-inner-el { width: 148px; height: 148px; }
  .about-logo-center   { width: 84px; }
}

@media (max-width: 768px) {
  .register-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .register-info { padding-right: 0; text-align: center; }
  .reg-step      { text-align: left; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-arrow    { display: none; }
  .hero-scroll   { display: none; }
  .hero-gate-wrap { display: none; }
}

@media (max-width: 480px) {
  .about-stats { grid-template-columns: 1fr; }
}
