/* ═══════════════════════════════════════════════════════════════
   Academic Project Support — Page Styles
   Uses ap-* prefix. Relies on style.css for base tokens & nav.
   ─────────────────────────────────────────────────────────────
   01. Base
   02. Hero
   03. Integrity Disclaimer
   04. What You Get
   05. Philosophy
   06. Who This Is For
   07. Problem Spaces
   08. How It Works
   09. Final CTA
   10. Footer overrides (none needed)
   11. Responsive
═══════════════════════════════════════════════════════════════ */

/* ── 01. Base ─────────────────────────────────────────────── */

:root {
  --ap-purple:  #6d28d9;
  --ap-purple2: #7c3aed;
  --ap-cyan:    #00b4f0;
  --ap-text:    #0f172a;
  --ap-muted:   #64748b;
  --ap-border:  rgba(109,40,217,.15);
  --ap-surface: #f8f7ff;
}

*, *::before, *::after { box-sizing: border-box; }

#ap-root {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--ap-text);
  background: #ffffff;
}

.ap-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.ap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ap-cyan);
  margin-bottom: 20px;
}

.ap-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--ap-cyan);
  border-radius: 2px;
  display: inline-block;
}

.ap-section-head {
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ap-purple);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-section-head::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--ap-purple);
  border-radius: 2px;
}


/* ── 02. Hero ─────────────────────────────────────────────── */

.ap-hero {
  position: relative;
  background: #0a0f1e;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}

.ap-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.ap-hero-blob1 {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(109,40,217,.35) 0%, transparent 70%);
  animation: apBlob1 8s ease-in-out infinite alternate;
}

.ap-hero-blob2 {
  position: absolute;
  bottom: -80px;
  right: 10%;
  width: 400px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(0,180,240,.2) 0%, transparent 70%);
  animation: apBlob2 10s ease-in-out infinite alternate;
}

@keyframes apBlob1 {
  from { transform: translateX(-50%) scale(1); opacity: .7; }
  to   { transform: translateX(-52%) scale(1.1); opacity: 1; }
}

@keyframes apBlob2 {
  from { transform: scale(1); opacity: .5; }
  to   { transform: scale(1.15); opacity: .8; }
}

.ap-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: apGridScroll 20s linear infinite;
}

@keyframes apGridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 60px; }
}

.ap-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 48px;
}

.ap-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ap-cyan);
  background: rgba(0,180,240,.1);
  border: 1px solid rgba(0,180,240,.25);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 28px;
}

.ap-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-cyan);
  animation: apPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes apPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.ap-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  color: #f0f7ff;
  margin: 0 0 20px;
}

.ap-hero h1 em {
  font-style: italic;
  font-family: Fraunces, serif;
  color: var(--ap-cyan);
  font-weight: 200;
}

.ap-hero-sub {
  font-size: 1.05rem;
  color: rgba(240,247,255,.7);
  font-weight: 400;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 36px;
}

.ap-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ap-purple), var(--ap-purple2));
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(109,40,217,.4);
  transition: transform .2s, box-shadow .2s;
}

.ap-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(109,40,217,.5);
}


/* ── 03. Integrity Disclaimer ─────────────────────────────── */

.ap-disclaimer-section {
  padding: 64px 0;
  background: #ffffff;
}

.ap-disclaimer {
  border: 1.5px solid rgba(109,40,217,.3);
  background: rgba(109,40,217,.04);
  border-radius: 16px;
  padding: 36px 48px;
  display: flex;
  gap: 28px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.ap-disclaimer-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--ap-purple), var(--ap-purple2));
}

.ap-disclaimer-icon {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.ap-disclaimer-body {}

.ap-disclaimer-deny {
  font-size: .95rem;
  font-weight: 700;
  color: var(--ap-text);
  line-height: 1.6;
  margin: 0 0 12px;
}

.ap-disclaimer-affirm {
  font-size: .92rem;
  font-weight: 600;
  color: var(--ap-muted);
  line-height: 1.7;
  margin: 0;
}

.ap-disclaimer-affirm strong {
  color: var(--ap-purple);
  font-weight: 700;
}


/* ── 04. What You Get ─────────────────────────────────────── */

.ap-cards-section {
  padding: 72px 0;
  background: var(--ap-surface);
}

.ap-cards-header {
  margin-bottom: 44px;
}

.ap-cards-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ap-text);
  margin: 0 0 10px;
  line-height: 1.15;
}

.ap-cards-header h2 em {
  font-style: italic;
  font-family: Fraunces, serif;
  color: var(--ap-purple);
  font-weight: 200;
}

.ap-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ap-card {
  background: #ffffff;
  border: 1.5px solid var(--ap-border);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ap-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.ap-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--ap-text);
  letter-spacing: -.02em;
  margin: 0;
  line-height: 1.25;
}

.ap-card-desc {
  font-size: .86rem;
  color: var(--ap-muted);
  font-weight: 600;
  line-height: 1.65;
  margin: 0;
}


/* ── 05. Philosophy ───────────────────────────────────────── */

.ap-philosophy-section {
  padding: 72px 0;
  background: #ffffff;
}

.ap-philosophy-inner {
  max-width: 680px;
}

.ap-philosophy-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ap-text);
  margin: 16px 0 28px;
  line-height: 1.15;
}

