/* ===================================================================
   MARK SOLVE — Master Stylesheet
   Brand: #132942 (Navy), #FFB900 (Yellow), #FFFFFF (White)
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,400&family=Inter+Tight:wght@400;500;600;700&display=swap');

:root {
  --navy: #132942;
  --navy-soft: #1d3557;
  --navy-deep: #0a1828;
  --yellow: #ffb900;
  --yellow-soft: #ffd35e;
  --white: #ffffff;
  --cream: #faf7f2;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-400: #a1a1aa;
  --gray-600: #52525b;
  --gray-800: #27272a;

  /* Theme tokens (kept for compatibility with pages that reference them) */
  --bg: #faf7f2;
  --bg-alt: #ffffff;
  --bg-elevated: #ffffff;
  --text: #132942;
  --text-muted: #52525b;
  --border: #e4e4e7;
  --nav-bg: rgba(250, 247, 242, 0.85);
  --footer-bg: #0a1828;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(19, 41, 66, 0.06);
  --shadow-md: 0 8px 24px rgba(19, 41, 66, 0.08);
  --shadow-lg: 0 24px 48px rgba(19, 41, 66, 0.12);

  --max-width: 1280px;
  --space: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
}

section { padding: 100px 0; position: relative; }

@media (max-width: 768px) {
  section { padding: 64px 0; }
  body { font-size: 16px; }
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-variation-settings: "opsz" 96;
}

h3 { font-size: clamp(1.5rem, 2.5vw, 2rem); }

h4 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }

p { color: var(--text-muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--yellow);
}

.italic-accent { font-style: italic; font-family: var(--font-display); font-weight: 400; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.scrolled { border-bottom-color: var(--border); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 44px;
}
.logo img { height: 100%; width: auto; display: block; }
.logo .logo-img-light { display: block; }
.logo .logo-img-dark { display: none; }
/* In dark footer, swap to white version */
.footer .logo .logo-img-light { display: none; }
.footer .logo .logo-img-dark { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 0.6; }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 2px;
  background: var(--yellow);
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s, background 0.2s;
}

.nav-cta:hover { background: var(--navy-soft); transform: translateY(-1px); opacity: 1 !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); transition: 0.3s; }

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 32px var(--space);
    gap: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-200%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
}

.nav-toggle span { background: var(--text); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}
.btn-yellow:hover { background: var(--yellow-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn .arrow { transition: transform 0.25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* === HERO === */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 130px 0 60px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 185, 0, 0.15);
  border: 1px solid rgba(255, 185, 0, 0.4);
  color: var(--navy);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 28px;
  letter-spacing: -0.035em;
}

.hero h1 .accent {
  color: var(--navy);
  position: relative;
  display: inline-block;
  font-style: italic;
  font-weight: 400;
}

.hero h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 4px; left: -4px; right: -4px;
  height: 14px;
  background: var(--yellow);
  z-index: -1;
  transform: skew(-3deg);
}

.hero p.lead {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 36px;
  max-width: 560px;
  line-height: 1.55;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--gray-200);
}

.hero-stat .num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: var(--navy);
}

.hero-stat .num .yellow { color: var(--yellow); }

.hero-stat .label {
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 4/5;
}

.hero-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(19, 41, 66, 0.06);
}

.hero-card-1 {
  top: 0; right: 0;
  width: 70%;
  background: var(--navy);
  color: var(--white);
  transform: rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card-2 {
  bottom: 8%; left: 0;
  width: 60%;
  transform: rotate(-3deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card-3 {
  top: 35%; right: 15%;
  width: 55%;
  background: var(--yellow);
  color: var(--navy);
  transform: rotate(4deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-card .label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 12px;
}

.hero-card .value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 8px;
}

.hero-card .trend {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 880px) {
  .hero-visual { display: none; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 2rem; }
}

/* === SECTION HEADERS === */
.section-head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section-head.center { margin: 0 auto 64px; text-align: center; }

.section-head h2 { margin-bottom: 18px; }

.section-head p { font-size: 1.1rem; max-width: 600px; }
.section-head.center p { margin: 0 auto; }

/* === SERVICES SECTION === */
.services-bg { background: var(--bg-alt); }

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

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--border);
}

.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.service-card.featured { background: var(--navy); color: var(--white); border-color: var(--navy); }
.service-card.featured h3, .service-card.featured p { color: var(--white); }
.service-card.featured p { opacity: 0.7; }

.service-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--yellow);
  margin-bottom: 28px;
}

