/*
  Stack Intellect website styles
  Theme: clean, modern, AI-focused agency
*/

:root {
  --bg: #06080d;
  --surface: #0c1220;
  --surface-2: #111a2e;
  --text: #eef3ff;
  --muted: #a7b4d1;
  --primary: #0055ad;
  --primary-2: #1f64ad;
  --line: rgba(255, 255, 255, 0.08);
  --success: #1ec47c;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --container: 1160px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 123, 255, 0.16) 0%, transparent 38%),
    radial-gradient(circle at 90% 20%, rgba(47, 146, 255, 0.14) 0%, transparent 35%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
}

/* Sticky header */
.site-header {
  position: relative;
  top: 0;
  z-index: 20;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-color: transparent;
  background: transparent;
}

.site-header-home {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

.site-header-home.scrolled {
  background: transparent;
  border-bottom: 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  position: relative;
}

.site-header-home .nav-wrap {
  position: relative;
  min-height: 86px;
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.45rem 0.15rem 0.45rem 1.15rem;
  background: #1d1d20;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.site-header-home .logo-link {
  margin-left: 0.7rem;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-link img {
  width: 232px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
}

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

.site-header-home .nav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-left: 0;
  z-index: 2;
}

.site-header-home .nav-wrap .nav-links {
  position: static;
  transform: none;
  z-index: 2;
  justify-content: center;
}

.site-header-home .nav-cta {
  margin-left: auto;
  margin-right: 0.8rem;
  position: relative;
  z-index: 3;
}

.site-header-home .nav-link {
  color: #ffffff;
}

.site-header-home .nav-link:hover,
.site-header-home .nav-link.active {
  color: #ffffff;
}

.site-header-services {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
}

.site-header-services .nav-wrap {
  position: relative;
  min-height: 86px;
  margin-top: 1rem;
  border-radius: 999px;
  padding: 0.45rem 0.15rem 0.45rem 1.15rem;
  background: #1d1d20;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.34);
}

.site-header-services .logo-link {
  margin-left: 0.7rem;
}

.site-header-services .nav-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-left: 0;
  z-index: 2;
}

.site-header-services .nav-wrap .nav-links {
  position: static;
  transform: none;
  z-index: 2;
  justify-content: center;
}

.site-header-services .nav-link,
.site-header-services .nav-link:hover,
.site-header-services .nav-link.active {
  color: #f1f2f6;
}

.site-header-services .nav-cta {
  margin-left: auto;
  margin-right: 0.8rem;
  position: relative;
  z-index: 3;
  color: #0f2248;
  background: #f2d43d;
  box-shadow: none;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #f2d44d;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.mobile-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: none;
  place-items: center;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 16px 28px rgba(0, 123, 255, 0.36);
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

/* Sections */
.section {
  padding: 5.6rem 0;
}

.services-section-home {
  background: #f6f7fb;
  margin-top: -3rem;
  padding-top: 4.4rem;
}

.section-title {
  font-size: clamp(1.65rem, 1.4rem + 1vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 66ch;
}

.hero {
  padding: 7rem 0 5rem;
}

.hero-home {
  position: relative;
  margin-top: -120px;
  padding-top: 1.8rem;
  padding-top: calc(1.8rem + 120px);
  padding-bottom: 5rem;
  overflow: hidden;
}

.hero-home::after {
  content: none;
}

.hero-home::before {
  content: none;
}

.hero-geometric-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 15%, rgba(88, 111, 255, 0.14), transparent 36%),
    radial-gradient(circle at 82% 74%, rgba(250, 151, 113, 0.12), transparent 40%),
    radial-gradient(circle at 72% 48%, rgba(116, 131, 255, 0.07), transparent 38%),
    #05070b;
}

.hero-geometric-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 118px;
  z-index: 2;
  background: linear-gradient(to bottom, #05070b 72%, rgba(5, 7, 11, 0));
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(84, 102, 235, 0.08), transparent 46%, rgba(255, 139, 98, 0.08));
  filter: blur(22px);
}

