@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap");

/* Theme defaults: dark mode is the baseline */
:root {
  --background: 225 20% 6%;
  --foreground: 210 20% 96%;
  --card: 225 20% 10%;
  --card-foreground: 210 20% 96%;
  --border: 225 18% 20%;
  --muted: 225 16% 15%;
  --muted-foreground: 216 16% 68%;
  --primary: 190 100% 60%;
  --primary-foreground: 222 18% 8%;
  --accent: 200 80% 22%;
  --accent-foreground: 210 20% 96%;
  --ring: 190 100% 60%;
  --btn-padding-x: 1.5rem;
  --btn-padding-y: 0.65rem;
  --font-sans: "IBM Plex Sans", "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-serif: "IBM Plex Sans", "SF Pro Display", "Helvetica Neue", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

html[data-theme="light"] {
  --background: 210 20% 98%;
  --foreground: 222 22% 12%;
  --card: 210 20% 100%;
  --card-foreground: 222 22% 12%;
  --border: 210 18% 88%;
  --muted: 210 16% 94%;
  --muted-foreground: 215 15% 45%;
  --primary: 190 95% 40%;
  --primary-foreground: 0 0% 100%;
  --accent: 190 85% 92%;
  --accent-foreground: 222 22% 12%;
  --ring: 190 95% 40%;
}

html {
  color-scheme: dark light;
}

/* Custom scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: hsl(var(--primary) / 0.6) hsl(var(--background) / 0.8);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: hsl(var(--background) / 0.7);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, hsl(var(--primary) / 0.6), hsl(var(--accent) / 0.7));
  border-radius: 999px;
  border: 2px solid hsl(var(--background) / 0.9);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, hsl(var(--primary)), hsl(var(--accent)));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(1200px 600px at 10% -10%, hsl(var(--primary) / 0.12), transparent 60%),
    radial-gradient(800px 400px at 90% 0%, hsl(var(--accent) / 0.25), transparent 60%),
    hsl(var(--background));
  letter-spacing: 0;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  letter-spacing: -0.02em;
}

.text-center h2 {
  background: linear-gradient(120deg, hsl(var(--primary)), hsl(var(--foreground)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 30px hsl(var(--primary) / 0.25);
}

/* Rhythm and spacing */
main > section {
  padding-top: clamp(4rem, 7vw, 8rem) !important;
  padding-bottom: clamp(4rem, 7vw, 8rem) !important;
}

.text-center.mb-16 {
  margin-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

main > section + section {
  border-top: 1px solid hsl(var(--border) / 0.6);
  position: relative;
}

main > section + section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 120px at 50% 0%, hsl(var(--primary) / 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

/* Header styling */
.site-header {
  border-color: hsl(var(--border));
  background: linear-gradient(90deg, hsl(var(--background) / 0.85), hsl(var(--background) / 0.7));
  box-shadow: 0 12px 30px hsl(var(--background) / 0.35);
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, hsl(var(--primary)), transparent);
  transition: width 0.2s ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after {
  width: 100%;
}

.site-header .text-xl,
.site-header .text-2xl {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.brand-lockup {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-mark {
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--primary));
  padding: 0.35rem 0.5rem;
  border-radius: 0.6rem;
  border: 1px solid hsl(var(--primary) / 0.35);
  font-size: 0.85rem;
}

.brand-text {
  font-weight: 700;
  font-size: 1.1rem;
  color: hsl(var(--foreground));
}

.brand-tag {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.7));
  color: hsl(var(--primary-foreground));
  letter-spacing: 0.2em;
}

/* Hero */
.hero-section {
  background-image:
    url("../assets/illustrations/mesh.svg"),
    radial-gradient(600px 240px at 20% 10%, hsl(var(--primary) / 0.35), transparent 60%),
    radial-gradient(500px 320px at 80% 0%, hsl(var(--accent) / 0.45), transparent 65%),
    linear-gradient(180deg, hsl(var(--background) / 0.15), hsl(var(--background) / 0.9));
  background-size: 1400px, cover, cover, cover;
  background-position: 70% 0%, center, center, center;
  background-repeat: no-repeat;
  background-blend-mode: screen, normal, normal, normal, normal;
}

.page-hero-art {
  position: relative;
  background-image:
    url("illustrations/mesh.svg"),
    radial-gradient(700px 320px at 85% 0%, hsl(var(--primary) / 0.35), transparent 60%),
    radial-gradient(600px 280px at 10% 0%, hsl(var(--accent) / 0.35), transparent 60%),
    linear-gradient(180deg, hsl(var(--background) / 0.3), hsl(var(--background) / 0.9)),
    var(--hero-art);
  background-size: 1600px, cover, cover, cover, cover;
  background-position: 70% 0%, center, center, center, center;
  background-repeat: no-repeat;
}

.page-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(var(--background) / 0.85), hsl(var(--background) / 0.2));
  pointer-events: none;
}

