/* ==========================================================================
   Condor Technology Associates — Static Site Styles
   Design system ported from the original React/Tailwind app.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  --background: 0 0% 100%;
  --foreground: 228 12% 10%;
  --card: 0 0% 100%;
  --card-foreground: 228 12% 10%;
  --primary: 210 100% 56%;
  --primary-foreground: 0 0% 100%;
  --secondary: 220 14% 96%;
  --secondary-foreground: 228 12% 20%;
  --muted: 220 14% 96%;
  --muted-foreground: 215 16% 47%;
  --accent: 172 66% 50%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72% 51%;
  --border: 220 13% 91%;
  --radius: 0.75rem;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }
.container-narrow { max-width: 56rem; margin: 0 auto; padding: 0 1rem; }
.container-tight  { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container-narrow, .container-tight { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container-narrow, .container-tight { padding: 0 2rem; } }

main { padding-top: 0; }
section { position: relative; }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  display: block;
}
.eyebrow-muted { color: hsl(var(--muted-foreground) / 0.6); }

.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, hsl(210 100% 62%), hsl(172 66% 50%));
}

.heading-display {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.heading-1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.heading-2 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.heading-3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}
.lead {
  font-size: 1.125rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}
@media (min-width: 640px) { .lead { font-size: 1.25rem; } }
.muted { color: hsl(var(--muted-foreground)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0 1.25rem;
  height: 2.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-lg { height: 3rem; padding: 0 2rem; font-size: 0.875rem; }
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: 0.8125rem; border-radius: 0.5rem; }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 0 30px -5px hsl(210 100% 56% / 0.15);
}
.btn-primary:hover { background: hsl(210 100% 50%); }

.btn-outline {
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  background: transparent;
}
.btn-outline:hover { background: hsl(var(--secondary)); }

.btn-arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(2px); }

/* ---------- Glass card ---------- */
.glass-card {
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  position: relative;
  transition: all 0.4s ease;
}
.glass-card.hover:hover {
  border-color: hsl(210 100% 56% / 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px -4px hsl(210 100% 56% / 0.1), 0 2px 8px -2px hsl(0 0% 0% / 0.06);
}
.glass-card.glow {
  box-shadow: 0 0 30px -5px hsl(210 100% 56% / 0.15);
}
.card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  transition: all 0.4s ease;
}
.card-hover:hover {
  border-color: hsl(210 100% 56% / 0.25);
  box-shadow: 0 4px 20px -4px hsl(210 100% 56% / 0.1), 0 2px 8px -2px hsl(0 0% 0% / 0.06);
  transform: translateY(-2px);
}

/* ---------- Icon tile ---------- */
.icon-tile {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: hsl(var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--primary));
  flex-shrink: 0;
}
.icon-tile svg { width: 1.25rem; height: 1.25rem; }

/* ---------- Tags / pills ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}
.tag-mono {
  display: inline-flex;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
}
.tag-featured {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: hsl(210 100% 56% / 0.1);
  color: hsl(var(--primary));
  border: 1px solid hsl(210 100% 56% / 0.2);
}
.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: hsl(var(--accent));
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ---------- Section spacing ---------- */
.section { padding: 8rem 0; }
.section-sm { padding: 5rem 0; }
.section-md { padding: 6rem 0; }
.section-divider { border-top: 1px solid hsl(var(--border) / 0.3); }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: hsl(0 0% 100% / 0.9);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
@media (min-width: 1024px) { .navbar-inner { height: 5rem; } }
.navbar-logo img { height: 2rem; width: auto; opacity: 0.9; transition: opacity 0.2s; }
.navbar-logo:hover img { opacity: 1; }

.nav-links { display: none; align-items: center; gap: 0.25rem; }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  transition: color 0.2s;
}
.nav-link:hover { color: hsl(var(--foreground)); }
.nav-link.active { color: hsl(var(--foreground)); background: hsl(var(--secondary)); }

