/* ═══════════════════════════════════════════════════════════════
   COMPONENTS — All UI component styles
   Full dark theme — all surfaces are dark, text is light.
   Colors reference theme variables exclusively.
═══════════════════════════════════════════════════════════════ */

/* ── Header / Navigation ───────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: linear-gradient(to bottom, var(--bg-deep) 0%, transparent 100%);
  backdrop-filter: blur(10px);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg-deep);
  box-shadow: var(--glow-accent);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-accent-strong);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--bg-highlight);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-arrow {
  transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
  background: var(--bg-deep);
  color: var(--text-primary);
}

.hero > .container {
  max-width: 1400px;
}

/* Gradient orbs — teal glow top-right, subtle rust bottom-left */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(140, 180, 186, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* No bottom-left orb — it conflicts with the angled divider line */

.hero-content {
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--rust-muted);
  border: 1px solid var(--rust);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--rust);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  word-spacing: -0.1em;
  margin-bottom: var(--space-sm);
  animation: fadeInUp 0.6s ease-out 0.1s both;
  color: var(--text-primary);
}

.hero-title .gradient-text {
  background: var(--gradient-accent-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Rotating word in hero title ───────────────────────────── */
.rotating-word-wrapper {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  height: 1.15em;
}

/* Invisible placeholder sized to longest word — holds width stable */
.rotating-word-wrapper::after {
  content: 'Site Reliability';
  display: inline-block;
  visibility: hidden;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.rotating-word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 0.6s ease, transform 0.6s ease;
  /* Each word gets its own gradient */
  background: var(--gradient-accent-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rotating-word.active {
  opacity: 1;
  transform: translateY(0);
}

.rotating-word.exiting {
  opacity: 0;
  transform: translateY(-0.25em);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-guild-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease-out 0.25s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* ── Hero grid layout (text left, image right) ─────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: center;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  max-height: 550px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════
   FIREFLY PARTICLES — canvas-based lemniscate pattern
   300 diamond-shaped particles tracing a figure-8 (DevOps loop)
   around the hero image. Rendered via <canvas> + particles.js.
═══════════════════════════════════════════════════════════════ */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  cursor: crosshair;
}

/* Enable mouse interaction on desktop */
@media (hover: hover) {
  .hero-particles {
    pointer-events: auto;
  }
}

/* ── Scroll hint arrow ─────────────────────────────────────── */
.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--rust);
  opacity: 0.7;
  text-decoration: none;
  animation: scrollPop 7s ease-in-out infinite;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.scroll-hint:hover {
  opacity: 1;
}

@keyframes scrollPop {
  0%, 8% { transform: translateX(-50%) translateY(0); }
  3% { transform: translateX(-50%) translateY(8px); }
  6% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* ── Angled Section Dividers ────────────────────────────────── */
.section-divider {
  position: relative;
  height: 60px;
  /* Default: dark-to-base transition */
  --divider-from: var(--bg-deep);
  --divider-to: var(--bg-base);
}

.section-divider-angle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--divider-to);
}

/* Top color fill — extends 2px past the diagonal center so it
   overlaps under the rust line with no sub-pixel gaps */
.section-divider-angle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--divider-from);
  clip-path: polygon(0 0, 100% 0, 100% calc(30% + 2px), 0 calc(70% + 2px));
}

/* Rust accent line — 2px band on the diagonal, painted on top */
.section-divider-angle::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--rust);
  clip-path: polygon(
    0 calc(70% - 1px),
    100% calc(30% - 1px),
    100% calc(30% + 1px),
    0 calc(70% + 1px)
  );
  z-index: 2;
}

/* ── Section shared ────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-primary);
}

/* ── How This Started (Story) Section ──────────────────────── */
.story {
  background: var(--bg-base);
}

.story-content {
  max-width: 720px;
  margin: 0 auto;
}

.story-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

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

.story-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.story-signature {
  font-family: 'Caveat', cursive;
  font-size: 3.3rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  margin-bottom: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
  display: block;
  transform: rotate(-4deg);
  transform-origin: left center;
}

/* ── Benefits Section ──────────────────────────────────────── */
.benefits {
  background: var(--bg-section-alt);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.benefit-card {
  padding: var(--space-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-highlight);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--rust) 0%, var(--rust-dim) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Hover disabled — cards are not clickable
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: var(--rust);
  box-shadow: var(--shadow-card-hover);
}