.page-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("illustrations/dots.svg"),
    repeating-linear-gradient(135deg, transparent 0, transparent 22px, hsl(var(--foreground) / 0.06) 23px);
  background-size: 620px, auto;
  background-position: 90% 0%, center;
  background-repeat: no-repeat;
  opacity: 0.8;
  pointer-events: none;
}

/* Art accents for section cards */
.about-section .border.rounded-md,
.services-section .border.rounded-md,
.features-section .border.rounded-md,
.portfolio-section .border.rounded-md,
.team-section .border.rounded-md,
.testimonials-section .border.rounded-md {
  background-image:
    linear-gradient(135deg, hsl(var(--card)), hsl(var(--card) / 0.7)),
    radial-gradient(240px 100px at 80% 0%, hsl(var(--primary) / 0.18), transparent 60%);
}

/* Subtle background vignette for full-page sections */
.about-section,
.services-section,
.features-section,
.portfolio-section,
.process-section,
.team-section,
.testimonials-section,
.contact-section {
  background-image:
    radial-gradient(600px 200px at 50% 0%, hsl(var(--primary) / 0.08), transparent 60%);
  background-repeat: no-repeat;
  background-position: 50% 0;
  background-size: cover;
}

.about-section,
.services-section,
.features-section,
.portfolio-section,
.process-section,
.team-section,
.testimonials-section,
.contact-section {
  position: relative;
}

/* Section art images */
.section-art {
  position: absolute;
  top: -4%;
  right: -6%;
  width: min(700px, 85vw);
  max-width: 85%;
  height: auto;
  opacity: 1;
  pointer-events: none;
  z-index: 2;
  filter: saturate(1.4) brightness(1.25) drop-shadow(0 20px 40px hsl(var(--primary) / 0.18));
  mix-blend-mode: screen;
}

.tech-section .section-art,
.team-section .section-art {
  display: none;
}

.tech-section {
  background-image:
    url("illustrations/dots.svg"),
    radial-gradient(600px 200px at 50% 0%, hsl(var(--primary) / 0.1), transparent 60%);
  background-repeat: no-repeat;
  background-position: 85% 0%;
  background-size: 560px, cover;
}

.team-section {
  background-image:
    url("illustrations/mesh.svg"),
    radial-gradient(600px 200px at 50% 0%, hsl(var(--primary) / 0.08), transparent 60%);
  background-repeat: no-repeat;
  background-position: 80% 0%;
  background-size: 640px, cover;
}

 

@media (max-width: 768px) {
  .section-art {
    right: -12%;
    top: -6%;
    width: min(640px, 95vw);
    opacity: 0.9;
  }
}

section {
  position: relative;
  overflow: visible;
}

.services-section {
  overflow: visible;
}

.services-section .text-center {
  overflow: visible;
}

section > div {
  position: relative;
  z-index: 3;
}

/* Inline SVGs for guaranteed visibility */
.section-svg-inline {
  position: absolute;
  inset: -5% -5% auto auto;
  width: min(720px, 95%);
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
  filter: saturate(1.2) brightness(1.1);
}

.team-section .section-svg-inline {
  inset: -8% -10% auto auto;
  width: min(820px, 95%);
}
/* Explicit art layers inside sections */
.section-art-layer {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: 90% 0%;
  background-size: 720px;
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.2) brightness(1.1);
}

.section-art-layer.art-mesh {
  background-image: url("illustrations/mesh.svg");
}

.section-art-layer.art-flow {
  background-image: url("illustrations/flow.svg");
  background-position: 80% 10%;
}

.section-art-layer.art-circuit {
  background-image: url("illustrations/circuit.svg");
  background-position: 85% 5%;
}

