/* ============================================================
   HDLabs — styles.css
   Light professional theme · TensorLinks-inspired color scheme
   Purple primary · Amber secondary · Manrope + DM Sans
   ============================================================ */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Colors — backgrounds (white/light grey, TensorLinks-style) */
  --color-bg:           #ffffff;
  --color-bg-2:         #f4f6f8;
  --color-bg-card:      #ffffff;
  --color-bg-card-alt:  #f9fafb;
  --color-border:       #e5e7eb;
  --color-border-light: #d1d5db;

  /* Primary accent — purple (darkened for light bg contrast) */
  --color-accent:       #7c3aed;
  --color-accent-hover: #6d28d9;
  --color-accent-dim:   rgba(124, 58, 237, 0.07);
  --color-accent-mid:   rgba(124, 58, 237, 0.18);
  --color-accent-glow:  rgba(124, 58, 237, 0.28);

  /* Secondary accent — amber (TensorLinks #d97706) */
  --color-secondary:       #d97706;
  --color-secondary-hover: #b45309;
  --color-secondary-dim:   rgba(217, 119, 6, 0.08);
  --color-secondary-mid:   rgba(217, 119, 6, 0.18);

  --color-text:         #1f2937;
  --color-text-muted:   #6b7280;
  --color-text-dim:     #4b5563;
  --color-white:        #ffffff;

  /* Status — TensorLinks green & amber */
  --color-success:      #22c55e;
  --color-warning:      #d97706;
  --color-danger:       #f43f5e;

  /* Typography — Manrope (headings/display) + DM Sans (body) */
  --font-sans:  'Manrope', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:  'DM Sans', 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:  'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;

  /* Type scale */
  --text-xs:    0.75rem;    /* 12px */
  --text-sm:    0.875rem;   /* 14px */
  --text-base:  1rem;       /* 16px */
  --text-lg:    1.125rem;   /* 18px */
  --text-xl:    1.25rem;    /* 20px */
  --text-2xl:   1.5rem;     /* 24px */
  --text-3xl:   1.875rem;   /* 30px */
  --text-4xl:   2.25rem;    /* 36px */
  --text-5xl:   3rem;       /* 48px */
  --text-6xl:   3.75rem;    /* 60px */
  --text-7xl:   4.5rem;     /* 72px */

  /* Spacing (8px base) */
  --space-1:    0.25rem;    /* 4px */
  --space-2:    0.5rem;     /* 8px */
  --space-3:    0.75rem;    /* 12px */
  --space-4:    1rem;       /* 16px */
  --space-5:    1.25rem;    /* 20px */
  --space-6:    1.5rem;     /* 24px */
  --space-8:    2rem;       /* 32px */
  --space-10:   2.5rem;     /* 40px */
  --space-12:   3rem;       /* 48px */
  --space-16:   4rem;       /* 64px */
  --space-20:   5rem;       /* 80px */
  --space-24:   6rem;       /* 96px */
  --space-32:   8rem;       /* 128px */

  /* Layout */
  --container-max:  1200px;
  --container-wide: 1400px;
  --header-h:       72px;

  /* Radius — TensorLinks uses generous rounding (rounded-2xl) */
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 24px;

  /* Shadows — reduced opacity for light bg */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-accent: 0 0 24px rgba(124, 58, 237, 0.18);
  --shadow-card:   0 2px 12px rgba(0,0,0,0.08);

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

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; }

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

/* ── Focus Visible ────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Typography ───────────────────────────────────────────── */
.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }
.text-4xl   { font-size: var(--text-4xl); }
.text-5xl   { font-size: var(--text-5xl); }
.text-6xl   { font-size: var(--text-6xl); }

.font-mono  { font-family: var(--font-mono); }
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold  { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-white  { color: var(--color-white); }
.text-muted  { color: var(--color-text-muted); }
.text-dim    { color: var(--color-text-dim); }
.text-accent { color: var(--color-accent); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

.leading-tight  { line-height: 1.2; }
.leading-snug   { line-height: 1.35; }
.leading-normal { line-height: 1.6; }
.leading-loose  { line-height: 1.8; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.08em; }
.tracking-wider { letter-spacing: 0.12em; }

/* Section labels */
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-sm);
  background: var(--color-accent-dim);
}

/* Amber section label variant */
.section-label--amber {
  color: var(--color-secondary);
  border-color: var(--color-secondary-mid);
  background: var(--color-secondary-dim);
}

