/* =========================================================
   Smartyfy Solutions — Portfolio Styles
   Dark glass + neon, with light mode support, new sections
   (process, testimonials, pricing, FAQ, contact form, marquee).
   ========================================================= */

/* ---------- Tokens ---------- */
:root,
html[data-theme="dark"] {
  --bg-0: #06060b;
  --bg-1: #0a0a14;
  --bg-2: #10101c;
  --bg-3: #161626;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hi: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.14);

  --text: #f2f3f8;
  --text-dim: #a8abbd;
  --text-mute: #6b6f85;

  --cyan: #00d4ff;
  --purple: #a855f7;
  --pink: #ec4899;
  --green: #10b981;
  --red: #ef4444;

  --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 50%, #a855f7 100%);
  --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);

  --glow-cyan: 0 0 40px rgba(0, 212, 255, 0.35);
  --glow-purple: 0 0 40px rgba(168, 85, 247, 0.35);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.6, 0, 0.4, 1);
}

/* Light theme override */
html[data-theme="light"] {
  --bg-0: #f6f7fb;
  --bg-1: #ffffff;
  --bg-2: #f0f2f8;
  --bg-3: #e6e9f2;
  --surface: rgba(15, 23, 42, 0.035);
  --surface-hi: rgba(15, 23, 42, 0.065);
  --border: rgba(15, 23, 42, 0.10);
  --border-hi: rgba(15, 23, 42, 0.18);

  --text: #0f172a;
  --text-dim: #475569;
  --text-mute: #94a3b8;

  --gradient-soft: linear-gradient(135deg, rgba(0, 212, 255, 0.10) 0%, rgba(168, 85, 247, 0.10) 100%);
}

html[data-theme="light"] body::before {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.12) 0%, transparent 50%);
}

html[data-theme="light"] #heroCanvas {
  opacity: 0.45;
  mix-blend-mode: multiply;
}

html[data-theme="light"] .nav-inner {
  background: rgba(255, 255, 255, 0.7);
}
html[data-theme="light"] .nav.scrolled .nav-inner {
  background: rgba(255, 255, 255, 0.92);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Disable native smooth-scroll when Lenis is active */
html.lenis { scroll-behavior: auto; }
html.lenis-smooth { scroll-behavior: auto; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.04) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transition: background 0.4s var(--ease);
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; background: none; border: none; color: inherit; cursor: pointer; }

::selection { background: rgba(0, 212, 255, 0.35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  border-radius: 10px;
}

/* ---------- Utilities ---------- */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.accent { color: var(--cyan); font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  margin-bottom: 22px;
}

/* ---------- Noscript banner ---------- */
.noscript-banner {
  background: var(--gradient);
  color: #fff;
  padding: 14px 24px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translate(-50%, -120%);
  background: var(--bg-2);
  border: 1px solid var(--border-hi);
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  z-index: 200;
  transition: transform 0.5s var(--ease);
  pointer-events: none;
  max-width: calc(100% - 40px);
}
.toast.show { transform: translate(-50%, 0); }
.toast.success { border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 20px 60px rgba(16, 185, 129, 0.25); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); box-shadow: 0 20px 60px rgba(239, 68, 68, 0.25); }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s var(--ease);
  will-change: transform;
  mix-blend-mode: screen;
}
@media (max-width: 900px) { .cursor-glow { display: none; } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--gradient);
  z-index: 100;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.7);
  transition: width 0.1s linear;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 1280px;
  z-index: 50;
  transition: all 0.3s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 12px 22px;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border);
  border-radius: 100px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  gap: 16px;
}

.nav.scrolled .nav-inner {
  background: rgba(10, 10, 20, 0.85);
  border-color: var(--border-hi);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.5));
  animation: spin-slow 20s linear infinite;
}

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

.logo-dot { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-dim);
  position: relative;
  padding: 6px 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gradient);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.theme-toggle:hover {
  color: var(--cyan);
  border-color: var(--border-hi);
  transform: rotate(20deg);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.5); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--gradient);
  color: #fff;
  border-radius: 100px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.nav-cta svg {
  width: 14px;
  height: 14px;
  transition: transform 0.25s var(--ease);
}

.nav-cta:hover {
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}
.nav-cta:hover svg { transform: translateX(3px); }

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-inner { padding: 10px 10px 10px 18px; }
  .nav-open .nav-links {
    display: flex;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 22px;
  }
  .nav-open .nav-links a {
    padding: 12px 16px;
    border-radius: 12px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 24px 80px;
  overflow: hidden;
  isolation: isolate;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(6, 6, 11, 0.6) 70%, var(--bg-0) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg-0) 100%);
  pointer-events: none;
}

