/* ==========================================================================
   SmartSpidering — Design System & Styles
   Fonts: Space Grotesk (display + body) / JetBrains Mono (labels)
   ========================================================================== */

:root {
  /* Surfaces */
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #111827;
  --surface-2: #151f33;

  /* Borders & lines */
  --border: rgba(148, 163, 184, 0.10);
  --border-strong: rgba(59, 130, 246, 0.35);
  --border-hover: rgba(34, 211, 238, 0.5);

  /* Brand */
  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --cyan-400: #22d3ee;
  --star-yellow: #facc15;
  --violet-500: #8b5cf6;
  --brand-gradient: linear-gradient(135deg, var(--blue-700), var(--cyan-400));
  --brand-gradient-3: linear-gradient(135deg, var(--blue-500) 0%, var(--cyan-400) 50%, var(--violet-500) 100%);

  /* Text — tuned for readability on dark backgrounds */
  --heading: #f8fafc;
  --body: #c9d3e3;
  --muted: #8b98af;

  /* Type scale
     Note: headings previously used Syne, whose lowercase "g" doesn't form
     a proper closed loop at bold weight and reads as broken/illegible at
     UI sizes. Space Grotesk renders a clean "g" at every size, so it now
     carries both display and body duty, differentiated by weight/tracking. */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Radii & shadow */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-glow: 0 8px 40px rgba(59, 130, 246, 0.12);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

section, main { position: relative; z-index: 1; }

::selection { background: rgba(34, 211, 238, 0.25); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Background layers ---------- */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 500px at 15% -5%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 15%, rgba(34, 211, 238, 0.09), transparent 60%);
}

/* ==========================================================================
   ICON SYSTEM
   Self-hosted icons from Lucide (https://lucide.dev, ISC licensed). The raw
   SVG sources live at assets/images/icons/ for reference/reuse, and are also
   inlined once as <symbol> definitions in a hidden sprite at the top of
   <body>. Every icon renders via <svg class="icon icon-NAME"><use
   href="#icon-NAME"></use></svg>.

   Why <use> instead of CSS mask-image: mask-image referencing a *local*
   file (file:// or even some http contexts) is unreliable across browsers —
   Chromium in particular fails to load file:// URLs through mask-image
   even though the same file loads fine in an <img> tag. A same-document
   <use href="#id"> reference has no such restriction: it's plain SVG,
   supported identically in Chrome, Edge, Firefox, and Safari, works over
   file://, http://, and https://, and needs zero extra network requests
   since the shape is already inline in the page.

   Color: each <symbol> carries the icon's original stroke="currentColor",
   so icons automatically pick up whatever `color` is set on their container
   (e.g. .service-icon, .why-icon) — no extra color wiring needed here.
   ========================================================================== */
.icon {
  display: inline-block;
  flex-shrink: 0;
  overflow: visible;
}

.icon-size-14 { width: 14px; height: 14px; }
.icon-size-16 { width: 16px; height: 16px; }
.icon-size-18 { width: 18px; height: 18px; }
.icon-size-20 { width: 20px; height: 20px; }
.icon-size-22 { width: 22px; height: 22px; }
.icon-size-24 { width: 24px; height: 24px; }
.icon-size-26 { width: 26px; height: 26px; }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  transition: padding 0.3s var(--ease);
}

/* Decorative background layer, kept as a SIBLING (not ancestor) of .nav-links.
   backdrop-filter on an ancestor creates a new containing block for
   position:fixed descendants, which was trapping the full-screen mobile
   menu inside the nav bar's own height instead of the full viewport.
   Keeping it on a sibling gives the same frosted-glass look without that bug. */
.nav-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 11, 20, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.nav.scrolled { padding: 0.65rem 1.5rem; }

.nav.scrolled .nav-bg {
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark { width: 34px; height: 34px; display: block; flex-shrink: 0; }

.nav-brand {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--heading);
  z-index: 210;
}

.hamburger .icon-menu,
.hamburger .icon-close {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.hamburger .icon-close { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }

.hamburger.active .icon-menu { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.hamburger.active .icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a:not(.nav-cta) {
  position: relative;
  text-decoration: none;
  color: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%;
  height: 1.5px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav-links a:not(.nav-cta):hover { color: var(--heading); }
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }

.nav-links a.active-link { color: var(--cyan-400); }
.nav-links a.active-link::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-gradient);
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.nav-cta .icon { transition: transform 0.25s var(--ease); }
.nav-cta:hover .icon { transform: translateX(3px); }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 16, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 6.5rem 1.5rem 3rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
  }

  .nav-links a:not(.nav-cta) {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-family: var(--font-display);
    font-weight: 700;
  }

  .nav-links .nav-cta {
    font-size: 1rem;
    padding: 0.85rem 2rem;
    flex-shrink: 0;
    margin-bottom: 1rem;
  }
}