/* Section headings */
.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  color: #111827;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-dim);
  max-width: 620px;
  line-height: 1.65;
}

/* Accent highlight inside text */
.accent { color: var(--color-accent); }

/* Metric display */
.metric {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-accent);
  line-height: 1;
  display: block;
}

.metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: var(--space-2);
}

/* Code / mono callouts */
.code-tag {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-sm);
  padding: 2px var(--space-2);
}

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Flex utilities */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end   { justify-content: flex-end; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }
.gap-12 { gap: var(--space-12); }

/* Grid utilities */
.grid           { display: grid; }
.grid-2         { grid-template-columns: repeat(2, 1fr); }
.grid-3         { grid-template-columns: repeat(3, 1fr); }
.grid-4         { grid-template-columns: repeat(4, 1fr); }

/* Spacing utilities */
.mt-2  { margin-top: var(--space-2); }
.mt-3  { margin-top: var(--space-3); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

/* Display utilities */
.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }

/* ── Section Base ─────────────────────────────────────────── */
.section {
  padding-block: var(--space-24);
}

.section-sm {
  padding-block: var(--space-16);
}

.section-lg {
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

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

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

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

.section-header--center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

/* Divider line */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin-block: var(--space-12);
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  border-color: transparent;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #9333ea 0%, #7c3aed 100%);
  border-color: transparent;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.35);
  transform: translateY(-1px);
}

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

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline:hover {
  background: var(--color-accent-dim);
  box-shadow: 0 0 16px rgba(124,58,237,0.18);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-dim);
  border-color: var(--color-border-light);
}

.btn-ghost:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  background: var(--color-accent-dim);
}

/* Hero button overrides — contrast against #8B37FA background */
.hero .btn-primary {
  background: #ffffff;
  color: #8B37FA;
  border-color: transparent;
}

.hero .btn-primary:hover {
  background: #f3e8ff;
  box-shadow: 0 0 24px rgba(255,255,255,0.25);
  transform: translateY(-1px);
}

.hero .btn-outline {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.6);
}

.hero .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

/* Arrow icon in button */
.btn .arrow {
  transition: transform var(--transition-base);
}
.btn:hover .arrow {
  transform: translateX(4px);
}

/* CTA group */
.cta-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── Header / Nav ─────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: clamp(28px, 4vw, 40px);
  width: auto;
  display: block;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo-text {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--color-accent);
}

/* Nav links */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-dim);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding-block: var(--space-2);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  border-radius: 1px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-cta {
  margin-left: var(--space-4);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-6);
  flex-direction: column;
  gap: var(--space-4);
  z-index: 999;
  animation: slideDown 200ms ease;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile .nav-link {
  font-size: var(--text-base);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile .nav-cta {
  margin-left: 0;
  margin-top: var(--space-2);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: #0f172a;
  border-top: none;
  padding-block: var(--space-16) var(--space-8);
}

.site-footer h4,
.site-footer .logo-text {
  color: #f9fafb;
}

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

.footer-brand p {
  color: #9ca3af;
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: #a78bfa;
  margin-top: var(--space-4);
  opacity: 0.8;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #d1d5db;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links a {
  font-size: var(--text-sm);
  color: #9ca3af;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #a78bfa;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid #374151;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: #6b7280;
}

.footer-bottom a {
  color: #a78bfa;
  text-decoration: none;
}

/* ── Page Header (inner pages) ────────────────────────────── */
.page-header {
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-16);
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(124,58,237,0.05) 0%, transparent 70%);
  pointer-events: none;
}

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

.page-header h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-6xl));
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.page-header p {
  font-size: var(--text-lg);
  color: var(--color-text-dim);
  max-width: 600px;
  line-height: 1.7;
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  background: #8B37FA;
  padding: calc(var(--header-h) + var(--space-16)) 0 var(--space-24);
  position: relative;
  overflow: hidden;
}

.hero h1,
.hero h2,
.hero h3,
.hero h4,
.hero h5,
.hero h6 {
  color: #ffffff;
}

/* Grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 0%, transparent 70%);
  pointer-events: none;
}

/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.14) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(251,191,36,0.35);
  border-radius: 100px;
  background: rgba(251,191,36,0.10);
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: #FBBF24;
}

.hero-sub {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: #f5f3ff;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: var(--space-10);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-10);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat .metric {
  font-size: var(--text-3xl);
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: fadeInUp 1s ease 1s both;
}

.scroll-hint svg {
  animation: bounce 1.5s ease infinite;
}

/* ── Proof Points (Difference section) ───────────────────── */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.proof-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.proof-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.proof-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-accent);
}

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

.proof-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-accent);
}

.proof-card .metric {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-3);
}

.proof-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.proof-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ── Pillar Cards ─────────────────────────────────────────── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

/* An odd last card fills its row instead of sitting alone */
.pillars-grid .pillar:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

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

.pillar::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--color-accent-dim) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

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

.pillar:hover::after {
  opacity: 1;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  font-size: 24px;
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
}

.pillar h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.pillar-tagline {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-bottom: var(--space-4);
  opacity: 0.9;
}

.pillar p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.pillar-caps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Stack Tags ───────────────────────────────────────────── */
.stack-tag {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-3);
  transition: all var(--transition-fast);
  cursor: default;
  white-space: nowrap;
}

.stack-tag:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

/* kept as alias — no visual difference now */
.stack-tag--accent {
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border-color: var(--color-accent-mid);
}

/* ── Process Steps ────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent-mid), var(--color-border), var(--color-accent-mid));
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8) var(--space-6);
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.20);
}

.process-step h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.process-step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: 100px;
  padding: 2px 8px;
  margin-top: var(--space-3);
}

/* ── Tech Stack Section ───────────────────────────────────── */
.stack-categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.stack-category {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: border-color var(--transition-base);
}

.stack-category:hover {
  border-color: var(--color-border-light);
}

.stack-category-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.stack-category-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 18px;
  flex-shrink: 0;
}

.stack-category h3 {
  font-size: var(--text-lg);
}

.stack-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* ── Case Study Cards ─────────────────────────────────────── */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

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

.card-industry {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: 100px;
  padding: var(--space-1) var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.card-body {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body .card-industry {
  margin-bottom: var(--space-5);
}

.card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.card-challenge {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-4);
}

.card-built {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.65;
  margin-bottom: var(--space-6);
}

.card-outcome {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.outcome-label {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.outcome-metric {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-accent);
  line-height: 1.3;
}

.card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: var(--space-3);
}

/* ── Comparison Section ───────────────────────────────────── */
.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.comparison-col {
  border-radius: var(--radius-xl);
  padding: var(--space-10);
}

.comparison-col--them {
  background: #f9fafb;
  border: 1px solid var(--color-border);
}

.comparison-col--us {
  background: rgba(124, 58, 237, 0.05);
  border: 1px solid var(--color-accent-mid);
}

.comparison-col h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.comparison-col--us h3 {
  border-bottom-color: var(--color-accent-mid);
}

.comparison-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.comparison-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 12px;
}

.comparison-col--them .comparison-item-icon {
  background: rgba(255, 77, 109, 0.15);
  color: var(--color-danger);
}

.comparison-col--us .comparison-item-icon {
  background: rgba(124, 58, 237, 0.12);
  color: var(--color-accent);
}

.comparison-item p {
  font-size: var(--text-base);
  color: var(--color-text-dim);
  line-height: 1.5;
}

.comparison-item strong {
  color: #111827;
  display: block;
  margin-bottom: var(--space-1);
}

/* ── CTA Block ────────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, rgba(124,58,237,0.06) 0%, rgba(91,33,182,0.03) 100%);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-2xl);
  padding: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.cta-block p {
  font-size: var(--text-lg);
  color: var(--color-text-dim);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
}

.cta-block .cta-group {
  justify-content: center;
}

/* ── Contact Form ─────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: var(--space-16);
  align-items: start;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

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

.form-label .required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.12);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237c8699' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--color-bg-card);
  color: var(--color-text);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
}

.contact-info-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.contact-info-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-6);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-info-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
}

.contact-info-item strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}

.contact-info-item a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── About Page ───────────────────────────────────────────── */
.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.philosophy-content h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-6);
}

