/* ============================================================
   EXPRESS BY NEOVATION — Design System Tokens & Styles
   ============================================================ */

/* --- Google Fonts (loaded via <link> in HTML; @import fallback below) --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700&family=Figtree:ital,wght@0,300..900;1,300..900&family=Indie+Flower&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* --- Backgrounds (layered depth — spread for visible contrast) --- */
  --bg-deep: #06060F;
  --bg-surface: #161630;
  --bg-elevated: #222244;
  --bg-overlay: #2E2E52;
  --bg-accent-subtle: rgba(99, 102, 241, 0.10);

  /* --- Primary Accent — Electric Indigo --- */
  --accent: #6366F1;
  --accent-light: #818CF8;
  --accent-dark: #4F46E5;
  --accent-glow: rgba(99, 102, 241, 0.25);

  /* --- Secondary Accent — Warm Amber --- */
  --secondary: #F59E0B;
  --secondary-light: #FBBF24;
  --secondary-glow: rgba(245, 158, 11, 0.2);

  /* --- Tertiary — Teal --- */
  --tertiary: #14B8A6;
  --tertiary-light: #5EEAD4;
  --tertiary-glow: rgba(20, 184, 166, 0.25);

  /* --- Quaternary — Rose --- */
  --rose: #F43F5E;
  --rose-light: #FB7185;
  --rose-glow: rgba(244, 63, 94, 0.25);

  /* --- Text --- */
  --text-primary: #F1F1F6;
  --text-secondary: #A0A0B8;
  --text-muted: #9999B3;
  --text-on-accent: #FFFFFF;

  /* --- Borders (increased opacity for visibility) --- */
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-default: rgba(255, 255, 255, 0.18);
  --border-hover: rgba(255, 255, 255, 0.28);
  --border-accent: rgba(99, 102, 241, 0.5);

  /* --- Gradients --- */
  --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  --gradient-card-shine: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, transparent 50%);
  --gradient-accent: linear-gradient(135deg, #4F46E5, #6D28D9);
  --gradient-cool: linear-gradient(135deg, #818CF8, #5EEAD4);
  --gradient-section-fade: linear-gradient(to bottom, transparent, var(--bg-deep));

  /* --- Typography --- */
  --font-headline: 'Sora', sans-serif;
  --font-body: 'Figtree', sans-serif;
  --font-annotation: 'Indie Flower', cursive;

  --text-display: clamp(3rem, 5vw + 1rem, 4.5rem);
  --text-h1: clamp(2.25rem, 3vw + 1rem, 3.25rem);
  --text-h2: clamp(1.75rem, 2.5vw + 0.5rem, 2.5rem);
  --text-h3: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);
  --text-body-lg: 1.125rem;
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* --- Spacing (4px base) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 4px rgba(0, 0, 20, 0.4), 0 1px 2px rgba(0, 0, 20, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 20, 0.5), 0 2px 6px rgba(0, 0, 20, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 20, 0.6), 0 4px 12px rgba(0, 0, 20, 0.4);
  --shadow-xl: 0 20px 60px rgba(0, 0, 20, 0.7), 0 8px 20px rgba(0, 0, 20, 0.5);

  --glow-accent: 0 0 20px rgba(99, 102, 241, 0.35), 0 0 60px rgba(99, 102, 241, 0.15), 0 0 100px rgba(99, 102, 241, 0.05);
  --glow-amber: 0 0 20px rgba(245, 158, 11, 0.30), 0 0 60px rgba(245, 158, 11, 0.12);
  --glow-teal: 0 0 20px rgba(20, 184, 166, 0.30), 0 0 60px rgba(20, 184, 166, 0.12);
  --glow-rose: 0 0 20px rgba(244, 63, 94, 0.30), 0 0 60px rgba(244, 63, 94, 0.12);

  /* --- Border Radius --- */
  --radius-none: 0px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Container widths --- */
  --container-narrow: 720px;
  --container-standard: 960px;
  --container-wide: 1200px;
  --container-large: 1440px;
  --container-max: 1600px;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-weight: 380;
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-deep);
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--text-primary);
  line-height: 1.15;
}


/* ============================================================
   LAYOUT — DESIGN SYSTEM PAGE
   ============================================================ */
