/* ----------------------------------------------------
   illusion Med — Design System, Tokens & Animations
   Palette: deep forest teal (single accent) + warm ink
   neutrals + ivory. Dark hero, solid-surface cards.
   ---------------------------------------------------- */

:root {
  /* Colors — one accent (deep forest teal), warm neutrals */
  --color-primary: #0c6e58;
  --color-primary-hover: #094f3f;
  --color-secondary: #082e26;
  /* near-black teal-ink, used for gradient depth */
  --color-accent: #0c6e58;

  --color-bg-light: #faf8f3;
  /* warm ivory */
  --color-bg-alt: #f2efe5;
  /* warm alt section bg */
  --color-white: #ffffff;

  --color-ink-dark: #10221c;
  /* near-black, warm undertone */
  --color-ink-medium: #3c4a44;
  --color-ink-muted: #707a73;

  --color-line: #e4e0d2;
  --color-line-glass: rgba(228, 224, 210, 0.7);

  /* Status Colors */
  --color-error: #b3402f;
  --color-success: #157a5c;

  /* Gradients — one accent family only */
  --grad-primary: linear-gradient(135deg, #0e8a6c 0%, #082e26 100%);
  --grad-text: linear-gradient(135deg, #22b591 0%, #0c6e58 100%);

  /* Dark hero surface */
  --color-hero-bg-1: #0a1a15;
  --color-hero-bg-2: #0e2019;
  --color-hero-text: #f5f2e9;
  --color-hero-text-muted: rgba(245, 242, 233, 0.68);
  --color-hero-accent: #8fe0c4;

  /* Layout & Fonts */
  --font-family-headings: 'Outfit', sans-serif;
  --font-family-body: 'Inter', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family-body);
  color: var(--color-ink-medium);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

#scrollSentinel {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-family-headings);
  color: var(--color-ink-dark);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-weight: 800;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul {
  list-style: none;
}

/* Grid & Container Layouts */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
  position: relative;
}

.alt-bg {
  background-color: var(--color-bg-alt);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-bounce);
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(12, 110, 88, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(12, 110, 88, 0.4);
}

.btn-secondary {
  background-color: var(--color-white);
  border-color: var(--color-line);
  color: var(--color-ink-dark);
  box-shadow: 0 4px 6px -1px rgba(16, 34, 28, 0.05);
}

.btn-secondary:hover {
  background-color: var(--color-bg-light);
  border-color: var(--color-ink-muted);
  transform: translateY(-2px);
}

.btn-tertiary {
  background: transparent;
  color: var(--color-ink-medium);
  padding: 12px 16px;
}

.btn-tertiary:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Glassmorphism: reserved for the hero card + sticky nav only —
   solid surface panels (below) are used everywhere else. */
.glass-panel {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-line-glass);
  box-shadow: 0 25px 50px -15px rgba(8, 20, 16, 0.35);
}

/* Solid surface card: the default panel treatment for content sections. */
.surface-panel {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  box-shadow: 0 1px 2px rgba(16, 34, 28, 0.04), 0 18px 40px -20px rgba(16, 34, 28, 0.12);
}

/* Header & Nav */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-blur-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 248, 243, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  z-index: -1;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav-container.scrolled .nav-blur-bg {
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-line-glass);
  box-shadow: 0 10px 30px -10px rgba(16, 34, 28, 0.1);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.35s ease;
}

.nav-container.scrolled .nav-content {
  padding: 12px 24px;
}

.nav-container.scrolled .logo1-img {
  height: 38px;
}

.logo1 {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-family-headings);
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.5px;
}

.logo1-img {
  height: 48px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
  transition: var(--transition-smooth);
}

.logo1-brand,
.logo1-suffix {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  transition: var(--transition-smooth);
}

/* Nav sits transparent over the dark hero, with light text, until scrolled */
.nav-container:not(.scrolled) .logo1-brand,
.nav-container:not(.scrolled) .logo1-suffix {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--color-hero-text);
  position: relative;
  padding: 4px 0;
  transition: var(--transition-smooth);
}

.nav-container.scrolled .nav-link {
  color: var(--color-ink-medium);
}

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

.nav-container.scrolled .nav-link:hover,
.nav-container.scrolled .nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-hero-accent);
  transition: transform var(--transition-smooth);
}

