/* ============================================================
   POSITIVE LIGHT LEARNING NETWORK — EDUCATOR NIL™ PLATFORM
   styles.css | Premium Dark Design System
   ============================================================ */

/* ── DESIGN TOKENS ───────────────────────────────────────── */
:root {
  --bg-base:        #0a0a14;
  --bg-surface:     #111128;
  --bg-card:        #16163a;
  --bg-card-hover:  #1e1e4a;
  --bg-glass:       rgba(22, 22, 58, 0.6);

  --purple-deep:    #4f46e5;
  --purple-mid:     #7c3aed;
  --purple-light:   #a78bfa;
  --cyan:           #06b6d4;
  --gold:           #f59e0b;
  --rose:           #ef4444;
  --emerald:        #10b981;
  --pink:           #ec4899;

  --text-primary:   #f1f0ff;
  --text-secondary: #a5a3c0;
  --text-muted:     #6b6a8a;

  --border:         rgba(124, 58, 237, 0.2);
  --border-bright:  rgba(124, 58, 237, 0.5);

  --gradient-main:  linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --gradient-warm:  linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  --gradient-cool:  linear-gradient(135deg, #10b981 0%, #06b6d4 100%);

  --shadow-glow:    0 0 40px rgba(124, 58, 237, 0.3);
  --shadow-card:    0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg:      0 20px 60px rgba(0, 0, 0, 0.5);

  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      22px;
  --radius-xl:      32px;

  --font-display:   'Playfair Display', serif;
  --font-body:      'Outfit', sans-serif;
  --font-ui:        'Inter', sans-serif;

  --transition:     0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ── SCROLLBAR ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--purple-mid); border-radius: 99px; }

/* ── TYPOGRAPHY UTILITIES ─────────────────────────────────── */
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 3rem;
}

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: var(--gradient-main);
  color: #fff;
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--transition);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: var(--transition);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(124, 58, 237, 0.55); }
.btn-primary.sm { padding: 0.65rem 1.4rem; font-size: 0.9rem; }
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-bright);
  border-radius: 99px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
}
.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.12);
  border-color: var(--purple-mid);
  transform: translateY(-2px);
}

.btn-outline-small {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.25rem;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-outline-small:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: var(--purple-light);
}

.btn-arrow { transition: transform 0.2s; }
.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow { transform: translateX(4px); }

.btn-card {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 99px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
  transition: var(--transition);
  margin-top: 0.75rem;
}
.btn-card:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10, 10, 20, 0.0);
  backdrop-filter: blur(0px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10, 10, 20, 0.92);
  backdrop-filter: blur(20px);
  padding: 0.65rem 0;
  border-bottom-color: var(--border);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--gradient-main);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
}
.logo-mark.large { width: 44px; height: 44px; font-size: 1.4rem; }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.logo-primary {
  font-weight: 700;
  font-size: 1rem;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(124, 58, 237, 0.12);
}

.cta-nav-btn {
  flex-shrink: 0;
  padding: 0.6rem 1.4rem;
  background: var(--gradient-main);
  color: #fff;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 2px 16px rgba(124, 58, 237, 0.4);
}
.cta-nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 99px;
  transition: var(--transition);
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, #7c3aed, transparent);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent);
  bottom: -100px; right: -100px;
  animation-delay: -4s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #f59e0b, transparent);
  top: 40%; left: 40%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-section > * { position: relative; z-index: 1; }

.hero-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.hero-bg-orbs { grid-column: 1 / -1; position: absolute; }
.scroll-indicator { 
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: scrollBob 2s ease-in-out infinite;
  align-self: end;
  padding-bottom: 1rem;
}
.scroll-arrow { font-size: 1.2rem; }

@keyframes scrollBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.1rem;
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.35);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.8s ease forwards;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeSlideIn 0.8s 0.2s ease both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 2.25rem;
  animation: fadeSlideIn 0.8s 0.4s ease both;
}
.hero-subtitle strong { color: var(--text-primary); }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeSlideIn 0.8s 0.6s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  animation: fadeSlideIn 0.8s 0.8s ease both;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.stat-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeSlideIn 1s 0.3s ease both;
}

.hero-avatar-ring {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ringRotate 20s linear infinite;
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.2), inset 0 0 60px rgba(124, 58, 237, 0.05);
}
@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.avatar-inner {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
  border: 2px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ringRotate 20s linear infinite reverse;
  backdrop-filter: blur(10px);
}

.avatar-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(124, 58, 237, 0.3);
  animation: avatarPulse 3s ease-in-out infinite;
}
@keyframes avatarPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 0.2; }
}

.avatar-icon { font-size: 5rem; animation: ringRotate 20s linear infinite; }

