/**
 * Stitch UI Components
 * Header, nav, mobile menu, footer, cards, sections, CTA
 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Skip to content for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px 20px;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 1000;
  transition: top var(--transition-base);
}
.skip-link:focus {
  top: 16px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 35%, #f8fafc 100%);
  color: var(--color-text);
  line-height: 1.6;
}

/* Dark theme: body gradient and header/footer so whole homepage is dark */
body.theme-dark {
  background: linear-gradient(180deg, #05070A 0%, #050A14 60%, #060816 100%);
  min-height: 100vh;
}
body.theme-dark .site-header {
  background: var(--color-surface);
  border-bottom-color: var(--color-border);
}
body.theme-dark .site-footer {
  background: var(--color-bg);
  border-top-color: var(--color-border);
  color: var(--color-text-muted);
}
body.theme-dark .nav-links a {
  color: var(--color-text-muted);
}
body.theme-dark .nav-links a:hover {
  color: var(--color-text);
}
body.theme-dark .footer-links a {
  color: var(--color-text-muted);
}
body.theme-dark .footer-links a:hover {
  color: var(--color-text);
}
body.theme-dark .nav-toggle {
  color: var(--color-text);
}
body.theme-dark .btn-primary,
body.theme-dark .btn-accent {
  border: 1px solid var(--color-border);
}
body.theme-dark .hero h1,
body.theme-dark .hero-badge {
  color: var(--color-text);
}
body.theme-dark .hero p {
  color: var(--color-text-muted);
}
body.theme-dark .cta-section.cta-section-bg h2 {
  color: var(--color-text);
}
body.theme-dark .cta-section.cta-section-bg p {
  color: var(--color-text-muted);
}

/* Dark section wrappers – content above AnimatedCircuitBackground (z-index 1) */
.dark-section {
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}
.dark-section .container {
  position: relative;
  z-index: 1;
}
.dark-section--hero { /* variant for hero with circuit background */ }
.dark-section--cta { /* variant for CTA with circuit background */ }

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}
a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header - light enterprise */
.site-header {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 100;
}

.site-nav {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  font-family: var(--font);
  font-weight: 700;
  font-size: var(--text-2xl);
  color: var(--color-text);
  text-decoration: none;
}
.site-logo img {
  display: block;
  height: 48px;
  width: auto;
  object-fit: contain;
}
.site-logo:hover {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  font-size: var(--text-sm);
}
.nav-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}
.nav-links a:hover {
  color: var(--color-text);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-sm);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-3xl) var(--space-xl);
    gap: var(--space-lg);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 99;
  }
  .nav-links.is-open {
    transform: translateX(0);
  }
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 98;
  }
  .nav-overlay.is-open {
    display: block;
  }
}

/* Footer - light enterprise */
.site-footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-md);
}
.footer-links a {
  color: var(--color-text-muted);
  transition: color var(--transition-base);
}
.footer-links a:hover {
  color: var(--color-text);
}

/* Hero - gradient + optional bg + circuit overlay */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 100px;
  text-align: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  background-image: linear-gradient(160deg, rgba(15, 23, 42, 0.97) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  overflow: hidden;
  color: #f8fafc;
}
.hero.hero-bg-image {
  background-image: linear-gradient(160deg, rgba(15, 23, 42, 0.92) 0%, transparent 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 58, 95, 0.88) 50%, rgba(15, 23, 42, 0.92) 100%),
    url(/stitch/hero-bg.png);
  background-size: cover, cover, cover;
  background-position: center;
}
.hero h1,
.hero p {
  color: #f8fafc;
}
.hero p {
  color: #cbd5e1;
}
/* Hero grid overlay – very subtle */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(90deg, rgba(34, 211, 238, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(34, 211, 238, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 20%, transparent 70%);
}
.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
  color: rgba(34, 211, 238, 0.9);
}

.hero h1 {
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero p {
  font-size: var(--text-xl);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.hero-btns {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-base);
  cursor: pointer;
  border: none;
  transition: filter var(--transition-base), border-color var(--transition-base), color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}
.btn:hover {
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 2px 12px rgba(19, 109, 236, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hero outline button - light on dark, subtle */
.hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fafc;
}
.hero .btn-outline:hover {
  border-color: rgba(34, 211, 238, 0.6);
  color: rgba(34, 211, 238, 0.95);
}

.btn-accent {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-accent:hover {
  filter: brightness(1.04);
}

/* Sections */
section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}
.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.section-header p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Section header – subtle accent line */
.section-header h2 {
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-neon));
  border-radius: 1px;
  opacity: 0.7;
}

/* Badge - shadcn-like pill */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: var(--color-surface-elevated);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

/* Separator */
.separator {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-lg) 0;
}

/* Trust bar section */
.trust-bar-section {
  padding: var(--space-2xl) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Trust bar - client logos */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
}

.trust-bar img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter var(--transition-base), opacity var(--transition-base);
}

