/* ============================================================
   FEDORA — Visual Stimulation Layer (PR-B)
   ============================================================
   Layers on top of styles.css without replacing it.
   F500-restrained: subtle shadows, small hover lifts, Inter
   throughout (no decorative serifs), no mouse parallax.

   Locked to existing palette (#f8fafc bg, #1d4ed8 primary,
   #16a34a accent). Light mode always.
   ============================================================ */

:root {
  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans-stack:
    "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono-stack:
    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Monaco,
    Consolas, monospace;

  /* Refined relaxed shadows — barely there at rest, soft on hover */
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-card-hover:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 16px rgba(15, 23, 42, 0.05);
  --shadow-cta:
    0 1px 2px rgba(29, 78, 216, 0.18),
    0 4px 12px rgba(29, 78, 216, 0.18);
  --shadow-cta-hover:
    0 1px 2px rgba(29, 78, 216, 0.22),
    0 8px 20px rgba(29, 78, 216, 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ==========================================================
     UNIFIED SPACING SCALE — base 4px, every multiple of 4
     Used across all card padding, grid gaps, section rhythms.
     ========================================================== */
  --gap-2xs: 0.25rem; /* 4px */
  --gap-xs: 0.5rem;   /* 8px */
  --gap-sm: 0.75rem;  /* 12px */
  --gap-md: 1rem;     /* 16px */
  --gap-lg: 1.25rem;  /* 20px */
  --gap-xl: 1.5rem;   /* 24px */
  --gap-2xl: 2rem;    /* 32px */
  --gap-3xl: 3rem;    /* 48px */
  --gap-4xl: 4rem;    /* 64px */
  --gap-5xl: 5rem;    /* 80px */

  /* Card system tokens */
  --card-padding: var(--gap-xl); /* 24px internal padding */
  --card-min-width: 270px;       /* grid auto-fit min */
  --card-grid-gap: var(--gap-lg); /* 20px between cards */

  /* Section rhythm — bumped for premium relaxed feel */
  --section-pad-y: 7rem;       /* 112px desktop */
  --section-pad-y-mobile: 4rem; /* 64px mobile */

  /* Refined card padding (more breathing room) */
  --card-padding-relaxed: 1.75rem; /* 28px */
}

/* ============================================================
   SYMMETRY & RHYTHM — unified card + grid system
   ============================================================
   Forces every card grid on the site into the same dimensional
   logic: auto-fit minmax(270px, 1fr) + 20px gap + stretch.
   Every card becomes a flex column with consistent padding,
   equal height, and a link pushed to the bottom.
   ============================================================ */

/* All grid types use the same spacing + auto-fit pattern */
body[data-theme="light"] .suite-grid,
body[data-theme="light"] .product-grid,
body[data-theme="light"] .principles-grid,
body[data-theme="light"] .segments-grid,
body[data-theme="light"] .portal-flow-grid,
body[data-theme="light"] .service-block-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--card-min-width), 1fr));
  gap: var(--card-grid-gap);
  align-items: stretch;
}

/* Force equal-height cards with consistent internal layout */
body[data-theme="light"] .suite-card,
body[data-theme="light"] .product-card,
body[data-theme="light"] .principle-card,
body[data-theme="light"] .portal-flow-card,
body[data-theme="light"] .segment-card,
body[data-theme="light"] .panel-card,
body[data-theme="light"] .feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--card-padding-relaxed);
  gap: var(--gap-sm);
}

/* Consistent card content rhythm — kill mismatched margins */
body[data-theme="light"] .suite-card .suite-kicker,
body[data-theme="light"] .product-card .product-state,
body[data-theme="light"] .principle-card h3,
body[data-theme="light"] .portal-flow-card .portal-step,
body[data-theme="light"] .segment-card h3 {
  margin: 0;
}

body[data-theme="light"] .suite-card h3,
body[data-theme="light"] .product-card h3,
body[data-theme="light"] .principle-card h3,
body[data-theme="light"] .portal-flow-card h3,
body[data-theme="light"] .segment-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
}