.nav-container.scrolled .nav-link::after {
  background: var(--color-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(-50%) scale(1);
}

.nav-cta-btn {
  background: var(--grad-primary) !important;
  color: var(--color-white) !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(12, 110, 88, 0.25);
  font-weight: 700;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth) !important;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 110, 88, 0.35);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-hero-text);
  transition: var(--transition-smooth);
}

.nav-container.scrolled .mobile-toggle .bar {
  background-color: var(--color-ink-dark);
}

/* Hero Section — deep ink surface, the strongest "considered, not templated" signal */
.hero-section {
  /* The nav is sticky (in normal flow, not overlaying), so this only needs
     to fill the remaining viewport height below it — not a full 100dvh. */
  min-height: calc(100dvh - 86px);
  padding: 48px 0 64px;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(165deg, var(--color-hero-bg-1) 0%, var(--color-hero-bg-2) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Layered background: dot grid + soft radial glow + drifting blur blobs + grain */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute;
  top: 46%;
  left: 30%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(34, 181, 145, 0.18) 0%, transparent 65%);
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -100px;
  background: radial-gradient(circle, rgba(31, 174, 134, 0.45) 0%, transparent 70%);
  animation: blobDriftA 24s ease-in-out infinite;
}

.hero-blob-2 {
  width: 380px;
  height: 380px;
  bottom: -160px;
  right: 8%;
  background: radial-gradient(circle, rgba(12, 110, 88, 0.4) 0%, transparent 70%);
  animation: blobDriftB 28s ease-in-out infinite;
}

.hero-blob-3 {
  width: 280px;
  height: 280px;
  top: 22%;
  right: -110px;
  background: radial-gradient(circle, rgba(143, 224, 196, 0.3) 0%, transparent 70%);
  animation: blobDriftA 32s ease-in-out infinite reverse;
}

@keyframes blobDriftA {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(28px, -22px) scale(1.08);
  }
}

@keyframes blobDriftB {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-24px, 20px) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    animation: none !important;
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text-content,
.hero-visual {
  min-width: 0;
}

/* Fade-up entrance, staggered. Reduced-motion users get the global override below. */
.hero-text-content>* {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-text-content>*:nth-child(1) {
  animation-delay: 0.05s;
}

.hero-text-content>*:nth-child(2) {
  animation-delay: 0.16s;
}

.hero-text-content>*:nth-child(3) {
  animation-delay: 0.28s;
}

.hero-text-content>*:nth-child(4) {
  animation-delay: 0.4s;
}

.hero-text-content>*:nth-child(5) {
  animation-delay: 0.52s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-text-content>* {
    opacity: 1;
    animation: none;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: rgba(12, 110, 88, 0.08);
  border: 1px solid rgba(12, 110, 88, 0.18);
  color: var(--color-primary);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-badge {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--color-hero-accent);
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-hero-accent);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

.hero-title {
  font-size: clamp(2.25rem, 4.6vw, 3.85rem);
  line-height: 1.14;
  margin: 20px 0;
  letter-spacing: -1px;
  color: var(--color-hero-text);
}

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

.hero-title .gradient-text {
  background: linear-gradient(90deg, #22b591, #b4ebd8, #22b591);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradientShift 7s ease-in-out infinite;
}

@keyframes gradientShift {

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

  50% {
    background-position: 100% 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title .gradient-text {
    animation: none;
    background-position: 0% 50%;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-hero-text-muted);
  max-width: 600px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-section .btn-tertiary {
  color: var(--color-hero-text);
}

.hero-section .btn-tertiary:hover {
  color: var(--color-hero-accent);
}

.btn-tertiary svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-tertiary:hover svg {
  transform: translateX(4px);
}

.btn-large {
  padding: 18px 38px;
  font-size: 1.02rem;
  border-radius: 10px;
}

.hero-actions .btn-primary {
  box-shadow: 0 10px 30px -6px rgba(34, 181, 145, 0.4), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-actions .btn-primary:hover {
  box-shadow: 0 16px 40px -8px rgba(34, 181, 145, 0.5), 0 4px 14px rgba(0, 0, 0, 0.32);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-hero-text-muted);
}

.hero-trust-item svg {
  color: var(--color-hero-accent);
  flex-shrink: 0;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 100%;
  height: 520px;
  align-items: center;
}

.mesh-container {
  position: absolute;
  top: -40px;
  left: -80px;
  width: calc(100% + 160px);
  height: calc(100% + 80px);
  z-index: 0;
  pointer-events: none;
}

#heroMeshCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-card {
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
    linear-gradient(135deg, rgba(34, 181, 145, 0.55), rgba(255, 255, 255, 0.12) 45%, rgba(34, 181, 145, 0.35));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5), 0 0 70px -15px rgba(34, 181, 145, 0.3);
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* Small floating credibility chips around the hero card — qualitative,
   not fabricated metrics or client logo1s (see project notes). */
.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 18px 34px -12px rgba(0, 0, 0, 0.45);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-medium);
  white-space: nowrap;
  pointer-events: none;
}

.hero-chip svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.hero-chip-1 {
  top: 4%;
  left: -4%;
  animation: float 7s ease-in-out infinite;
  animation-delay: 0.3s;
}

.hero-chip-2 {
  bottom: 10%;
  left: -9%;
  animation: float 8.5s ease-in-out infinite reverse;
  animation-delay: 0.8s;
}

@media (max-width: 1160px) {
  .hero-chip {
    display: none;
  }
}

.hero-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-line-glass);
}