.hero-shape {
  position: absolute;
  border-radius: 999px;
  border: 1.4px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 20px rgba(255, 255, 255, 0.05),
    0 0 22px rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(1.5px);
  animation-name: heroShapeIntro, heroShapeFloat;
  animation-duration: 1.25s, 8.4s;
  animation-timing-function: cubic-bezier(0.23, 0.86, 0.39, 0.96), ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-delay: var(--intro-delay, 0s), calc(var(--intro-delay, 0s) + 1.25s);
  animation-fill-mode: both, both;
}

.hero-shape::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.12), transparent 68%);
}

.hero-shape-indigo {
  background: linear-gradient(90deg, rgba(129, 145, 255, 0.2), rgba(129, 145, 255, 0));
}

.hero-shape-rose {
  background: linear-gradient(90deg, rgba(255, 152, 173, 0.2), rgba(255, 152, 173, 0));
}

.hero-shape-violet {
  background: linear-gradient(90deg, rgba(170, 139, 255, 0.2), rgba(170, 139, 255, 0));
}

.hero-shape-amber {
  background: linear-gradient(90deg, rgba(255, 198, 125, 0.19), rgba(255, 198, 125, 0));
}

.hero-shape-cyan {
  background: linear-gradient(90deg, rgba(117, 235, 255, 0.18), rgba(117, 235, 255, 0));
}

.hero-shape-lg {
  width: min(760px, 72vw);
  height: 138px;
  top: 28%;
  left: -16%;
  --shape-rot: 8deg;
  --intro-delay: 0.12s;
}

.hero-shape-md {
  width: min(440px, 44vw);
  height: 106px;
  top: 14%;
  right: -8%;
  --shape-rot: 20deg;
  --intro-delay: 0.28s;
}

.hero-shape-sm {
  width: min(340px, 37vw);
  height: 92px;
  bottom: 10%;
  left: 8%;
  --shape-rot: -11deg;
  --intro-delay: 0.42s;
}

.hero-shape-xs {
  width: min(220px, 24vw);
  height: 62px;
  top: 9%;
  right: 20%;
  --shape-rot: -21deg;
  --intro-delay: 0.54s;
}

.hero-shape-xxs {
  width: min(170px, 20vw);
  height: 44px;
  top: 6%;
  left: 23%;
  --shape-rot: 29deg;
  --intro-delay: 0.66s;
}

.hero-shape-bottom {
  width: min(430px, 44vw);
  height: 98px;
  right: 9%;
  bottom: 3%;
  --shape-rot: -14deg;
  --intro-delay: 0.78s;
}

.hero-shape-corner {
  width: min(290px, 31vw);
  height: 78px;
  right: -8%;
  bottom: 20%;
  --shape-rot: 10deg;
  --intro-delay: 0.9s;
}

.services-hero-banner {
  position: relative;
  min-height: 640px;
  margin-top: -108px;
  padding-top: 180px;
  background-image: url("assets/images/office_talking.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.contact-hero-banner {
  background-image: url("assets/images/contact_office.jpg");
}

.services-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.56));
}

.services-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 7.2rem;
}

.services-hero-content h1 {
  font-size: clamp(3rem, 2.2rem + 4vw, 7.2rem);
  line-height: 1;
  color: #ffffff;
  margin-bottom: 1rem;
}

.services-hero-content p {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.9rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 34ch;
  margin: 0 auto;
  line-height: 1.4;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  background: rgba(47, 146, 255, 0.14);
  border: 1px solid rgba(47, 146, 255, 0.4);
  color: #cfe4ff;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.5rem, 1.05rem + 2.05vw, 2.78rem);
  line-height: 0.92;
  margin-bottom: 1rem;
}

.headline-main {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: -0.18em;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.headline-strokes {
  display: inline-grid;
  gap: 0.5rem;
  transform: translateY(-95%);
}

.headline-strokes i {
  display: block;
  width: 43px;
  height: 14px;
  border-radius: 999px;
  background: var(--primary);
  transform: rotate(-35deg) scaleX(0.25);
  transform-origin: left center;
  animation: strokePulse 1.6s ease-in-out infinite;
}

.headline-strokes i:nth-child(2) {
  animation-delay: 0.2s;
}

.headline-strokes i:nth-child(3) {
  animation-delay: 0.4s;
}

.hero p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn-luxe,
.btn-luxe-outline {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.btn-luxe::after,
.btn-luxe-outline::after {
  content: "";
  position: absolute;
  inset: -1px;
  transform: translateX(-115%);
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.35) 50%, transparent 78%);
  transition: transform 0.58s ease;
  z-index: -1;
}