.ds-page {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
  padding-top: calc(60px + var(--space-16));
}

.ds-page-title {
  font-size: var(--text-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.ds-page-subtitle {
  font-size: var(--text-body-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-24);
}

/* --- Section --- */
.ds-section {
  margin-bottom: var(--space-24);
}

.ds-section-title {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-default);
}

.ds-subsection-title {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
  color: var(--text-primary);
}

.ds-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-3);
  display: block;
}

.ds-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  max-width: 640px;
}


/* ============================================================
   DESIGN SYSTEM — SWATCH GRIDS
   ============================================================ */

/* Color Swatches */
.ds-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.ds-swatch {
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.ds-swatch__color {
  height: 80px;
  position: relative;
}

.ds-swatch__info {
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
}

.ds-swatch__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-primary);
  display: block;
}

.ds-swatch__value {
  font-family: monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ============================================================
   TYPOGRAPHY SPECIMENS
   ============================================================ */
.ds-type-specimen {
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.ds-type-specimen__meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}

.ds-type-specimen__meta span {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: monospace;
  background: var(--bg-elevated);
  padding: 2px 8px;
}


/* ============================================================
   SPACING VISUALIZATION
   ============================================================ */
.ds-spacing-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.ds-spacing-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.ds-spacing-item__bar {
  height: 24px;
  background: var(--accent);
  opacity: 0.4;
  flex-shrink: 0;
}

.ds-spacing-item__label {
  font-family: monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 140px;
}


/* ============================================================
   SHADOW SHOWCASE
   ============================================================ */
.ds-shadow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
  padding: var(--space-8);
  background: var(--bg-deep);
}

.ds-shadow-box {
  height: 120px;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ============================================================
   RADIUS SHOWCASE
   ============================================================ */
.ds-radius-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.ds-radius-box {
  height: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ============================================================
   COMPONENT SHOWCASE PANELS
   ============================================================ */
.ds-showcase {
  padding: var(--space-8);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-6);
}

.ds-showcase--deep {
  background: var(--bg-deep);
}

.ds-showcase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

.ds-showcase-row + .ds-showcase-row {
  margin-top: var(--space-6);
}


/* ============================================================
   BUTTONS
   ============================================================ */

/* Primary CTA (persistent pill) */
.btn-primary-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-accent);
  color: var(--text-on-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.btn-primary-pill:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-accent);
}

/* Primary (inline) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--gradient-accent);
  color: var(--text-on-accent);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-accent);
}

/* Secondary */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  padding: 12px 24px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

/* Ghost */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  padding: 0;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  text-decoration: none;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-secondary);
  transition: width var(--transition-fast);
}

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

.btn-ghost:hover::after {
  width: 100%;
}

/* Icon trailing arrow */
.btn-icon-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-icon-arrow .arrow {
  transition: transform var(--transition-fast);
  display: inline-block;
}

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