body[data-theme="light"] .suite-card p,
body[data-theme="light"] .product-card p,
body[data-theme="light"] .principle-card p,
body[data-theme="light"] .portal-flow-card p,
body[data-theme="light"] .segment-card p,
body[data-theme="light"] .feature-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Card link always sits at the bottom of the card flex column */
body[data-theme="light"] .suite-card .card-link,
body[data-theme="light"] .product-card .card-link,
body[data-theme="light"] .principle-card .card-link,
body[data-theme="light"] .portal-flow-card .card-link,
body[data-theme="light"] .segment-card .card-link {
  margin-top: auto;
  padding-top: var(--gap-sm);
}

/* Pillar items — horizontal layout but same internal padding rhythm */
body[data-theme="light"] .pillar-item {
  padding: var(--card-padding);
  gap: var(--gap-md);
}

body[data-theme="light"] .pillar-content h4 {
  margin: 0 0 var(--gap-2xs) 0;
  font-size: 1.05rem;
}

body[data-theme="light"] .pillar-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* Card icons sit at the top with consistent margin-bottom only when
   followed by text content (not in horizontal pillar layout). */
body[data-theme="light"] .suite-card > .card-icon:first-child,
body[data-theme="light"] .product-card > .card-icon:first-child,
body[data-theme="light"] .principle-card > .card-icon:first-child,
body[data-theme="light"] .portal-flow-card > .card-icon:first-child,
body[data-theme="light"] .segment-card > .card-icon:first-child {
  margin: 0 0 var(--gap-2xs) 0;
}

/* Card-meta gets consistent spacing from preceding content */
body[data-theme="light"] .card-meta {
  margin-top: var(--gap-md);
  padding-top: var(--gap-md);
}

/* Card-note: consistent italic note spacing */
body[data-theme="light"] .card-note {
  margin: 0;
}

/* Suite/cluster cards specifically use a more relaxed gap */
body[data-theme="light"] .suite-card {
  gap: var(--gap-xs);
}

/* ============================================================
   SECTION RHYTHM — every section uses the same vertical padding
   ============================================================ */

body[data-theme="light"] .section,
body[data-theme="light"] .services-content,
body[data-theme="light"] .contact-content,
body[data-theme="light"] .approach-principles,
body[data-theme="light"] .approach-philosophy,
body[data-theme="light"] .approach-how-we-work,
body[data-theme="light"] .approach-process,
body[data-theme="light"] .about-overview,
body[data-theme="light"] .about-serve,
body[data-theme="light"] .about-why,
body[data-theme="light"] .privacy-content,
body[data-theme="light"] .rm-content,
body[data-theme="light"] .privacy-cta,
body[data-theme="light"] .rm-cta,
body[data-theme="light"] .services-cta {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

@media (max-width: 768px) {
  body[data-theme="light"] .section,
  body[data-theme="light"] .services-content,
  body[data-theme="light"] .contact-content,
  body[data-theme="light"] .approach-principles,
  body[data-theme="light"] .approach-philosophy,
  body[data-theme="light"] .approach-how-we-work,
  body[data-theme="light"] .approach-process,
  body[data-theme="light"] .about-overview,
  body[data-theme="light"] .about-serve,
  body[data-theme="light"] .about-why {
    padding-top: var(--section-pad-y-mobile);
    padding-bottom: var(--section-pad-y-mobile);
  }
}

/* ============================================================
   SECTION HEADER — same max-width + vertical rhythm everywhere
   ============================================================ */

body[data-theme="light"] .section-header {
  margin-bottom: var(--gap-2xl);
}

body[data-theme="light"] .section-header--center {
  text-align: center;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--gap-3xl);
}

body[data-theme="light"] .section-header h2,
body[data-theme="light"] .section-header--center h2 {
  margin: var(--gap-xs) 0 var(--gap-md) 0;
}

body[data-theme="light"] .section-intro {
  margin: 0;
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
  font-weight: 400;
}

/* ============================================================
   HERO METRICS / ABOUT STATS — consistent across pages
   ============================================================ */

body[data-theme="light"] .hero-metrics,
body[data-theme="light"] .about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gap-lg);
  margin-top: var(--gap-2xl);
}

body[data-theme="light"] .about-stats {
  max-width: 720px;
}

body[data-theme="light"] .hero-metrics dt,
body[data-theme="light"] .about-stats .stat-value {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin: 0;
}