@media (max-width: 860px) and (max-height: 560px) {
  .nav-links {
    padding: 4.25rem 1.5rem 1.5rem;
    gap: 0.9rem;
    justify-content: flex-start;
  }

  .nav-links ul { gap: 0.7rem; }

  .nav-links a:not(.nav-cta) { font-size: 1rem; }

  .nav-links .nav-cta {
    padding: 0.6rem 1.75rem;
    margin-bottom: 0.25rem;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 0 0 rgba(59, 130, 246, 0);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(34, 211, 238, 0.28);
}

.btn-primary .icon { transition: transform 0.25s var(--ease); }
.btn-primary:hover .icon { transform: translateX(3px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-strong);
  color: var(--heading);
}

.btn-ghost:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--border-hover);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 3rem;
}

.hero-inner { max-width: 880px; width: 100%; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.pulse-dot {
  width: 7px; height: 7px;
  background: var(--cyan-400);
  border-radius: 50%;
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.5); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--body);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1rem;
  max-width: 560px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.4rem;
}

.scroll-cue {
  margin-top: 2.5rem;
  color: var(--muted);
  animation: bob 2.4s ease-in-out infinite;
  display: inline-flex;
}

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

/* ==========================================================================
   REVEAL ANIMATION (scroll-triggered)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Hero content should appear immediately without waiting on scroll observer */
.hero .reveal { transition-delay: calc(0.15s + var(--d, 0) * 100ms); }

/* ==========================================================================
   SECTION LAYOUT
   ========================================================================== */
.section {
  padding: 5.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 768px) {
  .section { padding: 7rem 2.5rem; }
}

.section-head { max-width: 640px; margin-bottom: 3rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--heading);
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.75;
}

.divider {
  height: 1px;
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ==========================================================================
   TECH STRIP (marquee)
   ========================================================================== */
.tech-strip {
  padding: 1.75rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.35);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tech-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: scroll-left 32s linear infinite;
}

.tech-item {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  position: relative;
  padding-left: 1.5rem;
}

.tech-item::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  width: 5px; height: 5px;
  transform: translateY(-50%);
  background: var(--cyan-400);
  border-radius: 50%;
  opacity: 0.6;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   FLOW / HOW IT WORKS
   ========================================================================== */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  position: relative;
}

@media (min-width: 640px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .flow-grid { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
}

.flow-step { text-align: center; }

.flow-icon {
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  color: var(--cyan-400);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}


.flow-step:hover .flow-icon {
  border-color: var(--cyan-400);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
  transform: translateY(-4px);
}

.flow-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.55rem;
}

.flow-step p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 50px rgba(34, 211, 238, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--brand-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--cyan-400);
  margin-bottom: 1.25rem;
}


.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.3rem 0.65rem;
  border-radius: 5px;
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue-500);
  border: 1px solid rgba(59, 130, 246, 0.2);
  white-space: nowrap;
}

/* ==========================================================================
   WHY US
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.why-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.why-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  color: var(--violet-500);
}


.why-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: stretch;
}

@media (min-width: 860px) {
  .about-grid { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
}

.about-copy p { font-size: 1rem; line-height: 1.8; margin-bottom: 1.25rem; color: var(--body); }

.about-metrics {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.metric-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--cyan-400);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

/* ---------- About: value pillars panel (replaces photo) ---------- */
.pillars-panel { position: relative; }

.pillars-glow {
  position: absolute;
  inset: -16px;
  background: var(--brand-gradient-3);
  opacity: 0.16;
  border-radius: 28px;
  filter: blur(50px);
  animation: bg-shift 9s ease-in-out infinite;
}

@keyframes bg-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-8px, 10px); }
}

.pillars-card {
  position: relative;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.pillars-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.pillars-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.pillars-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }

.pillars-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pillars-list li:last-child { padding-bottom: 0; border-bottom: none; }

.pillar-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--cyan-400);
}

.pillars-list h4 {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.35rem;
}

.pillars-list p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   CLIENT FEEDBACK / TESTIMONIALS — auto-scrolling carousel
   ========================================================================== */
.testimonial-carousel {
  position: relative;
}