.philosophy-content p {
  font-size: var(--text-lg);
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.philosophy-points {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.philosophy-point {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.philosophy-point-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
  font-size: 14px;
}

.philosophy-point p {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  margin-bottom: 0;
  line-height: 1.5;
}

.philosophy-point strong {
  color: #111827;
}

.philosophy-visual {
  background: #1e1b2e;
  border: 1px solid #2d2a45;
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 2;
}

.code-comment { color: #5c6880; }
.code-keyword { color: #c792ea; }
.code-string  { color: #c3e88d; }
.code-fn      { color: var(--color-accent); }
.code-var     { color: #82aaff; }
.code-num     { color: #f78c6c; }

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  transition: all var(--transition-base);
}

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

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-dim), var(--color-bg-card-alt));
  border: 2px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-accent);
}

.team-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-1);
}

.team-role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-family: var(--font-mono);
  margin-bottom: var(--space-4);
}

.team-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.team-skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-4);
}

/* Services page */
.service-section {
  padding-block: var(--space-20);
  border-bottom: 1px solid var(--color-border);
}

.service-section:last-of-type {
  border-bottom: none;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}

.service-content h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
  margin-bottom: var(--space-4);
}

.service-positioning {
  font-size: var(--text-lg);
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.service-caps-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.service-caps-card h4 {
  font-size: var(--text-sm);
  font-family: var(--font-mono);
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-5);
}

.cap-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.cap-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.5;
}

.cap-item::before {
  content: '›';
  color: var(--color-accent);
  font-size: var(--text-lg);
  line-height: 1;
  flex-shrink: 0;
  margin-top: -1px;
}

/* Technology page */
.tech-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  margin-bottom: var(--space-20);
}

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

.tech-stack-block {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.tech-stack-block:hover {
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-md);
}

.tech-stack-title {
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.tech-stack-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

/* Numbered list with accent */
.numbered-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  counter-reset: item;
}

.numbered-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  counter-increment: item;
}

.numbered-item::before {
  content: counter(item, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.numbered-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.numbered-item strong {
  color: var(--color-text);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.85); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Reveal on scroll */
/* main.js adds .reveal-ready, so content stays visible if the script fails */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Form Messages ────────────────────────────────────────── */
.form-message {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  margin-top: var(--space-4);
  display: none;
}

.form-message.success {
  background: rgba(0, 214, 143, 0.1);
  border: 1px solid rgba(0, 214, 143, 0.3);
  color: var(--color-success);
  display: block;
}

.form-message.error {
  background: rgba(255, 77, 109, 0.1);
  border: 1px solid rgba(255, 77, 109, 0.3);
  color: var(--color-danger);
  display: block;
}

.field-error {
  font-size: var(--text-xs);
  color: var(--color-danger);
  margin-top: var(--space-2);
  display: none;
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--color-danger);
}

.form-group.has-error .field-error {
  display: block;
}

/* ── Breadcrumb ───────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.breadcrumb a {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  opacity: 0.5;
}

/* ── Misc Components ──────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
}

.badge-accent {
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  color: var(--color-accent);
}

.badge-success {
  background: rgba(0,214,143,0.1);
  border: 1px solid rgba(0,214,143,0.25);
  color: var(--color-success);
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

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

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

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

  .process-steps::before {
    display: none;
  }

  .stack-categories {
    grid-template-columns: 1fr;
  }

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

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

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

  .contact-aside {
    position: static;
  }

  .philosophy-grid,
  .service-grid,
  .tech-intro {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

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

  .tech-stacks {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container,
  .container-wide {
    padding-inline: var(--space-4);
  }

  .section {
    padding-block: var(--space-16);
  }

  .section-lg {
    padding-block: var(--space-16);
  }

  /* Nav */
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-top: calc(var(--header-h) + var(--space-8));
    min-height: auto;
    padding-bottom: var(--space-16);
  }

  .scroll-hint {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .hero-stat .metric {
    font-size: var(--text-2xl);
  }

  /* Grids collapse to single column */
  .pillars-grid,
  .proof-grid,
  .process-steps,
  .case-studies-grid,
  .comparison-grid,
  .footer-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* CTA block */
  .cta-block {
    padding: var(--space-10) var(--space-6);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

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

  /* Buttons */
  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: var(--text-4xl);
  }

  .section-title {
    font-size: var(--text-3xl);
  }
}

/* ── Fractional CTO Page ──────────────────────────────────── */
.fcto-tier {
  display: flex;
  flex-direction: column;
}

.fcto-tier .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fcto-tier--featured {
  border-color: var(--color-accent-mid);
  box-shadow: 0 0 0 2px var(--color-accent-mid), var(--shadow-md);
}

.fcto-tier-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-bottom: var(--space-5);
}