.benefit-card:hover::before {
  opacity: 1;
}
*/

.benefit-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.benefit-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.benefit-status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: var(--space-xs);
}

.benefit-status.shipped {
  background: var(--status-live-bg);
  color: var(--status-live-color);
  border: 1px solid var(--status-live-border);
}

.benefit-status.building {
  background: var(--status-coming-bg);
  color: var(--status-coming-color);
  border: 1px solid var(--status-coming-border);
}

.benefit-status.upcoming {
  background: var(--status-future-bg);
  color: var(--status-future-color);
  border: 1px solid var(--status-future-border);
}

.benefit-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Benefit icon colors */
.benefit-card:nth-child(1) .benefit-icon { color: var(--icon-1); }
.benefit-card:nth-child(2) .benefit-icon { color: var(--icon-2); }
.benefit-card:nth-child(3) .benefit-icon { color: var(--icon-3); }
.benefit-card:nth-child(4) .benefit-icon { color: var(--icon-4); }
.benefit-card:nth-child(5) .benefit-icon { color: var(--icon-5); }
.benefit-card:nth-child(6) .benefit-icon { color: var(--icon-6); }

/* ── Courses Section ───────────────────────────────────────── */
.courses {
  position: relative;
  background: var(--bg-base);
}

.courses::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, var(--accent-muted) 0%, transparent 70%);
  pointer-events: none;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 800px;
  margin: 0 auto;
}

.course-item {
  padding: var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--bg-highlight);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-card);
}

.course-item:hover {
  border-color: var(--rust);
  box-shadow: var(--shadow-card-hover);
}

.course-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.course-item.expandable {
  cursor: pointer;
}

.course-expand-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.course-item.expanded .course-expand-icon {
  transform: rotate(180deg);
}

/* ── Expandable course sections ────────────────────────────── */
.course-sections {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.course-item.expanded .course-sections,
.course-item.expandable:hover .course-sections {
  max-height: 300px;
  opacity: 1;
}

.course-section {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-xs) 0;
  margin-left: calc(80px + var(--space-lg));
  border-bottom: 1px solid var(--bg-highlight);
}

.course-section:first-child {
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--bg-highlight);
}

.course-section:last-child {
  border-bottom: none;
}

.course-section-status {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  width: 75px;
  text-align: center;
}

.course-section-status.shipped {
  background: var(--status-live-bg);
  color: var(--status-live-color);
  border: 1px solid var(--status-live-border);
}

.course-section-status.building {
  background: var(--status-coming-bg);
  color: var(--status-coming-color);
  border: 1px solid var(--status-coming-border);
}

.course-section-status.upcoming {
  background: var(--status-future-bg);
  color: var(--status-future-color);
  border: 1px solid var(--status-future-border);
}

.course-section-name {
  flex: 1;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.course-section-progress {
  flex-shrink: 0;
  width: 80px;
}

.progress-bar {
  display: block;
  height: 4px;
  background: var(--bg-highlight);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.6s ease;
}

.course-status {
  flex-shrink: 0;
  width: 80px;
  text-align: center;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-live {
  background: var(--status-live-bg);
  color: var(--status-live-color);
  border: 1px solid var(--status-live-border);
}

.status-coming {
  background: var(--status-coming-bg);
  color: var(--status-coming-color);
  border: 1px solid var(--status-coming-border);
}

.status-future {
  background: var(--status-future-bg);
  color: var(--status-future-color);
  border: 1px solid var(--status-future-border);
}

.course-info {
  flex: 1;
}

.course-title {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.course-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Audience / Who It's For ───────────────────────────────── */
.audience {
  background: var(--bg-base);
}

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

.audience-card {
  text-align: center;
  padding: var(--space-xl);
}

.audience-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  display: block;
}

.audience-role {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.audience-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ── Pricing Section ───────────────────────────────────────── */
.pricing {
  text-align: center;
  background: var(--bg-section-deep);
}

.pricing-card {
  max-width: 500px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-elevated);
  border: 2px solid var(--rust);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rust) 0%, #C4756A 50%, var(--rust) 100%);
}

.pricing-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--rust);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.pricing-name {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-xs);
}

.price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.price-original {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: var(--space-xs);
}

.price-savings {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.pricing-desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.pricing-features {
  text-align: left;
  margin-bottom: var(--space-md);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--bg-highlight);
  color: var(--text-secondary);
}

