/* ===================================================================
   Triad Flow™ — Design System & Styles
   Premium minimalist design inspired by Linear/Stripe
   =================================================================== */

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

:root {
  --color-bg: #ffffff;
  --color-bg-subtle: #f8f9fb;
  --color-bg-muted: #f1f3f5;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-border-subtle: #f0f0f0;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-accent: #111827;
  --color-accent-hover: #374151;
  --color-accent-subtle: #f3f4f6;
  --color-link: #2563eb;
  --color-link-hover: #1d4ed8;
  --color-gradient-start: #f8f9fb;
  --color-gradient-end: #ffffff;

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

  --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 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-text: 640px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

h4 {
  font-size: 1.125rem;
}

p {
  color: var(--color-text-secondary);
}

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

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

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

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

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

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  transition: box-shadow var(--transition-base);
}

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

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.nav__logo {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo svg {
  width: 28px;
  height: 28px;
}

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

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--transition-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-text);
  border-radius: 1px;
}

.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

.nav__mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 550;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--secondary:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-text-tertiary);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-secondary);
  padding: 8px 16px;
}

.btn--ghost:hover {
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

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

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

/* --- Purchase Button --- */
.btn--purchase {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}

.btn--purchase:hover {
  background: linear-gradient(135deg, #115e59 0%, #0d9488 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
}

.btn--purchase svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--purchase-alt {
  border-color: #14b8a6;
  color: #0f766e;
}

.btn--purchase-alt:hover {
  background: #f0fdfa;
  border-color: #0d9488;
}

.btn--sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.featured__cta-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.footer__purchase-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.footer__purchase-link::before {
  content: '';
  width: 4px;
  height: 4px;
  background: #14b8a6;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- Hero Carousel --- */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
  padding-top: 64px; /* nav height */
}

.hero-carousel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-carousel__track {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* --- Individual Slides --- */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  padding: var(--space-4xl) 0;
}

.hero-slide--active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.hero-slide--exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

.hero-slide--exit-right {
  opacity: 0;
  transform: translateX(60px);
}

/* Slide inner content staggered animation */
.hero-slide--active .hero__badge {
  animation: slideContentIn 0.55s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-slide--active .hero__title {
  animation: slideContentIn 0.55s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-slide--active .hero__subtitle {
  animation: slideContentIn 0.55s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-slide--active .hero-slide__triad,
.hero-slide--active .hero-slide__comparison,
.hero-slide--active .hero-slide__stats {
  animation: slideContentIn 0.55s 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-slide--active .hero__actions {
  animation: slideContentIn 0.55s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  max-width: 850px;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
}

.hero__subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 1;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- Slide-Specific Visual Elements --- */

/* Triad roles (Slide 2) */
.hero-slide__triad {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-slide__triad-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.hero-slide__triad-role:hover {
  border-color: #14b8a6;
  box-shadow: 0 4px 16px rgba(20, 184, 166, 0.1);
  transform: translateY(-2px);
}

.hero-slide__triad-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero-slide__triad-desc {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  font-family: var(--font-mono);
}

.hero-slide__triad-connector {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

/* Comparison (Slide 3) */
.hero-slide__comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-slide__compare-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  min-width: 240px;
}

.hero-slide__compare-item--old {
  background: #fef2f2;
  border-color: #fecaca;
}

.hero-slide__compare-item--new {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.hero-slide__compare-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}

.hero-slide__compare-item--old .hero-slide__compare-label {
  color: #991b1b;
}

.hero-slide__compare-item--new .hero-slide__compare-label {
  color: #115e59;
}

.hero-slide__compare-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.hero-slide__compare-arrow {
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

/* Stats (Slide 4) */
.hero-slide__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-slide__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.hero-slide__stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.04em;
  line-height: 1;
}

.hero-slide__stat-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  max-width: 220px;
  text-align: center;
}

.hero-slide__stat-divider {
  width: 1px;
  height: 60px;
  background: var(--color-border);
}

/* --- Carousel Controls --- */
.hero-carousel__controls {
  position: absolute;
  bottom: var(--space-xl);
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  z-index: 10;
}

.hero-carousel__dots {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero-carousel__dot:hover {
  background: var(--color-text-tertiary);
}

.hero-carousel__dot--active {
  background: var(--color-text);
  width: 28px;
  border-radius: 100px;
}

.hero-carousel__arrows {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-carousel__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-bg);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.hero-carousel__arrow:hover {
  border-color: var(--color-text-tertiary);
  color: var(--color-text);
  background: var(--color-bg-subtle);
}

/* --- Progress Bar --- */
.hero-carousel__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-border-subtle);
  z-index: 10;
}

.hero-carousel__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #0f766e);
  width: 0%;
  transition: width 0.3s linear;
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.card__icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-text);
}

.card__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

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

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: var(--max-width-text);
  margin: 0 auto var(--space-3xl);
}

.section-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

/* --- Featured Publication --- */
.featured {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  transition: all var(--transition-base);
}

.featured:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-text-tertiary);
}