.fcto-includes {
  list-style: none;
  padding: 0;
  margin: var(--space-5) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.fcto-includes li {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  padding-left: var(--space-5);
  position: relative;
  line-height: 1.5;
}

.fcto-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-xs);
  top: 2px;
}

/* ── Fractional CTO — Pain Strip ─────────────────────────── */
.fcto-pain-strip {
  background: var(--color-bg-2);
  padding-block: var(--space-16);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.fcto-pain-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: 680px;
  margin: 0 auto;
}

.fcto-pain-statement {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-7);
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-card);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}

.fcto-pain-statement strong {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.fcto-pain-statement span {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.fcto-pain-connector {
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--color-accent);
  line-height: 1;
  padding: var(--space-3) 0 var(--space-3) var(--space-7);
  opacity: 0.5;
}

.fcto-pain-setup {
  margin: var(--space-8) 0 var(--space-3);
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.65;
}

.fcto-pain-conclusion {
  background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-10);
  text-align: center;
  box-shadow: 0 8px 24px rgba(124,58,237,0.30);
}

.fcto-pain-fix {
  margin: 0 !important;
  font-size: var(--text-xl) !important;
  font-weight: 700 !important;
  color: #f9fafb !important;
  line-height: 1.4 !important;
}

/* ── Fractional CTO — POV Cards ───────────────────────────── */
.fcto-pov-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
}

.fcto-pov-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fcto-pov-num {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.fcto-pov-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin: 0;
}

.fcto-pov-card p {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.75;
  margin: 0;
}

/* ── Fractional CTO — Micro Outcomes ─────────────────────── */
.fcto-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.fcto-outcome-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  transition: all var(--transition-base);
}

.fcto-outcome-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-md);
}

.fcto-outcome-metric {
  font-family: var(--font-sans);
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.fcto-outcome-desc {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.65;
  margin: 0;
}

@media (max-width: 768px) {
  .fcto-outcomes-grid { grid-template-columns: 1fr; }
}

/* ── Fractional CTO — Pricing Note ───────────────────────── */
.fcto-pricing-note {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-10);
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* ── Credential Cards (Fractional CTO) ───────────────────── */
.credential-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.credential-card:hover {
  border-color: var(--color-accent-mid);
  box-shadow: var(--shadow-accent);
}

.credential-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.credential-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.credential-org {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.credential-domain {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  margin-top: var(--space-1);
  letter-spacing: 0.04em;
}

.credential-card p {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.75;
  margin: 0;
}

.credential-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

/* ── Clients Strip ────────────────────────────────────────── */
.clients-strip {
  padding-block: var(--space-16);
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.clients-label {
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-10);
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--space-4);
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 80px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
  cursor: default;
}

.client-logo:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  box-shadow: 0 0 24px rgba(124,58,237,0.35);
}

.client-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: filter var(--transition-base);
}

/* Logos with white/light content — make dark on light bg */
.client-logo--dark img {
  filter: brightness(0);
}

/* On hover all logos go white for contrast against purple fill */
.client-logo:hover img,
.client-logo--dark:hover img {
  filter: brightness(0) invert(1);
}

/* ── Blog Index ───────────────────────────────────────────── */
.blog-filters {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-12);
}

.blog-filter-btn {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-filter-btn:hover {
  border-color: var(--color-accent-mid);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.blog-filter-btn.active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-accent-dim);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.blog-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.blog-card-body {
  padding: var(--space-8);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: 100px;
  padding: var(--space-1) var(--space-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
  align-self: flex-start;
}

.blog-card h3 {
  font-size: var(--text-lg);
  line-height: 1.35;
  margin-bottom: var(--space-3);
  color: #111827;
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-6);
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.blog-card-meta-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.blog-card-meta-sep {
  opacity: 0.4;
}

/* ── Article Page ─────────────────────────────────────────── */
.article-header {
  padding-top: calc(var(--header-h) + var(--space-16));
  padding-bottom: var(--space-16);
  background: var(--color-bg-2);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.article-header::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 60% at 20% 50%, rgba(124,58,237,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.article-header-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.article-meta-sep { opacity: 0.4; }

.article-header h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.article-lead {
  font-size: var(--text-lg);
  color: var(--color-text-dim);
  line-height: 1.75;
  max-width: 700px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--space-16);
  align-items: start;
  padding-block: var(--space-16);
}

/* Prose body */
.article-body {
  font-size: var(--text-base);
  line-height: 1.85;
  color: var(--color-text);
  min-width: 0;
}

.article-body h2 {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
  color: #111827;
}

.article-body h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  color: #111827;
}

.article-body p {
  margin-bottom: var(--space-5);
  color: var(--color-text);
}

.article-body ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: var(--space-6);
}

.article-body ul li {
  padding-left: var(--space-6);
  position: relative;
  margin-bottom: var(--space-3);
  color: var(--color-text-dim);
}

.article-body ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
}