.pricing-feature:last-child {
  border-bottom: none;
}

.pricing-check {
  color: var(--accent);
  font-weight: bold;
}

.pricing-note {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-note a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--teal-dim);
}

.pricing-note a:hover {
  color: var(--accent);
}

/* ── About / Host Section ──────────────────────────────────── */
.about {
  background: var(--bg-section-alt);
}

.about-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-2xl);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  width: 200px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.about-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--rust);
  margin-bottom: var(--space-md);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.about-text strong {
  color: var(--text-primary);
}

.about-text em {
  color: var(--teal);
  font-style: italic;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--bg-highlight);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.about-link:hover {
  border-color: var(--rust);
  color: var(--teal);
}

/* ── FAQ Section ───────────────────────────────────────────── */
.faq {
  background: var(--bg-base);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--bg-highlight);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--rust-dim);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: left;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--teal);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--rust);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active {
  border-color: var(--rust);
  border-left: 3px solid var(--rust);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.faq-answer-inner a {
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--teal-dim);
}

.faq-answer-inner a:hover {
  color: var(--accent);
}

/* ── Final CTA Section ─────────────────────────────────────── */
.cta {
  text-align: center;
  padding: var(--space-3xl) 0;
  background: var(--bg-section-deep);
  color: var(--text-primary);
}

.cta-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.cta-title .gradient-text {
  background: var(--gradient-accent-vivid);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto var(--space-xl);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: var(--space-xl) 0;
  border-top: 2px solid var(--rust);
  text-align: center;
  background: var(--bg-deep);
  color: var(--text-muted);
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-link:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL ANIMATIONS
═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .benefit-card,
  .course-item,
  .audience-card,
  .faq-item {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.6s ease-out forwards;
  }

  .benefit-card:nth-child(1) { animation-delay: 0.1s; }
  .benefit-card:nth-child(2) { animation-delay: 0.2s; }
  .benefit-card:nth-child(3) { animation-delay: 0.3s; }
  .benefit-card:nth-child(4) { animation-delay: 0.4s; }
  .benefit-card:nth-child(5) { animation-delay: 0.5s; }
  .benefit-card:nth-child(6) { animation-delay: 0.6s; }

  .course-item:nth-child(1) { animation-delay: 0.1s; }
  .course-item:nth-child(2) { animation-delay: 0.2s; }
  .course-item:nth-child(3) { animation-delay: 0.3s; }
  .course-item:nth-child(4) { animation-delay: 0.4s; }

  .audience-card:nth-child(1) { animation-delay: 0.1s; }
  .audience-card:nth-child(2) { animation-delay: 0.2s; }
  .audience-card:nth-child(3) { animation-delay: 0.3s; }

  .faq-item:nth-child(1) { animation-delay: 0.1s; }
  .faq-item:nth-child(2) { animation-delay: 0.15s; }
  .faq-item:nth-child(3) { animation-delay: 0.2s; }
  .faq-item:nth-child(4) { animation-delay: 0.25s; }
  .faq-item:nth-child(5) { animation-delay: 0.3s; }
  .faq-item:nth-child(6) { animation-delay: 0.35s; }
  .faq-item:nth-child(7) { animation-delay: 0.4s; }
  .faq-item:nth-child(8) { animation-delay: 0.45s; }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: var(--space-2xl);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .rotating-word {
    left: 50%;
    transform: translateX(-50%) translateY(0.25em);
  }

  .rotating-word.active {
    transform: translateX(-50%) translateY(0);
  }

  .rotating-word.exiting {
    transform: translateX(-50%) translateY(-0.25em);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 350px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .course-header {
    flex-direction: column;
    text-align: center;
  }

  .course-section {
    margin-left: 0;
    gap: var(--space-sm);
  }

  .course-section-progress {
    width: 60px;
  }

  .audience-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: var(--space-xl);
  }

  .price {
    font-size: 3rem;
  }

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

  .story-signature {
    text-align: center;
    transform-origin: center center;
  }

  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    margin: 0 auto;
  }

  .about-links {
    justify-content: center;
  }

  .faq-question {
    font-size: 0.9rem;
    padding: var(--space-sm) var(--space-md);
  }

  .faq-answer-inner {
    padding: 0 var(--space-md) var(--space-md);
    font-size: 0.9rem;
  }

  .section-divider {
    height: 40px;
  }
}
