/* ========================================
   CSS Custom Properties — Dopamine Palette
   ======================================== */
:root {
  --black: #0A0A0A;
  --white: #FAFAFA;
  --red: #DC2626;
  --red-dark: #B91C1C;
  --red-glow: #FF4444;
  --orange: #F97316;
  --pink: #EC4899;
  --cyan: #22D3EE;
  --gray-dark: #111111;
  --gray-card: #161616;
  --gray-medium: #2D2D2D;
  --gray-light: #E5E5E5;
  --gray-text: #A3A3A3;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

.section-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  position: relative;
}

/* ========================================
   Noise Texture Overlay
   ======================================== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ========================================
   Cursor Glow Follower
   ======================================== */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,38,38,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: opacity 0.3s;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ========================================
   Shared Section Typography
   ======================================== */
.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 16px;
}

.section-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-headline em {
  font-style: italic;
  font-weight: 400;
}

/* Glow text effect */
.text-glow--subtle {
  text-shadow: 0 0 30px rgba(220, 38, 38, 0.3), 0 0 60px rgba(220, 38, 38, 0.1);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  position: relative;
}

.btn:active {
  transform: scale(0.97);
}

.btn--red {
  background: var(--red);
  color: var(--white);
}

.btn--red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3);
}

.btn--glow {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 rgba(220, 38, 38, 0);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.btn--glow:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.4), 0 0 60px rgba(220, 38, 38, 0.15);
}

.btn--full { width: 100%; }

.link-arrow {
  color: var(--red);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow:hover {
  color: var(--red-glow);
  gap: 12px;
}

/* ========================================
   Navigation — Glassmorphism Pill
   ======================================== */
.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: top 0.3s ease;
}

.nav__pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(10, 10, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 6px 8px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.nav.scrolled .nav__pill {
  border-color: rgba(220, 38, 38, 0.15);
  box-shadow: 0 0 30px rgba(220, 38, 38, 0.06);
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-text);
  padding: 10px 20px;
  border-radius: 100px;
  transition: all 0.25s;
  white-space: nowrap;
  position: relative;
}

.nav__link:hover,
.nav__link--active {
  color: var(--white);
}

.nav__link--cta {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

.nav__link--cta:hover {
  background: var(--red-dark);
  color: var(--white);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.nav__divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.nav__hamburger {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1001;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5.5px, 5.5px); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5.5px, -5.5px); }

.nav__drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.97);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.nav__drawer.open { display: flex; }

.nav__drawer a {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-text);
  transition: color 0.2s;
}

.nav__drawer a:hover { color: var(--white); }

.nav__cta--drawer {
  color: var(--red) !important;
  margin-top: 16px;
}

@media (max-width: 768px) {
  .nav__pill { display: none; }
  .nav__hamburger { display: flex; }
}

/* ========================================
   Hero — Kinetic Type + Form Card
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(120px, 15vh, 180px) clamp(24px, 5vw, 80px) clamp(60px, 8vh, 100px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Organic floating blobs */
.hero__blob {
  position: absolute;
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  filter: blur(100px);
  opacity: 0.08;
  animation: blobMorph 20s ease-in-out infinite;
}

.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  top: -15%;
  right: -10%;
  animation-delay: 0s;
}

.hero__blob--2 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--pink), var(--red));
  bottom: 10%;
  left: -5%;
  animation-delay: -7s;
}

.hero__blob--3 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--orange), var(--cyan));
  top: 40%;
  left: 45%;
  animation-delay: -14s;
  opacity: 0.05;
}

@keyframes blobMorph {
  0%, 100% { border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; transform: scale(1) rotate(0deg); }
  25% { border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; transform: scale(1.05) rotate(3deg); }
  50% { border-radius: 45% 55% 60% 40% / 60% 45% 55% 45%; transform: scale(0.97) rotate(-2deg); }
  75% { border-radius: 60% 40% 45% 55% / 40% 60% 40% 60%; transform: scale(1.03) rotate(1deg); }
}

.hero__content {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Kinetic headline — line by line reveal */
.hero__headline {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  display: flex;
  flex-direction: column;
}

.hero__line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  filter: blur(8px);
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.3s + var(--i) * 0.15s);
}

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__line--glow em {
  font-style: italic;
  font-weight: 400;
  color: var(--red);
  text-shadow: 0 0 40px rgba(220, 38, 38, 0.5), 0 0 80px rgba(220, 38, 38, 0.2);
}

.hero__headline strong {
  font-weight: 900;
  background: linear-gradient(135deg, var(--white), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 540px;
}

.hero__cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 36px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  align-self: flex-start;
}

.hero__cta-btn:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.3), 0 0 60px rgba(220, 38, 38, 0.15);
}

/* Glassmorphism form card */
.hero__form-card {
  background: rgba(22, 22, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
}

.hero__form-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(220,38,38,0.3), transparent 50%, rgba(249,115,22,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__form-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--gray-text);
  margin-bottom: 24px;
}

.hero__form-card .form-group input,
.hero__form-card .form-group textarea {
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.hero__form-card .form-group input:focus,
.hero__form-card .form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
  outline: none;
}