.navbar-cta { display: none; }
@media (min-width: 768px) { .navbar-cta { display: flex; align-items: center; gap: 0.75rem; } }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--foreground) / 0.7);
  width: 2.5rem;
  height: 2.5rem;
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  background: hsl(0 0% 100% / 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding: 1.25rem 1rem;
}
.mobile-menu.open { display: block; animation: fade-in-up 0.2s ease-out; }
.mobile-menu .nav-link { display: block; padding: 0.625rem 1rem; font-size: 0.875rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 10rem;
}
.hero-page {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
}
.hero-content { max-width: 56rem; position: relative; z-index: 10; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 2rem;
  animation: fade-in-up 0.6s ease-out;
}
.hero h1 { margin-bottom: 2rem; animation: fade-in-up 0.6s ease-out 0.1s both; }
.hero .lead { max-width: 36rem; margin-bottom: 3rem; animation: fade-in-up 0.6s ease-out 0.2s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; animation: fade-in-up 0.6s ease-out 0.3s both; }

.hero-stats {
  margin-top: 5rem;
  display: flex;
  flex-wrap: wrap;
  column-gap: 3rem;
  row-gap: 1rem;
  animation: fade-in-up 0.6s ease-out 0.4s both;
}
.hero-stats .value { font-size: 1.5rem; font-weight: 700; color: hsl(var(--foreground)); }
.hero-stats .label { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin-left: 0.5rem; }

.hero-bottom-fade {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 8rem;
  background: linear-gradient(to top, hsl(var(--background)), transparent);
  pointer-events: none;
}

/* ---------- Particle background (CSS-only, animated blobs) ---------- */
.particle-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.particle-bg::before,
.particle-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.particle-bg::before {
  width: 32rem; height: 32rem;
  background: radial-gradient(circle, hsl(210 100% 62% / 0.4), transparent 70%);
  top: -10%; left: -10%;
  animation: aurora 18s ease-in-out infinite;
}
.particle-bg::after {
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, hsl(172 66% 50% / 0.3), transparent 70%);
  bottom: -10%; right: -5%;
  animation: aurora 22s ease-in-out infinite reverse;
}

/* Tiny dot grid overlay */
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--foreground) / 0.06) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* ---------- Trusted-by marquee ---------- */
.trusted-by {
  padding: 5rem 0;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
.trusted-track-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  padding: 2rem 0;
}
.trusted-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: marquee 30s linear infinite;
}
@media (min-width: 768px) { .trusted-track { gap: 6rem; } }
.trusted-track img {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
  filter: grayscale(1) contrast(1.1);
  transition: all 0.3s;
  flex-shrink: 0;
}
.trusted-track img:hover {
  opacity: 1;
  filter: grayscale(0) contrast(1);
  transform: scale(1.1);
}
.trusted-fade-l, .trusted-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 6rem;
  pointer-events: none;
  z-index: 10;
}
.trusted-fade-l { left: 0; background: linear-gradient(to right, hsl(0 0% 100% / 0.9), transparent); }
.trusted-fade-r { right: 0; background: linear-gradient(to left, hsl(0 0% 100% / 0.9), transparent); }

/* ---------- Grids ---------- */
.grid-cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .grid-cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards-3 { grid-template-columns: repeat(3, 1fr); } }

.grid-cards-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .grid-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards-4 { grid-template-columns: repeat(4, 1fr); } }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

/* Service tag chip with pulse */
.service-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

/* Card heading */
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: hsl(var(--foreground));
}
.card-text {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  flex: 1;
}