.service-icon {
  width: 64px; height: 64px;
  background: var(--yellow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--navy);
}

.service-card h3 { margin-bottom: 14px; }
.service-card p { font-size: 15px; margin-bottom: 28px; }

.service-card .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.service-card.featured .link { color: var(--yellow); }
.service-card .link:hover { gap: 12px; }
.service-card .link { transition: gap 0.2s; }

/* === MARQUEE === */
.marquee-section {
  background: var(--navy);
  padding: 48px 0;
  overflow: hidden;
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  gap: 60px;
}

.marquee-item {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--white);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 60px;
}

.marquee-item::after {
  content: '✦';
  color: var(--yellow);
  font-style: normal;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === STATS BAND === */
.stats-band {
  background: var(--bg);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

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

.stat-item .num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  line-height: 1;
  color: var(--text);
  margin-bottom: 8px;
}

.stat-item .num span { color: var(--yellow); font-style: italic; }
.stat-item .label { font-size: 14px; color: var(--gray-600); letter-spacing: 0.02em; }

@media (max-width: 768px) { .stat-item .num { font-size: 2.5rem; } }

/* === PROCESS SECTION === */
.process-bg { background: var(--bg-alt); }

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr 2fr 80px;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: padding 0.3s;
}

.process-step:hover { padding-left: 16px; }

.process-step .num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--yellow);
  font-style: italic;
}

.process-step h3 { font-size: 1.5rem; }
.process-step p { font-size: 15px; }

.process-step .arrow {
  font-size: 1.5rem;
  color: var(--text);
  text-align: right;
  transition: transform 0.3s;
}

.process-step:hover .arrow { transform: translateX(8px); }

@media (max-width: 768px) {
  .process-step { grid-template-columns: 60px 1fr; gap: 16px; }
  .process-step p, .process-step .arrow { grid-column: 2; }
  .process-step .arrow { display: none; }
}

/* === TESTIMONIAL / CTA === */
.cta-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,185,0,0.15) 0%, transparent 60%);
}

.cta-content { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.cta-content h2 { color: var(--white); margin-bottom: 24px; }
.cta-content h2 .yellow { color: var(--yellow); font-style: italic; }
.cta-content p { color: rgba(255,255,255,0.7); font-size: 1.15rem; margin-bottom: 36px; }

/* === FOOTER === */
.footer {
  background: var(--footer-bg);
  color: var(--white);
  padding: 80px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

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

.footer h4 {
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 15px; transition: color 0.2s; }
.footer ul a:hover { color: var(--yellow); }

.footer .logo { margin-bottom: 16px; height: 38px; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 15px; max-width: 320px; line-height: 1.5; }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.25s;
  color: var(--white);
}
.social-links a:hover { background: var(--yellow); color: var(--navy); border-color: var(--yellow); transform: translateY(-2px); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

/* === PAGE HEADER (interior pages) === */
.page-header {
  padding: 160px 0 80px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 1px;
  background: var(--border);
}

.page-header-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
@media (max-width: 880px) { .page-header-grid { grid-template-columns: 1fr; gap: 32px; } }

.page-header h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); margin-bottom: 24px; }
.page-header p { font-size: 1.15rem; }

.breadcrumbs { display: flex; gap: 8px; font-size: 13px; color: var(--gray-600); margin-bottom: 24px; letter-spacing: 0.04em; }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs .sep { opacity: 0.4; }