.article-body ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
  list-style: decimal;
}

.article-body ol li {
  margin-bottom: var(--space-3);
  color: var(--color-text-dim);
  padding-left: var(--space-2);
}

.article-body strong { color: #111827; font-weight: 600; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 0.95rem; }
.article-body th, .article-body td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid #e5e7eb; }
.article-body th { color: #111827; font-weight: 600; background: #f9fafb; }
.video-embed { position: relative; display: block; aspect-ratio: 16 / 9; margin: 0 0 0.5rem; border-radius: 12px; overflow: hidden; background: #000; }
.video-embed img, .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-play { position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%); border-radius: 12px; background: rgba(0, 0, 0, 0.75); transition: background 0.2s; }
.video-play::after { content: ""; position: absolute; left: 27px; top: 14px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.video-embed:hover .video-play, .video-embed:focus-visible .video-play { background: #ff0000; }
.video-caption { font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: 2rem; }
.article-figure { margin: 2rem 0; padding: 1.25rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fcfcfd; }
.article-figure svg { display: block; width: 100%; height: auto; font-family: inherit; }
.article-figure figcaption { margin-top: 0.75rem; font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; line-height: 1.5; }

.article-body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body a:hover { color: var(--color-accent-hover); }

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  background: var(--color-accent-dim);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-text-dim);
}

.article-body blockquote p { margin-bottom: 0; }

.article-body pre {
  background: #1e1b2e;
  border: 1px solid #2d2a45;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-8) 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--color-accent);
  background: var(--color-accent-dim);
  border: 1px solid var(--color-accent-mid);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  color: #c4b5fd;
  font-size: inherit;
}

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-8));
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.toc-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.toc-card h4 {
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-4);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.toc-link {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  display: block;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
  color: var(--color-accent);
  border-left-color: var(--color-accent);
  background: var(--color-accent-dim);
}

/* Related articles */
.related-articles {
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-8);
}

/* ── Testimonials ─────────────────────────────────────────── */
.clutch-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 100px;
  padding: var(--space-2) var(--space-5);
  letter-spacing: 0.04em;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.testimonial-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--transition-base);
  position: relative;
}

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

.testimonial-card--featured {
  border-color: var(--color-accent);
  background: linear-gradient(160deg, rgba(124,58,237,0.06) 0%, var(--color-bg-card) 55%);
  box-shadow: 0 0 0 1px var(--color-accent-mid), var(--shadow-md);
}

.testimonial-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.testimonial-outcome {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-accent-mid);
}

.testimonial-outcome .metric {
  font-family: var(--font-sans);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
}

.testimonial-outcome .metric-label {
  font-size: var(--text-sm);
  color: var(--color-text-dim);
  line-height: 1.3;
}

.testimonial-stars {
  font-size: 16px;
  color: #f59e0b;
  line-height: 1;
  margin: 0;
  letter-spacing: 2px;
}

.star-half {
  position: relative;
  display: inline-block;
  color: #d1d5db;
}

.star-half::before {
  content: attr(data-star);
  position: absolute;
  left: 0;
  top: 0;
  color: #f59e0b;
  clip-path: inset(0 50% 0 0);
}

.testimonial-quote {
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-dim);
  font-style: italic;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  flex: 1;
}

.testimonial-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  flex-wrap: wrap;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-company {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent);
  font-weight: 600;
}

.testimonial-project {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: right;
}

.testimonials-footer {
  text-align: center;
  margin-top: var(--space-10);
}

.clutch-link {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent-mid);
  padding-bottom: 2px;
  transition: all var(--transition-fast);
}

.clutch-link:hover {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent);
}

@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* Responsive overrides */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-sidebar { display: none; }
  .related-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-articles-grid { grid-template-columns: 1fr; }
}

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 2000;
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-md);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ── Case study anchors ───────────────────────────────────── */
.case-studies-grid article[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-6));
}