body[data-theme="light"] .hero-metrics dd,
body[data-theme="light"] .about-stats .stat-label {
  font-size: 0.85rem;
  margin: var(--gap-2xs) 0 0 0;
  color: var(--text-muted);
}

/* ============================================================
   SECTION CTA + STAT-CALLOUT-GRID — same gap as cards
   ============================================================ */

body[data-theme="light"] .section-cta {
  display: flex;
  gap: var(--gap-md);
  justify-content: center;
  margin-top: var(--gap-2xl);
  flex-wrap: wrap;
}

body[data-theme="light"] .stat-callout-grid {
  gap: var(--card-grid-gap);
  margin: var(--gap-2xl) 0;
}

/* ============================================================
   SECTION-SPECIFIC GRID LAYOUTS — symmetry per content count
   ============================================================
   Default .suite-grid uses auto-fit. These rules override to
   force visual symmetry by section purpose:
     - Migration flow (4 cards):   4 cols at ≥768px (linear)
     - Bundle replacement (4):     2 cols at ≥1024px (2x2)
     - Cluster fit (6):            3 cols at ≥1024px (3x2)
     - ProofBar (6):               3 cols at ≥1024px (3x2)
     - Products (3 per suite):     3 cols at ≥1024px (3x1)
   ============================================================ */

