/* ==========================================================================
   ANURVIK — DESIGN TOKENS
   Every brand color lives here as a CSS custom property. To re-theme the
   site, change the values below in :root (light) and [data-theme="dark"]
   (dark) — every button, gradient, card, and highlight updates everywhere.
   ========================================================================== */
:root {
  --background: #f6f7fb;
  --foreground: #0a0a0b;

  --card: #ffffff;
  --card-foreground: #0a0a0b;
  --card-border: rgba(10, 10, 11, 0.08);
  --card-hover-border: rgba(10, 10, 11, 0.16);

  --muted: #f1f1f3;
  --muted-foreground: #62636c;

  /* Brand: deep blue, purple, cyan — inspired by the Anurvik mark */
  --primary: #0b4fe0;
  --primary-foreground: #ffffff;
  --secondary: #7c3aed;
  --secondary-foreground: #ffffff;
  --accent: #06b6d4;
  --accent-foreground: #04262b;

  /* Logo accent orange — used sparingly for highlights/badges */
  --highlight: #f26522;
  --highlight-foreground: #2b0d00;

  --success: #16a34a;
  --border: rgba(10, 10, 11, 0.1);
  --input-border: rgba(10, 10, 11, 0.16);
  --ring: #0b4fe0;

  --radius-sm: 0.75rem;
  --radius: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 55%, var(--accent) 100%);
  --gradient-brand-soft: linear-gradient(135deg, rgba(11, 79, 224, 0.12), rgba(124, 58, 237, 0.12));
  --shadow-glow: 0 20px 60px -20px rgba(11, 79, 224, 0.45);
  --shadow-card: 0 1px 2px rgba(10, 10, 11, 0.04), 0 12px 32px -16px rgba(10, 10, 11, 0.12);

  /* Accent palette — cycled across icon tiles, tags, and highlights for a
     colorful, modern feel. Tweak these to re-color the whole site at once. */
  --c-1: #4f46e5;  /* indigo  */
  --c-2: #0ea5e9;  /* sky     */
  --c-3: #06b6d4;  /* cyan    */
  --c-4: #ec4899;  /* pink    */
  --c-5: #f97316;  /* orange  */
  --c-6: #10b981;  /* emerald */
  --g-1: linear-gradient(135deg, #6366f1, #8b5cf6);
  --g-2: linear-gradient(135deg, #0ea5e9, #06b6d4);
  --g-3: linear-gradient(135deg, #ec4899, #f43f5e);
  --g-4: linear-gradient(135deg, #f97316, #f59e0b);
  --g-5: linear-gradient(135deg, #10b981, #14b8a6);
  --g-6: linear-gradient(135deg, #8b5cf6, #6366f1);

  /* Soft, colorful page glow behind everything (see body::before). */
  --aurora:
    radial-gradient(46% 44% at 6% 4%, rgba(99, 102, 241, 0.18), transparent 62%),
    radial-gradient(42% 40% at 94% 8%, rgba(6, 182, 212, 0.15), transparent 60%),
    radial-gradient(45% 42% at 88% 90%, rgba(236, 72, 153, 0.13), transparent 62%),
    radial-gradient(40% 40% at 10% 94%, rgba(16, 185, 129, 0.13), transparent 60%);

  --font-sans: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --nav-h: 76px;

  color-scheme: light;
}

[data-theme="dark"] {
  --background: #09090b;
  --foreground: #fafafa;

  --card: rgba(255, 255, 255, 0.045);
  --card-foreground: #fafafa;
  --card-border: rgba(255, 255, 255, 0.09);
  --card-hover-border: rgba(255, 255, 255, 0.18);

  --muted: #131316;
  --muted-foreground: #9a9aa3;

  --primary: #3b82f6;
  --primary-foreground: #04101f;
  --secondary: #a78bfa;
  --secondary-foreground: #140a29;
  --accent: #22d3ee;
  --accent-foreground: #042024;

  --highlight: #fb8a4c;
  --highlight-foreground: #2b0d00;

  --success: #22c55e;
  --border: rgba(255, 255, 255, 0.1);
  --input-border: rgba(255, 255, 255, 0.16);
  --ring: #3b82f6;

  --gradient-brand-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(167, 139, 250, 0.16));
  --shadow-glow: 0 20px 60px -20px rgba(59, 130, 246, 0.55);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.5);

  --aurora:
    radial-gradient(48% 46% at 6% 4%, rgba(99, 102, 241, 0.26), transparent 62%),
    radial-gradient(44% 42% at 94% 8%, rgba(34, 211, 238, 0.20), transparent 60%),
    radial-gradient(46% 44% at 88% 90%, rgba(236, 72, 153, 0.20), transparent 62%),
    radial-gradient(42% 42% at 10% 94%, rgba(16, 185, 129, 0.18), transparent 60%);

  color-scheme: dark;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--background); }
body {
  margin: 0;
  background: transparent;
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
::selection { background: rgba(11, 79, 224, 0.3); color: var(--foreground); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 120px 0; }
@media (max-width: 768px) { section { padding: 80px 0; } }

.section-head { max-width: 680px; margin: 0 auto 64px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--gradient-brand-soft);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gradient-brand);
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.section-head p { color: var(--muted-foreground); font-size: 1.05rem; }

.gradient-text {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 8s ease infinite;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gradient-brand);
  background-size: 160% 160%;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 24px 48px -16px rgba(11,79,224,0.5); }
.btn-secondary {
  background: var(--card);
  border-color: var(--card-border);
  color: var(--foreground);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { border-color: var(--card-hover-border); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ==========================================================================
   GLASS CARD
   ========================================================================== */
.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.glass-hover { transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease; }
.glass-hover:hover {
  transform: translateY(-6px);
  border-color: var(--card-hover-border);
  box-shadow: var(--shadow-glow);
}

.bg-grid {
  background-image:
    linear-gradient(to right, rgba(127,127,127,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127,127,127,0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow .35s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: color-mix(in srgb, var(--background) 78%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -20px rgba(0,0,0,0.25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; }
.brand img { height: 34px; width: 34px; }
.brand img.brand-full-logo { height: 44px; width: auto; }
@media (max-width: 900px) { .brand img.brand-full-logo { height: 38px; } }
.brand img.brand-logo-dark { display: none; }
[data-theme="dark"] .brand img.brand-logo-light { display: none; }
[data-theme="dark"] .brand img.brand-logo-dark { display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--muted-foreground);
  position: relative; padding: 6px 0; transition: color 0.2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gradient-brand); transition: width 0.25s ease; border-radius: 2px;
}
.nav-links a:hover { color: var(--foreground); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--card-border); background: var(--card);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.theme-toggle:hover { border-color: var(--card-hover-border); transform: rotate(12deg); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--card-border); background: var(--card);
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--foreground); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--background); z-index: 999;
  transform: translateX(100%); transition: transform 0.35s ease;
  padding: 32px 24px; overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { display: block; font-size: 1.2rem; font-weight: 600; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 24px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
#hero {
  padding-top: calc(var(--nav-h) + 96px);
  padding-bottom: 80px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } }

.hero-copy h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); margin-bottom: 24px; }
.hero-copy p.lead { font-size: 1.15rem; color: var(--muted-foreground); max-width: 560px; margin-bottom: 36px; }
@media (max-width: 980px) { .hero-copy p.lead { margin-left: auto; margin-right: auto; } }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
@media (max-width: 980px) { .hero-ctas { justify-content: center; } }
.hero-trust { font-size: 0.85rem; color: var(--muted-foreground); max-width: 460px; }
@media (max-width: 980px) { .hero-trust { margin: 0 auto; } }