.btn-luxe:hover::after,
.btn-luxe-outline:hover::after {
  transform: translateX(115%);
}

.btn-luxe:hover {
  transform: translateY(-3px) scale(1.01);
}

.btn-luxe-outline:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 146, 255, 0.62);
}

.hero-grid-revamped {
  gap: 2.4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy p {
  max-width: 60ch;
}

.hero-copy {
  position: relative;
  z-index: 3;
  margin-top: -1rem;
}

.hero-home .hero-copy h1 {
  color: #f5f8ff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.56);
}

.hero-home .hero-copy p {
  color: rgba(226, 234, 255, 0.9);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}

.hero-scene {
  position: relative;
  min-height: 520px;
  border-radius: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  box-shadow: none;
}

@keyframes heroShapeFloat {
  0%, 100% {
    transform: translateY(0) rotate(var(--shape-rot, 0deg));
  }
  50% {
    transform: translateY(16px) rotate(var(--shape-rot, 0deg));
  }
}

@keyframes heroShapeIntro {
  0% {
    opacity: 0;
    transform: translateY(-85px) scale(0.92) rotate(calc(var(--shape-rot, 0deg) - 9deg));
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(var(--shape-rot, 0deg));
  }
}

.hero-bars {
  position: absolute;
  width: 430px;
  height: 430px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%);
  animation: ringTurn 19s linear infinite;
  display: none;
}

.hero-bars span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 280px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(var(--r));
  background: linear-gradient(
    90deg,
    rgba(243, 145, 58, 0) 0%,
    rgba(247, 146, 58, 0.88) 23%,
    rgba(255, 191, 123, 1) 50%,
    rgba(247, 146, 58, 0.88) 76%,
    rgba(243, 145, 58, 0) 100%
  );
  background-size: 180% 100%;
  animation: barFlow 3.2s linear infinite;
  animation-delay: var(--d);
  filter: drop-shadow(0 0 8px rgba(247, 146, 58, 0.42));
}

.hero-figure-wrap {
  position: absolute;
  z-index: 2;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
}

.hero-figure {
  width: min(270px, 52vw);
  height: auto;
}

.hero-figure-photo {
  width: min(360px, 62vw);
  clip-path: polygon(30% 2%, 70% 2%, 80% 12%, 87% 28%, 90% 48%, 88% 67%, 83% 84%, 76% 100%, 24% 100%, 17% 84%, 12% 67%, 10% 48%, 13% 28%, 20% 12%);
  mix-blend-mode: multiply;
  filter: contrast(1.06) saturate(1.04);
}

.customer-card {
  position: absolute;
  right: 20px;
  bottom: 22px;
  z-index: 3;
  min-width: 250px;
  padding: 0.9rem 1rem;
  border-radius: 15px;
  border: 1px solid rgba(189, 209, 245, 0.34);
  background: rgba(247, 250, 255, 0.95);
  color: #17223d;
  box-shadow: 0 14px 28px rgba(5, 11, 24, 0.36);
  animation: cardFloat 3.8s ease-in-out infinite;
}

.customer-card-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #4f5f82;
  margin-bottom: 0.35rem;
}

.customer-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  border: 2px solid #fff;
  margin-right: -8px;
}