.hero-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-ink-medium);
}

.hero-card-body {
  padding: 24px;
}

.capability-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.capability-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.capability-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background-color: rgba(12, 110, 88, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(12, 110, 88, 0.16);
}

.capability-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.capability-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-ink-medium);
}

.capability-desc {
  font-size: 0.82rem;
  color: var(--color-ink-muted);
}

.disclaimer-text {
  font-size: 0.78rem;
  color: var(--color-ink-muted);
  line-height: 1.4;
  margin-top: 24px;
  border-top: 1px solid var(--color-line-glass);
  padding-top: 16px;
}

/* Sections General Header */
.section-header {
  max-width: 700px;
  margin-bottom: 60px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  display: inline-block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-ink-muted);
}

/* Cards System — solid surfaces, one accent on hover */
.card {
  border-radius: 16px;
  padding: 36px;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth), transform var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-line);
}

.card:hover,
.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(16, 34, 28, 0.12);
}

/* About Section: intro + divided pillar list (asymmetric, no card grid) */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 60px;
  align-items: start;
}

.about-intro .section-title {
  margin-bottom: 16px;
}

.pillar-list {
  display: flex;
  flex-direction: column;
}

.pillar-row {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--color-line);
}

.pillar-row:last-child {
  border-bottom: 1px solid var(--color-line);
}

.pillar-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 110, 88, 0.08);
  color: var(--color-primary);
}

.pillar-copy {
  min-width: 0;
}

.pillar-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.pillar-text {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 14px;
}

