/* ============================================
   ClarityOS Design System
   Clean & Modern — Think Stripe meets Monocle
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  /* Palette */
  --color-bg: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F4F4F5;
  --color-border: #E4E4E7;
  --color-text: #18181B;
  --color-text-secondary: #52525B;
  --color-text-muted: #A1A1AA;
  --color-primary: #2563EB;
  --color-primary-dark: #1D4ED8;
  --color-primary-light: #DBEAFE;
  --color-accent: #F59E0B;
  --color-accent-light: #FEF3C7;
  --color-success: #10B981;
  --color-dark: #09090B;
  --color-dark-surface: #18181B;

  /* Typography */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Spacing */
  --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;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

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

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.12);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --duration-fast: 200ms;
  --duration-normal: 400ms;
  --duration-slow: 700ms;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  max-width: 65ch;
  color: var(--color-text-secondary);
}

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }
.text-white { color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

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

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

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

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

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

.section--dark {
  background: var(--color-dark);
  color: #fff;
}

.section--dark p {
  color: #A1A1AA;
}

.section--alt {
  background: var(--color-surface-alt);
}

.section--surface {
  background: var(--color-surface);
}

/* Grid */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

@media (max-width: 768px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-out);
}

.nav--scrolled {
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.nav__logo span {
  color: var(--color-primary);
}

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

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-text);
}

.nav__link--active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 1px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-text);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.nav__cta:hover {
  background: var(--color-primary);
}

/* Mobile nav */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: all var(--duration-fast);
  position: absolute;
  left: 5px;
}

.nav__toggle span:nth-child(1) { top: 9px; }
.nav__toggle span:nth-child(2) { top: 15px; }
.nav__toggle span:nth-child(3) { top: 21px; }

.nav__toggle.active span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

@media (max-width: 768px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: var(--space-2xl);
    gap: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--duration-normal) var(--ease-out);
  }
  .nav__links.active {
    transform: translateX(0);
  }
  .nav__link { font-size: 1.2rem; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.btn--dark {
  background: var(--color-text);
  color: #fff;
}

.btn--dark:hover {
  background: #27272A;
  transform: translateY(-1px);
}

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

.btn--outline:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

.btn--outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn__arrow {
  transition: transform var(--duration-fast);
}

.btn:hover .btn__arrow {
  transform: translateX(3px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.05), transparent);
  z-index: 0;
}

.hero__animated-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: orbFloat 20s ease-in-out infinite;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(37, 99, 235, 0.12);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(245, 158, 11, 0.08);
  bottom: -10%;
  left: -5%;
  animation-delay: -7s;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(16, 185, 129, 0.06);
  top: 40%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 30px) scale(1.02); }
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

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

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
  max-width: 600px;
}

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

.hero__proof {
  margin-top: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.hero__proof-item {
  display: flex;
  flex-direction: column;
}

.hero__proof-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1;
}

.hero__proof-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .hero__proof {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
  }
}

/* --- Cards --- */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: transparent;
}

.card--dark {
  background: var(--color-dark-surface);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card--featured {
  border-color: var(--color-primary);
  position: relative;
}

.card--featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
}

.card__icon--blue { background: var(--color-primary-light); }
.card__icon--amber { background: var(--color-accent-light); }
.card__icon--green { background: #D1FAE5; }
.card__icon--dark { background: rgba(255,255,255,0.08); }

.card__title {
  margin-bottom: var(--space-md);
  font-size: 1.15rem;
}

.card__text {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Stage Indicator --- */
.stage-indicator {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: var(--space-lg);
}

.stage-indicator--early {
  background: #DBEAFE;
  color: #1E40AF;
}

.stage-indicator--growth {
  background: #FEF3C7;
  color: #92400E;
}

.stage-indicator--scale {
  background: #D1FAE5;
  color: #065F46;
}

/* --- Stats / Counters --- */
.stat {
  text-align: center;
}

.stat__number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-text);
}

.section--dark .stat__number {
  color: #fff;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

.stat__prefix,
.stat__suffix {
  font-size: 0.6em;
  font-weight: 600;
}

/* --- Diagram: Health Score --- */
.health-score {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 700px;
  margin: 0 auto;
}

.health-score__item {
  text-align: center;
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--duration-normal) var(--ease-out);
}

.health-score__item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.health-score__ring {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-md);
  position: relative;
}

.health-score__ring svg {
  transform: rotate(-90deg);
}

.health-score__ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.health-score__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 600px) {
  .health-score { grid-template-columns: 1fr; }
}

/* --- Stage Progression Diagram --- */
.progression {
  display: flex;
  align-items: stretch;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: var(--space-2xl) auto;
}