@media (min-width: 768px) {
  body[data-theme="light"] .portal-flow-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  body[data-theme="light"] .section-portfolio .suite-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
  }

  body[data-theme="light"] .section-flagship .suite-grid,
  body[data-theme="light"] .proof-section .suite-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body[data-theme="light"] .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  body[data-theme="light"] .principles-grid,
  body[data-theme="light"] .segments-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 640px) and (max-width: 1023.99px) {
  body[data-theme="light"] .section-portfolio .suite-grid,
  body[data-theme="light"] .section-flagship .suite-grid,
  body[data-theme="light"] .proof-section .suite-grid,
  body[data-theme="light"] .product-grid,
  body[data-theme="light"] .principles-grid,
  body[data-theme="light"] .segments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   TYPOGRAPHY — Inter throughout, no decorative serifs
   ============================================================ */

body,
.brand-name,
.brand-tagline,
.nav-list a,
.btn,
.eyebrow,
.eyebrow-label,
.section-intro,
.hero-subtitle,
.products-hero-description,
.about-lede,
.approach-hero-description,
.contact-hero-description,
.services-hero-description,
.privacy-hero-intro,
.rm-hero-intro,
p, li, span, dt, dd {
  font-family: var(--font-sans-stack);
  font-feature-settings: "cv11" 1, "ss01" 1, "ss03" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hero H1 + page H1s — bigger, more dramatic display */
.hero h1,
.hero-text h1,
.hero-portal-home h1,
.about-hero h1,
.privacy-hero h1,
.rm-hero h1,
.products-hero h1,
.services-hero-content h1,
.approach-hero-content h1,
.contact-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4.8vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.02;
}

/* Section H2 — premium display contrast */
body[data-theme="light"] .section-header h2,
body[data-theme="light"] .section-header--center h2,
body[data-theme="light"] .services-hero-headline,
body[data-theme="light"] .approach-hero-headline,
body[data-theme="light"] .contact-hero-headline,
body[data-theme="light"] .callout h2,
body[data-theme="light"] .privacy-cta h2,
body[data-theme="light"] .rm-cta h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* H3 / card titles — Inter, weight 600 */
h3,
.suite-card h3,
.product-card h3,
.principle-card h3,
.portal-flow-card h3,
.segment-card h3,
.feature-card h3,
.philosophy-point h4,
.pillar-content h4,
.work-point h4,
.process-step h3 {
  font-family: var(--font-sans-stack);
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* Eyebrows — uppercase, letter-spaced */
.eyebrow,
.eyebrow-label,
.suite-kicker,
.product-state,
.contact-sidebar-label,
.privacy-cta-eyebrow,
.rm-cta-eyebrow,
.services-cta-eyebrow,
.approach-section-label,
.privacy-nav-label,
.rm-nav-label,
.jump-to-label,
.footer-heading {
  font-family: var(--font-sans-stack);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

/* Mono accents — metric numbers, version IDs, technical micro-data */
.hero-metrics dt,
.about-stats .stat-value,
code,
kbd,
.portal-step {
  font-family: var(--font-mono-stack);
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.01em;
}

/* Hero metric numbers: large, bold, blue→ink gradient */
.hero-metrics dt {
  font-size: 2.25rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.about-stats .stat-value {
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   HERO — animated mesh gradient (more vivid, no parallax)
   ============================================================ */

.hero-portal-home,
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-portal-home::before,
.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 18% 25%, rgba(29, 78, 216, 0.20), transparent 70%),
    radial-gradient(ellipse 50% 40% at 82% 22%, rgba(34, 211, 238, 0.18), transparent 70%),
    radial-gradient(ellipse 65% 55% at 60% 88%, rgba(22, 163, 74, 0.14), transparent 70%),
    radial-gradient(ellipse 35% 30% at 12% 80%, rgba(99, 102, 241, 0.16), transparent 70%);
  filter: blur(45px) saturate(1.3);
  animation: gradient-drift 28s ease-in-out infinite;
}

@keyframes gradient-drift {
  0%, 100% {
    transform: translate(0%, 0%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(2%, -1%) scale(1.06) rotate(0.8deg);
  }
  66% {
    transform: translate(-2%, 1.5%) scale(0.97) rotate(-0.6deg);
  }
}

/* Subtle grain texture overlay */
.hero-portal-home::after,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.85'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============================================================
   CARDS — F500-restrained: clean borders, subtle shadows,
   minimal hover lift, clear hierarchy
   ============================================================ */

.suite-card,
.product-card,
.principle-card,
.portal-flow-card,
.feature-card,
.segment-card,
.panel-card,
.stat-card,
.philosophy-point,
.pillar-item,
.work-point,
.process-step,
.pill {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

.suite-card:hover,
.product-card:hover,
.principle-card:hover,
.portal-flow-card:hover,
.segment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: var(--shadow-card-hover);
}

/* Card link arrow — micro animation */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 200ms var(--ease-out), color 200ms var(--ease-out);
  font-weight: 500;
}

.card-link:hover {
  gap: 0.5rem;
  color: var(--primary-strong);
}

/* ============================================================
   STRUCTURED CARD CONTENT (.card-meta)
   For Bundle Replacement + Cluster Fit on homepage
   ============================================================ */

/* Soft note inside structured cards — sits between title and meta */
.card-note {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-style: italic;
}

.card-meta {
  margin-top: var(--gap-md);
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  font-size: 0.875rem;
}

.card-meta-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-meta-label {
  display: none;  /* graphic-design refinement: bullet list speaks for itself */
}

.card-meta-value {
  font-family: var(--font-sans-stack);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.card-meta-value--mono {
  font-family: var(--font-mono-stack);
  font-size: 0.8rem;
  letter-spacing: -0.01em;
}

/* Clean bulleted list inside .card-meta — replaces the legacy
   .card-list which has 3rem padding-left + bottom: 1rem offset
   designed for the dark-theme cards. */
.card-meta-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--gap-xs);
  font-size: 0.875rem;
  color: var(--text);
}

.card-meta-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.card-meta-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.4;
}

/* Neutralize legacy decorative pseudo-elements on .suite-card,
   .product-card, .portal-flow-card. The original styles.css adds
   a 4px multi-color gradient bar on top + a radial blob on the
   right corner — both fight the F500-restrained look. */
body[data-theme="light"] .suite-card::before,
body[data-theme="light"] .product-card::before,
body[data-theme="light"] .portal-flow-card::before {
  display: none;
}

body[data-theme="light"] .suite-card::after,
body[data-theme="light"] .product-card::after,
body[data-theme="light"] .portal-flow-card::after {
  display: none;
}

/* Re-clean light-mode card surfaces — remove legacy radial-gradient
   bg layer that conflicted with the F500-restrained card look. */
body[data-theme="light"] .suite-card,
body[data-theme="light"] .product-card,
body[data-theme="light"] .portal-flow-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-card);
}