/* Amber CTA */
.btn-amber {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: linear-gradient(135deg, #D97706, #F59E0B);
  color: #06060F; font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.01em;
  padding: 12px 24px; border: none; border-radius: var(--radius-xs);
  cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.btn-amber:hover { transform: scale(1.02); box-shadow: var(--glow-amber); }

/* Teal */
.btn-teal {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: linear-gradient(135deg, #0D9488, #14B8A6);
  color: #06060F; font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.01em;
  padding: 12px 24px; border: none; border-radius: var(--radius-xs);
  cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.btn-teal:hover { transform: scale(1.02); box-shadow: var(--glow-teal); }

/* Rose */
.btn-rose {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: linear-gradient(135deg, #E11D48, #F43F5E);
  color: var(--text-on-accent); font-family: var(--font-body); font-weight: 600;
  font-size: var(--text-sm); letter-spacing: 0.01em;
  padding: 12px 24px; border: none; border-radius: var(--radius-xs);
  cursor: pointer; transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-md);
}
.btn-rose:hover { transform: scale(1.02); box-shadow: var(--glow-rose); }

/* Outline variants */
.btn-outline-accent {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent; color: var(--accent-light);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 11px 23px; border: 1px solid var(--accent); border-radius: var(--radius-xs);
  cursor: pointer; transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-outline-accent:hover { background: rgba(99, 102, 241, 0.12); box-shadow: var(--glow-accent); }

.btn-outline-amber {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent; color: var(--secondary-light);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 11px 23px; border: 1px solid var(--secondary); border-radius: var(--radius-xs);
  cursor: pointer; transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-outline-amber:hover { background: rgba(245, 158, 11, 0.12); box-shadow: var(--glow-amber); }

.btn-outline-teal {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent; color: var(--tertiary-light);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 11px 23px; border: 1px solid var(--tertiary); border-radius: var(--radius-xs);
  cursor: pointer; transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-outline-teal:hover { background: rgba(20, 184, 166, 0.12); box-shadow: var(--glow-teal); }

.btn-outline-rose {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: transparent; color: var(--rose-light);
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  padding: 11px 23px; border: 1px solid var(--rose); border-radius: var(--radius-xs);
  cursor: pointer; transition: background var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-outline-rose:hover { background: rgba(244, 63, 94, 0.12); box-shadow: var(--glow-rose); }

/* Icon leading */
.btn-icon-leading { display: inline-flex; align-items: center; gap: var(--space-2); }
.btn-icon-leading i { font-size: 0.85em; }

/* Icon only (square) */
.btn-icon-only {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border-radius: var(--radius-xs);
  border: 1px solid var(--border-default); background: transparent;
  color: var(--text-secondary); font-size: 1rem; cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}
.btn-icon-only:hover { background: var(--bg-elevated); border-color: var(--border-hover); color: var(--text-primary); }

/* Disabled state */
button:disabled, .btn-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }


/* ============================================================
   CARDS
   ============================================================ */

/* Standard Card — top accent border + shine overlay */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-none);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-shine);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  border-top-color: var(--accent-light);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.08);
}

.card__icon {
  font-size: 1.5rem;
  color: var(--accent-light);
  margin-bottom: var(--space-4);
}

.card__title {
  font-family: var(--font-headline);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-body);
  color: var(--text-secondary);
}

/* Feature Card — left accent strip + glow */
.card--feature {
  background: var(--bg-surface);
  border-top: none;
  border-left: 4px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.card--feature::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 100%;
  background: radial-gradient(circle at 100% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.card--feature:hover {
  border-top: none;
  border-left-color: var(--accent-light);
  box-shadow: var(--shadow-lg), var(--glow-accent);
}

/* Sample Course Card — play overlay, gradient bottom, badge */
.card--sample {
  border-top: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.card--sample::before { display: none; }

.card--sample:hover {
  transform: translateY(-8px);
  border-top: none;
  box-shadow: 0 12px 40px rgba(0, 0, 20, 0.5), var(--glow-accent);
}

.card--sample .card__preview {
  height: 200px;
  background: var(--bg-elevated) center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  position: relative;
  overflow: hidden;
}

.card--sample .card__preview::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--bg-surface), transparent);
  pointer-events: none;
}

.card--sample .card__preview-play {
  width: 48px; height: 48px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.9);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.25rem; z-index: 1;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card--sample:hover .card__preview-play {
  transform: scale(1.1);
  box-shadow: var(--glow-accent);
}

.card--sample .card__badge {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  z-index: 1;
}

/* Stat Card — bottom accent line + glow */
.card--stat {
  background: var(--bg-elevated);
  text-align: center;
  padding: var(--space-8) var(--space-6);
  border: 1px solid var(--border-subtle);
  border-top: none;
  position: relative;
  overflow: hidden;
}

.card--stat::before { display: none; }

.card--stat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
}

.card--stat.card--stat-accent::after { background: var(--accent); }
.card--stat.card--stat-secondary::after { background: var(--secondary); }
.card--stat.card--stat-tertiary::after { background: var(--tertiary); }
.card--stat.card--stat-rose::after { background: var(--rose); }

.card--stat .stat-number {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: var(--space-2);
}

.card--stat .stat-number--accent { color: var(--accent); }
.card--stat .stat-number--secondary { color: var(--secondary); }
.card--stat .stat-number--tertiary { color: var(--tertiary); }
.card--stat .stat-number--rose { color: var(--rose); }

.card--stat .stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* Card grid */
.ds-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.ds-card-grid--stats {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}


/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: var(--radius-none);
}

