/* ================================================
   POINTS CLARITY - Design System
   Aesthetic: Editorial clarity meets warm guidance
   ================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ================================================
   CSS Variables - Design Tokens
   ================================================ */
:root {
  /* Color Palette - Trust & Clarity */
  --color-primary: #1e6b5c;
  --color-primary-light: #2a8f7a;
  --color-primary-dark: #145347;
  --color-primary-subtle: #e8f5f2;
  
  --color-accent: #e07b39;
  --color-accent-light: #f5a66a;
  --color-accent-dark: #c4622a;
  
  --color-success: #2d9c6f;
  --color-warning: #d4a14a;
  --color-error: #c75a4a;
  
  /* Neutrals */
  --color-text: #1a2e35;
  --color-text-secondary: #4a6670;
  --color-text-muted: #7a9099;
  --color-border: #d4e0e3;
  --color-border-light: #e8f0f2;
  --color-bg: #fafcfc;
  --color-bg-warm: #fdf9f6;
  --color-bg-card: #ffffff;
  --color-bg-dark: #0f2027;
  
  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, sans-serif;
  
  /* Spacing Scale */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(30, 107, 92, 0.06);
  --shadow-md: 0 4px 12px rgba(30, 107, 92, 0.08);
  --shadow-lg: 0 8px 30px rgba(30, 107, 92, 0.12);
  --shadow-xl: 0 20px 50px rgba(30, 107, 92, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  
  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --container-text: 680px;
}

/* ================================================
   Reset & Base Styles
   ================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

/* ================================================
   Typography
   ================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

.text-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-small {
  font-size: 0.9375rem;
}

.text-muted {
  color: var(--color-text-muted);
}

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

/* ================================================
   Layout Utilities
   ================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.container-text {
  max-width: var(--container-text);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

/* ================================================
   Header & Navigation
   ================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 252, 252, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-md);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg-card);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
  }
  
  .nav.open {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .nav-cta {
    margin-left: 0;
    width: 100%;
  }
}

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--color-accent);
  color: white;
}

.btn-accent:hover {
  background: var(--color-accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-icon {
  font-size: 1.25em;
}

/* ================================================
   Cards
   ================================================ */
.card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid var(--color-border-light);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.card-highlight {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

/* ================================================
   Hero Section
   ================================================ */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding-top: 72px;
  background: 
    radial-gradient(ellipse at 70% 20%, rgba(30, 107, 92, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(224, 123, 57, 0.06) 0%, transparent 40%),
    var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e6b5c' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero h1 span {
  color: var(--color-primary);
  font-style: italic;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-ctas {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  animation: fadeInRight 0.8s ease-out 0.2s both;
}

.hero-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border-light);
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.hero-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.hero-card-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.journey-step {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.journey-step:hover {
  background: var(--color-primary-subtle);
}

.journey-step-number {
  width: 32px;
  height: 32px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.journey-step.completed .journey-step-number {
  background: var(--color-success);
  color: white;
}

.journey-step-content {
  flex: 1;
}

.journey-step-title {
  font-weight: 600;
  font-size: 0.9375rem;
}

.journey-step-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 480px;
    margin: 0 auto;
  }
}

/* ================================================
   Problem/Solution Section
   ================================================ */
.problem-solution {
  background: var(--color-bg-warm);
  position: relative;
}

.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.problem-card,
.solution-card {
  padding: var(--space-2xl);
  border-radius: var(--radius-xl);
}

.problem-card {
  background: white;
  border: 1px solid var(--color-border);
}

.solution-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
}

.problem-card h3,
.solution-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.solution-card h3 {
  color: white;
}

.problem-list,
.solution-list {
  list-style: none;
}

.problem-list li,
.solution-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.problem-list li::before {
  content: '✕';
  color: var(--color-error);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.solution-list li::before {
  content: '✓';
  color: var(--color-accent-light);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 768px) {
  .problem-solution-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   Learning Path Section
   ================================================ */
.learning-path {
  background: var(--color-bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.level-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.level-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  border: 2px solid var(--color-border-light);
  text-align: center;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--level-color, var(--color-primary));
}

.level-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--level-color, var(--color-primary));
}

.level-card.level-1 { --level-color: #2d9c6f; }
.level-card.level-2 { --level-color: #3b82f6; }
.level-card.level-3 { --level-color: #f59e0b; }
.level-card.level-4 { --level-color: #ec4899; }

.level-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: var(--level-color, var(--color-primary));
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.level-card h3 {
  margin-bottom: var(--space-sm);
}

.level-card p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.level-milestone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.level-milestone svg {
  color: var(--level-color, var(--color-primary));
}

@media (max-width: 968px) {
  .level-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .level-cards {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   Tools Section
   ================================================ */
.tools-section {
  background: var(--color-bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.tools-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(30, 107, 92, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(224, 123, 57, 0.2) 0%, transparent 40%);
}

.tools-section .container {
  position: relative;
  z-index: 1;
}

.tools-section .section-header h2 {
  color: white;
}

.tools-section .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.tool-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px);
}

.tool-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-lg);
}

.tool-card h3 {
  color: white;
  margin-bottom: var(--space-sm);
}

.tool-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.tool-card .btn {
  width: 100%;
}

@media (max-width: 968px) {
  .tools-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ================================================
   Trust Section
   ================================================ */
.trust-section {
  background: var(--color-bg);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.trust-item {
  text-align: center;
  padding: var(--space-xl);
}

.trust-icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto var(--space-lg);
}

.trust-item h4 {
  margin-bottom: var(--space-sm);
}

.trust-item p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* ================================================
   CTA Section
   ================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
  animation: float 30s linear infinite;
}

@keyframes float {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.cta-section .btn-accent {
  background: white;
  color: var(--color-primary);
}

.cta-section .btn-accent:hover {
  background: var(--color-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ================================================
   Footer
   ================================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-size: 0.9375rem;
}

.footer-brand .logo {
  color: white;
}

.footer h4 {
  color: white;
  font-size: 0.9375rem;
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  
  .footer-brand {
    grid-column: span 2;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* ================================================
   Page Headers
   ================================================ */
.page-header {
  padding: calc(72px + var(--space-4xl)) 0 var(--space-3xl);
  background: 
    radial-gradient(ellipse at 50% 0%, rgba(30, 107, 92, 0.1) 0%, transparent 60%),
    var(--color-bg);
  text-align: center;
}

.page-header h1 {
  margin-bottom: var(--space-md);
}

.page-header .text-lead {
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumb a {
  color: var(--color-text-muted);
}

.breadcrumb a:hover {
  color: var(--color-primary);
}

/* ================================================
   Article Content
   ================================================ */
.article-content {
  max-width: var(--container-text);
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.article-content h2 {
  margin-top: var(--space-3xl);
  margin-bottom: var(--space-lg);
}

.article-content h3 {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 0.5em;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding-left: var(--space-lg);
  margin: var(--space-xl) 0;
  font-style: italic;
  color: var(--color-text-secondary);
}

.callout {
  background: var(--color-primary-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  border-left: 4px solid var(--color-primary);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.callout p:last-child {
  margin-bottom: 0;
}

/* ================================================
   Lesson Cards (Learning Pages)
   ================================================ */
.lessons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-decoration: none;
  transition: all var(--transition-base);
}

.lesson-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.lesson-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.lesson-card.completed .lesson-number {
  background: var(--color-success);
  color: white;
}

.lesson-content {
  flex: 1;
}

.lesson-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.125rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.lesson-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.lesson-arrow {
  color: var(--color-text-muted);
  transition: transform var(--transition-fast);
}

.lesson-card:hover .lesson-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

/* ================================================
   Quiz/Tool Styles
   ================================================ */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg);
}

.quiz-progress {
  margin-bottom: var(--space-2xl);
}

.progress-bar {
  height: 8px;
  background: var(--color-border-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.progress-text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-align: center;
}

.quiz-question {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border-light);
  margin-bottom: var(--space-xl);
}

.quiz-question h3 {
  margin-bottom: var(--space-xl);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.quiz-option {
  display: block;
  padding: var(--space-lg);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.quiz-option:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
}

.quiz-option.selected {
  border-color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: 0 0 0 3px rgba(30, 107, 92, 0.2);
}

.quiz-option input {
  display: none;
}

.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.quiz-results {
  text-align: center;
}

.result-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: 2.5rem;
}

.result-title {
  margin-bottom: var(--space-md);
}

.result-description {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ================================================
   Glossary Styles
   ================================================ */
.glossary-search {
  max-width: 500px;
  margin: 0 auto var(--space-3xl);
}

.search-input {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  transition: all var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 107, 92, 0.1);
}

.glossary-letter {
  margin-bottom: var(--space-3xl);
}

.glossary-letter h2 {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-border-light);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.glossary-term {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
}

.glossary-term:last-child {
  border-bottom: none;
}

.glossary-term h4 {
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.glossary-term p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

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

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ================================================
   Responsive Adjustments
   ================================================ */
@media (max-width: 576px) {
  :root {
    --space-3xl: 3rem;
    --space-4xl: 4rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1.0625rem;
  }
  
  .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }
}