/* === FORMS === */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(255, 185, 0, 0.15);
}

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

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

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* === UTILITY === */
.text-center { text-align: center; }
.mb-md { margin-bottom: 24px; }
.mb-lg { margin-bottom: 48px; }

/* ===================================================================
   AI / WEB3 ANIMATIONS
   =================================================================== */

/* === ANIMATED MESH GRADIENT BACKGROUND (hero section) === */
.hero { position: relative; overflow: hidden; }

.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.hero-mesh .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: multiply;
  will-change: transform;
}

.hero-mesh .blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.6) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation: blob-drift-1 18s ease-in-out infinite;
}

.hero-mesh .blob-2 {
  width: 450px; height: 450px;
  background: radial-gradient(circle, rgba(19, 41, 66, 0.4) 0%, transparent 70%);
  bottom: -100px; left: -100px;
  animation: blob-drift-2 22s ease-in-out infinite;
}

.hero-mesh .blob-3 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35) 0%, transparent 70%);
  top: 40%; left: 35%;
  animation: blob-drift-3 25s ease-in-out infinite;
}

@keyframes blob-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 80px) scale(1.15); }
  66% { transform: translate(40px, -50px) scale(0.9); }
}

@keyframes blob-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -60px) scale(1.2); }
}

@keyframes blob-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-40px, 60px) scale(1.1); }
  75% { transform: translate(60px, -40px) scale(0.85); }
}

/* Hero content above the mesh */
.hero > .container { position: relative; z-index: 1; }

/* === GRID PATTERN BACKGROUND (services / interior sections) === */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 41, 66, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 41, 66, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}
.grid-bg-section { position: relative; }
.grid-bg-section > .container { position: relative; z-index: 1; }

/* === FLOATING ORBS (decorative on multiple sections) === */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}
.orb-yellow { background: radial-gradient(circle, rgba(255, 185, 0, 0.5), transparent 70%); }
.orb-navy { background: radial-gradient(circle, rgba(19, 41, 66, 0.3), transparent 70%); }
.orb-purple { background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 70%); }

@keyframes orb-float-a {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -40px); }
}
@keyframes orb-float-b {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}
.orb-anim-a { animation: orb-float-a 12s ease-in-out infinite; }
.orb-anim-b { animation: orb-float-b 16s ease-in-out infinite; }

/* === CURSOR GLOW EFFECT (hero) === */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.15) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  mix-blend-mode: screen;
}
.cursor-glow.visible { opacity: 1; }

/* === GRADIENT BORDER ANIMATION (cards / CTAs) === */
.gradient-border {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  z-index: 1;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(120deg, var(--yellow), #a78bfa, var(--navy), var(--yellow));
  background-size: 300% 300%;
  border-radius: inherit;
  animation: gradient-shift 8s linear infinite;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gradient-border:hover::before { opacity: 1; }

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* === 3D CARD TILT (apply to .tilt-card) === */
.tilt-card {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
}

/* === SHIMMER / SHINE EFFECT (cards on hover) === */
.shimmer-card {
  position: relative;
  overflow: hidden;
}
.shimmer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.shimmer-card:hover::after { transform: translateX(100%); }

/* === GLOW PULSE (badges, tags) === */
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 185, 0, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(255, 185, 0, 0); }
}
.glow-pulse { animation: glow-pulse 2.5s ease-in-out infinite; }

/* === AI BADGE (small futuristic pill) === */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  background: linear-gradient(120deg, rgba(167, 139, 250, 0.15), rgba(255, 185, 0, 0.15));
  border: 1px solid rgba(167, 139, 250, 0.3);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--navy);
  position: relative;
  overflow: hidden;
}
.ai-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(167, 139, 250, 0.3), transparent);
  transform: translateX(-100%);
  animation: ai-shimmer 3s ease-in-out infinite;
}
.ai-badge .ai-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
  flex-shrink: 0;
  position: relative;
}
.ai-badge span:not(.ai-dot) { position: relative; z-index: 1; }

@keyframes ai-shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* === SCROLL REVEAL ENHANCEMENTS === */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-scale.visible { opacity: 1; transform: scale(1); }