.section-art-layer.art-dots {
  background-image: url("illustrations/dots.svg");
}

.services-section::before {
  background-image:
    url("illustrations/circuit.svg"),
    radial-gradient(600px 200px at 50% 0%, hsl(var(--primary) / 0.1), transparent 60%);
  background-position: 85% 0%;
  background-size: 720px, cover;
  opacity: 0.35;
  filter: blur(0.5px);
}

.process-section::before {
  background-image:
    url("illustrations/flow.svg"),
    radial-gradient(600px 200px at 50% 0%, hsl(var(--primary) / 0.1), transparent 60%);
  background-position: 50% 25%;
  background-size: 1000px, cover;
  opacity: 0.9;
}

.services-section {
  background-image:
    url("illustrations/circuit.svg"),
    radial-gradient(600px 200px at 50% 0%, hsl(var(--primary) / 0.1), transparent 60%);
  background-repeat: no-repeat;
  background-position: 50% 6%;
  background-size: 1000px;
}

.services-section .text-center p {
  line-height: 2.1;
  padding-bottom: 0.9rem;
  overflow: visible;
  display: block;
}

.services-section .text-center {
  padding-bottom: 0.6rem;
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: start;
}

.services-intro-block {
  position: sticky;
  top: 6rem;
  align-self: start;
  padding: 2rem;
  border-radius: 1.2rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--card) / 0.6));
  box-shadow: 0 22px 40px hsl(var(--background) / 0.35);
}

.services-intro-block h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin: 0 0 1rem;
}

.services-intro-block p {
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.services-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.8rem;
}

.services-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.75rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.9rem;
}

.services-list {
  display: grid;
  gap: 1.5rem;
}

.service-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  box-shadow: 0 16px 32px hsl(var(--background) / 0.3);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 120px at 100% 0%, hsl(var(--primary) / 0.16), transparent 70%);
  opacity: 0.6;
  pointer-events: none;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.service-card p {
  margin: 0 0 0.8rem;
  color: hsl(var(--muted-foreground));
}

.service-card a {
  color: hsl(var(--primary));
  font-weight: 600;
}

.service-badge {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--primary) / 0.3);
  border-radius: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: hsl(var(--background) / 0.4);
  min-width: 3rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }

  .services-intro-block {
    position: static;
  }
}

.services-intro {
  line-height: 2.4 !important;
  padding-bottom: 1.25rem !important;
  display: block;
  letter-spacing: 0 !important;
  overflow: visible !important;
}

@media (min-width: 640px) {
  .services-section,
  .services-section .text-center,
  .services-section .text-center * {
    overflow: visible !important;
  }
}

.process-section {
  background-image: none;
}
.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(120deg, transparent 0, transparent 18px, hsl(var(--foreground) / 0.04) 19px);
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, hsl(var(--background) / 0.92), hsl(var(--background) / 0.35));
  pointer-events: none;
}

.hero-section .hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, hsl(var(--primary) / 0.06), transparent 45%);
  z-index: -1;
}

.hero-section {
  animation: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  border-radius: 1.25rem;
  background: hsl(var(--background) / 0.65);
  border: 1px solid hsl(var(--border));
  box-shadow: 0 30px 60px hsl(var(--background) / 0.45);
  backdrop-filter: blur(12px);
  max-width: 100%;
  box-sizing: border-box;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 1.4rem;
  border: 1px solid hsl(var(--border));
  pointer-events: none;
  z-index: -1;
}

.hero-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, hsl(var(--primary) / 0.04), transparent 45%);
  border-radius: 1.25rem;
  pointer-events: none;
}

.hero-section .hero-content {
  animation: none;
}

.hero-section h1 {
  background: linear-gradient(120deg, hsl(var(--foreground)), hsl(var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-metric-number {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  display: block;
}

.hero-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: hsl(var(--muted-foreground));
}

.hero-chips {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
  z-index: 2;
  pointer-events: none;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.hero-chip {
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--primary) / 0.35);
  background: hsl(var(--background) / 0.6);
  color: hsl(var(--foreground));
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-mono);
  box-shadow: 0 10px 24px hsl(var(--primary) / 0.2);
  animation: chipFloat 6s ease-in-out infinite;
  gap: 0.45rem;
}

