/* ============================================================
   CLEO — AI Sales Training Partner
   Design System & Complete Stylesheet
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --color-bg:        #0f172a;
  --color-bg-raised: #1e293b;
  --color-bg-card:   #162033;
  --color-surface:   #1e293b;
  --color-border:    rgba(148, 163, 184, 0.12);
  --color-border-hover: rgba(59, 130, 246, 0.35);
  --color-accent:    #3b82f6;
  --color-accent-light: #60a5fa;
  --color-accent-glow: rgba(59, 130, 246, 0.15);
  --color-text:      #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #64748b;
  --color-white:     #ffffff;
  --color-slate-100: #f1f5f9;
  --color-slate-200: #e2e8f0;
  --color-slate-300: #cbd5e1;
  --color-slate-400: #94a3b8;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.12);

  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

a:hover {
  color: var(--color-white);
}

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

ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container { padding: 0 40px; }
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header h1,
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(59, 130, 246, 0.3) inset;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35), 0 0 0 1px rgba(96, 165, 250, 0.4) inset;
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-slate-300);
  box-shadow: 0 0 0 1px var(--color-border) inset;
}

.btn--outline:hover {
  color: var(--color-white);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3) inset;
  background: rgba(255, 255, 255, 0.04);
}

.btn--full {
  width: 100%;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo:hover { color: var(--color-white); }

.nav__logo svg {
  flex-shrink: 0;
}

/* Hamburger toggle — hidden checkbox */
.nav__toggle-input {
  display: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-slate-300);
  border-radius: 2px;
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav__toggle-input:checked ~ .nav__toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle-input:checked ~ .nav__toggle span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav__toggle-input:checked ~ .nav__toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links — mobile */
.nav__links {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity var(--transition-base);
  pointer-events: none;
}

.nav__toggle-input:checked ~ .nav__links {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav__links li a {
  display: block;
  padding: 12px 16px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav__links li a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav__cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  color: var(--color-white) !important;
  border-radius: var(--radius-md) !important;
  text-align: center;
  margin-top: 8px;
  font-weight: 600 !important;
}

.nav__cta:hover {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%) !important;
}

/* Nav links — desktop */
@media (min-width: 768px) {
  .nav__toggle { display: none; }

  .nav__links {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 4px;
  }

  .nav__links li a {
    padding: 8px 16px;
    font-size: 0.875rem;
  }

  .nav__cta {
    padding: 8px 20px !important;
    margin-top: 0;
    margin-left: 8px;
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  padding: 80px 0;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Subtle grid pattern */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-accent-light);
  background: var(--color-accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out both;
}

.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero__highlight {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-bottom: 64px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero__stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.hero__stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

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

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 100px 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

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

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 32px 28px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at top, rgba(59, 130, 246, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-smooth);
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  color: var(--color-accent-light);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
  padding: 100px 0;
  position: relative;
  background:
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}

.step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: var(--color-white);
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.2);
}

.step__content {
  padding-top: 8px;
}

.step__content h3 {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-bottom: 6px;
}

.step__content p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.step__connector {
  width: 2px;
  height: 40px;
  margin-left: 23px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.08));
  border-radius: 2px;
}

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta {
  padding: 100px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.cta__wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 768px) {
  .cta__wrapper {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.cta__text h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta__text p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

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

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

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-slate-300);
  letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-white);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================================
   BLOG LISTING
   ============================================================ */
.blog-listing {
  padding: 80px 0 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 720px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .blog-grid--multi {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .blog-grid--multi {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
}

.blog-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.blog-card__image-link {
  display: block;
  overflow: hidden;
}

.blog-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-surface);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.04);
}


