/* ===== JAelavated Academy — Global Styles ===== */

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #1a1a1a;
  --pink: #FF006E;
  --cyan: #00F5FF;
  --purple: #7B00FF;
  --white: #ffffff;
  --muted: #888888;
  --border: rgba(255,255,255,0.08);
  --card-bg: #111827;
  --glow-pink: 0 0 20px rgba(255,0,110,0.5), 0 0 40px rgba(255,0,110,0.2);
  --glow-cyan: 0 0 20px rgba(0,245,255,0.5), 0 0 40px rgba(0,245,255,0.2);
  --glow-purple: 0 0 20px rgba(123,0,255,0.5), 0 0 40px rgba(123,0,255,0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--pink);
}

/* ===== TICKER BAR ===== */
.ticker-bar {
  position: sticky;
  top: 0;
  z-index: 1002;
  background: #050505;
  border-bottom: 1px solid rgba(255,0,110,0.15);
  line-height: 0;
}

/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 56px;
  z-index: 1001;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a.active {
  color: var(--cyan);
}

.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: box-shadow 0.3s, transform 0.2s !important;
}

.nav-cta:hover {
  box-shadow: var(--glow-pink) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 120px;
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
  z-index: 999;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: var(--white);
}

.btn-pink:hover {
  box-shadow: var(--glow-pink);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-cyan {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: var(--bg);
}

.btn-cyan:hover {
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
  color: var(--bg);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}

.btn-outline:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.section-title span {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem;
  margin-top: 6rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.footer-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-social a {
  color: var(--muted);
  font-size: 0.85rem;
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.footer-social a:hover {
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 12px rgba(255,0,110,0.3);
}

/* ===== LEGAL PAGE LAYOUT ===== */
.legal-page {
  padding: 4rem 0;
}

.legal-header {
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.legal-header h1 span {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-body {
  max-width: 780px;
}

.legal-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-body h3 {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 1.5rem 0 0.5rem;
}

.legal-body p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-body ul, .legal-body ol {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-body ul li, .legal-body ol li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

.legal-body strong {
  color: var(--white);
}

.legal-body a {
  color: var(--pink);
}

.highlight-box {
  background: rgba(123,0,255,0.1);
  border: 1px solid rgba(123,0,255,0.3);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

.warning-box {
  background: rgba(255,0,110,0.08);
  border: 1px solid rgba(255,0,110,0.25);
  border-left: 3px solid var(--pink);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.warning-box p {
  margin: 0;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ===== UTILITIES ===== */
.text-pink { color: var(--pink); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-muted { color: var(--muted); }

.gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  nav { padding: 0 1rem; }
  .page-wrapper { padding: 0 1rem; }
  footer { padding: 2rem 1rem; }
}