.avatars span:nth-child(1) { background: #3c8cff; }
.avatars span:nth-child(2) { background: #00a1d8; }
.avatars span:nth-child(3) { background: #1f355e; }

.customer-count {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.customer-stars {
  font-size: 0.77rem;
  letter-spacing: 0.2px;
  color: #556487;
}

@keyframes ringTurn {
  from { transform: translate(-50%, -48%) rotate(0deg); }
  to { transform: translate(-50%, -48%) rotate(360deg); }
}

@keyframes barFlow {
  0% {
    background-position: 0% 50%;
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
  100% {
    background-position: 180% 50%;
    opacity: 0.45;
  }
}

@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes strokePulse {
  0%, 100% {
    transform: rotate(-35deg) scaleX(0.25);
    opacity: 0.45;
  }
  50% {
    transform: rotate(-35deg) scaleX(1);
    opacity: 1;
  }
}

.hero-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.hero-card .mock-ui {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #070d1a;
  overflow: hidden;
}

.mock-ui-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.mock-ui-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffbf5f;
}

.mock-ui-head span:nth-child(2) { background: #7fda75; }
.mock-ui-head span:nth-child(3) { background: #6ca9ff; }

.mock-ui-body {
  padding: 1rem;
  display: grid;
  gap: 0.75rem;
}

.mock-row {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 146, 255, 0.35), rgba(255, 255, 255, 0.12));
}

.mock-row.short { width: 70%; }
.mock-row.mid { width: 85%; }

.grid-3,
.grid-4 {
  display: grid;
  gap: 1rem;
}

.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 146, 255, 0.55);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 146, 255, 0.14);
  border: 1px solid rgba(47, 146, 255, 0.42);
  margin-bottom: 0.8rem;
}

.icon-badge svg {
  width: 23px;
  height: 23px;
  fill: #a9d2ff;
}

.services-showcase {
  padding-top: 0.6rem;
}

.services-head {
  text-align: center;
  margin-bottom: 2rem;
}

.services-pill,
.feature-pill,
.process-pill,
.testimonials-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 108px;
  padding: 0.34rem 1rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #ff6f1a;
  background:
    linear-gradient(180deg, #ffd8bc 0%, #ffe9d8 56%, #fff8f1 100%);
  border: 2px solid #f2b98f;
  box-shadow:
    inset 0 -14px 20px rgba(255, 255, 255, 0.95),
    inset 0 5px 11px rgba(255, 161, 96, 0.28),
    0 2px 8px rgba(216, 130, 70, 0.16);
}

.services-head h2 {
  font-size: clamp(2rem, 1.7rem + 1.8vw, 4rem);
  line-height: 1.08;
  max-width: 17ch;
  margin: 0 auto;
  color: #111827;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-panel {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: linear-gradient(180deg, #ecece3, #e6e6dc);
  padding: 2.2rem 2rem 1.9rem;
  color: #282b34;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  z-index: 1;
}

.service-panel::before {
  content: none;
}

.service-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: rgba(25, 119, 223, 0.12);
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 0;
}

.service-panel:hover {
  transform: scale(1.03);
  border-color: rgba(111, 144, 190, 0.5);
  box-shadow: 0 10px 24px rgba(2, 8, 20, 0.18);
  z-index: 4;
}

.service-panel:hover::before {
  opacity: 1;
}

/* Services cards should reveal from above while scrolling into view */
.services-grid .service-panel.reveal {
  transform: translateY(-28px);
}

.services-grid .service-panel.reveal.is-visible {
  transform: translateY(0);
}

.services-grid .service-panel.reveal.is-visible:hover {
  transform: scale(1.03);
}

.service-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transition: transform 0.28s ease, background 0.28s ease;
}

.service-icon svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