.blog-card__image--placeholder {
  background:
    radial-gradient(ellipse 80% 70% at 70% 20%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.blog-card__content {
  padding: 28px;
}

.blog-card__date {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.blog-card__title {
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-card__title a {
  color: var(--color-white);
  text-decoration: none;
}

.blog-card__title a:hover {
  color: var(--color-accent-light);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.blog-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-light);
}

.blog-card__link:hover {
  color: var(--color-white);
}

/* ============================================================
   BLOG POST
   ============================================================ */
.post {
  padding: 60px 0 100px;
}

.post .container {
  max-width: 760px;
}

.post__back {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  transition: color var(--transition-fast);
}

.post__back:hover {
  color: var(--color-accent-light);
}

.post__hero-image {
  margin-bottom: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.post__hero-image img {
  width: 100%;
  display: block;
}

.post__hero-image--placeholder {
  aspect-ratio: 21 / 9;
  background:
    radial-gradient(ellipse 80% 70% at 70% 20%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}


.post__header {
  margin-bottom: 48px;
}

.post__header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-white);
  margin-bottom: 16px;
}

.post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.post__author {
  color: var(--color-text-secondary);
}

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

/* Post navigation (prev/next) */
.post__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.post__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  text-decoration: none;
}

.post__nav-link:hover {
  border-color: var(--color-border-hover);
  background: rgba(59, 130, 246, 0.04);
}

.post__nav-link span {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.post__nav-link strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-white);
  line-height: 1.3;
}

.post__nav-link--next {
  text-align: right;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page {
  padding: 60px 0 100px;
}

.page .container {
  max-width: 760px;
}

.page__header {
  margin-bottom: 48px;
}

.page__header h1 {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--color-white);
}

/* ============================================================
   PROSE — Markdown Content Typography
   ============================================================ */
.prose {
  color: var(--color-slate-300);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.5em;
}

.prose h2 {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--color-white);
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  line-height: 1.25;
}

.prose h3 {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.prose h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-white);
  margin-top: 1.75em;
  margin-bottom: 0.4em;
}

.prose p {
  margin-bottom: 0;
}

.prose strong {
  color: var(--color-white);
  font-weight: 600;
}

.prose a {
  color: var(--color-accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(96, 165, 250, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--transition-fast);
}

.prose a:hover {
  text-decoration-color: var(--color-accent-light);
  color: var(--color-white);
}

.prose ul,
.prose ol {
  padding-left: 1.5em;
  margin-top: 1em;
  margin-bottom: 1em;
}

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

.prose li {
  margin-bottom: 0.4em;
  padding-left: 0.25em;
}

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

.prose blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 12px 20px;
  margin: 1.5em 0;
  background: rgba(59, 130, 246, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-slate-300);
  font-style: italic;
}

.prose code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--color-accent-light);
}

.prose pre {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-slate-300);
  line-height: 1.7;
}

.prose hr {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin: 2.5em 0;
}

.prose img {
  border-radius: var(--radius-lg);
  margin: 2em 0;
  border: 1px solid var(--color-border);
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: imageReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 30%;
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .prose img {
    opacity: 1;
    transform: none;
  }
  .prose img.is-visible {
    animation: imageReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

/* --- Tables --- */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
  overflow-x: auto;
  display: block;
}

.prose thead {
  border-bottom: 2px solid var(--color-border);
}

.prose th {
  text-align: left;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--color-white);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.prose td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-slate-300);
}

.prose tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* --- Mermaid diagrams --- */
.prose .mermaid,
.prose pre.mermaid {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  margin: 2em 0;
  text-align: center;
  overflow-x: auto;
}

.prose .mermaid svg {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 64px 0 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}

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

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 64px;
  }
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
  text-decoration: none;
  margin-bottom: 16px;
}

.footer__logo:hover {
  color: var(--color-white);
}

.footer__brand p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 320px;
}

.footer__nav h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
}

.footer__nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__nav a:hover {
  color: var(--color-white);
}

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ============================================================
   UTILITY — Responsive visibility
   ============================================================ */
@media (max-width: 767px) {
  .hero__stats {
    gap: 24px;
  }
  .hero__stat-number {
    font-size: 1.5rem;
  }
  .hero {
    padding: 56px 0;
    min-height: auto;
  }
  .features,
  .how-it-works,
  .cta {
    padding: 72px 0;
  }
  .section-header {
    margin-bottom: 40px;
  }
}
