/* ============================================================
   CSS — Only Scholar PhD Lead Magnet Landing Page
   Design System: Academic Premium
   ============================================================ */

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --color-primary:    #1e3a5f;
  --color-secondary:  #2d7a8e;
  --color-cta:        #c65d3b;
  --color-cta-hover:  #a84a2c;
  --color-accent:     #6b8e4e;
  --color-text:       #2d2d2d;
  --color-text-muted: #5a6c7d;
  --color-bg:         #f5f3ed;
  --color-card:       #ffffff;
  --color-border:     #d4d4d4;
  --color-hero-bg:    #1a3358;

  --font-heading: 'Lora', Georgia, serif;
  --font-body:    'Open Sans', system-ui, sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card:  0 2px 20px rgba(30,58,95,0.08);
  --shadow-form:  0 8px 40px rgba(30,58,95,0.18);
  --shadow-btn:   0 4px 18px rgba(198,93,59,0.35);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  --container-max: 1160px;
  --section-pad:   80px 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }

/* ── UTILITIES ───────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.highlight      { color: #f4b866; }         /* warm amber on dark bg */
.highlight-teal { color: #5ce1e6; }         /* bright cyan for better contrast */

/* ── CTA BUTTON ──────────────────────────────────────────── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  width: 100%;
  box-shadow: var(--shadow-btn);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-transform: uppercase;
}

.cta-btn:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(198,93,59,0.45);
  color: #fff;
}

.cta-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-btn);
}

.btn-icon { font-size: 18px; }

/* ── SECTION SHARED ──────────────────────────────────────── */
.section { padding: var(--section-pad); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 48px;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  background: linear-gradient(135deg, var(--color-hero-bg) 0%, #162b47 60%, #1a3d5c 100%);
  position: relative;
  overflow: hidden;
  padding: 70px 20px 0;
}

/* Decorative background pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(45,122,142,0.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(107,142,78,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(45,122,142,0.08);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
  z-index: 1;
  padding-bottom: 80px;
}

/* ── Hero Left ── */
.hero-left { color: #fff; }

.badge {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #f4e4c1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 22px;
  backdrop-filter: blur(4px);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(26px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.22;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  font-style: italic;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}

.hero-bullets li:hover {
  background: rgba(255,255,255,0.10);
}

.bullet-icon { font-size: 17px; flex-shrink: 0; margin-top: 1px; }

/* ── Hero Right (Form Card) ── */
.hero-right { display: flex; align-items: flex-start; }

.form-card {
  background: var(--color-card);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-form);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
  border: 1px solid var(--color-border);
}



.guide-badge {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-accent), #5a7a40);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.form-card-header { margin-bottom: 28px; }

.form-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.form-desc {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ── Form Fields ── */
.lead-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.3px;
}

.form-group input,
.lead-form-inline input {
  padding: 13px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: #fafafa;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.lead-form-inline input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(45,122,142,0.15);
  background: #fff;
}

.form-group input.invalid {
  border-color: #e05050;
  box-shadow: 0 0 0 3px rgba(224,80,80,0.12);
}

.field-error {
  font-size: 12px;
  color: #c0392b;
  display: none;
  margin-top: 2px;
}

.field-error.visible { display: block; }

.microcopy {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  font-style: italic;
}

.privacy-note {
  text-align: center;
  font-size: 12px;
  color: #9aab6f;
  font-weight: 600;
}

/* ── Success State ── */
.success-state {
  text-align: center;
  padding: 24px 16px;
  animation: fadeInUp 0.4s ease;
}

.success-icon { font-size: 52px; margin-bottom: 12px; }

.success-state h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.success-state p {
  color: var(--color-text-muted);
  font-size: 15px;
}

/* ── Hero Wave ── */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
  pointer-events: none;
}

.hero-wave svg { width: 100%; height: 80px; }

/* ===================================================
   SECTION 2 — PROBLEM
   =================================================== */
.problem-section {
  background: var(--color-bg);
  padding-top: 90px;
}

.section-intro {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--color-primary);
  margin-bottom: 40px;
  font-style: italic;
  font-weight: 500;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.problem-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.problem-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(30,58,95,0.12);
}

.problem-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.problem-card p {
  font-size: 15.5px;
  color: var(--color-text);
  line-height: 1.55;
}

.problem-conclusion {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), #2a5080);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: #fff;
}

.problem-conclusion p {
  font-family: var(--font-heading);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
}

.problem-sub {
  margin-top: 10px !important;
  font-family: var(--font-body) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  color: rgba(255,255,255,0.72) !important;
  font-style: italic;
}

/* ===================================================
   SECTION 3 — BIG IDEA SHIFT
   =================================================== */