.trust-bar img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 768px) {
  .trust-bar {
    gap: var(--space-lg);
  }
  .trust-bar img {
    height: 28px;
  }
}

/* Cards - shadcn-like */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(19, 109, 236, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover {
    transform: none;
  }
  .location:hover {
    transform: none;
  }
}

.card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(19, 109, 236, 0.08), rgba(34, 211, 238, 0.06));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-size: 24px;
  color: var(--color-primary);
}

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

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

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

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

/* Locations */
.locations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .locations {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.location {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-card-subtle);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.location:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(19, 109, 236, 0.1);
}

.location h4 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.location p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* Region cards - Global Delivery Footprint */
.region-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .region-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .region-cards {
    grid-template-columns: 1fr;
  }
}

.region-card__title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.region-card__countries {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.region-card__countries li {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
}

.region-card__countries li:last-child {
  border-bottom: none;
}

/* Minimal hover for region cards */
.theme-dark .card.card--region:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.25);
}

.card.card--region:hover {
  transform: none;
  box-shadow: 0 0 0 1px rgba(19, 109, 236, 0.2);
  border-color: rgba(19, 109, 236, 0.2);
}

/* CTA section - Stitch reference: plain dark */
.cta-section {
  position: relative;
  text-align: center;
  padding: 100px 0;
  background: var(--color-bg);
}
.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.cta-section p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-split {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section-bg {
  background-color: #0f172a;
  background-image: linear-gradient(180deg, rgba(30, 58, 95, 0.4) 0%, transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
  background-size: cover, cover;
  background-position: center;
}
.cta-section-bg.cta-section-bg-image {
  background-image: linear-gradient(180deg, rgba(30, 58, 95, 0.5) 0%, transparent 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94) 0%, rgba(30, 58, 95, 0.9) 100%),
    url(/stitch/cta-bg.png);
  background-size: cover, cover, cover;
}
.cta-section.cta-section-bg h2,
.cta-section.cta-section-bg p {
  color: #f8fafc;
}
.cta-section.cta-section-bg p {
  color: #cbd5e1;
}
.cta-section.cta-section-bg .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f8fafc;
}
.cta-section.cta-section-bg .btn-outline:hover {
  border-color: rgba(34, 211, 238, 0.6);
  color: rgba(34, 211, 238, 0.95);
}

/* Section accent - subtle gradient background */
.section-accent {
  background: linear-gradient(180deg, transparent 0%, rgba(19, 109, 236, 0.03) 50%, transparent 100%);
}

/* Forms */
.form-group {
  margin-bottom: var(--space-lg);
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font);
  font-size: var(--text-base);
  transition: border-color var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.form-checkbox input {
  width: auto;
  min-width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.form-checkbox label {
  margin-bottom: 0;
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
}

.form-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  background: var(--color-surface);
}

.form-section legend {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-text);
  padding: 0 var(--space-sm);
}

.checkbox-group,
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.checkbox-label,
.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
}

.checkbox-label input,
.radio-label input {
  width: auto;
  min-width: auto;
}

/* Capability list */
.capability-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md) var(--space-xl);
}

.capability-list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
}

.capability-list .material-symbols-outlined {
  flex-shrink: 0;
}

/* Industry tags */
.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.industry-tag,
.industry-tags .badge {
  padding: 6px 12px;
}

.industry-tag {
  background: var(--color-surface-elevated);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
.industry-tag:hover {
  border-color: rgba(19, 109, 236, 0.2);
  color: var(--color-text);
}

/* Platforms & Integrations section */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  justify-items: center;
}

.platforms-group {
  width: 100%;
  max-width: 480px;
}

.platforms-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.integration-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.integration-tags .badge {
  padding: 6px 12px;
}

/* ============================================
   ENHANCED CARD STYLES
   ============================================ */

/* Glass card variant */
.theme-dark .card.card--glass {
  background: rgba(12, 15, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-dark .card.card--glass:hover {
  background: rgba(12, 15, 20, 0.7);
  border-color: rgba(56, 189, 248, 0.2);
}

/* Card with spotlight */
.card.card--spotlight {
  position: relative;
  overflow: hidden;
}

/* Card with glow border on hover */
.card.card--glow {
  position: relative;
  z-index: 0;
}

.card.card--glow::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    #22d3ee,
    #6366f1,
    #a855f7,
    #22d3ee
  );
  border-radius: calc(var(--radius) + 2px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
}

.card.card--glow::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-surface);
  border-radius: var(--radius);
  z-index: -1;
}

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

@media (prefers-reduced-motion: no-preference) {
  .card.card--glow:hover::before {
    animation: borderGlowRotate 3s linear infinite;
  }
}

@keyframes borderGlowRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Card with inner glow */
.card.card--inner-glow {
  box-shadow: 
    var(--shadow-card),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

.card.card--inner-glow:hover {
  box-shadow: 
    var(--shadow-card-hover),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 0 30px rgba(56, 189, 248, 0.08);
}

/* Featured card */
.card.card--featured {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.05) 0%,
    var(--color-surface) 50%
  );
}