.hero-chip svg {
  width: 18px;
  height: 18px;
  color: hsl(var(--primary));
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 6px 14px hsl(var(--primary) / 0.35));
}

.hero-chip:nth-child(2) { animation-delay: 0.6s; }
.hero-chip:nth-child(3) { animation-delay: 1.2s; }
.hero-chip:nth-child(4) { animation-delay: 1.8s; }
.hero-chip:nth-child(5) { animation-delay: 2.4s; }

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


@keyframes heroFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(0); }
}

@keyframes heroShift {
  0% { background-position: center; }
  100% { background-position: center; }
}

@keyframes glowPulse {
  0% { opacity: 0; }
  100% { opacity: 0; }
}

/* Process numbers visibility */
.text-primary\\/10 {
  color: hsl(var(--primary) / 0.3) !important;
}

/* Technologies section */
.tech-section {
  position: relative;
}

.tech-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 120px at 50% 0%, hsl(var(--primary) / 0.18), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.tech-chip {
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--card) / 0.6));
  box-shadow: 0 16px 30px hsl(var(--background) / 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 120px;
}

.tech-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #0c0f14;
  background: linear-gradient(135deg, hsl(var(--logo-from)), hsl(var(--logo-to)));
  box-shadow: 0 10px 24px hsl(var(--logo-to) / 0.35);
  text-transform: uppercase;
}

.tech-chip h3 {
  font-size: 1.1rem;
  color: hsl(var(--foreground));
  margin: 0;
}

.tech-badge {
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.18);
  color: hsl(var(--foreground));
}

.tech-chip:hover {
  transform: translateY(-2px);
  border-color: hsl(var(--primary) / 0.5);
}

.tech-section {
  position: relative;
  overflow: hidden;
}

.tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 2.5rem;
  align-items: start;
}

.tech-intro {
  padding: 2rem;
  border-radius: 1.2rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(150deg, hsl(var(--card)), hsl(var(--card) / 0.6));
  box-shadow: 0 20px 40px hsl(var(--background) / 0.35);
}

.tech-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.8rem;
}

.tech-intro h2 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  margin: 0 0 1rem;
}

.tech-intro p {
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.tech-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tech-categories span {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.4);
  font-size: 0.75rem;
  font-weight: 600;
}

.tech-marquee {
  display: grid;
  gap: 1.5rem;
}

.tech-track {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.7);
}

.tech-track span {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--primary));
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.tech-tile {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  padding: 1.2rem;
  display: grid;
  gap: 0.4rem;
  box-shadow: 0 16px 30px hsl(var(--background) / 0.3);
}

.tech-mark {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: hsl(var(--primary));
  margin-bottom: 0.2rem;
}

.tech-tile strong {
  font-size: 1rem;
}

.tech-tile small {
  color: hsl(var(--muted-foreground));
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .tech-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .tech-grid {
    grid-template-columns: 1fr;
  }
}
/* Section upgrades */
.stats-section .stat-card {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.1rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(160deg, hsl(var(--card)), hsl(var(--card) / 0.6));
  box-shadow: 0 18px 36px hsl(var(--background) / 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.stats-section .stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid hsl(var(--primary) / 0.5);
  opacity: 0.9;
  pointer-events: none;
}

.stats-section .stat-card::after {
  content: "";
  position: absolute;
  right: -30%;
  top: -40%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.25), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

.stats-section .stat-value {
  font-size: clamp(2.4rem, 3vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, hsl(var(--foreground)), hsl(var(--primary)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 28px hsl(var(--primary) / 0.25);
}

.stat-icon {
  width: 2.4rem;
  height: 2.4rem;
  margin: 0 auto 0.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--primary));
  box-shadow: 0 6px 14px hsl(var(--primary) / 0.12);
  position: relative;
  overflow: hidden;
}

.stat-icon::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, hsl(var(--primary) / 0.35), transparent 65%);
  opacity: 0.3;
  pointer-events: none;
}

.stat-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 1.6;
  stroke: currentColor;
  fill: none;
}

.stats-section {
  position: relative;
  background-image:
    radial-gradient(600px 240px at 10% 0%, hsl(var(--primary) / 0.18), transparent 60%),
    radial-gradient(500px 220px at 90% 0%, hsl(var(--accent) / 0.2), transparent 60%);
  overflow: hidden;
}

