/* landing.css — hero, stats, module cards, stack, labs, sources */

/* ── LANDING LAYOUT ── */

.landing-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HERO ── */

.hero {
  background: linear-gradient(160deg, #0C0B0A 0%, #160E05 45%, #190C04 100%);
  min-height: 840px;
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 90% at 15% 55%, rgba(232, 81, 26, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 55% 65% at 82% 25%, rgba(43, 108, 176, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 60% 85%, rgba(124, 58, 237, 0.07) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px 180px;
  opacity: 0.025;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-text {
  position: relative;
  z-index: 1;
  padding-left: 3rem;
}

.hero-logo {
  display: block;
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(232, 81, 26, 0.15);
  border: 1px solid rgba(232, 81, 26, 0.35);
  color: #FFA07A;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.3125rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #F5F0E8;
  margin-bottom: 1.125rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, #E8511A, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.65);
  margin-bottom: 2rem;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-primary:hover {
  background: var(--color-brand-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: transparent;
  border: 1px solid rgba(245, 240, 232, 0.25);
  color: rgba(245, 240, 232, 0.8);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.6875rem 1.375rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-outline:hover {
  border-color: rgba(245, 240, 232, 0.5);
  color: #F5F0E8;
  background: rgba(245, 240, 232, 0.06);
  text-decoration: none;
}

.hero-diagram {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  overflow: hidden;
}

.hero-diagram-title {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
  margin-bottom: 0.75rem;
}
.hero-diagram-title strong {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(245, 240, 232, 0.75);
}
.hero-diagram-title span {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
}

.hero-diagram svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

/* ── STATS BAR ── */

.stats-bar {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--color-border-subtle);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.stat-item:last-child { border-right: none; }
.stat-item.animate-in { opacity: 1; transform: translateY(0); }

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-brand);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.35;
}

/* ── SECTION HEADERS ── */

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brand);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-top: 0.75rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ── ROADMAP SECTION ── */

.roadmap-section {
  padding: 4rem 0;
  background: var(--color-bg);
  position: relative;
}

.roadmap-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.6;
}

[data-theme="dark"] .roadmap-section::before {
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  opacity: 1;
}

/* Roadmap banner */
.roadmap-banner {
  text-align: center;
  margin: 2rem 0 2.5rem;
}

.roadmap-banner-img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10);
}

/* Filters */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.chip:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-light);
}
.chip.active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #fff;
}

.chip-all {
  border-color: rgba(232, 81, 26, 0.4);
  color: var(--color-brand);
  font-weight: 600;
}
.chip-all:not(.active):hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand);
}

/* Module grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Module card */
.module-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.375rem 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  border-left: 4px solid var(--module-color, var(--color-brand));
  text-decoration: none;
  display: flex;
  flex-direction: column;
  color: inherit;
  opacity: 0;
  transform: translateY(20px);
  position: relative;
}

/* ── COURSE COMPLETION STRIP ── */

.completion-strip {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 0.95rem 1.5rem;
}

.completion-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.completion-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.completion-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(232,81,26,0.15) 0%, rgba(232,81,26,0.08) 100%);
  border: 1px solid rgba(232,81,26,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8511A;
  flex-shrink: 0;
}

.completion-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.completion-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
}

.completion-sub {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.completion-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.completion-fraction {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
  flex-shrink: 0;
}

.completion-written {
  font-size: 1.5rem;
  font-weight: 800;
  color: #E8511A;
  line-height: 1;
}

.completion-sep {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 400;
}

.completion-total {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.completion-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.completion-track {
  flex: 1;
  height: 10px;
  background: var(--color-bg-secondary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  min-width: 80px;
}

.completion-fill {
  height: 100%;
  background: linear-gradient(90deg, #E8511A 0%, #FF8C42 60%, #FFB347 100%);
  border-radius: 999px;
  position: relative;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated shimmer on the fill */
.completion-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  animation: shimmer-sweep 2.4s ease-in-out infinite;
}

@keyframes shimmer-sweep {
  0%   { transform: translateX(-60px); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateX(40px); opacity: 0; }
}

.completion-pct {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #E8511A;
  min-width: 2.5rem;
  text-align: right;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .completion-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .completion-right { width: 100%; }
  .completion-sub { display: none; }
}

/* ── READY BADGE (WOW EDITION) ── */

@keyframes badge-shimmer {
  0%   { left: -80%; }
  100% { left: 130%; }
}

@keyframes badge-float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50%       { transform: translateY(-1.5px) scale(1.03); }
}

.module-ready-badge {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;

  /* Volumetric shield shape — pointed bottom, clipped top corners */
  clip-path: polygon(14% 0%, 86% 0%, 100% 18%, 100% 72%, 50% 100%, 0% 72%, 0% 18%);

  background:
    linear-gradient(160deg,
      #22C55E 0%,
      #16A34A 35%,
      #15803D 65%,
      #14532D 100%);
  color: #fff;
  font-size: 0.595rem;
  font-weight: 800;
  padding: 0.38em 0.72em 0.5em 0.55em;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;

  /* 3-D depth: top highlight + bottom shadow + green glow */
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 -1px 0 rgba(0,0,0,0.18) inset,
    0 4px 12px rgba(21,128,61,0.45),
    0 8px 24px rgba(21,128,61,0.22);

  animation: badge-float 3.6s ease-in-out infinite;
  overflow: hidden;
}

/* Shine sweep */
.badge-shine {
  position: absolute;
  top: 0; bottom: 0;
  left: -80%;
  width: 60%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.55) 50%,
    transparent 70%
  );
  animation: badge-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

.badge-check {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
  position: relative;
}

.badge-label {
  position: relative;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

[data-theme="dark"] .module-ready-badge {
  background:
    linear-gradient(160deg,
      #22C55E 0%,
      #16A34A 40%,
      #14532D 100%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -1px 0 rgba(0,0,0,0.25) inset,
    0 4px 16px rgba(21,128,61,0.6),
    0 8px 32px rgba(21,128,61,0.3);
}
.module-card.animate-in { opacity: 1; transform: translateY(0); }
.module-card:hover {
  border-color: var(--module-color, var(--color-brand));
  box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 0 1px var(--module-color, var(--color-brand)), 0 8px 32px color-mix(in srgb, var(--module-color, var(--color-brand)) 12%, transparent);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.module-card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.75rem;
}

.module-number {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--module-color-soft, var(--color-brand-soft));
  color: var(--module-color, var(--color-brand));
  font-size: 0.875rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.module-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.module-card-badge {
  display: inline-block;
  background: var(--color-new-badge);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
  margin-left: 0.375rem;
}

.module-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
  flex: 1;
}

.module-card-topics {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.module-card-topics li {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  padding-left: 1rem;
  position: relative;
}
.module-card-topics li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--module-color, #E8511A);
  font-weight: 700;
  opacity: 0.7;
}

.module-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.875rem;
}

.module-card-tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.module-lesson-count {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--color-bg-secondary);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-subtle);
}

/* Checklist inside card */
.module-checklist {
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
}

.check-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  accent-color: var(--module-color, var(--color-brand));
  flex-shrink: 0;
  margin-top: 0.1rem;
  cursor: pointer;
}