.progression__stage {
  flex: 1;
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.progression__stage:first-child {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.progression__stage:last-child {
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.progression__stage-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.progression__stage-range {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

.progression__stage-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: var(--space-md);
  color: var(--color-text);
}

.progression__arrow {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .progression {
    flex-direction: column;
  }
  .progression__stage {
    border-radius: 0;
  }
  .progression__stage:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .progression__stage:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .progression__arrow {
    right: 50%;
    top: auto;
    bottom: -12px;
    transform: translateX(50%) rotate(90deg);
  }
}

/* --- Testimonial / Case Study Cards --- */
.case-study {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
}

.case-study__before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-lg);
  align-items: center;
  margin-top: var(--space-lg);
}

.case-study__state {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
}

.case-study__state--before {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.case-study__state--after {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.case-study__divider {
  font-size: 1.5rem;
  color: var(--color-text-muted);
}

@media (max-width: 600px) {
  .case-study__before-after {
    grid-template-columns: 1fr;
  }
  .case-study__divider {
    transform: rotate(90deg);
    text-align: center;
  }
}

/* --- Founder Psychology Layer --- */
.psych-layers {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  margin: var(--space-2xl) auto;
}

.psych-layer {
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  position: relative;
  transition: all var(--duration-normal) var(--ease-out);
}

.psych-layer:nth-child(1) {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  z-index: 1;
}

.psych-layer:nth-child(2) {
  background: #FEF3C7;
  margin: 0 -10px;
  padding-left: calc(var(--space-2xl) + 10px);
  padding-right: calc(var(--space-2xl) + 10px);
  z-index: 2;
}

.psych-layer:nth-child(3) {
  background: #FEE2E2;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  margin: 0 -20px;
  padding-left: calc(var(--space-2xl) + 20px);
  padding-right: calc(var(--space-2xl) + 20px);
  z-index: 3;
}

.psych-layer__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.psych-layer__text {
  font-size: 0.95rem;
  color: var(--color-text);
  max-width: 100%;
}

/* --- Pricing --- */
.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
}

.pricing-card--featured {
  border: 2px solid var(--color-primary);
  position: relative;
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-card__tier {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.pricing-card__outcome {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
  line-height: 1.4;
}

.pricing-card__price {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.pricing-card__features {
  flex: 1;
  margin-bottom: var(--space-xl);
}

.pricing-card__feature {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: var(--space-sm) 0;
}

.pricing-card__feature::before {
  content: '✓';
  color: var(--color-success);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Quote / Pull Quote --- */
.pull-quote {
  position: relative;
  padding: var(--space-2xl) var(--space-3xl);
  border-left: 3px solid var(--color-primary);
  margin: var(--space-2xl) 0;
}

.pull-quote__text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.6;
  font-style: italic;
  max-width: 100%;
}

.section--dark .pull-quote {
  border-left-color: var(--color-accent);
}

.section--dark .pull-quote__text {
  color: #E4E4E7;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 600px;
  margin: var(--space-2xl) auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-left: 64px;
  padding-bottom: var(--space-2xl);
}

.timeline__dot {
  position: absolute;
  left: 16px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.timeline__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-xs);
}

.timeline__text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-5xl) 0;
}

.cta-section h2 {
  margin-bottom: var(--space-lg);
}

.cta-section p {
  margin: 0 auto var(--space-2xl);
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: #A1A1AA;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: var(--space-md);
}

.footer__logo span {
  color: var(--color-primary);
}

.footer__desc {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer__nav-group h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer__link {
  display: block;
  font-size: 0.85rem;
  padding: var(--space-xs) 0;
  color: #A1A1AA;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    gap: var(--space-2xl);
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.stagger--visible > *:nth-child(1) { transition-delay: 0ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(2) { transition-delay: 100ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(3) { transition-delay: 200ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(4) { transition-delay: 300ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(5) { transition-delay: 400ms; opacity: 1; transform: translateY(0); }
.stagger--visible > *:nth-child(6) { transition-delay: 500ms; opacity: 1; transform: translateY(0); }

/* Counter animation */
.counter[data-animated="true"] {
  animation: counterPop 0.4s var(--ease-out);
}

@keyframes counterPop {
  0% { transform: scale(0.8); opacity: 0; }
  60% { transform: scale(1.05); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Utility --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Divider line */
.divider {
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: var(--space-lg) 0;
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Page header (inner pages) --- */
.page-header {
  padding: calc(72px + var(--space-4xl)) 0 var(--space-3xl);
  background: var(--color-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.page-header__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(37,99,235,0.15), transparent),
    radial-gradient(ellipse 40% 40% at 20% 100%, rgba(245,158,11,0.08), transparent);
}

.page-header__content {
  position: relative;
  z-index: 1;
}

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

.page-header p {
  color: #A1A1AA;
  font-size: 1.15rem;
  max-width: 600px;
}

/* Process steps */
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-xl);
  align-items: start;
  padding: var(--space-2xl) 0;
  border-bottom: 1px solid var(--color-border);
}

.process-step:last-child {
  border-bottom: none;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step__title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

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

@media (max-width: 600px) {
  .process-step {
    grid-template-columns: 1fr;
  }
}

/* --- Two-column layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.split--reverse > *:first-child { order: 2; }
.split--reverse > *:last-child { order: 1; }

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse > * { order: unset !important; }
}

/* Visual diagram placeholder */
.diagram-box {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}