body[data-theme="light"] .suite-card:hover,
body[data-theme="light"] .product-card:hover,
body[data-theme="light"] .portal-flow-card:hover {
  border-color: rgba(29, 78, 216, 0.18);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

/* Suite-kicker / product-state — refined: plain uppercase eyebrow,
   no pill, restrained color. Premium graphic-design feel. */
body[data-theme="light"] .suite-kicker,
body[data-theme="light"] .product-state {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--text-muted);
  padding: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-block;
  width: auto;
}

/* ============================================================
   CARD ICONS — colored circle, gradient bg, gentle hover lift
   ============================================================ */

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    rgba(29, 78, 216, 0.10) 0%,
    rgba(34, 211, 238, 0.10) 100%
  );
  color: var(--primary);
  border: 1px solid rgba(29, 78, 216, 0.15);
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.05);
  transition:
    transform 250ms var(--ease-out),
    box-shadow 250ms var(--ease-out),
    background 250ms var(--ease-out),
    color 250ms var(--ease-out);
}

.suite-card:hover .card-icon,
.product-card:hover .card-icon,
.portal-flow-card:hover .card-icon {
  transform: scale(1.06) rotate(-2deg);
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-strong) 100%
  );
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* When the card icon sits inside a portal-flow-card, position the
   step number on the opposite side as a subtle counterweight. */
.portal-flow-card {
  position: relative;
}

.portal-flow-card .portal-step {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================================
   SECTION TINTED BACKGROUNDS — alternating visual rhythm
   ============================================================
   Apply via section-bg-alt class — soft blue tint + subtle
   decorative orb in corner for life. */

.section-bg-tint {
  position: relative;
  background:
    radial-gradient(ellipse 600px 400px at 0% 0%, rgba(29, 78, 216, 0.04), transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 100%, rgba(22, 163, 74, 0.04), transparent 60%),
    var(--surface-alt);
  isolation: isolate;
}

.section-bg-tint::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  top: -120px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(29, 78, 216, 0.10) 0%,
    rgba(34, 211, 238, 0.06) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

.section-bg-warm {
  position: relative;
  background:
    radial-gradient(ellipse 500px 300px at 100% 0%, rgba(232, 155, 60, 0.05), transparent 60%),
    radial-gradient(ellipse 500px 300px at 0% 100%, rgba(99, 102, 241, 0.04), transparent 60%),
    #FAF7F1;
  isolation: isolate;
}

.section-bg-warm::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -80px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(232, 155, 60, 0.10) 0%,
    rgba(99, 102, 241, 0.06) 40%,
    transparent 70%
  );
  filter: blur(40px);
  pointer-events: none;
}

/* ============================================================
   GRADIENT TEXT — for in-prose accent on key phrases
   ============================================================ */

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-strong) 50%,
    #22d3ee 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

/* ============================================================
   MIGRATION FLOW — connecting dotted line between cards
   ============================================================ */

.portal-flow-grid {
  position: relative;
}

@media (min-width: 768px) {
  .portal-flow-grid::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 60px;
    left: 8%;
    right: 8%;
    height: 2px;
    background-image: linear-gradient(
      90deg,
      transparent 0%,
      rgba(29, 78, 216, 0.25) 12%,
      rgba(29, 78, 216, 0.25) 88%,
      transparent 100%
    );
    background-size: 8px 2px;
    background-repeat: repeat-x;
    pointer-events: none;
  }
}

.portal-flow-card {
  position: relative;
  z-index: 1;
}

/* ============================================================
   ABOUT — chart illustration doesn't match icon system; hide
   it in light mode, collapse overview-grid to single column.
   (Same approach as why-image-card.)
   ============================================================ */

body[data-theme="light"] .overview-image,
body[data-theme="light"] .overview-visual {
  display: none;
}

body[data-theme="light"] .overview-grid {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
}

/* ============================================================
   PILLAR ITEMS — promote .card-icon-styled blocks to consistent
   icon-tile look matching every other card on the site
   ============================================================ */

body[data-theme="light"] .pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md, 12px);
  box-shadow: var(--shadow-card);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

body[data-theme="light"] .pillar-item:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.25);
  box-shadow: var(--shadow-card-hover);
}

body[data-theme="light"] .pillar-item .card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

/* ============================================================
   SMALL CARD ICON — sidebar variant
   ============================================================ */

.card-icon--sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