.stats-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("illustrations/dots.svg");
  background-size: 520px;
  background-position: 80% 0%;
  opacity: 0.2;
  pointer-events: none;
}
.services-section .border.rounded-md,
.features-section .border.rounded-md,
.portfolio-section .border.rounded-md,
.team-section .border.rounded-md,
.testimonials-section .border.rounded-md {
  position: relative;
  overflow: hidden;
}

.services-section .border.rounded-md::before,
.features-section .border.rounded-md::before,
.portfolio-section .border.rounded-md::before,
.team-section .border.rounded-md::before,
.testimonials-section .border.rounded-md::before {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 3px solid hsl(var(--primary) / 0.55);
  opacity: 0.8;
  pointer-events: none;
}

.process-section .text-6xl {
  color: hsl(var(--primary) / 0.25);
  font-family: var(--font-mono);
}

.contact-section .border.rounded-md {
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--card) / 0.6));
}

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

.value-card {
  padding: 2rem;
  border-radius: 1.2rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--card)), hsl(var(--card) / 0.55));
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.value-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, hsl(var(--primary) / 0.08), transparent 60%);
  pointer-events: none;
}

.value-step {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  color: hsl(var(--primary) / 0.7);
  padding: 0.4rem 0.7rem;
  border-radius: 0.8rem;
  border: 1px solid hsl(var(--primary) / 0.25);
  background: hsl(var(--background) / 0.4);
  min-width: 3.2rem;
  text-align: center;
}

.value-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.value-body p {
  margin: 0;
  color: hsl(var(--muted-foreground));
}

.value-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -30%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, hsl(var(--primary) / 0.2), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

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

.portfolio-card {
  grid-column: span 4;
  border-radius: 1.1rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(160deg, hsl(var(--card)), hsl(var(--card) / 0.6));
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 36px hsl(var(--background) / 0.3);
}

.portfolio-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px 140px at 100% 0%, hsl(var(--primary) / 0.18), transparent 70%);
  opacity: 0.65;
  pointer-events: none;
}

.portfolio-card h3 {
  margin: 0.6rem 0 0.6rem;
  font-size: 1.1rem;
}

.portfolio-card p {
  color: hsl(var(--muted-foreground));
  margin: 0 0 1rem;
}

.portfolio-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--primary));
}

.portfolio-metric {
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
}