.featured__content {
  flex: 1;
}

.featured__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

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

.featured__desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.featured__visual {
  flex: 0 0 280px;
  height: 320px;
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-border) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured__visual-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  text-align: center;
  padding: var(--space-lg);
}

.featured__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    var(--color-border-subtle) 39px,
    var(--color-border-subtle) 40px
  );
  opacity: 0.5;
}

/* --- Process Page: Diagram --- */
.diagram {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 700px;
  margin: 0 auto;
}

.diagram__row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.diagram__node {
  background: var(--color-bg);
  border: 2px solid var(--color-text);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  min-width: 140px;
  text-align: center;
  transition: all var(--transition-fast);
}

.diagram__node:hover {
  background: var(--color-text);
  color: #fff;
}

.diagram__arrow {
  display: flex;
  align-items: center;
  color: var(--color-text-tertiary);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.diagram__target {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  flex: 1;
}

/* --- Process Content Blocks --- */
.process-block {
  padding: var(--space-3xl) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

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

.process-block__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.process-block__title {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.process-block__desc {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: var(--max-width-text);
  line-height: 1.75;
}

.process-block__list {
  list-style: none;
  margin-top: var(--space-lg);
}

.process-block__list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.process-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--color-text);
  border-radius: 50%;
}

/* --- Publications --- */
.publications-grid {
  display: grid;
  gap: var(--space-lg);
}

.pub-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-2xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-xl);
  transition: all var(--transition-base);
}

.pub-card:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pub-card__type {
  flex: 0 0 auto;
  padding: 6px 14px;
  background: var(--color-bg-muted);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-top: 4px;
}

.pub-card__content {
  flex: 1;
}

.pub-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.pub-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.pub-card__link {
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.pub-card__link:hover {
  gap: var(--space-sm);
}

.pub-card__purchase-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.pub-card__purchase-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.pub-card__store-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--color-border);
}

.pub-card__store-link:hover {
  color: #0f766e;
  text-decoration-color: #14b8a6;
}

.pub-section-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* --- About Page --- */
.about-hero {
  text-align: center;
  padding: calc(64px + var(--space-5xl)) 0 var(--space-3xl);
  background: linear-gradient(180deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
}

.about-hero__title {
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.about-hero__desc {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.profile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3xl);
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.profile__avatar {
  flex: 0 0 160px;
  height: 160px;
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-border) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-tertiary);
}

.profile__info {
  flex: 1;
}

.profile__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.profile__role {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.profile__bio {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

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

.vision-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
}

.vision-card:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
}

.vision-card__title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.vision-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* --- Page Headers (for inner pages) --- */
.page-header {
  padding: calc(64px + var(--space-5xl)) 0 var(--space-3xl);
  text-align: center;
  background: linear-gradient(180deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
}

.page-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.page-header__title {
  max-width: 700px;
  margin: 0 auto var(--space-md);
}

.page-header__desc {
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-3xl) 0;
  background: var(--color-bg);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3xl);
}

.footer__brand {
  flex: 0 0 auto;
}

.footer__brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  max-width: 280px;
  line-height: 1.6;
}

.footer__columns {
  display: flex;
  gap: var(--space-4xl);
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-md);
}