.hero-visual { position: relative; min-height: 420px; }
.hero-visual-core {
  position: absolute; inset: 6% 8%;
  border-radius: var(--radius-xl);
  background: var(--gradient-brand);
  opacity: 0.9;
  box-shadow: var(--shadow-glow);
  animation: float-slow 9s ease-in-out infinite;
}
.hero-visual-core::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%);
}
.hero-mock-window {
  position: absolute; inset: 6% 8%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.4);
}
.hero-mock-bar { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.hero-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--muted-foreground); opacity: .4; }
.hero-mock-body { padding: 22px; display: grid; gap: 12px; }
.hero-mock-line { height: 12px; border-radius: 6px; background: var(--muted); }
.hero-mock-line.w60 { width: 60%; }
.hero-mock-line.w80 { width: 80%; }
.hero-mock-chart { height: 110px; border-radius: 12px; background: var(--gradient-brand-soft); margin-top: 6px; position: relative; overflow: hidden; }
.hero-mock-chart::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,0.35) 45%, transparent 60%);
  animation: shimmer 2.6s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  padding: 14px 18px;
  border-radius: var(--radius);
  min-width: 168px;
  animation: float 6s ease-in-out infinite;
  z-index: 3;
}
.floating-card .fc-label { font-size: 0.72rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.floating-card .fc-value { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); }
.floating-card .fc-icon {
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 8px;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: #fff;
}
.floating-card .fc-icon svg { width: 18px; height: 18px; }
.fc-1 { top: -6%; right: -4%; animation-delay: 0s; }
.fc-2 { bottom: 6%; left: -8%; animation-delay: 1.4s; }
.fc-3 { bottom: -6%; right: 10%; animation-delay: 2.8s; }
@media (max-width: 980px) {
  .hero-visual { min-height: 340px; margin-top: 24px; }
  .fc-1, .fc-2, .fc-3 { position: absolute; }
  .fc-1 { top: -4%; right: 2%; }
  .fc-2 { bottom: 10%; left: 0; }
  .fc-3 { display: none; }
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.about-copy p { color: var(--muted-foreground); }
.about-stat {
  display: inline-flex; align-items: baseline; gap: 10px; margin: 24px 0 32px;
  padding: 18px 24px; border-radius: var(--radius); background: var(--gradient-brand-soft);
}
.about-stat .num { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; }
.mvv-grid { display: grid; gap: 16px; margin-top: 8px; }
.mvv-card { padding: 22px; }
.mvv-card h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 8px; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.value-card { padding: 22px; }
.value-card h4 { font-size: 1.02rem; margin-bottom: 6px; }
.value-card p { font-size: 0.9rem; color: var(--muted-foreground); margin: 0; }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }
.service-card { padding: 32px; display: flex; flex-direction: column; }
.service-icon {
  width: 52px; height: 52px; border-radius: 16px; margin-bottom: 20px;
  background: var(--gradient-brand-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--muted-foreground); font-size: 0.94rem; flex: 1; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-size: 0.76rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: var(--muted); color: var(--muted-foreground);
}