.shift-section {
  background: linear-gradient(135deg, #eef6f8 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.shift-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.shift-quote-mark {
  font-family: var(--font-heading);
  font-size: 120px;
  color: var(--color-secondary);
  opacity: 0.12;
  line-height: 0.6;
  margin-bottom: 24px;
  user-select: none;
}

.shift-headline {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.25;
}

.shift-body {
  font-size: 17px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.shift-emphasis {
  font-size: 18px;
  color: var(--color-text);
}

/* ===================================================
   SECTION 4 — WHAT THEY'LL LEARN
   =================================================== */
.learn-section { background: var(--color-bg); }

.learn-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.learn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.learn-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.chapter-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-secondary), var(--color-accent));
  border-radius: 2px 0 0 2px;
}

.chapter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(30,58,95,0.13);
  border-color: var(--color-secondary);
}

.featured-card {
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.intro-card {
  background: linear-gradient(135deg, var(--color-primary), #162b47);
  color: #fff;
  border: none;
}

.intro-card.learn-card h3 { color: #fff; font-size: 20px; }
.intro-card.learn-card p { color: rgba(255,255,255,0.85); font-size: 15px; }

.bonus-card {
  background: linear-gradient(135deg, #fff, #f6f9f2);
  border-color: #a8b894;
  box-shadow: 0 8px 30px rgba(107,142,78,0.12);
}

.bonus-card h3 { font-size: 20px; color: var(--color-accent); }

.featured-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  backdrop-filter: blur(4px);
  margin-bottom: 6px;
}

.bonus-badge {
  background: var(--color-accent);
  color: #fff;
}

.learn-num {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-secondary);
  opacity: 0.35;
  flex-shrink: 0;
  line-height: 1;
  min-width: 40px;
}

.learn-card h3 {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.learn-card p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.learn-footer {
  text-align: center;
  margin-top: 48px;
}

.learn-footer-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.learn-footer-sub {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.learn-cta {
  max-width: 360px;
  margin: 0 auto;
}

/* ===================================================
   SECTION 5 — AUTHORITY
   =================================================== */
.authority-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #163052 100%);
}

.authority-inner { text-align: center; }

.authority-section .section-title { color: #fff; }

.niche-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
}

.niche-card {
  flex: 0 0 auto;
  width: calc(50% - 8px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  backdrop-filter: blur(4px);
  transition: background var(--transition), transform var(--transition);
}

.niche-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-3px);
}

.niche-icon { font-size: 34px; }

.authority-note {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.7;
}

/* ===================================================
   SECTION 6 — FINAL CTA
   =================================================== */
.final-cta-section {
  background: var(--color-bg);
  padding: 80px 20px 100px;
}

.final-cta-inner {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-form);
  position: relative;
  overflow: hidden;
}



.final-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.final-cta-sub {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

/* Inline form */
.lead-form-inline { display: flex; flex-direction: column; gap: 14px; align-items: center; }

.inline-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.inline-fields input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: #fafafa;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.inline-fields input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(45,122,142,0.15);
  background: #fff;
}

.inline-fields .cta-btn { width: 100%; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.65);
  padding: 40px 20px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.footer-tagline {
  font-size: 13.5px;
  margin-bottom: 16px;
  font-style: italic;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-legal a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
}

/* ===================================================
   STICKY MOBILE CTA
   =================================================== */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px 20px;
  background: linear-gradient(to top, rgba(245,243,237,0.97) 70%, transparent);
  z-index: 999;
  display: none;
  pointer-events: none;
}

.sticky-cta-btn {
  display: flex;
  font-size: 15px;
  padding: 15px 28px;
  max-width: 420px;
  margin: 0 auto;
  pointer-events: all;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(198,93,59,0.42);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

@keyframes pulse-cta {
  0%   { box-shadow: var(--shadow-btn); }
  50%  { box-shadow: 0 0 0 8px rgba(198,93,59,0.18), var(--shadow-btn); }
  100% { box-shadow: var(--shadow-btn); }
}

.cta-btn.pulse {
  animation: pulse-cta 0.6s ease;
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ===================================================
   RESPONSIVE — TABLET (≥ 640px)
   =================================================== */
@media (min-width: 640px) {
  .problem-grid    { grid-template-columns: repeat(2, 1fr); }
  .learn-grid      { grid-template-columns: repeat(2, 1fr); }
  .niche-card      { width: calc(25% - 12px); }
  .sticky-cta      { display: block; }
}

/* ===================================================
   RESPONSIVE — DESKTOP (≥ 900px)
   =================================================== */
@media (min-width: 900px) {
  :root { --section-pad: 100px 20px; }

  .hero { padding: 90px 20px 0; }

  .hero-inner {
    grid-template-columns: 1fr 420px;
    gap: 60px;
    align-items: center;
    padding-bottom: 100px;
  }

  .hero-right { justify-content: flex-end; }

  .form-card { margin: 0; }

  .learn-grid    { grid-template-columns: repeat(2, 1fr); }

  .inline-fields {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .inline-fields input { flex: 1 1 180px; min-width: 160px; }

  .inline-fields .cta-btn {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  /* Hide sticky CTA on desktop */
  .sticky-cta { display: none !important; }
}

/* ===================================================
   RESPONSIVE — LARGE DESKTOP (≥ 1100px)
   =================================================== */
@media (min-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr 460px; gap: 80px; }
}