.footer__col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__col-links a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer__col-links a:hover {
  color: var(--color-text);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer__bottom-links a {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  transition: color var(--transition-fast);
}

.footer__bottom-links a:hover {
  color: var(--color-text);
}

/* --- Testimonials / Reviews --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.testimonial:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
}

.testimonial__quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: var(--space-lg);
  flex: 1;
  position: relative;
  padding-left: var(--space-lg);
}

.testimonial__quote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 2rem;
  font-style: normal;
  color: var(--color-text-tertiary);
  line-height: 1;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-bg-muted) 0%, var(--color-border) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.testimonial__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  line-height: 1.4;
}

/* --- Company Logos / Showcase --- */
.logos-section {
  text-align: center;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl) var(--space-3xl);
  margin-top: var(--space-xl);
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  opacity: 0.5;
  transition: opacity var(--transition-base);
}

.logo-item:hover {
  opacity: 1;
}

.logo-item__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo-item__name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.logo-item__industry {
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
}

/* --- Media / Press --- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.media-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.media-card:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.media-card__source {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.media-card__source-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-muted);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.media-card__source-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-tertiary);
}

.media-card__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

.media-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
  flex: 1;
}

.media-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.media-card__link {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: gap var(--transition-fast);
}

.media-card__link:hover {
  gap: var(--space-sm);
}

/* --- Events / Webinars --- */
.events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  display: flex;
  gap: var(--space-xl);
  transition: all var(--transition-base);
}

.event-card:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
}

.event-card__date-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 80px;
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.event-card__month {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
}

.event-card__day {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.event-card__year {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--color-text-tertiary);
}

.event-card__content {
  flex: 1;
}

.event-card__type {
  display: inline-block;
  padding: 3px 10px;
  background: var(--color-bg-muted);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.event-card__type--live {
  background: #ecfdf5;
  color: #065f46;
}

.event-card__type--workshop {
  background: #eff6ff;
  color: #1e40af;
}

.event-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  line-height: 1.4;
}

.event-card__meta {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.event-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.event-card__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--color-text);
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.event-card__cta:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-text-tertiary);
}

/* --- Recordings Grid --- */
.recordings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.recording-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.recording-card:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.recording-card__thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a2332 0%, #0f172a 60%, #164e63 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
}

.recording-card__thumbnail::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px);
  pointer-events: none;
}

.recording-card__thumbnail::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: linear-gradient(135deg, transparent 0%, rgba(20, 184, 166, 0.08) 100%);
  clip-path: polygon(20% 0%, 100% 40%, 60% 100%, 0% 60%);
  pointer-events: none;
}

.recording-card__play {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #ffffff;
  transition: all var(--transition-base);
  z-index: 1;
}

.recording-card:hover .recording-card__play {
  background: rgba(20, 184, 166, 0.9);
  border-color: rgba(20, 184, 166, 1);
  transform: scale(1.08);
}

.recording-card__duration {
  position: absolute;
  bottom: var(--space-sm);
  right: var(--space-sm);
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  z-index: 1;
}

.recording-card__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.recording-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.recording-card__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--color-text-tertiary);
}

.recording-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.recording-card__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-md);
  flex: 1;
}

.recording-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--color-text);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.recording-card__cta:hover {
  gap: var(--space-sm);
  color: #0f766e;
}

/* --- White Paper / Research --- */
.whitepaper {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.whitepaper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #0f766e, #14b8a6);
}

.whitepaper:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-lg);
}

.whitepaper__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 14px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #0f766e;
  margin-bottom: var(--space-lg);
}

.whitepaper__badge svg {
  flex-shrink: 0;
}

.whitepaper__title {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  margin-bottom: var(--space-md);
  max-width: 700px;
}

.whitepaper__authors {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.whitepaper__author-sep {
  color: var(--color-text-tertiary);
}

.whitepaper__abstract-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-sm);
}

.whitepaper__abstract {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  padding-left: var(--space-lg);
  border-left: 3px solid var(--color-border);
}

.whitepaper__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: var(--color-bg-subtle);
  border-radius: var(--radius-sm);
}

.whitepaper__detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.whitepaper__detail-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-tertiary);
}

.whitepaper__detail-value {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.whitepaper__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.whitepaper__status--review {
  color: #d97706;
}

.whitepaper__status--review::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #d97706;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.whitepaper__status--published {
  color: #059669;
}

.whitepaper__status--published::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #059669;
  border-radius: 50%;
}

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