html[data-theme="light"] .hero-gradient {
  background:
    radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(246, 247, 251, 0.6) 70%, var(--bg-0) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg-0) 100%);
}

.hero-inner {
  max-width: 1100px;
  width: 100%;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
}
.hero-badge strong { color: var(--text); }

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-bottom: 32px;
}
.hero-title .line { display: block; overflow: hidden; }

/* Split-word wrapper: each word becomes a clip container with an inner that slides up. */
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-title .word-inner {
  display: inline-block;
  transform: translateY(100%);
  will-change: transform;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto 44px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  line-height: 1.65;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 80px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  will-change: transform;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover { box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--surface-hi);
  border-color: var(--border-hi);
}

.btn-lg { padding: 18px 32px; font-size: 16px; }

/* Hero stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}
.stat { text-align: center; position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background: var(--border);
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.stat-plus {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: var(--cyan);
  margin-left: 2px;
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 700px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .stat:not(:last-child)::after { display: none; }
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: var(--cyan);
  animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
  0% { top: -20px; }
  100% { top: 50px; }
}

/* ---------- Industry Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 44px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  z-index: 2;
}
html[data-theme="light"] .marquee {
  background: rgba(15, 23, 42, 0.03);
}
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-0), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-0), transparent);
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 42px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.marquee-dot {
  color: var(--cyan);
  opacity: 0.5;
  font-size: 14px;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  padding: 140px 24px;
  max-width: 1280px;
  margin: 0 auto;
  z-index: 1;
}

.section-dark {
  max-width: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg-1) 10%, var(--bg-1) 90%, transparent 100%);
  padding-left: 0;
  padding-right: 0;
}
.section-dark > .section-head,
.section-dark > .projects-grid,
.section-dark > .stack-grid,
.section-dark > .testimonials-grid,
.section-dark > .faq-list {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 80px;
}
.section-title {
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-dim);
  line-height: 1.65;
}

/* Risk-reversal strip (contact card) */
.risk-reversal {
  list-style: none;
  margin: 22px auto 4px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  max-width: 720px;
}
.risk-reversal li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  padding: 8px 14px;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.2px;
}
.rr-check {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #0a0a14;
  font-weight: 700;
  font-size: 11px;
  font-family: 'Inter', sans-serif;
}

/* Cost-of-status-quo line on service cards */
.service-cost {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-mute);
  font-style: italic;
  line-height: 1.5;
}

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  padding: 38px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 0;
}
.service-card > * { position: relative; z-index: 1; }

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  background: var(--surface-hi);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 22px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-icon svg { width: 28px; height: 28px; }
.service-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.08);
  box-shadow: var(--glow-cyan);
}
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 20px;
  line-height: 1.65;
}
.service-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.service-list li {
  font-size: 13.5px;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  background: var(--gradient);
  border-radius: 2px;
  transform: rotate(45deg);
  opacity: 0.8;
}
.card-shine {
  position: absolute;
  inset: -1px;
  background: conic-gradient(from 0deg, transparent 0%, rgba(0, 212, 255, 0.3) 10%, transparent 20%);
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
  animation: spin-slow 8s linear infinite;
}
.service-card:hover .card-shine { opacity: 0.6; }

/* ---------- Projects (horizontal on desktop) ---------- */
.projects-horizontal {
  position: relative;
  padding: 140px 0;
  overflow: hidden;
}

.projects-head {
  max-width: 760px;
  margin: 0 auto 60px;
  padding: 0 24px;
  text-align: center;
}

.projects-track-wrapper {
  position: relative;
  width: 100%;
}

.projects-track {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(14px);
  transition: border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  flex: 1 1 340px;
}
.project-card:hover { border-color: var(--border-hi); }

/* Horizontal scroll on desktop */
@media (min-width: 1024px) {
  .projects-track {
    flex-wrap: nowrap;
    max-width: none;
    padding: 0 8vw;
    will-change: transform;
  }
  .project-card {
    flex: 0 0 500px;
    min-height: 0;
    max-height: calc(100vh - 120px);
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .project-card .project-media {
    flex: 0 0 auto;
    aspect-ratio: 16 / 10;
  }
  .project-card .project-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 22px 26px;
  }
}

.project-media {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--border);
}

.project-visual {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%),
    linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
  padding: 24px;
}