/* ---------- Metrics counters ---------- */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 1024px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; } }
.metric {
  text-align: center;
  padding: 1.5rem;
}
@media (min-width: 1024px) {
  .metric { text-align: left; border-left: 1px solid hsl(var(--border) / 0.3); }
  .metric:first-child { border-left: 0; }
}
.metric .value {
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
  line-height: 1;
}
@media (min-width: 640px) { .metric .value { font-size: 3rem; } }
.metric .label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground) / 0.8);
  margin-bottom: 0.25rem;
}
.metric .detail { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
}
@media (min-width: 640px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit .icon-tile { margin-bottom: 1rem; transition: background 0.2s; }
.benefit:hover .icon-tile { background: hsl(210 100% 56% / 0.15); }
.benefit:hover .icon-tile svg { color: hsl(var(--primary)); }
.benefit .icon-tile svg { color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.benefit h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.benefit p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ---------- Testimonials marquee ---------- */
.testimonials-row {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.testimonial-card {
  width: 22rem;
  flex-shrink: 0;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.testimonial-card .quote {
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.85);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  background: hsl(var(--secondary));
  color: hsl(var(--primary));
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.testimonial-author .name { font-size: 0.875rem; font-weight: 500; }
.testimonial-author .role { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }

.testimonials-fade-l, .testimonials-fade-r {
  position: absolute;
  top: 0; bottom: 0;
  width: 6rem;
  pointer-events: none;
}
.testimonials-fade-l { left: 0; background: linear-gradient(to right, hsl(var(--background)), transparent); }
.testimonials-fade-r { right: 0; background: linear-gradient(to left, hsl(var(--background)), transparent); }

/* ---------- CTA section ---------- */
.cta-section {
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse at 50% 100%, hsl(210 100% 56% / 0.1), transparent 60%);
}
.cta-section .inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
}
.cta-section h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.cta-section .lead { max-width: 32rem; margin: 0 auto 3rem; }
.cta-section .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid hsl(var(--border) / 0.5);
  padding: 5rem 0 0;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); } }
.footer-brand { grid-column: span 4; max-width: 18rem; }
.footer-brand img { height: 2rem; width: auto; opacity: 0.8; margin-bottom: 1.25rem; }
.footer-brand p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-socials { display: flex; gap: 0.5rem; }
.footer-socials a {
  width: 2.25rem; height: 2.25rem;
  border-radius: 0.5rem;
  background: hsl(var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}
.footer-socials a:hover { background: hsl(210 100% 56% / 0.15); color: hsl(var(--primary)); }
.footer-socials svg { width: 1rem; height: 1rem; }
.footer-col { grid-column: span 2; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { font-size: 0.875rem; color: hsl(var(--muted-foreground)); transition: color 0.2s; }
.footer-col a:hover { color: hsl(var(--foreground)); }
.footer-bottom {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid hsl(var(--border) / 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground) / 0.7);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .links { display: flex; gap: 1.5rem; }
.footer-bottom a { color: inherit; transition: color 0.2s; }
.footer-bottom a:hover { color: hsl(var(--muted-foreground)); }

/* ---------- Service detail (alternating sections) ---------- */
.service-row {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .service-row { flex-direction: row; gap: 4rem; }
  .service-row.reverse { flex-direction: row-reverse; }
}
.service-row > div { flex: 1; min-width: 0; }
.service-image-frame {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid hsl(var(--border) / 0.5);
  box-shadow: 0 0 30px -5px hsl(210 100% 56% / 0.15);
}
.service-image-frame img { width: 100%; height: auto; }

.feature-list { margin-bottom: 2rem; }
.feature-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground) / 0.85);
  margin-bottom: 0.75rem;
}
.feature-list svg { width: 1rem; height: 1rem; color: hsl(var(--primary)); flex-shrink: 0; }

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- Filter bar ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  transition: all 0.2s;
}
.filter-btn:hover { color: hsl(var(--foreground)); }
.filter-btn.active { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }

/* ---------- Case-study card ---------- */
.cs-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all 0.4s ease;
}
.cs-card:hover {
  border-color: hsl(210 100% 56% / 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px -4px hsl(210 100% 56% / 0.1);
}
.cs-card-header {
  height: 7rem;
  background: hsl(var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-bottom: 1px solid hsl(var(--border) / 0.5);
}
.cs-card-header .metric-value { font-size: 1.5rem; font-weight: 800; color: hsl(var(--primary)); }
.cs-card-header .metric-label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); }
.cs-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.cs-card-body h3 { font-size: 0.875rem; font-weight: 600; margin-bottom: 0.25rem; }
.cs-card-body .title { font-size: 0.75rem; color: hsl(var(--muted-foreground) / 0.85); margin-bottom: 0.5rem; }
.cs-card-body .result { font-size: 0.75rem; color: hsl(var(--muted-foreground)); line-height: 1.7; flex: 1; }
.cs-card-link {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: hsl(var(--primary));
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s;
}
.cs-card-link:hover { gap: 0.625rem; }