.whitepaper__actions .btn svg {
  flex-shrink: 0;
}

.whitepaper__cite-hint {
  font-size: 0.8rem;
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* --- White Paper Callout (Homepage) --- */
.whitepaper-callout {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
}

.whitepaper-callout::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
}

.whitepaper-callout:hover {
  border-color: var(--color-text-tertiary);
  box-shadow: var(--shadow-md);
}

.whitepaper-callout__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--radius-sm);
  color: #0f766e;
}

.whitepaper-callout__content {
  flex: 1;
  min-width: 0;
}

.whitepaper-callout__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #d97706;
  margin-bottom: 4px;
}

.whitepaper-callout__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin-bottom: 4px;
}

.whitepaper-callout__desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.whitepaper-callout__actions {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.whitepaper-callout__actions .btn svg {
  flex-shrink: 0;
}

/* --- Comparison Table (compare.html) --- */
.compare-table {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.compare-table__row {
  display: grid;
  grid-template-columns: 160px repeat(4, 1fr);
  border-bottom: 1px solid var(--color-border-subtle);
}

.compare-table__row:last-child {
  border-bottom: none;
}

.compare-table__row--header {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border);
}

.compare-table__row--header .compare-table__dimension,
.compare-table__row--header .compare-table__cell {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
  padding: var(--space-md) var(--space-lg);
}

.compare-table__dimension {
  padding: var(--space-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-bg-subtle);
  border-right: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: flex-start;
}

.compare-table__cell {
  padding: var(--space-lg);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  border-right: 1px solid var(--color-border-subtle);
}

.compare-table__cell:last-child {
  border-right: none;
}

.compare-table__cell--highlight {
  background: #f0fdfa;
  color: var(--color-text);
  font-weight: 500;
  border-right: none;
  position: relative;
}

.compare-table__row--header .compare-table__cell--highlight {
  background: #e6faf7;
  color: #0f766e;
}

/* --- Comparison Note Callout --- */
.compare-note {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.compare-note::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-text-tertiary);
}

.compare-note__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

.compare-note__content {
  flex: 1;
}

.compare-note__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.compare-note__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    padding: var(--space-lg);
    gap: var(--space-md);
    border-bottom: 1px solid var(--color-border);
  }

  .nav__links--open {
    display: flex;
  }

  .nav__mobile-toggle {
    display: block;
  }

  .hero-carousel__track {
    min-height: 580px;
  }

  .hero-slide {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero-slide__triad {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .hero-slide__triad-connector {
    width: 2px;
    height: 16px;
    background: linear-gradient(180deg, transparent, var(--color-border), transparent);
  }

  .hero-slide__comparison {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-slide__compare-arrow {
    transform: rotate(90deg);
  }

  .hero-slide__compare-item {
    min-width: auto;
    width: 100%;
  }

  .hero-slide__stats {
    gap: var(--space-xl);
  }

  .hero-slide__stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-carousel__controls {
    flex-direction: column;
    gap: var(--space-md);
    bottom: var(--space-lg);
  }

  .featured__cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .featured {
    flex-direction: column;
    padding: var(--space-xl);
  }

  .featured__visual {
    flex: none;
    width: 100%;
    height: 200px;
  }

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

  .profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .footer__inner {
    flex-direction: column;
  }

  .footer__columns {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .diagram__arrow {
    transform: rotate(90deg);
  }

  .pub-card {
    flex-direction: column;
    gap: var(--space-md);
  }

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

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

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

  .event-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card__date-block {
    flex-direction: row;
    width: auto;
    height: auto;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .logos-grid {
    gap: var(--space-xl) var(--space-2xl);
  }

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

  .compare-table__row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .compare-table__row--header {
    display: none;
  }

  .compare-table__dimension {
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
    font-size: 0.9rem;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-bg-muted);
  }

  .compare-table__cell {
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: var(--space-md) var(--space-lg);
  }

  .compare-table__cell::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-xs);
  }

  .compare-table__cell:last-child {
    border-bottom: none;
  }

  .compare-note {
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-md);
  }

  .compare-note::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
  }

  .whitepaper-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl);
    gap: var(--space-md);
  }

  .whitepaper-callout::before {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 3px;
  }

  .whitepaper-callout__actions {
    flex-direction: column;
    width: 100%;
  }

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

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

  .whitepaper__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-md);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