@media (max-width: 960px) {
  .hero__content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero__form-card {
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
}

/* ========================================
   Credential Bar — Glow Numbers
   ======================================== */
.cred-bar {
  border-top: 1px solid var(--gray-medium);
  border-bottom: 1px solid var(--gray-medium);
  padding: clamp(32px, 4vw, 48px) 0;
  background: var(--black);
  position: relative;
}

.cred-bar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cred-bar__item {
  text-align: center;
  flex: 1;
  min-width: 140px;
  transform: translateY(var(--stagger, 0px));
}

.cred-bar__number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--red);
  line-height: 1;
  margin-bottom: 8px;
  transition: text-shadow 0.6s ease;
}

.cred-bar__number.glow {
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.5), 0 0 40px rgba(220, 38, 38, 0.2);
}

.cred-bar__label {
  font-size: 0.8rem;
  color: var(--gray-text);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.cred-bar__divider {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  flex-shrink: 0;
  opacity: 0.3;
}

@media (max-width: 640px) {
  .cred-bar__inner {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px 16px;
    justify-items: center;
  }
  .cred-bar__item { transform: none; }
  .cred-bar__divider:nth-of-type(2) { display: none; }
  .cred-bar__divider { height: auto; align-self: stretch; }
}

/* ========================================
   Services — Anti-Grid Stagger
   ======================================== */
.services {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--gray-dark);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--gray-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Anti-grid stagger — slight vertical offsets */
.service-card:nth-child(2) { transform: translateY(24px); }
.service-card:nth-child(3) { transform: translateY(-8px); }
.service-card:nth-child(5) { transform: translateY(16px); }
.service-card:nth-child(6) { transform: translateY(-12px); }
.service-card:nth-child(7) { transform: translateY(8px); }

.service-card:hover {
  border-color: rgba(220, 38, 38, 0.2);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

/* Glow border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(220,38,38,0.4), transparent 40%, transparent 60%, rgba(249,115,22,0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.service-card__num {
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.6;
}

@media (max-width: 960px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(n) { transform: none; }
}

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

/* ========================================
   Solutions — Glow Border Cards
   ======================================== */
.solutions {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--black);
}

.solutions__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-text);
  border: 1px solid var(--gray-medium);
  background: transparent;
  transition: all 0.25s ease;
}

.filter-btn:hover { color: var(--white); border-color: var(--gray-text); }

.filter-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

.solutions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-card {
  background: var(--gray-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: clamp(24px, 3vw, 32px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Shimmer glow border on hover */
.solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--red), var(--orange), var(--pink));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.solution-card:hover::before {
  opacity: 1;
}

.solution-card.hidden { display: none; }

.solution-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.solution-card > p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 16px;
}

.solution-card__toggle {
  color: var(--red);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0;
  transition: all 0.2s;
}

.solution-card__toggle:hover {
  color: var(--red-glow);
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.solution-card__expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease;
  margin-top: 0;
}

.solution-card__expand.open {
  max-height: 800px;
  margin-top: 16px;
}

.solution-card__expand p {
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 10px;
}

.solution-card__impact {
  font-style: italic;
  color: var(--red) !important;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

/* Screenshot thumbnail on card */
.solution-card__screenshot {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--gray-card);
  position: relative;
}

.solution-card__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shimmer placeholder */
.solution-card__screenshot--placeholder {
  background: linear-gradient(90deg,
    rgba(45, 45, 45, 0.3) 25%,
    rgba(60, 60, 60, 0.5) 50%,
    rgba(45, 45, 45, 0.3) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Carousel in expanded area */
.solution-card__carousel {
  margin-top: 16px;
  position: relative;
}

.solution-card__carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.solution-card__carousel-track::-webkit-scrollbar {
  display: none;
}

.solution-card__carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--gray-card);
}

.solution-card__carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel navigation arrows */
.solution-card__carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.solution-card__carousel-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--gray-medium);
  background: rgba(26, 26, 26, 0.8);
  color: var(--gray-text);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
}

.solution-card__carousel-arrow:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Carousel dots */
.solution-card__carousel-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.solution-card__carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-medium);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}

.solution-card__carousel-dot.active {
  background: var(--red);
  width: 8px;
  height: 8px;
}