/* ---------- Featured card ---------- */
.featured-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) { .featured-card { flex-direction: row; padding: 3rem; } }
.featured-card .body { flex: 1; }
.featured-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
@media (min-width: 640px) { .featured-card h2 { font-size: 1.75rem; } }
.featured-card .sub { font-size: 1rem; font-weight: 500; color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.featured-card .desc { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; margin-bottom: 1.5rem; }
.featured-card .meta-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.featured-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 9rem;
  border-radius: 0.75rem;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
}
@media (min-width: 768px) { .featured-metric { width: 12rem; } }
.featured-metric .value { font-size: 1.875rem; font-weight: 800; color: hsl(var(--primary)); }
.featured-metric .label { font-size: 0.75rem; color: hsl(var(--muted-foreground)); margin-top: 0.25rem; }

/* ---------- Process steps ---------- */
.process-card {
  background: hsl(0 0% 100% / 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  height: 100%;
}
.process-card .step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.875rem;
  font-weight: 700;
  color: hsl(210 100% 56% / 0.2);
}
.process-card h3 { font-size: 1rem; font-weight: 600; margin: 0.75rem 0 0.5rem; }
.process-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ---------- Timeline ---------- */
.timeline { position: relative; }
.timeline-row { display: flex; gap: 1.5rem; align-items: flex-start; }
.timeline-year { flex-shrink: 0; width: 4rem; text-align: right; }
.timeline-year span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
}
.timeline-row.ai-era .timeline-year span { color: hsl(var(--accent)); }
.timeline-mid {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.timeline-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: hsl(var(--secondary));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: hsl(var(--primary));
}
.timeline-icon svg { width: 1rem; height: 1rem; }
.timeline-row.ai-era .timeline-icon {
  background: hsl(172 66% 50% / 0.1);
  outline: 1px solid hsl(172 66% 50% / 0.2);
  color: hsl(var(--accent));
}
.timeline-line {
  width: 1px;
  flex: 1;
  background: hsl(var(--border));
  margin-top: 0.5rem;
  min-height: 1.5rem;
}
.timeline-row.ai-era .timeline-line { background: hsl(172 66% 50% / 0.2); }
.timeline-body { padding-bottom: 1.5rem; }
.timeline-body .ai-tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--accent));
  background: hsl(172 66% 50% / 0.1);
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.375rem;
}
.timeline-body p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); line-height: 1.7; }

/* ---------- Forms ---------- */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, 1fr); } }
.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 0 0.875rem;
  height: 2.75rem;
  font-size: 0.875rem;
  color: hsl(var(--foreground));
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-textarea { padding: 0.75rem 0.875rem; height: auto; resize: vertical; min-height: 8rem; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(210 100% 56% / 0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: hsl(var(--muted-foreground) / 0.6); }
form { display: flex; flex-direction: column; gap: 1.25rem; }

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  margin-bottom: 1rem;
}
.contact-card .label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.25rem;
}
.contact-card .value { font-size: 0.875rem; color: hsl(var(--foreground)); }

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  text-align: left;
  background: none;
}
.accordion-trigger svg { transition: transform 0.2s; flex-shrink: 0; }
.accordion-item[open] .accordion-trigger svg { transform: rotate(180deg); }
.accordion-content {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
  padding-bottom: 1.25rem;
}
details { list-style: none; }
details summary { list-style: none; cursor: pointer; }
details summary::-webkit-details-marker { display: none; }

/* ---------- Quote / blockquote ---------- */
blockquote {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.025em;
}
@media (min-width: 640px) { blockquote { font-size: 1.875rem; } }
@media (min-width: 1024px) { blockquote { font-size: 2.25rem; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Animations ---------- */
@keyframes fade-in-up {
  0% { opacity: 0; transform: translateY(24px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes aurora {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  33%       { transform: translate(30px, -20px) scale(1.1); opacity: 0.5; }
  66%       { transform: translate(-20px, 20px) scale(0.95); opacity: 0.35; }
}

/* ---------- Misc helpers ---------- */
.relative { position: relative; }
.text-center { text-align: center; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap-3 { display: flex; align-items: center; gap: 0.75rem; }
.no-scroll { overflow: hidden; }