.card.card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7);
  border-radius: var(--radius) var(--radius) 0 0;
}

/* ============================================
   GRADIENT HEADLINE STYLES
   ============================================ */

.hero h1.gradient-headline {
  background: linear-gradient(135deg, #f8fafc 0%, #22d3ee 50%, #6366f1 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  .hero h1.gradient-headline {
    animation: gradientHeadline 6s ease infinite;
  }
}

@keyframes gradientHeadline {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Section header gradient */
.section-header h2.gradient-headline {
  background: linear-gradient(135deg, var(--color-text) 0%, #22d3ee 60%, #6366f1 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   SCROLL PROGRESS BAR
   ============================================ */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #22d3ee, #6366f1, #a855f7);
  transform-origin: left;
  transform: scaleX(var(--scroll-progress, 0));
  z-index: 9999;
  pointer-events: none;
}

/* ============================================
   STICKY HEADER WITH BLUR
   ============================================ */

.site-header.is-scrolled {
  background: rgba(12, 15, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   ENHANCED BUTTON STYLES
   ============================================ */

.btn.btn--glow {
  position: relative;
  overflow: hidden;
}

.btn.btn--glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  background-position: -100% -100%;
  transition: background-position 0.5s ease;
}

.btn.btn--glow:hover::before {
  background-position: 100% 100%;
}

/* Gradient border button */
.btn.btn--gradient-border {
  background: var(--color-surface);
  border: none;
  position: relative;
  z-index: 0;
}

.btn.btn--gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #22d3ee, #6366f1, #a855f7);
  border-radius: inherit;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

/* ============================================
   ENHANCED STAT STYLES
   ============================================ */

.stat-value {
  position: relative;
}

.stat-value.has-glow {
  text-shadow: 0 0 20px rgba(19, 109, 236, 0.3);
}

.stat.stat--highlight .stat-value {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================
   ENHANCED BADGE STYLES
   ============================================ */

.badge.badge--glow {
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.badge.badge--gradient {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.15));
  border-color: rgba(56, 189, 248, 0.3);
}

/* ============================================
   LINK HOVER EFFECTS
   ============================================ */

.link-underline {
  position: relative;
  text-decoration: none;
}

.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #22d3ee, #6366f1);
  transition: width 0.3s ease;
}

.link-underline:hover::after {
  width: 100%;
}

/* ============================================
   ICON CONTAINER STYLES
   ============================================ */

.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(99, 102, 241, 0.08));
  color: var(--color-primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.icon-container:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.icon-container--lg {
  width: 64px;
  height: 64px;
}

.icon-container--sm {
  width: 36px;
  height: 36px;
}

/* ============================================
   DIVIDER STYLES
   ============================================ */

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

.divider--gradient {
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.divider--glow {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.3), rgba(99, 102, 241, 0.3), transparent);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

/* ============================================
   QUOTE / TESTIMONIAL STYLES
   ============================================ */

.quote {
  position: relative;
  padding-left: var(--space-xl);
  border-left: 3px solid;
  border-image: linear-gradient(180deg, #22d3ee, #6366f1) 1;
}

.quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-md);
  font-size: 4rem;
  color: rgba(56, 189, 248, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* ============================================
   TOOLTIP STYLES
   ============================================ */

[data-tooltip] {
  position: relative;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-xs);
  color: var(--color-text);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

[data-tooltip]:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}

/* ============================================
   CAPABILITIES ICON ROW
   ============================================ */

.capabilities-section .container {
  position: relative;
  z-index: 1;
}

.capabilities-icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-xl);
  align-items: center;
  background: rgba(12, 15, 20, 0.5);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: var(--space-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.capability-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  padding: var(--space-sm);
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
  cursor: default;
  border-radius: var(--radius);
}

.capability-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.5;
  stroke: currentColor;
  fill: none;
}

.capability-icon__label {
  font-size: var(--text-xs);
  color: inherit;
}

.capability-icon:hover {
  color: var(--accent, var(--color-accent-neon));
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.35));
}

.capability-icon:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--accent, var(--color-accent-neon));
  border-radius: var(--radius);
}

/* ============================================
   STICKY CTA – Book Architecture Call
   ============================================ */

.sticky-cta {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 900;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  background: rgba(12, 15, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  contain: layout paint;
}

.sticky-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}

.sticky-cta:focus {
  outline: none;
}

.sticky-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 4px var(--accent, var(--color-accent-neon));
}

@media (max-width: 768px) {
  .sticky-cta {
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0;
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .card.card--glow::before,
  .hero h1.gradient-headline,
  .btn.btn--glow::before {
    animation: none;
  }
  
  .link-underline::after,
  .icon-container,
  [data-tooltip]::after {
    transition: none;
  }

  .capability-icon:hover {
    transform: none;
  }

  .sticky-cta:hover {
    transform: none;
  }
}