.card-text {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Services Section: one featured row + a 3+2 asymmetric grid (one accent throughout) */
.services-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card.featured {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.service-featured-copy {
  min-width: 0;
}

.service-featured-copy .service-title {
  margin-bottom: 10px;
}

.services-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

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

.service-card:hover {
  border-color: rgba(12, 110, 88, 0.45);
  box-shadow: 0 0 0 3px rgba(12, 110, 88, 0.12), 0 25px 50px -12px rgba(16, 34, 28, 0.15);
}

.service-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(12, 110, 88, 0.1);
  color: var(--color-primary);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.package-card {
  display: flex;
  flex-direction: column;
}

.package-card.featured {
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  box-shadow: 0 25px 50px -12px rgba(12, 110, 88, 0.18);
  transform: scale(1.03);
  overflow: visible;
}

/* Pricing Card Hover — one accent, weight (not hue) signals emphasis */
.package-card:hover {
  border-color: rgba(12, 110, 88, 0.55);
  box-shadow: 0 0 0 3px rgba(12, 110, 88, 0.14), 0 25px 50px -12px rgba(16, 34, 28, 0.16);
}

.package-card.growth:hover {
  transform: scale(1.03) translateY(-6px);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(12, 110, 88, 0.35);
  z-index: 10;
  white-space: nowrap;
}

.package-badge {
  background-color: var(--color-bg-alt);
  color: var(--color-ink-medium);
  border-color: var(--color-line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
}

.package-card.featured .package-badge {
  background-color: rgba(12, 110, 88, 0.1);
  color: var(--color-primary);
  border-color: transparent;
}

.package-title {
  margin: 16px 0 10px;
  font-size: 1.35rem;
}

.package-desc {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
  min-height: 50px;
}

.divider {
  border: 0;
  height: 1px;
  background-color: var(--color-line);
  margin: 24px 0;
}

.package-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.package-features {
  margin-bottom: 30px;
  flex-grow: 1;
}

.package-features li {
  font-size: 0.92rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--color-ink-medium);
}

.check-icon {
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.package-btn {
  margin-top: auto;
}

.pricing-disclaimer {
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

/* Tech tier list: horizontal comparison rows instead of a third vertical card grid.
   Bronze/Silver/Gold are kept as a real tier signal, not decorative rainbow coding. */
.tech-tier-list {
  border-radius: 16px;
  overflow: hidden;
}

.tech-tier-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr) auto;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  border-bottom: 1px solid var(--color-line);
  transition: var(--transition-smooth);
}

.tech-tier-row:last-child {
  border-bottom: none;
}

.tech-tier-row:hover {
  background-color: rgba(12, 110, 88, 0.04);
}

.tech-tier-lead,
.tech-tier-body {
  min-width: 0;
}

.tech-tier-lead .card-title {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.tech-tier-body .card-text {
  margin-bottom: 14px;
}

.tech-tier-cta {
  justify-self: end;
}

.tech-card-btn {
  white-space: nowrap;
}

.tech-badge {
  background-color: rgba(16, 34, 28, 0.05);
  color: var(--color-ink-muted);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  margin-bottom: 12px;
  display: inline-block;
}

.tech-badge.bronze {
  background: rgba(178, 105, 42, 0.12);
  color: #8a5423;
  border: 1px solid rgba(178, 105, 42, 0.25);
}

.tech-badge.silver {
  background: rgba(100, 116, 139, 0.15);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.tech-badge.gold {
  background: rgba(180, 130, 20, 0.14);
  color: #8f6a10;
  border: 1px solid rgba(180, 130, 20, 0.28);
}

.tech-pricing {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-family-headings);
  margin: 12px 0 16px;
}

.tech-bullets {
  border-top: 1px solid var(--color-line);
  padding-top: 20px;
  margin-top: 20px;
}

.tech-bullets li {
  font-size: 0.88rem;
  position: relative;
  padding-left: 16px;
  margin-bottom: 8px;
  color: var(--color-ink-muted);
}

.tech-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.tech-ownership-panel {
  margin-top: 50px;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ownership-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background-color: rgba(12, 110, 88, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ownership-text {
  min-width: 0;
}

.ownership-text h4 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.ownership-text p {
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* Process Section */
.process-tabs-container {
  max-width: 900px;
  margin: 0 auto;
}

.process-tabs {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
}

.process-tab-btn {
  background: transparent;
  border: none;
  font-size: 1.05rem;
  font-family: var(--font-family-headings);
  font-weight: 700;
  color: var(--color-ink-muted);
  cursor: pointer;
  padding: 12px 20px;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.process-tab-btn .step-badge {
  font-size: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--color-line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.process-tab-btn.active {
  color: var(--color-primary);
}

.process-tab-btn.active .step-badge {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.process-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-primary);
  transition: var(--transition-smooth);
}

.process-tab-btn.active::after {
  width: 100%;
}

.process-content {
  display: none;
  animation: fadeIn 0.5s ease;
}

.process-content.active {
  display: block;
}

.process-pane {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  padding: 40px;
  min-height: 380px;
}

.process-pane-text h3 {
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.process-pane-text p {
  color: var(--color-ink-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-list li {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--color-ink-medium);
  display: flex;
  align-items: center;
  gap: 10px;
}

.process-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.process-pane-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-highlight {
  width: 100%;
  border-radius: 14px;
  padding: 36px;
  background-color: var(--color-bg-alt);
  border-left: 3px solid var(--color-primary);
}

.process-highlight-label {
  display: block;
  font-family: var(--font-family-headings);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-ink-dark);
  margin-bottom: 14px;
}

.process-highlight-text {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Contact Section & Form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 50px;
  border-radius: 20px;
  padding: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.contact-desc {
  color: var(--color-ink-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-detail-item span {
  min-width: 0;
  overflow-wrap: break-word;
}

.contact-detail-item .icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(12, 110, 88, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-form-wrapper {
  position: relative;
  min-height: 450px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: opacity 0.3s ease;
}

.form-group {
  position: relative;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background-color: var(--color-white);
  color: var(--color-ink-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(12, 110, 88, 0.14);
}

.form-textarea {
  resize: vertical;
}

.form-label {
  position: absolute;
  left: 16px;
  top: 17px;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label {
  top: -9px;
  left: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: var(--color-white);
  padding: 0 6px;
}

.error-msg {
  display: none;
  font-size: 0.75rem;
  color: var(--color-error);
  font-weight: 600;
  margin-top: 4px;
  margin-left: 4px;
}

.form-group.invalid .form-input {
  border-color: var(--color-error);
}

.form-group.invalid .error-msg {
  display: block;
}

.form-submit-btn {
  padding: 16px;
}

/* Success Form Alert */
.form-success-alert {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  padding: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.form-success-alert.show {
  display: flex;
}

.success-icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(21, 122, 92, 0.1);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  animation: pulseSuccess 2s infinite;
}

.form-success-alert h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.form-success-alert p {
  color: var(--color-ink-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}

/* Footer styling */
.footer-section {
  background-color: var(--color-hero-bg-1);
  color: #9aaba3;
  padding: 80px 0 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 50px;
  margin-bottom: 50px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo1 {
  color: var(--color-white);
  margin-bottom: 20px;
  display: inline-flex;
}

.footer-brand-tagline {
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-copyright {
  font-size: 0.8rem;
  color: #6b7d75;
  line-height: 1.5;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.footer-nav-col a {
  font-size: 0.9rem;
  color: #9aaba3;
}

.footer-nav-col a:hover {
  color: var(--color-hero-accent);
  transform: translateX(4px);
}

/* ----------------------------------------------------
   Animations
   ---------------------------------------------------- */

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.5;
  }
}

@keyframes pulseSuccess {
  0% {
    box-shadow: 0 0 0 0 rgba(21, 122, 92, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(21, 122, 92, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(21, 122, 92, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Scroll-triggered reveal (see main.js IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Respect reduced-motion preference: kill continuous/decorative animation,
   keep instant state changes. The hero mesh canvas and card tilt are
   gated separately in main.js. */
@media (prefers-reduced-motion: reduce) {

  .animate-float,
  .badge-dot,
  .success-icon-circle {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------
   Media Queries for Responsiveness
   ---------------------------------------------------- */

@media (max-width: 1024px) {
  .hero-section {
    padding: 40px 0 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
    gap: 40px;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    justify-content: center;
  }

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

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

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

  .tech-tier-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .tech-tier-cta {
    justify-self: start;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  }
}

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

  .hero-section {
    min-height: auto;
    padding: 32px 0 48px;
  }

  .hero-blob {
    filter: blur(60px);
    opacity: 0.7;
  }

  .hero-blob-1,
  .hero-blob-2 {
    width: 260px;
    height: 260px;
  }

  .hero-blob-3 {
    display: none;
  }

  /* Mobile Navigation Menu */
  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100vh - 68px);
    background-color: var(--color-white);
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateX(0);
  }

  /* The mobile dropdown panel is always a solid light surface,
     regardless of nav scroll state, so its text must stay dark. */
  .nav-links .nav-link {
    color: var(--color-ink-medium);
  }

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

  .nav-cta-btn {
    width: 100%;
  }

  .nav-container.open .mobile-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-container.open .mobile-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-container.open .mobile-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Process */
  .process-tabs {
    justify-content: flex-start;
  }

  .process-pane {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    padding: 24px;
  }

  .process-pane-visual {
    order: -1;
  }

  /* Contact Form */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 24px;
    gap: 40px;
  }

  /* Services */
  .service-card.featured {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  /* Tech tier list */
  .tech-tier-row {
    padding: 24px;
  }
}

@media (max-width: 580px) {

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

  .package-card.featured {
    transform: scale(1);
  }

  .package-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .tech-ownership-panel {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
  }
}