/* === ANIMATED COUNTER STYLES === */
.counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* === MARQUEE ENHANCEMENT (already exists, this adds glow on hover) === */
.marquee-section { position: relative; overflow: hidden; }
.marquee-section::before, .marquee-section::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.marquee-section::before {
  left: 0;
  background: linear-gradient(90deg, var(--navy), transparent);
}
.marquee-section::after {
  right: 0;
  background: linear-gradient(-90deg, var(--navy), transparent);
}

/* === PROCESS STEPS — animated highlight line === */
.process-step { position: relative; }
.process-step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--yellow);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}
.process-step:hover::before { transform: scaleY(1); }

/* === HERO CARDS — add glassmorphism + glow === */
.hero-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.hero-card-1 {
  background: linear-gradient(135deg, var(--navy) 0%, #1a3553 100%);
  box-shadow: 0 20px 50px rgba(19, 41, 66, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.hero-card-3 {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-soft) 100%);
  box-shadow: 0 20px 50px rgba(255, 185, 0, 0.3);
}

/* === SERVICE CARD HOVER GLOW === */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.15), transparent 70%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: 50%;
}
.service-card:hover::before { opacity: 1; }

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh .blob, .orb-anim-a, .orb-anim-b, .gradient-border::before,
  .ai-badge::before, .glow-pulse, .marquee {
    animation: none !important;
  }
  .fade-up, .fade-scale { transition: opacity 0.3s ease; transform: none; }
}

/* ===================================================================
   GLOBAL AMBIENT BACKGROUND ANIMATION
   Subtle, performant, stays white/cream — adds "alive" Web3/AI vibe
   =================================================================== */
body { position: relative; }

/* Fixed background layer behind everything */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

/* Animated grid lines that slowly drift */
.ambient-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(19, 41, 66, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 41, 66, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
  animation: ambient-drift 60s linear infinite;
}

@keyframes ambient-drift {
  0% { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

/* Soft drifting gradient blobs across the site */
.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  will-change: transform;
}

.ambient-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255, 185, 0, 0.5), transparent 70%);
  top: -10%; left: -10%;
  animation: ambient-float-1 35s ease-in-out infinite;
}

.ambient-blob-2 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 70%);
  top: 40%; right: -15%;
  animation: ambient-float-2 45s ease-in-out infinite;
}

.ambient-blob-3 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(19, 41, 66, 0.15), transparent 70%);
  bottom: -10%; left: 30%;
  animation: ambient-float-3 50s ease-in-out infinite;
}

@keyframes ambient-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, 8vh) scale(1.15); }
}
@keyframes ambient-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12vw, -10vh) scale(0.9); }
}
@keyframes ambient-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10vw, -15vh) scale(1.1); }
}

/* Make sure all opaque sections sit ABOVE the ambient bg
   but with slight transparency so the bg shows through */
section, .footer { position: relative; z-index: 1; }

