/* ═══════════════════════════════════════════════
   rewire.school — Shared Styles
   Used across all pages (homepage, courses, readiness, etc.)
   ═══════════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  --purple: #8B5CF6;
  --purple-light: #A78BFA;
  --purple-dark: #7C3AED;
  --purple-deep: #6D28D9;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --purple-glow-strong: rgba(139, 92, 246, 0.3);
  --night: #0A0A0A;
  --card: #111111;
  --card-border: #1a1a1a;
  --card-hover: #161616;
  --snow: #FAFAFA;
  --text-secondary: #888888;
  --text-tertiary: #777777;
  --success: #22C55E;
  --success-glow: rgba(34, 197, 94, 0.15);
  --alert: #EF4444;
  --amber: #F59E0B;
  --font-display: 'Manrope', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--night);
  color: var(--snow);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--purple);
  color: white;
}

/* ─── CANVAS BACKGROUND ─── */
#neural-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ─── NAV (Homepage Style) ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.95);
  border-bottom-color: rgba(139, 92, 246, 0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo svg { height: 32px; width: auto; }

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--purple);
  transition: width 0.3s ease;
}

.nav-links a:hover::after { width: 100%; }

.nav-cta {
  padding: 10px 24px;
  background: var(--purple);
  color: white !important;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.3px;
  transition: all 0.3s ease !important;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
  background: var(--purple-dark) !important;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.5) !important;
  transform: translateY(-1px);
}

.nav-cta::after { display: none !important; }

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--snow);
  margin: 5px 0;
  transition: all 0.3s;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--purple);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6);
  background: var(--purple-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: transparent;
  color: var(--snow);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--purple);
  background: rgba(139, 92, 246, 0.06);
  transform: translateY(-2px);
}

/* ─── SECTION SHARED ─── */
section {
  position: relative;
  z-index: 1;
  padding: 120px 48px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--purple-light);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 520px;
  line-height: 1.7;
}

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 64px 48px 40px;
  background: var(--night);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--text-tertiary);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  color: var(--snow);
}

.footer-col a {
  display: block;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 13px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes scrollPulse {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: top; }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
  }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: block; }

  section { padding: 80px 20px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