/* ARIA agent graph */
.visual-aria { padding: 40px; }
.agent-graph {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 240px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  align-items: center;
  gap: 6px;
}
.agent-graph .node {
  padding: 8px 12px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--cyan);
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  animation: node-pulse 3s ease-in-out infinite;
}
.agent-graph .node.node-router {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
  animation-delay: 0.2s;
}
.agent-graph .node.node-agent {
  border-color: var(--pink);
  color: var(--pink);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
  justify-self: center;
}
.agent-graph .node.a1 { grid-column: 3; grid-row: 1; animation-delay: 0.3s; transform: translateY(-48px); }
.agent-graph .node.a2 { grid-column: 3; grid-row: 1; animation-delay: 0.4s; }
.agent-graph .node.a3 { grid-column: 3; grid-row: 1; animation-delay: 0.5s; transform: translateY(48px); }
.agent-graph .node.node-merger {
  grid-column: 4;
  border-color: var(--purple);
  color: var(--purple);
  animation-delay: 0.6s;
}
.agent-graph .node.node-synth { grid-column: 5; animation-delay: 0.7s; }
.agent-graph .node.node-planner { grid-column: 1; }
.agent-graph .node.node-router { grid-column: 2; }
@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* DriveWidget browser mock */
.visual-drive { padding: 28px; }
.browser-bar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  height: 32px;
  background: rgba(10, 10, 20, 0.85);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
}
.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}
.browser-bar span:nth-child(1) { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #f59e0b; }
.browser-bar span:nth-child(3) { background: #10b981; }
.browser-bar .url {
  margin-left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
}
.upload-widget {
  margin-top: 26px;
  width: 80%;
  max-width: 300px;
  padding: 26px 22px;
  background: rgba(10, 10, 20, 0.8);
  border: 2px dashed var(--cyan);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.cloud-icon { font-size: 32px; color: var(--cyan); margin-bottom: 6px; }
.widget-text { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; }
.widget-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.widget-fill {
  height: 100%;
  width: 30%;
  background: var(--gradient);
  border-radius: 10px;
  animation: widget-fill 2.5s ease-in-out infinite;
}
@keyframes widget-fill {
  0% { width: 10%; }
  50% { width: 80%; }
  100% { width: 10%; }
}

/* Bulk email mailer mock */
.visual-mailer { padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mailer-mock {
  margin-top: 22px;
  width: 86%;
  max-width: 340px;
  padding: 18px 18px 16px;
  background: rgba(10, 10, 20, 0.82);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(168, 85, 247, 0.18);
}
.mailer-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: rgba(0, 212, 255, 0.06);
  border: 1px solid rgba(0, 212, 255, 0.18);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.mailer-row .env { color: var(--cyan); font-size: 14px; }
.mailer-row .to { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.2px; }
.mailer-progress {
  position: relative;
  height: 26px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.mailer-progress-fill {
  position: absolute;
  inset: 0;
  width: 68%;
  background: var(--gradient);
  opacity: 0.9;
  animation: mailer-send 3s ease-in-out infinite;
}
@keyframes mailer-send {
  0% { width: 15%; }
  60% { width: 82%; }
  100% { width: 15%; }
}
.mailer-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.mailer-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.mailer-chips span {
  padding: 4px 10px;
  background: rgba(10, 10, 20, 0.7);
  border: 1px solid var(--border-hi);
  border-radius: 999px;
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

/* Payroll flow */
.visual-timelock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.doc-stack { display: flex; flex-direction: column; gap: 6px; }
.doc {
  padding: 6px 12px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
}
.arrow { color: var(--cyan); font-size: 20px; }
.ai-brain {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brain-core {
  width: 22px;
  height: 22px;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.7);
  animation: pulse 2s ease-in-out infinite;
}
.brain-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  opacity: 0.5;
}
.brain-ring.r1 { width: 40px; height: 40px; animation: spin-slow 6s linear infinite; }
.brain-ring.r2 { width: 56px; height: 56px; border-color: var(--purple); animation: spin-slow 10s linear infinite reverse; }
.output-db {
  padding: 10px 16px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

/* Tax portal mock */
.visual-fabc { padding: 20px; }
.portal-mock {
  width: 100%;
  max-width: 300px;
  padding: 16px;
  background: rgba(10, 10, 20, 0.85);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
}
.portal-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan);
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.portal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.portal-row span {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  flex: 1;
}
.portal-row span:first-child {
  width: 8px;
  height: 8px;
  flex: none;
  background: var(--cyan);
  border-radius: 50%;
}
.w-40 span:last-child { max-width: 40%; }
.w-60 span:last-child { max-width: 60%; }
.w-80 span:last-child { max-width: 80%; }
.portal-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 54px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
}

/* Kanban */
.visual-jaypee { padding: 22px; }
.kanban { display: flex; gap: 10px; width: 100%; max-width: 320px; }
.col {
  flex: 1;
  padding: 10px;
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.c-head {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.card-mini {
  height: 12px;
  background: var(--gradient);
  border-radius: 4px;
  margin-bottom: 5px;
  opacity: 0.7;
}
.col:nth-child(2) .card-mini { background: linear-gradient(135deg, var(--purple), var(--pink)); }

/* Network */
.visual-ee { padding: 30px; }
.net-grid {
  position: relative;
  width: 100%;
  height: 140px;
  max-width: 260px;
}
.net-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}
.net-grid .dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.5s ease-in-out infinite;
}
.net-grid .d1 { top: 18%; left: 10%; }
.net-grid .d2 { top: 18%; right: 10%; background: var(--purple); box-shadow: 0 0 12px var(--purple); animation-delay: 0.4s; }
.net-grid .d3 { top: 45%; left: 45%; background: var(--pink); box-shadow: 0 0 12px var(--pink); animation-delay: 0.8s; }
.net-grid .d4 { bottom: 18%; left: 10%; animation-delay: 1.2s; }
.net-grid .d5 { bottom: 18%; right: 10%; background: var(--purple); box-shadow: 0 0 12px var(--purple); animation-delay: 1.6s; }
.net-grid .d6 { display: none; }

.project-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.tag-live {
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
}
.tag-live::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
.project-card h3 { font-size: 22px; margin-bottom: 10px; }
.project-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.project-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
html[data-theme="light"] .project-stats { background: rgba(15, 23, 42, 0.04); }
.project-stats > div { display: flex; flex-direction: column; }
.project-stats b {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.project-stats span { font-size: 10px; color: var(--text-mute); margin-top: 2px; }
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 14px;
}
.project-stack span {
  padding: 4px 10px;
  font-size: 11px;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  width: fit-content;
  padding: 10px 16px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 100px;
  background: rgba(0, 212, 255, 0.06);
  transition: all 0.25s var(--ease);
}
.project-link svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }
.project-link:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.project-link:hover svg { transform: translate(2px, -2px); }

/* ---------- Process ---------- */
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
  position: relative;
}
.process-step {
  position: relative;
  padding: 32px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
}
.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 46px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}
.process-body h3 { font-size: 20px; margin-bottom: 10px; }
.process-body p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 14px;
}
.process-output {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--cyan);
  padding: 5px 12px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  background: rgba(0, 212, 255, 0.06);
  border-radius: 100px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.testimonial-card {
  position: relative;
  padding: 36px 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
  overflow: hidden;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
}
.testimonial-card::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.testimonial-card:hover::before { opacity: 1; }

