/* ═══════════════════════════════════════════════════════
   SAM SCHOLAR — styles.css
   ═══════════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --bg:        #0A0E1A;
  --bg-dark:   #0D1220;
  --blue:      #1E90FF;
  --purple:    #7B2FBE;
  --text:      #FFFFFF;
  --muted:     #94A3B8;
  --glass:     rgba(30, 42, 58, 0.7);
  --border:    rgba(30, 144, 255, 0.15);
  --border-h:  rgba(30, 144, 255, 0.6);
  --radius:    16px;
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, canvas { display: block; }

/* ── Loader ── */
#loader {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 9999;
  transition: opacity 0.6s ease 0.3s;
}
#loader.done { opacity: 0; pointer-events: none; }
#loader-bar {
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.4);
  transition: width 0.12s linear;
}

/* ── Nav ── */
#nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 40px;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}
#nav.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-pill {
  background: var(--blue) !important;
  color: var(--text) !important;
  padding: 10px 20px;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 13px !important;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-pill:hover { opacity: 0.88; transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ═══════════════════════════════════
   HERO
   ═══════════════════════════════════ */
#hero-wrapper {
  position: relative;
  height: 900vh;
  background: var(--bg);
}

#hero-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

/* Subtle grid background */
#hero-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30,144,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,144,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow behind content */
#hero-sticky::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 30%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(30,144,255,0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Left panel */
#hero-left {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#hero-content {
  max-width: 580px;
  padding: 0 60px;
  will-change: transform;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 24px;
  font-family: var(--font-body);
}

.hero-headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(48px, 5.5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}
.hl-line1 { color: var(--text); }
.hl-line2 { color: var(--blue); }

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 40px;
  transition: opacity 0.4s ease;
  max-width: 460px;
}
.hero-sub.fading { opacity: 0; }

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--text);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
  box-shadow: 0 0 0 0 rgba(30,144,255,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30,144,255,0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--blue);
  background: rgba(30,144,255,0.08);
}

/* Hero canvas */
#hero-canvas {
  position: absolute;
  right: 0;
  top: 0;
  width: 60vw;
  height: 100vh;
  opacity: 0;
  z-index: 1;
}

/* ═══════════════════════════════════
   SITE CONTENT (below hero)
   ═══════════════════════════════════ */
#site-content {
  position: relative;
  z-index: 10;
  background: var(--bg);
}

/* ── Stats ── */
#stats {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 60px 40px;
}
.stats-row {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  flex: 1;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  color: var(--blue);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  max-width: 140px;
}

/* ── Section shared ── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(32px, 3.5vw, 48px);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
}

/* ── Services ── */
#services {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 120px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.svc-card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,144,255,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(30,144,255,0.1);
}
.svc-card:hover::before { opacity: 1; }
.svc-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--blue);
}
.svc-icon svg {
  width: 100%;
  height: 100%;
}
.svc-card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.svc-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 24px;
}
.svc-arrow {
  font-size: 18px;
  color: var(--blue);
  opacity: 0;
  transform: translateX(-8px);
  display: inline-block;
  transition: opacity 0.3s, transform 0.3s;
}
.svc-card:hover .svc-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ── How It Works ── */
#how-it-works {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  padding: 120px 0;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.timeline-wrap {
  position: relative;
}
.timeline-rail {
  position: absolute;
  top: 36px;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.07);
  z-index: 0;
}
.timeline-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}
.timeline-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}
.t-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0.35;
  transition: opacity 0.5s ease;
}
.t-step.active { opacity: 1; }
.t-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: border-color 0.4s, background 0.4s, box-shadow 0.4s;
}
.t-step.active .t-node {
  border-color: var(--blue);
  background: rgba(30,144,255,0.1);
  box-shadow: 0 0 24px rgba(30,144,255,0.25);
}
.t-node span {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  color: var(--muted);
  transition: color 0.4s;
}
.t-step.active .t-node span { color: var(--blue); }
.t-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.t-body p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Testimonials ── */
#testimonials {
  position: relative;
  z-index: 10;
  background: var(--bg);
  padding: 120px 0;
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.testi-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(30px);
}
.testi-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s, border-color 0.3s;
}
.testi-card--featured {
  border-color: rgba(30,144,255,0.3);
  background: rgba(30,144,255,0.06);
  position: relative;
  top: -12px;
}
.testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-color: var(--border-h);
}
.testi-card--featured.revealed:hover {
  transform: translateY(-16px);
}
.testi-stars {
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.testi-card blockquote {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  margin-bottom: 28px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.testi-author strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.testi-author span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ── CTA ── */
#cta {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #1E90FF 0%, #7B2FBE 100%);
  padding: 120px 40px;
  overflow: hidden;
  text-align: center;
}
.cta-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 20px;
  margin-top: 16px;
}
.cta-inner p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  line-height: 1.65;
  margin-bottom: 40px;
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: #0A0E1A;
  padding: 16px 36px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

/* ── Footer ── */
#footer {
  position: relative;
  z-index: 10;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 36px 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

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

  #hero-canvas { width: 100vw; opacity: 0; }

  .stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .stat-divider { display: none; }

  .services-grid { grid-template-columns: 1fr; }
  .timeline-steps { grid-template-columns: 1fr 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-card--featured { top: 0; }

  .section-wrap { padding: 0 24px; }
  #stats { padding: 48px 24px; }
  #services, #how-it-works, #testimonials { padding: 80px 0; }
  #cta { padding: 80px 24px; }
  #footer { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }

  #nav { padding: 0 24px; }
  .timeline-rail { display: none; }
}

@media (max-width: 600px) {
  .hero-headline { font-size: 42px; }
  .hero-btns { flex-direction: column; }
  .timeline-steps { grid-template-columns: 1fr; }
  #hero-content { padding: 0 28px; }
}