.badge--accent {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-light);
}

.badge--teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--tertiary);
}

.badge--amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--secondary-light);
}

.badge--rose {
  background: rgba(244, 63, 94, 0.12);
  color: var(--rose-light);
}

.badge--dark {
  background: rgba(6, 6, 15, 0.35);
  color: #FFFFFF;
}

/* Animated badge with blinking icon */
.badge--animated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge--animated i {
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}


/* ============================================================
   FORM INPUTS
   ============================================================ */

/* Standard Input */
.form-group {
  margin-bottom: var(--space-6);
  max-width: 400px;
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.form-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

/* Textarea */
.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Calculator Input (blended) */
.calc-input-group {
  max-width: 400px;
  margin-bottom: var(--space-6);
}

.calc-input {
  width: 100%;
  background: var(--bg-deep);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  padding: 8px 0;
  font-family: var(--font-headline);
  font-size: var(--text-h2);
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.calc-input:focus {
  border-bottom-color: var(--accent);
}

/* Range Slider */
.slider-group {
  max-width: 400px;
  margin-bottom: var(--space-6);
}

.slider-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.slider-track {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--bg-overlay);
  border-radius: var(--radius-xs);
  outline: none;
}

.slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slider-track::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: var(--shadow-md), 0 0 12px var(--accent-glow);
}

.slider-track::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.slider-value {
  flex: 0.3;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text-primary);
  text-align: right;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 6, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 80px;
}

.nav__inner {
  max-width: 1820px;
  margin: 0 auto;
  padding: 0 var(--space-8);
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 72px;
  width: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin-left: auto;
  margin-right: var(--space-8);
}

.nav__links-cta {
  display: none;
}

.nav__link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

.nav__cta {
  flex-shrink: 0;
}

.nav__cta .btn-primary-pill {
  padding: 8px 20px;
  font-size: 16px;
}


/* ============================================================
   SECTION HEADER PATTERN
   ============================================================ */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header .badge {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}


/* ============================================================
   STAT ROW
   ============================================================ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-16);
  padding: var(--space-12) 0;
}

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

.stat-block__number {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: var(--space-2);
}

.stat-block__label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}


/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  text-align: center;
  padding: var(--space-24) var(--space-8);
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 auto var(--space-4);
  max-width: 700px;
  position: relative;
  color: var(--text-primary);
}

.cta-banner p {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  position: relative;
}

.cta-banner .btn-primary {
  position: relative;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__link-col {
  padding-top: 92px;
}

.footer__brand-logo {
  display: block;
  height: 72px;
  width: auto;
  margin-left: -10px;
  margin-bottom: var(--space-3);
}

.footer__brand-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-body-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.footer__brand-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 280px;
}

.footer__col-title {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--text-primary);
}

.footer__link i {
  font-size: 0.7em;
  margin-left: 4px;
  opacity: 0.6;
}

.footer__link--cta {
  color: var(--accent-light);
  font-weight: 600;
}

.footer__link--cta:hover {
  color: var(--text-on-accent);
}

.footer__link--cta .arrow {
  display: inline-block;
  transition: transform var(--transition-fast);
}

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

.footer__bottom {
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--text-muted);
}


/* ============================================================
   SVG ARROW ANNOTATIONS
   ============================================================ */
.annotation {
  position: relative;
  display: inline-block;
}

.annotation__text {
  font-family: var(--font-annotation);
  font-size: 1.35rem;
  color: var(--secondary);
  transform: rotate(-3deg);
  display: inline-block;
}

.annotation svg {
  overflow: visible;
}