.quote-mark {
  font-family: 'Space Grotesk', serif;
  font-size: 80px;
  line-height: 0.6;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  opacity: 0.8;
}
.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 26px;
  font-style: normal;
  position: relative;
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  position: relative;
}
.avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.avatar-mini::after {
  content: attr(data-initials);
  position: absolute;
}
.t-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.t-role {
  font-size: 12px;
  color: var(--text-mute);
  margin-top: 2px;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  padding: 42px 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
}
.pricing-featured {
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border-color: rgba(0, 212, 255, 0.3);
  transform: scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}
.pricing-featured:hover {
  transform: scale(1.02) translateY(-6px);
  border-color: var(--cyan);
  box-shadow: 0 30px 80px rgba(0, 212, 255, 0.25);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}
.pricing-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.pricing-price .currency {
  font-size: 22px;
  color: var(--text-dim);
  font-weight: 500;
  margin-right: 2px;
}
.pricing-price .period {
  font-size: 15px;
  color: var(--text-mute);
  font-weight: 400;
  margin-left: 6px;
}
.pricing-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 28px;
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  flex: 1;
}
.pricing-features li {
  font-size: 14px;
  color: var(--text-dim);
  padding-left: 26px;
  position: relative;
}
.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(-45deg);
}
.pricing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s var(--ease);
  text-align: center;
  will-change: transform;
}
.pricing-cta:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}
.pricing-featured .pricing-cta {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}
.pricing-featured .pricing-cta:hover {
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.5);
}
.pricing-note {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-mute);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 26px;
}
.team-card {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  display: flex;
  gap: 28px;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease);
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
}
@media (max-width: 600px) {
  .team-card { flex-direction: column; padding: 32px 26px; }
}
.team-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient);
  padding: 2px;
  animation: spin-slow 8s linear infinite;
}
.avatar-ring::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg-1);
  border-radius: 50%;
}
.avatar-text {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 36px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  z-index: 1;
}
.team-body { flex: 1; }
.team-card h3 { font-size: 24px; margin-bottom: 4px; }
.team-role {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.team-bio {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.team-bio strong { color: var(--text); font-weight: 600; }
.team-skills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.team-skills span {
  padding: 4px 10px;
  font-size: 11px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
.team-links { display: flex; gap: 10px; }
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.25s var(--ease);
}
.team-link svg { width: 16px; height: 16px; }
.team-link:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
}

/* ---------- Stack ---------- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.stack-group {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
}
.stack-group h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--surface-hi);
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.25s var(--ease);
  cursor: default;
}
.pill:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(0, 212, 255, 0.1);
  transform: translateY(-2px);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item:hover { border-color: var(--border-hi); }
.faq-item[open] { border-color: rgba(0, 212, 255, 0.3); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.25s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan); }
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0); }
.faq-body {
  padding: 0 28px 24px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-body p { margin-top: 0; }

/* ---------- Contact form ---------- */
.contact-section { padding: 160px 24px; }
.contact-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 70px 60px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  overflow: hidden;
}
@media (max-width: 700px) { .contact-card { padding: 50px 26px; } }