.service-icon-mobile { background: #ff7a1f; }
.service-icon-flutter { background: #f0cb2f; }
.service-icon-web { background: #2cb482; }
.service-icon-ai { background: #ff7a1f; }

.service-panel h3 {
  font-size: clamp(2rem, 1.55rem + 1vw, 3rem);
  line-height: 1.04;
  margin-bottom: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
  z-index: 1;
}

.service-panel p {
  color: #5a5f69;
  font-size: 1rem;
  max-width: 39ch;
  position: relative;
  z-index: 1;
}

.service-arrow {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 2rem;
  line-height: 1;
  color: #686d76;
  transition: transform 0.25s ease, color 0.25s ease;
  position: relative;
  z-index: 1;
}

.service-panel:hover .service-arrow {
  color: #686d76;
  transform: none;
}

.service-panel:hover h3 {
  color: inherit;
}

.service-panel:hover p {
  color: #5a5f69;
}

.service-panel:hover .service-icon {
  transform: none;
}

.service-panel:hover .service-icon svg {
  fill: #fff;
}

.service-panel:hover .service-float-tag {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
}

.service-float-tag {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-10px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.service-panel:hover .service-float-tag {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.features-section {
  background: #f1f0e9;
  color: #23252b;
}

.features-layout {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: 2.3rem;
  align-items: stretch;
}

.feature-media-card {
  border-radius: 30px;
  background: #2eb37d;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.feature-media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.features-content {
  padding-top: 0.7rem;
}

.feature-pill {
  margin-bottom: 1rem;
}

.features-title {
  font-size: clamp(2rem, 1.35rem + 2vw, 4.1rem);
  line-height: 1.08;
  color: #23252b;
  margin-bottom: 1.6rem;
}

.feature-accordion {
  margin-top: 0.7rem;
}

.feature-item {
  border-bottom: 1px solid #d7d7d0;
}

.feature-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  color: #23252b;
  padding: 1.35rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  font-size: clamp(1.25rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 700;
  cursor: pointer;
}

.feature-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #24262d;
  color: #fff;
  transition: transform 0.28s ease, background-color 0.22s ease;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.feature-item.is-open .feature-icon {
  transform: rotate(180deg);
  background: #24262d !important;
  color: #fff !important;
}

.feature-trigger:focus-visible .feature-icon,
.feature-trigger:active .feature-icon {
  background: #24262d !important;
  color: #fff !important;
}

.feature-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.38s ease, opacity 0.32s ease, padding-bottom 0.32s ease;
  padding-bottom: 0;
}

.feature-panel p {
  color: #5c606c;
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.65;
}

.feature-item.is-open .feature-panel {
  opacity: 1;
  padding-bottom: 1.15rem;
}

.process-section {
  background: #ffffff;
  color: #23252b;
  padding-top: 4.2rem;
}

.process-head {
  text-align: center;
  margin-bottom: 2.1rem;
}

.process-title {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 4.1rem);
  line-height: 1.08;
  color: #23252b;
}

.process-track {
  display: flex;
  gap: 1rem;
  min-height: 460px;
  height: 460px;
  align-items: stretch;
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #25262c;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #f2f2f2;
  flex: 0.28;
  min-width: 110px;
  padding: 1.55rem 0.95rem;
  height: 100%;
  transition: flex 2s cubic-bezier(0.22, 0.61, 0.36, 1), box-shadow 2s ease, transform 2s ease;
  overflow: hidden;
  outline: none;
}

.process-step .process-dot {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #08214e;
  background: #f6c5a6;
  margin: 0 0 1.2rem;
}

.process-step:nth-child(2) .process-dot {
  background: #a9e3cb;
}

.process-step:nth-child(3) .process-dot {
  background: #f3e5a6;
}

.process-vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.03em;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1;
  margin: 0;
  text-align: left;
}

.process-detail {
  max-height: 0;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  overflow: hidden;
  transition: max-height 2s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.9s ease, transform 0.9s ease;
}

.process-detail-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.process-detail-head h3 {
  font-size: clamp(1.25rem, 1.05rem + 1.2vw, 2.2rem);
  line-height: 1.1;
}

.process-detail p {
  color: #c4c4c6;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 58ch;
}

.process-step.is-active {
  flex: 1.6;
  box-shadow: 0 16px 34px rgba(8, 9, 14, 0.22);
}

.process-step.is-active .process-vertical,
.process-step.is-active > .process-dot {
  display: none;
}

.process-step.is-active .process-detail {
  max-height: 360px;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonials-section {
  width: min(100% - 2.4rem, var(--container));
  margin-inline: auto;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(0, 123, 255, 0.2) 0%, transparent 38%),
    radial-gradient(circle at 90% 20%, rgba(47, 146, 255, 0.18) 0%, transparent 35%),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 220px 220px, 220px 220px, auto;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.testimonials-wrap {
  position: relative;
  border-radius: 0;
  padding: 1.2rem 2.2rem 0.3rem;
  background: transparent;
  overflow: visible;
}

.testimonials-wrap::before,
.testimonials-wrap::after {
  content: none;
}

.testimonials-head {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonials-title {
  margin-top: 0.85rem;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 4rem);
  line-height: 1.1;
  color: #f0eddf;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  background: #f4f4f5;
  border-radius: 24px;
  border: 1px solid #d8d8db;
  padding: 1.65rem 1.35rem 1.3rem;
  color: #20222a;
  transform: rotate(0deg);
  transition: transform 0.75s ease, box-shadow 0.75s ease;
  box-shadow: 0 7px 18px rgba(10, 12, 20, 0.1);
}

.testimonials-grid:hover .testimonial-card {
  transform: rotate(0deg);
}

.testimonial-card:hover {
  transform: rotate(-2.1deg) scale(1.04);
  box-shadow: 0 16px 32px rgba(8, 10, 16, 0.24);
}

/* Keep hovered card tilt active even when parent is hovered */
.testimonials-grid:hover .testimonial-card:hover {
  transform: rotate(-2.1deg) scale(1.04);
}

.testimonial-brand {
  font-size: clamp(1.7rem, 1.2rem + 1vw, 2.4rem);
  margin-bottom: 0.9rem;
}

.testimonial-copy {
  font-size: 1.03rem;
  line-height: 1.6;
  color: #1d3357;
  min-height: 158px;
}

.testimonial-person {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.7rem;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 52px;
  text-align: center;
  color: #0f1f3f;
  border: 2px solid rgba(255, 255, 255, 0.72);
  padding: 0;
}

.avatar-1 {
  background: #f6d886;
}

.avatar-2 {
  background: #8dd9bb;
}

.avatar-3 {
  background: #f7b687;
}

.testimonial-person strong {
  display: block;
  font-size: 1.05rem;
  color: #23252e;
}

.testimonial-person > div span {
  display: block;
  color: #585d69;
  font-size: 0.95rem;
}

.card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.card p {
  color: var(--muted);
  font-size: 0.96rem;
}

.stats {
  margin-top: 1.8rem;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.about-snippet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.projects-wrap {
  margin-top: 1.6rem;
}

.project-card img {
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 0.85rem;
}

.contact-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: linear-gradient(130deg, rgba(47, 146, 255, 0.2), rgba(255, 255, 255, 0.04));
  padding: 1.25rem;
  border-radius: var(--radius);
}

.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-card,
.contact-info {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(47, 146, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(47, 146, 255, 0.18);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group {
  margin-bottom: 0.95rem;
}

.form-status {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  color: var(--success);
}

.map-placeholder {
  margin-top: 1rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  min-height: 220px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  margin-top: 2rem;
}

.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 0.9rem;
}

.socials a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.socials a:hover {
  color: var(--text);
}

/* Animation utility */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.15s ease, transform 1.15s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Upward reveal variant used by the features section */
.features-section .reveal {
  transform: translateY(-24px);
}

.features-section .reveal.is-visible {
  transform: translateY(0);
}

/* Stagger effect */
.stagger > * {
  transition-delay: var(--delay, 0ms);
}

/* Mobile styles */
@media (max-width: 980px) {
  .hero-grid,
  .features-layout,
  .about-snippet,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .site-header-home .nav-wrap {
    margin-top: 0.7rem;
  }

  .site-header-services .nav-wrap {
    margin-top: 0.7rem;
  }

  .site-header-home .logo-link {
    margin-left: 0.35rem;
  }

  .site-header-services .logo-link {
    margin-left: 0.35rem;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-wrap {
    padding: 1rem 0.8rem 0.5rem;
  }

  .testimonials-section {
    width: calc(100% - 1.2rem);
    border-radius: 24px;
    padding-top: 2.1rem;
    padding-bottom: 2rem;
  }

  .testimonial-copy {
    min-height: 0;
  }

  .process-track {
    min-height: 0;
    height: auto;
    flex-direction: column;
    gap: 0.9rem;
  }

  .process-step,
  .process-step.is-active {
    flex: 1 1 auto;
    height: auto;
  }

  .process-step {
    min-width: 0;
    min-height: 0;
    overflow: visible;
    padding: 1.2rem 1.05rem;
  }

  .process-step .process-dot,
  .process-vertical {
    display: none;
  }

  .process-detail {
    max-height: none;
    overflow: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .services-pill,
  .feature-pill,
  .process-pill,
  .testimonials-pill {
    font-size: 0.95rem;
    min-height: 32px;
    min-width: 92px;
    padding: 0.3rem 0.85rem;
  }

  .service-panel h3 {
    font-size: clamp(1.8rem, 1.4rem + 1.2vw, 2.6rem);
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 78px;
    background: rgba(6, 8, 13, 0.97);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    display: grid;
    padding: 1rem 1.2rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }

  .site-header-home .nav-menu {
    top: 88px;
    border-radius: 0 0 18px 18px;
    left: 0;
    right: 0;
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    transform: scaleY(0);
  }

  .site-header-services .nav-menu {
    top: 88px;
    border-radius: 0 0 18px 18px;
    left: 0;
    right: 0;
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    transform: scaleY(0);
    background: rgba(29, 29, 32, 0.97);
  }

  .nav-links {
    display: grid;
    gap: 0.65rem;
  }

  .site-header-home .nav-links {
    position: static;
    top: auto;
    left: auto;
    transform: none;
  }

  .site-header-home .nav-cta {
    display: none;
  }

  .site-header-services .nav-cta {
    display: none;
  }

  .nav-menu.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-toggle {
    display: grid;
  }

  .hero-scene {
    min-height: 480px;
  }

  .hero-bars {
    width: 360px;
    height: 360px;
  }

  .hero-bars span {
    width: 238px;
  }

  .hero-shape-lg {
    width: min(640px, 86vw);
    left: -22%;
  }

  .hero-shape-bottom,
  .hero-shape-corner {
    display: none;
  }

  .hero-shape-right-mid,
  .hero-shape-right-low {
    display: none;
  }

  .feature-media-card {
    min-height: 460px;
  }

  .services-hero-banner {
    min-height: 520px;
    margin-top: -102px;
    padding-top: 156px;
  }

  .services-hero-content {
    padding-top: 5.8rem;
  }

  .customer-card {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.3rem 0;
  }

  .services-section-home {
    margin-top: -1.4rem;
    padding-top: 3.2rem;
  }

  .hero {
    padding-top: 5.7rem;
  }

  .hero-home {
    margin-top: 0;
    padding-top: 1.8rem;
    padding-bottom: 4.6rem;
  }

  .hero-shape-lg {
    width: 105vw;
    height: 118px;
    left: -36%;
    top: 34%;
  }

  .hero-shape-md {
    width: 290px;
    height: 82px;
    top: 16%;
    right: -24%;
  }

  .hero-shape-sm {
    width: 250px;
    height: 74px;
    bottom: 10%;
    left: -8%;
  }

  .hero-shape-xs,
  .hero-shape-xxs {
    display: none;
  }

  .hero-home::after {
    content: none;
  }

  .hero-home::before {
    content: none;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .services-head h2 {
    max-width: 13ch;
  }

  .service-panel {
    padding: 1.6rem 1.2rem 1.4rem;
  }

  .features-title {
    margin-bottom: 1rem;
  }

  .feature-trigger {
    padding: 1rem 0;
    font-size: clamp(1.08rem, 1rem + 1.8vw, 1.5rem);
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .feature-media-card {
    min-height: 350px;
  }

  .process-title {
    margin-top: 0.6rem;
  }

  .service-icon {
    width: 68px;
    height: 68px;
  }

  .service-icon svg {
    width: 28px;
    height: 28px;
  }

  .site-header-home .nav-wrap {
    min-height: 74px;
    padding-left: 0.8rem;
    padding-right: 0.4rem;
  }

  .site-header-services .nav-wrap {
    min-height: 74px;
    padding-left: 0.8rem;
    padding-right: 0.4rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .services-hero-banner {
    min-height: 470px;
    margin-top: -92px;
    padding-top: 138px;
  }

  .services-hero-content {
    padding-top: 4.6rem;
  }

  .services-hero-content p {
    max-width: 27ch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-scene {
    display: none;
  }

  .hero-bars {
    width: 290px;
    height: 290px;
  }

  .hero-bars span {
    width: 185px;
    height: 9px;
  }

  .hero-figure {
    width: min(230px, 64vw);
  }

  .hero-figure-photo {
    width: min(312px, 72vw);
  }

  .headline-main {
    display: inline;
  }

  .headline-line {
    white-space: normal;
  }

  .headline-strokes {
    display: inline-grid;
    margin-left: 0.45rem;
    vertical-align: middle;
  }

  .headline-strokes i {
    width: 28px;
    height: 10px;
  }

  .customer-card {
    position: static;
    margin: 0.9rem 0.9rem 1rem;
    min-width: unset;
    animation: none;
  }
}

@media (max-width: 640px) {
  .logo-link img {
    width: 178px;
  }
}