/* Floating cards */
.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  min-width: 180px;
  animation: floatCard 6s ease-in-out infinite;
}
.card-1 { top: 10%; left: -10%; animation-delay: 0s; }
.card-2 { bottom: 25%; left: -15%; animation-delay: -2s; }
.card-3 { top: 20%; right: -8%; animation-delay: -4s; }

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fc-icon { font-size: 1.5rem; }
.fc-text { display: flex; flex-direction: column; }
.fc-text strong { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.fc-text span { font-size: 0.72rem; color: var(--text-muted); }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── MISSION SECTION ─────────────────────────────────────── */
.mission-section { background: var(--bg-surface); }

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-main);
  opacity: 0;
  transition: var(--transition);
}
.mission-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.mission-card:hover::before { opacity: 1; }

.mc-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.mc-icon { font-size: 1.5rem; }

.mission-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.mc-list { display: flex; flex-direction: column; gap: 0.6rem; }
.mc-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}
.mc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--purple-light);
}

/* ── HOW IT WORKS ────────────────────────────────────────── */
.how-section {
  background: var(--bg-base);
}

.steps-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 3.5rem;
  margin-top: 2rem;
}

.step-track {
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--purple-mid), var(--cyan));
  opacity: 0.4;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
}

.step-number {
  position: absolute;
  left: -3.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
  flex-shrink: 0;
  z-index: 1;
}

.step-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  flex: 1;
  transition: var(--transition);
}
.step-content:hover {
  border-color: var(--border-bright);
  transform: translateX(4px);
  box-shadow: var(--shadow-glow);
}
.step-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.step-content p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.7; }

/* ── EQUITY SECTION ──────────────────────────────────────── */
.equity-section {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.equity-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

.equity-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.equity-lead strong { color: var(--text-primary); }

.equity-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pillar {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.pillar:hover { border-color: var(--border-bright); transform: translateX(4px); }

.pillar-icon { font-size: 1.5rem; flex-shrink: 0; }
.pillar-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.pillar-body p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.65; }

/* Ring Chart */
.equity-ring-chart {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.ring-label {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ring-svg { width: 180px; height: 180px; }

.ring-arc {
  transition: stroke-dashoffset 1.5s ease;
}
.ring-arc-1 { animation: arcDraw 1.5s ease-out forwards; }
.ring-arc-2 { animation: arcDraw2 1.5s 0.3s ease-out forwards; }

@keyframes arcDraw {
  from { stroke-dashoffset: 314; }
  to { stroke-dashoffset: 94; }
}
@keyframes arcDraw2 {
  from { stroke-dashoffset: 314; }
  to { stroke-dashoffset: 220; }
}

.ring-legend { display: flex; flex-direction: column; gap: 0.6rem; width: 100%; }
.rl-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: var(--text-secondary); }
.rl-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* ── CONTRACT SECTION ────────────────────────────────────── */
.contract-section { background: var(--bg-base); }

.attorney-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.ab-seal { font-size: 2rem; }
.ab-text { flex: 1; display: flex; flex-direction: column; }
.ab-text strong { font-size: 1rem; font-weight: 700; }
.ab-text span { font-size: 0.82rem; color: var(--text-muted); display: block; margin-top: 0.2rem; }
.ab-ai-note { font-size: 0.75rem !important; color: var(--gold) !important; opacity: 0.85; }
.ab-ai-note strong { color: var(--gold); font-weight: 700; }
.ab-actions { display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0; }

/* Contract Document */
.contract-doc {
  background: #0d0d1f;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeSlideIn 0.7s ease both;
}

.contract-header {
  background: linear-gradient(135deg, #1a1a3e 0%, #0d0d24 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem;
  text-align: center;
}

.contract-logo-line {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.contract-title-line {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.contract-subtitle-line {
  font-size: 1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 0.5rem;
}
.contract-version {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.contract-body { padding: 2rem 2.5rem; }

.contract-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}
.contract-section:last-child { border-bottom: none; }

.cs-heading {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.contract-section p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.contract-section p strong { color: var(--text-primary); }
.contract-section p em { color: var(--purple-light); font-style: italic; }

.definition-list { display: flex; flex-direction: column; gap: 1rem; }
.def-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  font-size: 0.87rem;
  padding: 1rem;
  background: rgba(124, 58, 237, 0.05);
  border-radius: var(--radius-md);
  border-left: 2px solid var(--purple-mid);
}
.def-term { font-weight: 700; color: var(--purple-light); }
.def-body { color: var(--text-secondary); line-height: 1.7; }

.contract-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.75rem 0 1rem 1.25rem;
  list-style: disc;
}
.contract-list li {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.prohibited-list li { color: var(--rose); }
.prohibited-list li::marker { color: var(--rose); }

/* Royalty Table */
.royalty-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1rem 0 1.25rem;
}
.rt-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.rt-row:last-child { border-bottom: none; }
.rt-header {
  background: rgba(124, 58, 237, 0.15);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-light);
}
.rt-row:not(.rt-header) { color: var(--text-secondary); }
.rt-row:not(.rt-header):hover { background: rgba(124, 58, 237, 0.06); }
.rt-row span:last-child { font-weight: 700; color: var(--emerald); }
.rt-header span:last-child { color: var(--purple-light); }

/* Signature Section */
.signature-section { padding-top: 2.5rem; }
.sig-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin: 1.5rem 0 2rem;
}
.sig-block {
  padding: 1.5rem;
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.sig-line {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.sig-name {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}
.sig-detail { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }

.attorney-certification {
  padding: 1.5rem;
  background: rgba(79, 70, 229, 0.06);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
}
.attorney-certification p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

.attorney-seal {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.seal-ring {
  font-size: 1.75rem;
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(79,70,229,0.3), rgba(6,182,212,0.2));
  border: 1px solid var(--border-bright);
  border-radius: 50%;
}
.seal-text { display: flex; flex-direction: column; }
.seal-text strong { font-size: 0.82rem; font-weight: 700; }
.seal-text span { font-size: 0.7rem; color: var(--text-muted); }

/* ── EDUCATORS SECTION ───────────────────────────────────── */
.educators-section { background: var(--bg-surface); }

.educators-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.edu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: var(--border-bright); }

.edu-card-top {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.edu-card-emoji { font-size: 2.5rem; }
.edu-card-top h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }

.edu-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}
.edu-card-body p { font-size: 0.87rem; color: var(--text-secondary); line-height: 1.65; }

/* Link Generator */
.link-generator {
  background: var(--bg-card);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.link-generator::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-main);
}

.lg-header { margin-bottom: 1.75rem; }
.lg-header h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.lg-header p { font-size: 0.9rem; color: var(--text-secondary); }

.lg-input-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.lg-input {
  flex: 1;
  min-width: 200px;
  padding: 0.75rem 1.1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition);
}
.lg-input:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.lg-result {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.lg-url {
  flex: 1;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--cyan);
  word-break: break-all;
}