/* The white sections become very subtly transparent so the ambient bg peeks through */
.services-bg, .process-bg, .blog-bg, .cases-bg, .contact-bg, .article-body {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.stats-band, .page-header, .about-story, .values-bg, .team-bg, .article-header {
  background: rgba(250, 247, 242, 0.75) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Mobile: dial back the blur and animation for performance + simplicity */
@media (max-width: 768px) {
  .ambient-blob { filter: blur(80px); opacity: 0.25; }
  .ambient-blob-1 { width: 350px; height: 350px; }
  .ambient-blob-2 { width: 320px; height: 320px; }
  .ambient-blob-3 { width: 300px; height: 300px; }
  .ambient-grid { background-size: 50px 50px; }
  .services-bg, .process-bg, .blog-bg, .cases-bg, .contact-bg, .article-body {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }
}

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

/* ===================================================================
   ANIMATED CLIENT LOGOS
   =================================================================== */
.clients-grid-animated {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.client-logo {
  aspect-ratio: 5/2;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  cursor: default;
}

.client-logo:hover {
  transform: translateY(-6px);
  border-color: var(--yellow);
  box-shadow: 0 12px 30px rgba(19, 41, 66, 0.1);
}

/* Shimmer sweep on hover */
.client-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 185, 0, 0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.client-logo:hover::before { transform: translateX(100%); }

/* Inner SVG */
.client-logo svg {
  width: 100%;
  height: 100%;
  max-height: 50px;
  color: var(--navy);
  transition: color 0.3s ease, transform 0.5s ease;
}
.client-logo:hover svg {
  color: var(--navy-deep);
  transform: scale(1.05);
}

/* Subtle continuous breathing animation, staggered per logo */
.client-logo svg { animation: logo-breath 4s ease-in-out infinite; }
.client-logo:nth-child(2) svg { animation-delay: 0.3s; }
.client-logo:nth-child(3) svg { animation-delay: 0.6s; }
.client-logo:nth-child(4) svg { animation-delay: 0.9s; }
.client-logo:nth-child(5) svg { animation-delay: 1.2s; }
.client-logo:nth-child(6) svg { animation-delay: 1.5s; }
.client-logo:nth-child(7) svg { animation-delay: 1.8s; }
.client-logo:nth-child(8) svg { animation-delay: 2.1s; }
.client-logo:nth-child(9) svg { animation-delay: 2.4s; }
.client-logo:nth-child(10) svg { animation-delay: 2.7s; }
.client-logo:nth-child(11) svg { animation-delay: 3.0s; }
.client-logo:nth-child(12) svg { animation-delay: 3.3s; }

@keyframes logo-breath {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .client-logo svg { animation: none; opacity: 0.85; }
}

@media (max-width: 600px) {
  .clients-grid-animated { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .client-logo { padding: 14px; }
}

/* Services page dark sections — ensure they keep their solid gradient bg
   despite the global ambient-bg/transparency rules above */
.services-section[data-svc] {
  /* Ambient bg won't show through these (intentional) */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* Footer always stays solid */
.footer { background: var(--navy-deep) !important; }

/* Hero section keeps its own mesh, doesn't need ambient bg seeping through */
.hero { background: rgba(250, 247, 242, 0.4); }

/* CTA sections (dark) stay solid */
.cta-section { background: var(--navy) !important; }

/* Marquee section stays solid navy */
.marquee-section { background: var(--navy) !important; }

/* Mobile fixes: tighter spacing, simpler layouts */
@media (max-width: 768px) {
  /* Hero stack is cleaner on mobile */
  .hero { padding-top: 110px; }

  /* AI badge wraps better */
  .ai-badge { font-size: 11px; padding: 5px 12px; }

  /* Hero CTA buttons stack full-width on phones for tap targets */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }

  /* Service cards: more readable padding on mobile */
  .service-card { padding: 32px 24px; }

  /* Services page grid → single column on small mobile */
  .services-grid[style*="repeat(2, 1fr)"] { grid-template-columns: 1fr !important; }

  /* Stats numbers: reduce massive font on mobile */
  .stat-item .num { font-size: 2.2rem; }

  /* Hero stats: stack nicely */
  .hero-stats { gap: 20px; padding-top: 28px; margin-top: 40px; }
  .hero-stat .num { font-size: 1.8rem; }

  /* Section heads: tighter */
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  /* Tiny screens — even more compact */
  .container { padding: 0 18px; }
  section { padding: 56px 0; }
  .services-section { padding: 56px 0; }
  .service-tag { font-size: 10px; padding: 5px 12px; }

  /* Process step on tiny screens — tighter */
  .process-step { padding: 24px 0; gap: 12px; }
  .process-step h3 { font-size: 1.2rem; }
  .process-step p { font-size: 14px; }

  /* Client logos — 2 cols at all small sizes */
  .clients-grid-animated { grid-template-columns: repeat(2, 1fr); }

  /* Reduce blob sizes further on tiny phones for performance */
  .ambient-blob { opacity: 0.2; }
}