.annotation svg path,
.annotation svg polyline {
  stroke: var(--secondary);
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Arrow draw-in animation */
.annotation svg path {
  stroke-dasharray: var(--path-length, 200);
  stroke-dashoffset: var(--path-length, 200);
  animation: draw-arrow 500ms ease-out forwards;
}

.annotation svg polyline {
  opacity: 0;
  animation: fade-in 200ms ease-out 450ms forwards;
}

.annotation__text.animate-in {
  opacity: 0;
  transform: rotate(-3deg) translateY(8px);
  animation: text-reveal 300ms ease-out 650ms forwards;
}

@keyframes draw-arrow {
  to { stroke-dashoffset: 0; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

@keyframes text-reveal {
  to {
    opacity: 1;
    transform: rotate(-3deg) translateY(0);
  }
}


/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.accordion {
  max-width: 720px;
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-6) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger__text {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--text-h3);
  color: var(--text-primary);
  padding-right: var(--space-4);
}

.accordion-trigger__icon {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.accordion-item.is-open .accordion-trigger__icon {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.accordion-panel__content {
  padding: 0 0 var(--space-6);
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.7;
}


/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-children > .animate-on-scroll:nth-child(1) { transition-delay: 0ms; }
.stagger-children > .animate-on-scroll:nth-child(2) { transition-delay: 80ms; }
.stagger-children > .animate-on-scroll:nth-child(3) { transition-delay: 160ms; }
.stagger-children > .animate-on-scroll:nth-child(4) { transition-delay: 240ms; }
.stagger-children > .animate-on-scroll:nth-child(5) { transition-delay: 320ms; }
.stagger-children > .animate-on-scroll:nth-child(6) { transition-delay: 400ms; }


/* ============================================================
   HOVER EFFECT CARDS
   ============================================================ */
.hover-card--lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.hover-card--lift:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--glow-accent);
  border-color: var(--accent);
  border-top-color: var(--accent);
}

/* Comet border chase — comet travels along existing card borders */
.hover-card--comet {
  transition: box-shadow var(--transition-base);
}

.hover-card--comet:hover {
  border-image: conic-gradient(from var(--comet-angle, 0deg), transparent 0%, transparent 80%, var(--accent) 85%, var(--tertiary) 88%, var(--secondary) 91%, var(--rose) 94%, transparent 97%) 1;
  border-top-width: 3px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
  border-style: solid;
  animation: comet-chase 2s linear infinite;
}

@keyframes comet-chase {
  to { --comet-angle: 360deg; }
}

@property --comet-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hover-card--border-sweep {
  transition: box-shadow var(--transition-base);
  background-size: 200% auto;
  background-position: 0% 0%;
}
.hover-card--border-sweep:hover {
  border-image: linear-gradient(90deg, var(--accent), var(--tertiary), var(--secondary), var(--rose), var(--accent)) 1;
  border-image-slice: 3 0 0 0;
  border-top-width: 3px;
  border-top-style: solid;
  animation: border-sweep 1.5s linear infinite;
}
@keyframes border-sweep {
  0% { border-image-source: linear-gradient(90deg, var(--accent), var(--tertiary), var(--secondary), var(--rose), var(--accent)); }
  25% { border-image-source: linear-gradient(90deg, var(--tertiary), var(--secondary), var(--rose), var(--accent), var(--tertiary)); }
  50% { border-image-source: linear-gradient(90deg, var(--secondary), var(--rose), var(--accent), var(--tertiary), var(--secondary)); }
  75% { border-image-source: linear-gradient(90deg, var(--rose), var(--accent), var(--tertiary), var(--secondary), var(--rose)); }
  100% { border-image-source: linear-gradient(90deg, var(--accent), var(--tertiary), var(--secondary), var(--rose), var(--accent)); }
}

.hover-card--spotlight {
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}
.hover-card--spotlight:hover {
  background: radial-gradient(circle 200px at var(--spotlight-x) var(--spotlight-y), rgba(99,102,241,0.08), transparent 70%), var(--bg-surface);
  border-color: var(--border-hover);
}

.hover-card--shine {
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}
.hover-card--shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
}
.hover-card--shine:hover {
  box-shadow: var(--shadow-lg);
}
.hover-card--shine:hover::after {
  animation: shine-sweep 0.6s ease-out forwards;
}
@keyframes shine-sweep { to { left: 120%; } }


/* ============================================================
   PANELS (backgrounds)
   ============================================================ */
.panel {
  position: relative;
  overflow: hidden;
  padding: var(--space-20) var(--space-10);
  margin-bottom: var(--space-4);
}

.panel__badge { margin-bottom: var(--space-6); }

.panel__headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: var(--text-h2);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
  max-width: 600px;
  position: relative;
}