/* ==========================================================================
   PROJECT ESTIMATOR
   ========================================================================== */
.estimator {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
@media (max-width: 900px) { .estimator { grid-template-columns: 1fr; } }
.estimator-form { padding: 36px; }
@media (max-width: 560px) { .estimator-form { padding: 24px; } }
.est-group { margin-bottom: 24px; }
.est-group:last-child { margin-bottom: 0; }
.est-label {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 12px;
}
.est-options { display: flex; flex-wrap: wrap; gap: 10px; }
.est-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 480px) { .est-inline { grid-template-columns: 1fr; } }
.est-option {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--card-border); background: var(--card);
  color: var(--foreground); font-size: 0.9rem; font-weight: 600;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, color 0.2s ease;
}
.est-option:hover { border-color: var(--card-hover-border); transform: translateY(-1px); }
.est-opt-icon { display: inline-flex; }
.est-opt-icon svg { width: 17px; height: 17px; }
.est-option.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-foreground);
}
.est-option.selected .est-opt-icon svg { color: var(--primary-foreground); }

.estimator-result {
  padding: 36px;
  background: var(--gradient-brand-soft);
  border-left: 1px solid var(--card-border);
  display: flex; align-items: stretch;
}
@media (max-width: 900px) { .estimator-result { border-left: none; border-top: 1px solid var(--card-border); } }
.est-result-inner { width: 100%; display: flex; flex-direction: column; }
.est-result-row { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.est-result-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--card); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.est-result-icon svg { width: 20px; height: 20px; }
.est-result-label { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted-foreground); }
.est-result-value { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.est-cta { margin-top: 6px; }
.est-cta svg { width: 16px; height: 16px; }
.est-disclaimer { font-size: 0.76rem; color: var(--muted-foreground); margin: 14px 0 0; line-height: 1.5; }

/* ==========================================================================
   STATS
   ========================================================================== */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 64px; }