.testimonial-viewport {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: auto;
  cursor: grab;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}

.testimonial-viewport::-webkit-scrollbar { display: none; }

.testimonial-viewport.dragging { cursor: grabbing; }

.testimonial-viewport.dragging .testimonial-card,
.testimonial-viewport.dragging .testimonial-card * {
  user-select: none;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
}

/* Duplicate set exists only so the loop can reset invisibly; display:contents
   keeps its children as direct flex items of .testimonial-track while still
   letting aria-hidden remove the whole group from assistive tech. */
.testimonial-track-dup {
  display: contents;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: min(82vw, 320px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

@media (min-width: 640px) {
  .testimonial-card { width: 320px; }
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 45px rgba(59, 130, 246, 0.1);
}

/* Prev/next controls: desktop/trackpad only. On touch devices, swipe on the
   viewport itself is the natural interaction, so the buttons stay out of
   the way rather than eating into limited screen width. */
.carousel-arrow {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    isolation: isolate;
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-strong);
    color: var(--heading);
    cursor: pointer;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
  }

  /* Enlarge the actual clickable/tappable area beyond the visible 42px
     circle without changing how it looks — makes the button reliably
     hittable even with slightly imprecise pointer positioning. */
  .carousel-arrow::before {
    content: '';
    position: absolute;
    inset: -10px;
  }

  /* Belt-and-suspenders: the icon is purely decorative (aria-hidden), and
     forcing it out of the hit-testing path means a click always resolves
     to the <button> itself, never to the nested <svg>/<use> underneath —
     a known source of inconsistent click targets across browser engines. */
  .carousel-arrow .icon,
  .carousel-arrow svg,
  .carousel-arrow use {
    pointer-events: none;
  }

  .carousel-arrow:hover {
    background: rgba(34, 211, 238, 0.12);
    border-color: var(--cyan-400);
    color: var(--cyan-400);
    transform: translateY(-50%) translateY(-2px);
  }

  .carousel-arrow:active { transform: translateY(-50%); }

  .carousel-arrow:focus-visible {
    outline: 2px solid var(--cyan-400);
    outline-offset: 2px;
  }

  .carousel-arrow-prev { left: 0.25rem; }
  .carousel-arrow-next { right: 0.25rem; }
}

.stars {
  display: flex;
  gap: 0.2rem;
  color: var(--star-yellow);
  margin-bottom: 1rem;
}

.testimonial-card blockquote {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid var(--border-strong);
}

.client-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--heading);
}

.client-role {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 0.8fr 1.2fr; gap: 3.5rem; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--cyan-400);
  display: flex; align-items: center; justify-content: center;
}


.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.contact-info-value {
  font-size: 1rem;
  color: var(--heading);
  font-weight: 500;
  text-decoration: none;
}

a.contact-info-value {
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s, border-color 0.2s;
}

a.contact-info-value:hover {
  color: var(--cyan-400);
  border-color: var(--cyan-400);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Honeypot spam trap — kept in the layout flow (not display:none) so
   automated form-fillers still "see" and populate it, while real users
   never encounter it visually or via keyboard/screen reader. */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 560px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--heading);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  resize: vertical;
}

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

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan-400);
  background: rgba(34, 211, 238, 0.03);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #f87171;
}

.field-error {
  font-size: 0.78rem;
  color: #f87171;
  min-height: 1em;
}

.form-submit {
  justify-content: center;
  margin-top: 0.25rem;
}

.form-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none !important; }

.form-note {
  font-size: 0.88rem;
  min-height: 1.2em;
  text-align: center;
}

.form-note.success { color: var(--cyan-400); }
.form-note.error { color: #f87171; }

/* ==========================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  max-width: 1200px;
  margin: 1rem auto 5rem;
  padding: 0 1.5rem;
}

.cta-band-inner {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.35), rgba(34, 211, 238, 0.15));
  border: 1px solid var(--border-strong);
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
}

.cta-band-inner::before {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 160%; height: 220%;
  background: radial-gradient(ellipse at center, rgba(34, 211, 238, 0.12) 0%, transparent 65%);
  animation: rotate 16s linear infinite;
}

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

.cta-band-inner > * { position: relative; z-index: 1; }

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--body);
  max-width: 520px;
  margin: 0 auto 1.75rem;
  font-size: 1.02rem;
  line-height: 1.7;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.footer-brand span {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--muted);
}

.footer-brand .logo-mark { width: 28px; height: 28px; }

.footer-copy { color: var(--muted); font-size: 0.8rem; }

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cyan-400); }