.portfolio-metric span {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.portfolio-card--wide {
  grid-column: span 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .portfolio-card {
    grid-column: span 3;
  }

  .portfolio-card--wide {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card,
  .portfolio-card--wide {
    grid-column: span 1;
  }
}

.team-hero {
  border-radius: 1.4rem;
  border: 1px solid hsl(var(--border));
  overflow: hidden;
  position: relative;
  margin-bottom: 2rem;
  box-shadow: 0 24px 50px hsl(var(--background) / 0.35);
}

.team-hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.team-hero-caption {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.9rem;
  background: hsl(var(--background) / 0.7);
  border: 1px solid hsl(var(--border));
  backdrop-filter: blur(8px);
}

.team-hero-caption h3 {
  margin: 0;
  font-size: 1.1rem;
}

.team-hero-caption span {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

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

.team-card {
  border-radius: 1.2rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(160deg, hsl(var(--card)), hsl(var(--card) / 0.55));
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
  align-items: center;
  text-align: left;
  box-shadow: 0 18px 36px hsl(var(--background) / 0.3);
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 160px at 0% 0%, hsl(var(--primary) / 0.16), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.9rem;
  object-fit: cover;
  border: 1px solid hsl(var(--border));
}


.team-info h3 {
  margin: 0;
  font-size: 1.1rem;
}

.team-info span {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

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

.testimonial-card {
  border-radius: 1.1rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(150deg, hsl(var(--card)), hsl(var(--card) / 0.6));
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 0.4rem;
  right: 0.8rem;
  font-size: 4rem;
  color: hsl(var(--primary) / 0.2);
  font-family: var(--font-serif);
  line-height: 1;
  opacity: 0.5;
}

.testimonial-card--highlight {
  border-color: hsl(var(--primary) / 0.4);
  box-shadow: 0 24px 50px hsl(var(--primary) / 0.15);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-meta {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}

@media (max-width: 1024px) {
  .team-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .team-grid,
  .testimonials-row {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  border-top: 1px solid hsl(var(--border));
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, hsl(var(--background)), hsl(var(--background) / 0.9));
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 220px at 10% 0%, hsl(var(--primary) / 0.18), transparent 60%),
    radial-gradient(500px 200px at 90% 10%, hsl(var(--accent) / 0.2), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.site-footer .footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: grid;
  gap: 1.2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand p {
  color: hsl(var(--muted-foreground));
  max-width: 28rem;
}

.footer-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.footer-pill-row span {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card) / 0.8);
  font-size: 0.75rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

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

.footer-columns h4 {
  font-size: 0.95rem;
  margin-bottom: 0.8rem;
}

.footer-columns ul {
  display: grid;
  gap: 0.5rem;
}

.footer-columns a {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-columns a:hover {
  color: hsl(var(--foreground));
}

.site-footer .footer-bottom {
  border-top: 1px solid hsl(var(--border) / 0.6);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}

.site-footer .footer-wordmark {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .site-footer .footer-top {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  margin: 1.25rem 0 0;
  max-width: 80rem;
  padding: 0 1rem;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb a {
  color: hsl(var(--muted-foreground));
}

.breadcrumb a:hover {
  color: hsl(var(--foreground));
}

.breadcrumb-sep {
  color: hsl(var(--border));
}

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

.feature-panel {
  grid-column: span 4;
  padding: 1.75rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background: linear-gradient(145deg, hsl(var(--card)), hsl(var(--card) / 0.65));
  box-shadow: 0 18px 36px hsl(var(--background) / 0.35);
  position: relative;
  overflow: hidden;
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(220px 120px at 85% 0%, hsl(var(--primary) / 0.2), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

.feature-panel h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.feature-panel p {
  color: hsl(var(--muted-foreground));
  font-size: 0.95rem;
  margin: 0;
}

.feature-panel--wide {
  grid-column: span 7;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.feature-panel--tall {
  grid-column: span 5;
  grid-row: span 2;
}

.feature-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--primary));
  margin-bottom: 0.6rem;
}

.feature-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.feature-chip-row span {
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background) / 0.6);
  font-size: 0.8rem;
  font-weight: 600;
}

.feature-meter {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  display: grid;
  gap: 0.35rem;
}

.feature-meter div {
  height: 6px;
  border-radius: 999px;
  background: hsl(var(--border));
  overflow: hidden;
}

.feature-meter div i {
  display: block;
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--accent)));
}

.feature-meter + .feature-meter div i {
  width: 64%;
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .feature-panel {
    grid-column: span 3;
  }

  .feature-panel--wide {
    grid-column: span 6;
  }

  .feature-panel--tall {
    grid-column: span 6;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-panel,
  .feature-panel--wide,
  .feature-panel--tall {
    grid-column: span 1;
  }
}

/* Legal pages art wash */
.legal-page main {
  position: relative;
}

.legal-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 220px at 20% 0%, hsl(var(--primary) / 0.12), transparent 60%),
    radial-gradient(500px 200px at 80% 0%, hsl(var(--accent) / 0.18), transparent 60%);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

/* Card polish */
.border.rounded-md {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  box-shadow: 0 12px 28px hsl(var(--background) / 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.border.rounded-md:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px hsl(var(--background) / 0.4);
  border-color: hsl(var(--primary) / 0.5);
}

/* Buttons */
a.inline-flex,
button.inline-flex {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  line-height: 1.1;
  box-sizing: border-box;
}

a.inline-flex.bg-primary,
button.inline-flex.bg-primary {
  background-image: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.75));
  box-shadow: 0 18px 40px hsl(var(--primary) / 0.25);
  position: relative;
  overflow: hidden;
}

a.inline-flex.bg-primary::after,
button.inline-flex.bg-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 10%, hsl(var(--foreground) / 0.2), transparent 40%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

a.inline-flex.bg-primary:hover::after,
button.inline-flex.bg-primary:hover::after {
  transform: translateX(100%);
}

a.inline-flex.border,
button.inline-flex.border {
  border-color: hsl(var(--border));
  background: hsl(var(--background) / 0.6);
}

a.inline-flex.h-10,
button.inline-flex.h-10 {
  padding: 0 1.25rem;
}

a.inline-flex.h-12,
button.inline-flex.h-12 {
  padding: 0 1.5rem;
}

/* Keep full-width CTA buttons consistent */
.w-full.inline-flex {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Theme toggle */
.theme-toggle {
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  background: hsl(var(--background) / 0.6);
  color: hsl(var(--foreground));
}

.theme-toggle:hover {
  border-color: hsl(var(--primary));
}

/* Footer wordmark */
.footer-wordmark {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 8vw, 6rem);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  text-align: center;
  margin-top: 2.5rem;
  color: hsl(var(--foreground) / 0.08);
}

/* Forms */
input,
textarea {
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

/* Accent links */
a.text-primary {
  text-shadow: 0 8px 20px hsl(var(--primary) / 0.25);
}

/* Number highlights */
.text-4xl,
.text-5xl {
  text-shadow: 0 10px 30px hsl(var(--primary) / 0.15);
}

/* Mobile header refinement */
@media (max-width: 768px) {
  .site-header .h-16 {
    height: 4.5rem;
    flex-wrap: nowrap;
  }

  .site-header .text-xl {
    font-size: 1rem;
  }

  .site-header .gap-4 {
    gap: 0.5rem;
  }

  .theme-toggle {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-section {
    min-height: auto;
  }

  .hero-section > .max-w-7xl {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
  }

  .hero-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
  }

  .hero-section > .max-w-7xl {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
  }
}

@media (max-width: 360px) {
  .site-header .px-4 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .site-header .h-16 {
    gap: 0.35rem;
    min-width: 0;
  }

  .site-header .text-xl,
  .site-header .text-2xl {
    font-size: 0.9rem;
    letter-spacing: 0.04em;
  }

  .brand-tag {
    display: none;
  }

  .site-header button[aria-label="Toggle menu"] {
    height: 2.25rem;
    width: 2.25rem;
  }

  .hero-content {
    padding: 1.25rem;
    margin: 0;
  }

  .hero-section {
    min-height: auto;
    padding-top: 0.5rem !important;
  }

  .hero-section h1 {
    font-size: 2.4rem;
    line-height: 1.08;
    font-weight: 700;
    text-shadow: 0 14px 30px hsl(var(--primary) / 0.25);
  }

  .hero-section p {
    font-size: 1.05rem;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero-section .inline-flex {
    width: 100%;
    justify-content: center;
  }
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

[data-reveal] {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Header glow on scroll */
.site-header.is-scrolled {
  background: linear-gradient(90deg, hsl(var(--background) / 0.95), hsl(var(--background) / 0.8));
  box-shadow: 0 18px 50px hsl(var(--primary) / 0.2);
  border-color: hsl(var(--primary) / 0.3);
}

.site-header button[aria-label="Toggle menu"] {
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.site-header button[aria-label="Toggle menu"] span {
  display: block;
  line-height: 1;
  transform: translateY(-1px);
}

/* Mobile menu glass panel */
[data-mobile-menu] {
  background: hsl(var(--background) / 0.9);
  border: 1px solid hsl(var(--border));
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 20px 40px hsl(var(--background) / 0.4);
  backdrop-filter: blur(16px);
  transform-origin: top;
  transform: scaleY(0.98);
  transition: transform 0.25s ease, opacity 0.25s ease;
  opacity: 0;
  padding: 1rem;
}

[data-mobile-menu]:not(.hidden) {
  opacity: 1;
  transform: scaleY(1);
}

[data-mobile-menu] nav {
  gap: 0.6rem !important;
}

[data-mobile-menu] a {
  padding: 0.6rem 0.85rem;
  border-radius: 0.6rem;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

[data-mobile-menu] a.inline-flex {
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--primary) / 0.8));
  color: hsl(var(--primary-foreground));
  border: none;
}

[data-mobile-menu] a::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}

[data-mobile-menu] a.inline-flex::after {
  color: hsl(var(--primary-foreground));
}

/* Removed SVG backgrounds for selected sections per request */
.features-section::before,
.process-section::before,
.team-section::before,
.testimonials-section::before {
  background-image: none !important;
  filter: none !important;
  opacity: 0 !important;
}

/* Copy deterrents */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img,
svg,
canvas,
video {
  -webkit-user-drag: none;
  user-drag: none;
}