/* ===================================================================
   Dark Mode
   =================================================================== */

[data-theme="dark"] {
  --color-bg: #0f1117;
  --color-bg-subtle: #161822;
  --color-bg-muted: #1c1f2e;
  --color-surface: #1a1d2b;
  --color-border: #2a2d3a;
  --color-border-subtle: #222538;
  --color-text: #e8eaf0;
  --color-text-secondary: #9ca3af;
  --color-text-tertiary: #6b7280;
  --color-accent: #e8eaf0;
  --color-accent-hover: #d1d5db;
  --color-accent-subtle: #1c1f2e;
  --color-link: #60a5fa;
  --color-link-hover: #93c5fd;
  --color-gradient-start: #0f1117;
  --color-gradient-end: #161822;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .hero-carousel {
  background: linear-gradient(160deg, #0f1117 0%, #161822 50%, #111827 100%);
}

[data-theme="dark"] .hero-slide__compare-item--old {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] .hero-slide__compare-item--new {
  background: rgba(0, 212, 255, 0.1);
  border-color: rgba(0, 212, 255, 0.2);
}

[data-theme="dark"] .featured__visual {
  background: linear-gradient(145deg, #1c1f2e, #161822);
  border-color: #2a2d3a;
}

[data-theme="dark"] .nav {
  background: rgba(15, 17, 23, 0.92);
}

[data-theme="dark"] .testimonial {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .logo-item {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .media-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .event-card {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .whitepaper-callout {
  background: var(--color-surface);
  border-color: var(--color-border);
}

[data-theme="dark"] .btn--purchase {
  background: linear-gradient(135deg, #00d4ff 0%, #3b8ea5 100%);
  color: #0f1117;
}

[data-theme="dark"] .footer {
  background: #0a0c12;
  border-top-color: #1c1f2e;
}

/* --- Theme Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  cursor: pointer;
  color: var(--color-text-secondary);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-text-tertiary);
  background: var(--color-bg-subtle);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle__sun { display: none; }
.theme-toggle__moon { display: block; }

[data-theme="dark"] .theme-toggle__sun { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* ===================================================================
   Reading Progress Bar
   =================================================================== */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #4a7a8a);
  z-index: 10001;
  transition: width 50ms linear;
  pointer-events: none;
}

/* ===================================================================
   Sticky Section Navigation (Process Page)
   =================================================================== */

.sticky-nav {
  position: fixed;
  left: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
}

.sticky-nav--visible {
  opacity: 1;
  pointer-events: auto;
}

.sticky-nav__dot {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: 4px 0;
  text-decoration: none;
  color: var(--color-text-tertiary);
  transition: color var(--transition-base);
}

.sticky-nav__dot:hover {
  color: var(--color-text);
}

.sticky-nav__dot-circle {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.sticky-nav__dot--active .sticky-nav__dot-circle {
  background: #00d4ff;
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
  transform: scale(1.3);
}

.sticky-nav__dot--active {
  color: var(--color-text);
}

.sticky-nav__label {
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--transition-base);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sticky-nav__dot:hover .sticky-nav__label,
.sticky-nav__dot--active .sticky-nav__label {
  opacity: 1;
  transform: translateX(0);
}

/* ===================================================================
   Animated Counters / Social Proof
   =================================================================== */

.social-proof {
  padding: var(--space-3xl) 0;
}

.social-proof__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}

.social-proof__item {
  padding: var(--space-xl) var(--space-md);
}

.social-proof__value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.social-proof__value .counter-suffix {
  font-size: 2rem;
  color: #00d4ff;
}

.social-proof__label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ===================================================================
   Newsletter Signup
   =================================================================== */

.newsletter {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.newsletter__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-xl);
}

.newsletter__form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color var(--transition-base);
  outline: none;
}

.newsletter__input:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.newsletter__input::placeholder {
  color: var(--color-text-tertiary);
}

.newsletter__btn {
  padding: 12px 24px;
  background: var(--color-accent);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.newsletter__btn:hover {
  background: var(--color-accent-hover);
}

/* ===================================================================
   Glossary Styles
   =================================================================== */

.glossary-search-wrapper {
  position: relative;
  margin-bottom: var(--space-2xl);
}

.glossary-search-wrapper svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.glossary-search {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition-base);
  outline: none;
}

.glossary-search:focus {
  border-color: #00d4ff;
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.glossary-search::placeholder {
  color: var(--color-text-tertiary);
}

.glossary-grid {
  display: flex;
  flex-direction: column;
}

.glossary-section-letter {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00d4ff;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border-subtle);
}

.glossary-entry {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.glossary-entry__term {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.glossary-entry__definition {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

/* ===================================================================
   FAQ Accordion Styles
   =================================================================== */

.faq-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 550;
  color: var(--color-text);
  text-align: left;
  line-height: 1.5;
  gap: var(--space-md);
  transition: color var(--transition-base);
}

.faq-item__question:hover {
  color: var(--color-link);
}

.faq-item__chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-secondary);
}

.faq-item--open .faq-item__chevron {
  transform: rotate(180deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item__answer-inner {
  padding: 0 0 var(--space-lg) 0;
}

.faq-item__answer-inner p {
  color: var(--color-text-secondary);
  font-size: 0.975rem;
  line-height: 1.75;
  margin: 0;
}

.faq-item__answer-inner a {
  color: var(--color-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base);
}

.faq-item__answer-inner a:hover {
  border-bottom-color: var(--color-link);
}

/* ===================================================================
   Interactive Framework Diagram
   =================================================================== */

.interactive-diagram {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-3xl) 0;
}

.interactive-diagram__center {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #4a7a8a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

.interactive-diagram__roles {
  display: flex;
  justify-content: space-between;
  margin-top: calc(-1 * var(--space-xl));
  padding: 0 var(--space-md);
}

.interactive-diagram__role {
  flex: 1;
  max-width: 200px;
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  position: relative;
}

.interactive-diagram__role:hover,
.interactive-diagram__role--active {
  border-color: #00d4ff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.12);
  transform: translateY(-4px);
}

.interactive-diagram__role-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: 1.2rem;
}

.interactive-diagram__role:nth-child(1) .interactive-diagram__role-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.interactive-diagram__role:nth-child(2) .interactive-diagram__role-icon {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.interactive-diagram__role:nth-child(3) .interactive-diagram__role-icon {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.interactive-diagram__role-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.interactive-diagram__role-domain {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

.interactive-diagram__detail {
  display: none;
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  animation: fadeInUp 0.3s ease;
}

.interactive-diagram__detail--visible {
  display: block;
}

.interactive-diagram__detail-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.interactive-diagram__detail-text {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.interactive-diagram__detail-list {
  list-style: none;
  padding: 0;
}

.interactive-diagram__detail-list li {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
}

.interactive-diagram__detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00d4ff;
}

/* ===================================================================
   Resource Links (secondary nav for new pages)
   =================================================================== */

.resources-bar {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
  padding: var(--space-sm) 0;
  text-align: center;
  font-size: 0.8rem;
}

.resources-bar__links {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.resources-bar__link {
  color: var(--color-text-secondary);
  text-decoration: none;
  padding: var(--space-xs) 0;
  transition: color var(--transition-base);
  font-weight: 500;
}

.resources-bar__link:hover {
  color: var(--color-text);
}

.resources-bar__link--active {
  color: var(--color-text);
}

.resources-bar__divider {
  width: 1px;
  height: 14px;
  background: var(--color-border);
}

/* ===================================================================
   Responsive Additions
   =================================================================== */

@media (max-width: 1200px) {
  .sticky-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .social-proof__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .social-proof__value {
    font-size: 2.2rem;
  }

  .newsletter__form {
    flex-direction: column;
  }

  .newsletter {
    padding: var(--space-2xl) var(--space-xl);
  }

  .interactive-diagram__roles {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding: 0;
  }

  .interactive-diagram__role {
    max-width: 100%;
    width: 100%;
  }

  .interactive-diagram__center {
    width: 80px;
    height: 80px;
    font-size: 0.65rem;
  }

  .resources-bar__links {
    gap: var(--space-md);
    font-size: 0.75rem;
  }

  .resources-bar__divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .social-proof__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .social-proof__value {
    font-size: 1.8rem;
  }

  .social-proof__label {
    font-size: 0.75rem;
  }
}