.lg-copy-btn {
  padding: 0.5rem 1.1rem;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}
.lg-copy-btn:hover { background: rgba(6, 182, 212, 0.25); }

/* ── CONTACT SECTION ─────────────────────────────────────── */
.contact-section { background: var(--bg-base); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.8rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: var(--transition);
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b6a8a' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 20px;
  padding-right: 2.5rem;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-mid);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.checkbox-group .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--purple-mid);
  cursor: pointer;
  padding: 0;
  margin-top: 2px;
}

/* Contact Info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.ci-item:hover { border-color: var(--border-bright); }

.ci-icon { font-size: 1.5rem; flex-shrink: 0; }
.ci-text { display: flex; flex-direction: column; gap: 0.2rem; }
.ci-text strong { font-size: 0.88rem; font-weight: 700; }
.ci-text span { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

.legal-disclaimer {
  padding: 1.25rem;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
}
.legal-disclaimer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.legal-disclaimer strong { color: var(--rose); }

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  max-width: 520px;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links a:hover { color: var(--purple-light); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
}
.footer-bottom span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── MODAL ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.3s ease;
}
.modal-overlay[style*="display:none"] {
  display: none !important;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  box-shadow: var(--shadow-lg);
}
@keyframes modalSlideIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(239, 68, 68, 0.2); color: var(--rose); }

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}
.modal-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.modal-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.modal-header p { font-size: 0.9rem; color: var(--text-secondary); }

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* ── TOAST ────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--emerald);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  animation: toastIn 0.4s ease;
}
@keyframes toastIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.toast-icon { font-size: 1.25rem; }
.toast-message { font-size: 0.9rem; font-weight: 600; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .equity-layout { grid-template-columns: 1fr; }
  .equity-visual { display: none; }
  .educators-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-visual { display: none; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2.25rem; }
  .mission-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .def-item { grid-template-columns: 1fr; }
  .sig-blocks { grid-template-columns: 1fr; }
  .nav-links, .cta-nav-btn { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 600px) {
  .educators-grid { grid-template-columns: 1fr; }
  .contract-body { padding: 1.25rem; }
  .rt-row { grid-template-columns: 1fr 1fr; }
  .rt-row span:first-child { grid-column: 1 / -1; font-weight: 700; }
  .section { padding: 4rem 0; }
  .hero-title { font-size: 2.5rem; }
  .hero-section { padding: 7rem 1rem 4rem; }
  .modal-box { padding: 1.75rem; }
}

/* ── SCROLL ANIMATIONS ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Logo size override ── */
.logo-mark img,
.nav-logo .logo-mark img {
    width: 72px !important;
    height: 72px !important;
    min-width: 72px;
    min-height: 72px;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    filter: drop-shadow(0 0 12px rgba(99,102,241,0.65));
}

.logo-mark.large img {
    width: 96px !important;
    height: 96px !important;
    border-radius: 16px;
}

.navbar,
.sign-navbar {
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 80px;
}

.nav-logo,
a.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}