.case-studies-grid article:target {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-mid);
}

/* ── Founder ──────────────────────────────────────────────── */
.founder-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-16);
  align-items: start;
}

.founder-photo {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-6) var(--space-6) 0;
  overflow: hidden;
}

.founder-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.founder-content p {
  color: var(--color-text-dim);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.founder-content .stack-tags-row {
  margin-top: var(--space-6);
}

.founder-cta {
  margin-top: var(--space-8);
}

@media (max-width: 1024px) {
  .founder-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .founder-photo {
    max-width: 420px;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Blog: audience sections ─────────────────────────────── */
.blog-audience { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; max-width: 720px; }
.blog-audience-card { display: block; padding: 1.1rem 1.25rem; border: 1px solid var(--color-border); border-radius: 12px; background: #fff; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.blog-audience-card:hover, .blog-audience-card:focus-visible { border-color: var(--color-accent); box-shadow: 0 0 0 3px var(--color-accent-dim); }
.blog-audience-card strong { display: block; color: var(--color-text); font-size: 1.05rem; margin-bottom: 0.25rem; }
.blog-audience-card span { color: var(--color-text-muted); font-size: var(--text-sm); }
.blog-group { margin-top: 3rem; scroll-margin-top: 100px; }
.blog-group-header { margin-bottom: 1.5rem; }
.blog-group-header h2 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.blog-group-header p { color: var(--color-text-muted); }
.article-audience { font-weight: 600; color: var(--color-accent); }
@media (max-width: 640px) { .blog-audience { grid-template-columns: 1fr; } }
.blog-group-topic { color: var(--color-accent); }

/* Category pill inside a post header: same size and baseline as the rest of the line */
.article-meta .blog-card-category { margin-bottom: 0; padding: 1px 10px; font-size: 0.7rem; letter-spacing: 0.06em; line-height: 1.6; align-self: center; }

/* Quiet secondary link next to the hero's single button */
.hero-link { align-self: center; color: rgba(255,255,255,0.85); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.4); }
.hero-link:hover, .hero-link:focus-visible { color: #ffffff; text-decoration-color: #ffffff; }

/* ── Blog: sticky topic bar and topic sections ─────────────── */
html { scroll-behavior: smooth; }
.topic-bar { position: sticky; top: var(--header-h); z-index: 50; display: flex; gap: 0.6rem; overflow-x: auto; padding: 1rem 0;
  margin: 0 0 2rem; background: rgba(255,255,255,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border); scrollbar-width: none; }
.topic-bar::-webkit-scrollbar { display: none; }
.topic-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.05rem; border-radius: 14px;
  font-weight: 700; font-size: 0.95rem; color: var(--color-text); background: #ffffff; border: 1.5px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(17,24,39,0.06); text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.topic-chip svg { color: var(--color-accent); }
.topic-chip:hover, .topic-chip:focus-visible { border-color: var(--color-accent); box-shadow: 0 8px 20px var(--color-accent-mid); transform: translateY(-2px); }
.topic-chip.active { background: var(--color-accent); border-color: var(--color-accent); color: #ffffff; box-shadow: 0 8px 20px var(--color-accent-glow); }
.topic-chip.active svg { color: #ffffff; }
.topic-count { font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--color-accent-dim); color: var(--color-accent); }
.topic-chip.active .topic-count { background: rgba(255,255,255,0.22); color: #ffffff; }
.blog-section { padding-top: 1.5rem; }
.topic-section { scroll-margin-top: calc(var(--header-h) + 90px); margin-top: 2.5rem; }
.topic-section-header { margin-bottom: 1.25rem; padding-left: 0.9rem; border-left: 4px solid var(--color-accent); }
.topic-section-header h2 { display: flex; align-items: center; gap: 0.55rem; font-size: 1.35rem; color: var(--color-text); margin-bottom: 0.25rem; }
.topic-section-header h2 svg, .blog-group-header h2 svg { color: var(--color-accent); }
.blog-group-header h2 { display: flex; align-items: center; gap: 0.6rem; }
.topic-section-header p { color: var(--color-text-muted); }
.page-header .start-here { max-width: none; margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; font-size: var(--text-sm); }
.start-here span { color: var(--color-text-muted); font-weight: 600; }
.start-here a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--color-accent-mid); }