@media (max-width: 960px) {
  .solutions__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .solutions__grid { grid-template-columns: 1fr; }
  .filter-btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* ========================================
   About — Editorial Text + Organic Blob
   ======================================== */
.about {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--gray-dark);
  position: relative;
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.about__blob {
  position: absolute;
  width: 700px;
  height: 700px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%;
  filter: blur(120px);
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: blobMorph 25s ease-in-out infinite;
  animation-delay: -5s;
}

.about__text {
  margin-bottom: clamp(60px, 8vw, 100px);
}

.about__body {
  font-size: clamp(1.15rem, 2.5vw, 1.75rem);
  line-height: 1.65;
  max-width: 1000px;
  color: var(--gray-light);
}

.about__body strong {
  color: var(--white);
  font-weight: 700;
}

.about__body em {
  font-style: italic;
}

/* Asymmetric testimonial grid */
.about__quotes {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
}

.testimonial {
  background: var(--black);
  border-left: 3px solid var(--red);
  padding: clamp(24px, 3vw, 36px);
  border-radius: 0 16px 16px 0;
  position: relative;
}

.testimonial--large {
  padding: clamp(32px, 4vw, 48px);
}

.testimonial p {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.testimonial--large p {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.testimonial p strong { color: var(--white); }
.testimonial p em { font-style: italic; }

.testimonial cite {
  font-size: 0.85rem;
  color: var(--gray-text);
  font-style: normal;
  font-weight: 600;
}

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

/* ========================================
   Blog Preview — Glow Hover Cards
   ======================================== */
.blog-preview {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--black);
}

.blog-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.blog-card {
  background: var(--gray-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transform-style: preserve-3d;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.blog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(220,38,38,0.3), transparent 50%, rgba(249,115,22,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.blog-card:hover::before {
  opacity: 1;
}

.blog-card__image {
  height: 200px;
  background: var(--gray-medium);
}

.blog-card__body {
  padding: 24px;
}

.blog-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--red);
  margin-bottom: 12px;
}

.blog-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-card p {
  font-size: 0.875rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card time {
  font-size: 0.8rem;
  color: var(--gray-text);
  opacity: 0.6;
}

.blog-preview__cta {
  text-align: center;
}

@media (max-width: 768px) {
  .blog-preview__grid { grid-template-columns: 1fr; max-width: 500px; }
}

/* ========================================
   Footer — Glow Form + Gradient Headline
   ======================================== */
.footer {
  padding: clamp(80px, 10vw, 140px) 0 0;
  background: var(--gray-dark);
  border-top: 1px solid var(--gray-medium);
  position: relative;
  overflow: hidden;
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(60px, 8vw, 100px);
}

.footer__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, var(--white), var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer__headline em {
  font-style: italic;
  font-weight: 400;
}

.footer__text {
  font-size: 1rem;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 440px;
}

.footer__email {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 24px;
  transition: all 0.2s;
}

.footer__email:hover {
  color: var(--red-glow);
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.3);
}

.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 100px;
  border: 1px solid var(--gray-medium);
  color: var(--gray-text);
  transition: all 0.25s;
}

.footer__social a:hover {
  color: var(--white);
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2);
}

/* Footer form — glow card */
.footer__form-wrapper {
  position: relative;
}

.footer__form {
  background: rgba(22, 22, 22, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: clamp(28px, 3vw, 40px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.footer__form::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(220,38,38,0.2), transparent 50%, rgba(249,115,22,0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.footer__form h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
}

/* Shared form styles */
.form-group { margin-bottom: 14px; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-text); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

.footer__bottom {
  border-top: 1px solid var(--gray-medium);
  padding: 24px 0;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.8rem;
  color: var(--gray-text);
}

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

/* ========================================
   Form Status & Button Loading
   ======================================== */
.form-status {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 14px;
  text-align: center;
}

.form-status--success {
  background: rgba(34, 197, 94, 0.1);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status--error {
  background: rgba(220, 38, 38, 0.1);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.btn--loading {
  position: relative;
  pointer-events: none;
  color: transparent;
}

.btn--loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ========================================
   3D Tilt Cards (JS-powered)
   ======================================== */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ========================================
   Nav Home Icon
   ======================================== */
.nav__link--home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}

.nav__link--home svg {
  transition: transform 0.25s ease;
}

.nav__link--home:hover svg {
  transform: scale(1.15);
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 22, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--gray-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  color: var(--white);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.2), 0 0 40px rgba(220, 38, 38, 0.08);
}

.back-to-top:active {
  transform: scale(0.92);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ========================================
   Scroll Path — Weaving Dot Guide
   ======================================== */
.scroll-path {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.scroll-path__line {
  fill: none;
  stroke: rgba(220, 38, 38, 0.1);
  stroke-width: 1.5;
  stroke-dasharray: 4 12;
  stroke-linecap: round;
}

.scroll-path__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 8px rgba(220, 38, 38, 0.8),
    0 0 24px rgba(220, 38, 38, 0.4),
    0 0 48px rgba(220, 38, 38, 0.15);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.4s ease;
}

.scroll-path__dot--dodging {
  width: 14px;
  height: 14px;
  box-shadow:
    0 0 10px rgba(220, 38, 38, 1),
    0 0 30px rgba(220, 38, 38, 0.6),
    0 0 60px rgba(220, 38, 38, 0.2);
}

/* Explosion particles */
.scroll-path__particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 4;
  transform: translate(-50%, -50%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.65s ease-out;
}

@media (max-width: 960px) {
  .scroll-path,
  .scroll-path__dot { display: none; }
}

/* ========================================
   Accessibility — Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .hero__line {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero__blob,
  .about__blob {
    animation: none;
  }

  .cursor-glow { display: none; }

  .scroll-path,
  .scroll-path__dot { display: none; }

  .cred-bar__item { transform: none; }
  .service-card:nth-child(n) { transform: none; }
}