.ap-philosophy-inner p {
  font-size: .93rem;
  color: var(--ap-muted);
  font-weight: 600;
  line-height: 1.75;
  margin: 0 0 18px;
}

.ap-philosophy-inner p:last-child { margin-bottom: 0; }


/* ── 06. Who This Is For ──────────────────────────────────── */

.ap-audience-section {
  padding: 72px 0;
  background: var(--ap-surface);
}

.ap-audience-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ap-text);
  margin: 16px 0 28px;
  line-height: 1.15;
}

.ap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ap-chip {
  display: inline-flex;
  align-items: center;
  font-size: .78rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(0,180,240,.3);
  background: rgba(0,180,240,.07);
  color: #0284c7;
  letter-spacing: .02em;
}

.ap-chip--degree {
  border-color: rgba(109,40,217,.25);
  background: rgba(109,40,217,.07);
  color: var(--ap-purple);
}

.ap-domains-line {
  font-size: .85rem;
  color: var(--ap-muted);
  font-weight: 600;
  margin: 0;
  line-height: 1.6;
}

.ap-domains-line strong {
  color: var(--ap-text);
  font-weight: 700;
}


/* ── 07. Problem Spaces ───────────────────────────────────── */

.ap-spaces-section {
  padding: 72px 0;
  background: #ffffff;
}

.ap-spaces-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ap-text);
  margin: 16px 0 10px;
  line-height: 1.15;
}

.ap-spaces-sub {
  font-size: .88rem;
  color: var(--ap-muted);
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 36px;
  max-width: 580px;
}

.ap-spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.ap-space-item {
  border: 1.5px solid var(--ap-border);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-space-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ap-purple);
  flex-shrink: 0;
}

.ap-space-label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ap-text);
  line-height: 1.3;
}

.ap-note {
  font-size: .78rem;
  color: var(--ap-muted);
  font-weight: 600;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}


/* ── 08. How It Works ─────────────────────────────────────── */

.ap-how-section {
  padding: 72px 0;
  background: var(--ap-surface);
}

.ap-how-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ap-text);
  margin: 16px 0 44px;
  line-height: 1.15;
}

.ap-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
  position: relative;
}

.ap-timeline-line {
  position: absolute;
  top: 24px;
  left: 19px;
  width: 2px;
  bottom: 24px;
  background: linear-gradient(180deg, var(--ap-purple) 0%, rgba(109,40,217,.15) 100%);
  border-radius: 2px;
}

.ap-step {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding-bottom: 36px;
  position: relative;
}

.ap-step:last-child { padding-bottom: 0; }

.ap-step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ap-purple), var(--ap-purple2));
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(109,40,217,.3);
}

.ap-step-body {}

.ap-step-title {
  font-size: .98rem;
  font-weight: 800;
  color: var(--ap-text);
  margin: 0 0 6px;
  padding-top: 8px;
  line-height: 1.25;
}

.ap-step-desc {
  font-size: .86rem;
  color: var(--ap-muted);
  font-weight: 600;
  line-height: 1.65;
  margin: 0;
}


/* ── 09. Final CTA ────────────────────────────────────────── */

.ap-cta-section {
  padding: 96px 0;
  background: #0a0f1e;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ap-cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(109,40,217,.3) 0%, transparent 70%);
  pointer-events: none;
}

.ap-cta-inner {
  position: relative;
  z-index: 1;
}

.ap-cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: #f0f7ff;
  margin: 0 0 12px;
  line-height: 1.1;
}

.ap-cta-section h2 em {
  font-style: italic;
  font-family: Fraunces, serif;
  color: var(--ap-cyan);
  font-weight: 200;
}

.ap-cta-sub {
  font-size: .95rem;
  color: rgba(240,247,255,.6);
  font-weight: 500;
  line-height: 1.65;
  margin: 0 0 36px;
}

.ap-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--ap-purple), var(--ap-purple2));
  color: #fff;
  padding: 16px 40px;
  border-radius: 100px;
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .03em;
  text-decoration: none;
  box-shadow: 0 4px 28px rgba(109,40,217,.45);
  transition: transform .2s, box-shadow .2s;
}

.ap-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(109,40,217,.6);
}

.ap-cta-btn svg {
  flex-shrink: 0;
}


/* ── 11. Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
  .ap-wrap { padding: 0 24px; }
  .ap-hero-inner { padding: 0 24px; }
  .ap-disclaimer { padding: 28px 24px; gap: 20px; }
  .ap-cards-section,
  .ap-philosophy-section,
  .ap-audience-section,
  .ap-spaces-section,
  .ap-how-section,
  .ap-cta-section { padding: 56px 0; }
  .ap-disclaimer-section { padding: 48px 0; }
}

@media (max-width: 640px) {
  .ap-cards-grid { grid-template-columns: 1fr; }
  .ap-spaces-grid { grid-template-columns: 1fr; }
  .ap-disclaimer { flex-direction: column; gap: 16px; }
  .ap-disclaimer-icon { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .ap-hero { padding: 80px 0 60px; }
  .ap-hero h1 { font-size: 1.9rem; }
  .ap-timeline::before { left: 15px; }
  .ap-step-num { width: 32px; height: 32px; font-size: .7rem; }
  .ap-step { gap: 18px; }
}