.panel__body {
  font-size: var(--text-body-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  position: relative;
}

.panel--deep { background: var(--bg-deep); }

.panel--surface {
  background: var(--bg-surface);
  border-left: 4px solid var(--accent);
}

.panel--border-only {
  background: transparent;
  border: 1px solid var(--border-default);
  border-left: 4px solid var(--secondary);
}

.panel--accent-subtle {
  background: var(--bg-accent-subtle);
  text-align: center;
}

.panel--accent-subtle .panel__headline,
.panel--accent-subtle .panel__body {
  margin-left: auto;
  margin-right: auto;
}

.panel--glow-indigo::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 500px; height: 350px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.panel--glow-indigo::after {
  content: '';
  position: absolute;
  top: 5%;
  left: 10%;
  width: 300px; height: 200px;
  background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.panel--glow-amber::before {
  content: '';
  position: absolute;
  top: -20%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.panel--glow-rose::before {
  content: '';
  position: absolute;
  top: 50%; right: -10%;
  transform: translateY(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.12) 0%, transparent 65%);
  pointer-events: none;
}


/* ============================================================
   GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text--cool {
  background: var(--gradient-cool);
  -webkit-background-clip: text;
  background-clip: text;
}


/* ============================================================
   GLOW UTILITIES
   ============================================================ */
.glow-accent { box-shadow: var(--glow-accent); }
.glow-amber { box-shadow: var(--glow-amber); }
.glow-teal { box-shadow: var(--glow-teal); }
.glow-rose { box-shadow: var(--glow-rose); }


/* ============================================================
   CONTAINER UTILITIES
   ============================================================ */
.container { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-8); }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-8); }
.container--standard { max-width: var(--container-standard); margin: 0 auto; padding: 0 var(--space-8); }
.container--large { max-width: var(--container-large); margin: 0 auto; padding: 0 var(--space-8); }
.container--max { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-8); }

.scroll-anchor {
  display: block;
  height: 0;
  margin-top: -64px;
  padding-top: 64px;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-balance {
  text-wrap: balance;
}


/* ============================================================
   SECTION STITCHING DEMO
   ============================================================ */
.stitch-demo {
  position: relative;
  overflow: hidden;
}

.stitch-demo__section {
  padding: var(--space-16) var(--space-8);
  position: relative;
}

.stitch-demo__section--a {
  background: var(--bg-deep);
  padding-bottom: var(--space-20);
}

.stitch-demo__section--b {
  background: var(--bg-surface);
  padding-top: var(--space-20);
}

.stitch-demo__fade {
  height: 120px;
  background: linear-gradient(to bottom, var(--bg-deep), var(--bg-surface));
  position: relative;
}

.stitch-demo__overlap-card {
  position: relative;
  z-index: 2;
  margin-bottom: -80px;
  border-left: 4px solid var(--accent);
  border-top: none;
  box-shadow: var(--shadow-xl), var(--glow-accent);
  max-width: 500px;
}

.stitch-demo__overlap-card:hover {
  border-top: none;
}

.stitch-demo__connector {
  width: 2px;
  height: 80px;
  background: linear-gradient(to bottom, var(--accent), var(--tertiary));
  margin: 0 auto;
  position: relative;
  z-index: 1;
  opacity: 0.6;
}

.stitch-demo__bridge {
  position: relative;
  z-index: 3;
  text-align: center;
  margin: -40px auto;
  max-width: 300px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-lg);
}


/* ============================================================
   TABLE OF CONTENTS SIDEBAR NAV
   ============================================================ */
.ds-toc {
  position: fixed;
  top: 80px;
  left: var(--space-6);
  width: 180px;
  display: none;
}

@media (min-width: 1440px) {
  .ds-toc {
    display: block;
  }
}

.ds-toc__title {
  font-family: var(--font-headline);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.ds-toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ds-toc__link {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--border-subtle);
  transition: color var(--transition-fast), border-color var(--transition-fast);
  display: block;
}

.ds-toc__link:hover,
.ds-toc__link.is-active {
  color: var(--text-primary);
  border-left-color: var(--accent);
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 767px) {
  .ds-page {
    padding: var(--space-8) var(--space-4);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--space-6);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__link-col {
    padding-top: 0;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .nav__links {
    display: none;
  }
}


/* ============================================================
   REDUCED MOTION — accessibility
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