.contact-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.18) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card .eyebrow { margin-bottom: 22px; }
.contact-card .section-title { margin-bottom: 18px; text-align: center; }
.contact-card .section-sub { max-width: 600px; margin: 0 auto 50px; text-align: center; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-form.submitting { pointer-events: none; opacity: 0.7; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all 0.25s var(--ease);
  resize: vertical;
}
.form-field textarea {
  min-height: 120px;
  line-height: 1.6;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300d4ff' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 44px;
  cursor: pointer;
}
.form-field select option {
  background: var(--bg-2);
  color: var(--text);
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-mute);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--surface-hi);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: var(--red);
}
.form-error {
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
  font-family: 'JetBrains Mono', monospace;
}

/* Honeypot (hidden from users, visible to bots) */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Budget radio group */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
}
.budget-option {
  cursor: pointer;
  position: relative;
}
.budget-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.budget-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: all 0.25s var(--ease);
  text-align: center;
}
.budget-option:hover span {
  border-color: var(--border-hi);
  color: var(--text);
}
.budget-option input:checked + span {
  background: rgba(0, 212, 255, 0.12);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.25);
}

.form-submit {
  align-self: flex-start;
  margin-top: 6px;
  position: relative;
}
.form-submit .btn-spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}
.form-submit.loading .btn-label,
.form-submit.loading .btn-icon { display: none; }
.form-submit.loading .btn-spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-footnote {
  font-size: 13px;
  color: var(--text-mute);
  margin-top: 14px;
}
.form-footnote a {
  color: var(--cyan);
  font-weight: 500;
}
.form-footnote a:hover { text-decoration: underline; }

.contact-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 40px;
  margin-top: 50px;
  border-top: 1px solid var(--border);
}
.contact-meta > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--text-dim);
}
.contact-meta b {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  font-weight: 500;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 70px 24px 30px;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
}
@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
.footer-brand p {
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
  max-width: 380px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
.footer-cols h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  padding: 5px 0;
}
.footer-cols a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1280px;
  margin: 50px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-mute);
}

/* ---------- Reveal defaults (controlled by GSAP) ---------- */
[data-reveal] { opacity: 0; }
.service-card { opacity: 0; }

/* ---------- Responsive tightening ---------- */
@media (max-width: 700px) {
  .section { padding: 90px 20px; }
  .hero { padding: 120px 20px 60px; }
  .section-head { margin-bottom: 56px; }
  .service-card, .stack-group, .process-step, .testimonial-card, .pricing-card { padding: 32px 24px; }
  .contact-section { padding: 100px 20px; }
  .agent-graph {
    height: 200px;
    grid-template-columns: repeat(3, 1fr);
  }
  .agent-graph .node { font-size: 9px; padding: 6px 8px; }
  .projects-horizontal { padding: 90px 0; }
  .projects-head { margin-bottom: 40px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1 !important; }
  .service-card { opacity: 1 !important; }
  .marquee-track { animation: none !important; }
}