@media (max-width: 780px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { padding: 32px 20px; text-align: center; }
.stat-card .stat-num { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; }
.stat-card .stat-num span.gradient-text { display: inline; }
.stat-card .stat-label { color: var(--muted-foreground); font-size: 0.9rem; margin-top: 6px; }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
@media (max-width: 980px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { padding: 26px; text-align: left; }
.feature-card .service-icon { width: 44px; height: 44px; margin-bottom: 14px; }
.feature-card h4 { font-size: 1rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.87rem; color: var(--muted-foreground); margin: 0; }

/* ==========================================================================
   TECH STACK
   ========================================================================== */
.stack-groups { display: grid; gap: 32px; }
.stack-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); margin-bottom: 16px; }
.stack-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 10px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.stack-chip:hover { transform: translateY(-3px) scale(1.03); border-color: var(--card-hover-border); box-shadow: var(--shadow-glow); }
.stack-chip-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
}
.stack-chip-icon img { width: 20px; height: 20px; object-fit: contain; }
.stack-chip-icon svg.stack-chip-fallback-icon { width: 18px; height: 18px; color: var(--primary); }
.stack-chip-label { white-space: nowrap; }

/* ==========================================================================
   PROCESS TIMELINE
   ========================================================================== */
.timeline { position: relative; max-width: 760px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 27px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(var(--primary), var(--secondary), var(--accent));
  opacity: 0.35;
}
@media (max-width: 640px) { .timeline::before { left: 21px; } }
.timeline-item { position: relative; padding-left: 76px; margin-bottom: 36px; }
@media (max-width: 640px) { .timeline-item { padding-left: 60px; } }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-num {
  position: absolute; left: 0; top: 0;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
  box-shadow: var(--shadow-glow);
}
@media (max-width: 640px) { .timeline-num { width: 44px; height: 44px; font-size: 0.95rem; } }
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline-item p { color: var(--muted-foreground); margin: 0; font-size: 0.94rem; }

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 840px) { .projects-grid { grid-template-columns: 1fr; } }
.project-card { overflow: hidden; display: flex; flex-direction: column; }
.project-media {
  height: 180px; position: relative; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.project-media svg { width: 56px; height: 56px; opacity: 0.9; }
.grad-1 { background: linear-gradient(135deg,#2563eb,#22d3ee); }
.grad-2 { background: linear-gradient(135deg,#4f46e5,#3b82f6); }
.grad-3 { background: linear-gradient(135deg,#059669,#14b8a6); }
.grad-4 { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.grad-5 { background: linear-gradient(135deg,#ea580c,#f59e0b); }
.grad-6 { background: linear-gradient(135deg,#0284c7,#3b82f6); }
.grad-7 { background: linear-gradient(135deg,#e11d48,#ec4899); }
.project-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-category { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); }
.project-body h3 { font-size: 1.2rem; margin: 0; }
.project-body p { color: var(--muted-foreground); font-size: 0.92rem; margin: 0; flex: 1; }
.project-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.project-link { font-size: 0.88rem; font-weight: 700; color: var(--primary); display: inline-flex; align-items: center; gap: 6px; }
.project-link svg { width: 15px; height: 15px; transition: transform 0.2s ease; }
.project-link:hover svg { transform: translate(2px,-2px); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 780px) { .testimonials-grid { grid-template-columns: 1fr; } }
.testimonial-card { padding: 30px; }
.stars { display: flex; gap: 3px; margin-bottom: 14px; color: var(--highlight); }
.stars svg { width: 16px; height: 16px; }
.testimonial-card blockquote { margin: 0 0 20px; font-size: 1.02rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-heading);
}
.testimonial-author .name { font-weight: 700; font-size: 0.92rem; }
.testimonial-author .company { font-size: 0.82rem; color: var(--muted-foreground); }

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.industries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.industry-chip {
  padding: 22px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.industry-chip svg { width: 26px; height: 26px; color: var(--primary); }
.industry-chip span { font-size: 0.88rem; font-weight: 600; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { overflow: hidden; }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; background: transparent; border: none; text-align: left;
  font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--foreground);
}
.faq-question .chev { width: 20px; height: 20px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--primary); }
.faq-item.open .faq-question .chev { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer-inner { padding: 0 26px 24px; color: var(--muted-foreground); font-size: 0.95rem; }

/* ==========================================================================
   CTA BAND / CONTACT CTA (homepage)
   ========================================================================== */
.cta-band {
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  background: var(--gradient-brand);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { opacity: 0.92; max-width: 560px; margin: 0 auto 30px; }
.cta-band .btn-secondary { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,0.24); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 640px) { .cta-band { padding: 48px 24px; } }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: start; }
@media (max-width: 940px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form-card { padding: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.field .required { color: var(--highlight); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--input-border); background: var(--background); color: var(--foreground);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11,79,224,0.14);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-error { color: #ef4444; font-size: 0.78rem; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ef4444; }
.field.invalid .field-error { display: block; }

.form-status { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(22,163,74,0.12); color: var(--success); }
.form-status.error { background: rgba(239,68,68,0.12); color: #ef4444; }

.contact-channels { display: grid; gap: 14px; margin-bottom: 24px; }
.channel-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.channel-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: var(--gradient-brand-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.channel-icon svg { width: 20px; height: 20px; }
.channel-card .channel-label { font-size: 0.78rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.04em; }
.channel-card .channel-value { font-weight: 700; font-size: 0.96rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--card-border); height: 260px; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer { padding: 72px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { color: var(--muted-foreground); font-size: 0.9rem; max-width: 320px; }
.footer-col h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-foreground); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 0.92rem; color: var(--foreground); opacity: 0.85; transition: opacity 0.2s ease; }
.footer-col ul a:hover { opacity: 1; color: var(--primary); }
.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; transition: border-color 0.2s ease, transform 0.2s ease;
}
.footer-socials a:hover { border-color: var(--card-hover-border); transform: translateY(-3px); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--muted-foreground);
}

.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-page {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 60px;
}
.error-code {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
}

/* ==========================================================================
   REVEAL / SCROLL ANIMATIONS
   ========================================================================== */
[data-reveal] { opacity: 0; transition: opacity 0.7s cubic-bezier(.21,.6,.35,1), transform 0.7s cubic-bezier(.21,.6,.35,1); }
[data-reveal="fade-up"] { transform: translateY(28px); }
[data-reveal="fade-in"] { transform: none; }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal="slide-left"] { transform: translateX(-32px); }
[data-reveal="slide-right"] { transform: translateX(32px); }
[data-reveal].in-view { opacity: 1; transform: none; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(140%); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--card-border); border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--muted) 25%, var(--card-border) 50%, var(--muted) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.4s ease-in-out infinite;
}
@keyframes skeleton-loading { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tilt effect applied via inline transform from JS */
.tilt-card { transition: transform 0.15s ease; transform-style: preserve-3d; will-change: transform; }

/* ==========================================================================
   COLOR / VIBRANCE LAYER
   A soft full-page color glow plus a cycling accent palette across icon
   tiles, tags, and highlights — this is what gives the site its color.
   Edit --c-* / --g-* / --aurora in the tokens block to re-color everything.
   ========================================================================== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--aurora);
}

/* Colorful service icon tiles (white glyph on a colored gradient) */
.services-grid .service-card:nth-child(6n+1) .service-icon { background: var(--g-1); color: #fff; }
.services-grid .service-card:nth-child(6n+2) .service-icon { background: var(--g-2); color: #fff; }
.services-grid .service-card:nth-child(6n+3) .service-icon { background: var(--g-3); color: #fff; }
.services-grid .service-card:nth-child(6n+4) .service-icon { background: var(--g-4); color: #fff; }
.services-grid .service-card:nth-child(6n+5) .service-icon { background: var(--g-5); color: #fff; }
.services-grid .service-card:nth-child(6n+6) .service-icon { background: var(--g-6); color: #fff; }

/* Colorful "why choose us" feature tiles (offset palette for variety) */
.features-grid .feature-card:nth-child(5n+1) .service-icon { background: var(--g-3); color: #fff; }
.features-grid .feature-card:nth-child(5n+2) .service-icon { background: var(--g-4); color: #fff; }
.features-grid .feature-card:nth-child(5n+3) .service-icon { background: var(--g-5); color: #fff; }
.features-grid .feature-card:nth-child(5n+4) .service-icon { background: var(--g-6); color: #fff; }
.features-grid .feature-card:nth-child(5n+5) .service-icon { background: var(--g-1); color: #fff; }

/* Colorful industry glyphs */
.industries-grid .industry-chip:nth-child(6n+1) svg { color: var(--c-1); }
.industries-grid .industry-chip:nth-child(6n+2) svg { color: var(--c-2); }
.industries-grid .industry-chip:nth-child(6n+3) svg { color: var(--c-3); }
.industries-grid .industry-chip:nth-child(6n+4) svg { color: var(--c-4); }
.industries-grid .industry-chip:nth-child(6n+5) svg { color: var(--c-5); }
.industries-grid .industry-chip:nth-child(6n+6) svg { color: var(--c-6); }

/* Colorful contact-channel tiles */
.contact-channels .channel-card:nth-child(6n+1) .channel-icon { background: var(--g-1); color: #fff; }
.contact-channels .channel-card:nth-child(6n+2) .channel-icon { background: var(--g-2); color: #fff; }
.contact-channels .channel-card:nth-child(6n+3) .channel-icon { background: var(--g-3); color: #fff; }
.contact-channels .channel-card:nth-child(6n+4) .channel-icon { background: var(--g-4); color: #fff; }
.contact-channels .channel-card:nth-child(6n+5) .channel-icon { background: var(--g-5); color: #fff; }
.contact-channels .channel-card:nth-child(6n+6) .channel-icon { background: var(--g-6); color: #fff; }

/* Colorful service tags (tinted chips instead of flat grey) */
.tag:nth-child(6n+1) { background: color-mix(in srgb, var(--c-1) 13%, transparent); color: var(--c-1); }
.tag:nth-child(6n+2) { background: color-mix(in srgb, var(--c-2) 13%, transparent); color: var(--c-2); }
.tag:nth-child(6n+3) { background: color-mix(in srgb, var(--c-3) 15%, transparent); color: var(--c-3); }
.tag:nth-child(6n+4) { background: color-mix(in srgb, var(--c-4) 13%, transparent); color: var(--c-4); }
.tag:nth-child(6n+5) { background: color-mix(in srgb, var(--c-5) 14%, transparent); color: var(--c-5); }
.tag:nth-child(6n+6) { background: color-mix(in srgb, var(--c-6) 14%, transparent); color: var(--c-6); }
[data-theme="dark"] .tag { color: #fff; }

/* Colored top accent bars on the stat cards */
.stat-card { position: relative; overflow: hidden; }
.stat-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.stats-grid .stat-card:nth-child(4n+1)::before { background: var(--g-1); }
.stats-grid .stat-card:nth-child(4n+2)::before { background: var(--g-2); }
.stats-grid .stat-card:nth-child(4n+3)::before { background: var(--g-3); }
.stats-grid .stat-card:nth-child(4n+4)::before { background: var(--g-4); }

/* Hero floating-card icons in varied colors */
.hero-floating-cards .floating-card:nth-child(1) .fc-icon { background: var(--g-2); }
.hero-floating-cards .floating-card:nth-child(2) .fc-icon { background: var(--g-3); }
.hero-floating-cards .floating-card:nth-child(3) .fc-icon { background: var(--g-5); }

/* Estimator: vivid gradient selection + two-tone result icons */
.est-option.selected { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.est-result-row:nth-child(1) .est-result-icon { color: var(--c-1); }
.est-result-row:nth-child(2) .est-result-icon { color: var(--c-3); }