/* ============================================================
   STAT CALLOUTS — for long-form pages (why-fedora)
   ============================================================ */

.stat-callout-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

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

.stat-callout {
  background: linear-gradient(
    180deg,
    rgba(29, 78, 216, 0.04) 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stat-callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-strong) 100%
  );
  color: #ffffff;
  margin-bottom: 0.4rem;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.18);
}

.stat-callout-value {
  font-family: var(--font-mono-stack);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stat-callout-label {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   PULL QUOTE — for long-form pages
   ============================================================ */

.pull-quote {
  position: relative;
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2.25rem;
  border-left: 4px solid var(--primary);
  background: linear-gradient(
    90deg,
    rgba(29, 78, 216, 0.06) 0%,
    rgba(29, 78, 216, 0.02) 100%
  );
  border-radius: 0 var(--radius-md, 12px) var(--radius-md, 12px) 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  font-style: italic;
}

.pull-quote::before {
  content: "“";
  position: absolute;
  top: 0.25rem;
  left: 1rem;
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--primary);
  opacity: 0.45;
}

/* ============================================================
   BUTTONS — gradient + restrained glow
   ============================================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans-stack);
  font-weight: 600;
  letter-spacing: -0.005em;
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out),
    background 200ms var(--ease-out);
}

.btn-primary,
.btn-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  border: 1px solid rgba(29, 78, 216, 0.5);
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover,
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta-hover);
}

.btn-primary:active,
.btn-submit:active {
  transform: translateY(0);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 200ms var(--ease-out);
}

.btn-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 78, 216, 0.3);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.06),
    0 6px 16px rgba(15, 23, 42, 0.06);
}

/* ============================================================
   STATUS DOT — pulse animation
   ============================================================ */

.status-dot {
  position: relative;
  display: inline-block;
  background: var(--accent);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* ============================================================
   HEADER — quiet glassmorphism
   ============================================================ */

.site-header {
  background: rgba(248, 250, 252, 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: background 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(248, 250, 252, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05), 0 2px 12px rgba(15, 23, 42, 0.04);
}

.brand-tagline {
  color: var(--text-soft);
  font-size: 0.75rem;
  letter-spacing: 0;
}

/* ============================================================
   SCROLL REVEAL — failsafe pattern
   ============================================================
   Content is FULLY VISIBLE by default. The .is-visible class
   triggers an additive entrance animation (fade-up). If the
   IntersectionObserver fails or never fires, content still
   shows. Motion is enhancement, never gating.
   ============================================================ */

.fade-in-on-scroll.is-visible {
  animation: fedora-fade-up 600ms var(--ease-out);
}

@keyframes fedora-fade-up {
  from {
    opacity: 0.6;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   SECTION DIVIDERS
   ============================================================ */

.section + .section,
.section + .panel,
.panel + .section {
  position: relative;
}

.section + .section::before,
.section + .panel::before,
.panel + .section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 800px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(15, 23, 42, 0.08) 30%,
    rgba(15, 23, 42, 0.08) 70%,
    transparent 100%
  );
}

/* ============================================================
   PORTAL-STEP NUMBERS — gradient text
   ============================================================ */

.portal-step {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ============================================================
   FOCUS RINGS
   ============================================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface-alt) 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.footer-list a,
.footer-contact-item a {
  transition: color 200ms var(--ease-out);
}

.footer-list a:hover,
.footer-contact-item a:hover {
  color: var(--primary);
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

/* ============================================================
   LEGACY DARK-THEME IMAGE FIXES
   The about page's why-image-card holds about_overview_image.png
   which is a dark-theme screenshot from the old site — looks like
   a black box on the new light theme. Hide entirely on light mode
   (the why-grid still works as 2-col, just without the visual).
   ============================================================ */

body[data-theme="light"] .why-image-card {
  display: none;
}

body[data-theme="light"] .why-grid {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

@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;
  }

  .hero-portal-home::before,
  .hero::before {
    animation: none !important;
    transform: none !important;
  }

  .fade-in-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .status-dot::after {
    animation: none !important;
  }
}

@media print {
  .hero-portal-home::before,
  .hero::before,
  .hero-portal-home::after,
  .hero::after {
    display: none !important;
  }
}