.check-item span {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}
.check-item:has(input:checked) span {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Progress mini bar */
.module-progress {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.progress-bar-track {
  flex: 1;
  height: 4px;
  background: var(--color-bg-secondary);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--module-color, var(--color-brand));
  border-radius: 2px;
  width: 0%;
  transition: width 0.5s ease;
}
.progress-label {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  font-weight: 600;
  min-width: 2.5rem;
  text-align: right;
}

/* ── GLOBAL PROGRESS BAR ── */

.global-progress {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.global-progress-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  white-space: nowrap;
  min-width: 100px;
}

.global-progress-track {
  flex: 1;
  height: 8px;
  background: var(--color-bg-hover);
  border-radius: 4px;
  overflow: hidden;
}

.global-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-brand), #FF8C42);
  border-radius: 4px;
  width: 0%;
  transition: width 0.6s ease;
}

/* ── SELF-HOST STACK SECTION ── */

.stack-section {
  padding: 4rem 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stack-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.125rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s;
}
.stack-card.animate-in { opacity: 1; transform: translateY(0); }
.stack-card:hover { box-shadow: var(--shadow-sm); }

.stack-card-icon {
  font-size: 1.375rem;
  margin-bottom: 0.5rem;
}

.stack-card-name {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.stack-card-tools {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── LABS SECTION ── */

.labs-section {
  padding: 4rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

.labs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lab-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.lab-card.animate-in { opacity: 1; transform: translateY(0); }
.lab-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-border-subtle);
}

.lab-card-level {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2em 0.55em;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.625rem;
  align-self: flex-start;
}
.lab-card-level.intermediate { background: var(--color-brand-light); color: var(--color-brand); }
.lab-card-level.advanced     { background: #FFF1F2; color: #E11D48; }

[data-theme="dark"] .lab-card-level.advanced { background: rgba(225,29,72,0.15); color: #FB7185; }

.lab-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lab-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  flex: 1;
  margin-bottom: 0;
}

/* ── SOURCES SECTION ── */

.sources-section {
  padding: 4rem 0;
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 2rem;
}

.source-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
  font-size: 0.875rem;
}

.source-type {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-brand);
  white-space: nowrap;
  flex-shrink: 0;
}

.source-item a {
  color: var(--color-text);
  text-decoration: none;
}
.source-item a:hover { color: var(--color-brand); text-decoration: underline; }

/* ── ABOUT SECTION ── */

.about-section {
  padding: 4rem 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.about-text {
  max-width: 780px;
  margin: 0 auto;
}

.about-text p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

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

/* ── SCROLL PROGRESS BAR ── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-brand) 0%, #FF8C42 60%, rgba(232, 81, 26, 0.4) 100%);
  z-index: 1000;
  transition: width 0.08s linear;
  transform-origin: left;
  pointer-events: none;
}

/* ── SCROLL-TO-TOP BUTTON ── */

.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  background: var(--color-brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 50;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--color-brand-hover); }

/* ── FADE-IN ANIMATION ── */

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.module-card.fade-in { animation: fadeSlideIn 0.25s ease forwards; }

/* ── RESPONSIVE ── */

@media (max-width: 1024px) {
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .labs-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 2.5rem 0;
  }
  .hero-diagram { display: none; }
  .hero .landing-content { grid-template-columns: 1fr !important; }
  .modules-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .labs-grid { grid-template-columns: 1fr; }
  .sources-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
}
