/* ============================================
   NEXUS CREATIVE STUDIO — style.css
   ============================================ */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: #030711;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: none; border: none; background: none; font-family: inherit; }

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #6366f1;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --bg: #030711;
  --bg2: #0d1117;
  --bg3: #161b27;
  --border: rgba(255,255,255,0.07);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --gradient: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  --gradient-glow: 0 0 60px rgba(99,102,241,0.2);
  --radius: 16px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ---- CUSTOM CURSOR ---- */
.cursor {
  width: 36px; height: 36px;
  border: 1.5px solid rgba(99,102,241,0.6);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s ease, width 0.2s, height 0.2s, border-color 0.2s;
  mix-blend-mode: normal;
}
.cursor-dot {
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: transform 0.05s;
}
.cursor.active {
  transform: scale(0.6);
  background: rgba(99,102,241,0.1);
  border-color: var(--primary);
}

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5 { font-family: 'Syne', sans-serif; font-weight: 700; line-height: 1.15; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gradient);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px rgba(99,102,241,0.4); }
.btn-primary.full { width: 100%; justify-content: center; border-radius: 12px; }
.btn-primary.mt { margin-top: 32px; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-muted);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

.btn-outline {
  display: block; text-align: center;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(99,102,241,0.05); }

.btn-nav {
  display: inline-flex;
  background: var(--gradient);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.88rem;
  transition: var(--transition);
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.35); }

/* ---- SECTION COMMON ---- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 16px; }
.section-sub { color: var(--text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.navbar.scrolled {
  background: rgba(3,7,17,0.85);
  backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 40px;
}
.logo {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--text);
}
.logo-icon { color: var(--primary); font-size: 1.6rem; line-height: 1; }
.logo-accent { color: var(--primary); }
.nav-links {
  display: flex; gap: 36px; align-items: center;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px; margin: 0 auto;
  position: relative;
  gap: 80px;
}
.hero-bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.35;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb1 { width: 600px; height: 600px; background: radial-gradient(circle, #6366f1, transparent); top: -200px; right: -100px; animation-delay: 0s; }
.orb2 { width: 400px; height: 400px; background: radial-gradient(circle, #06b6d4, transparent); bottom: -100px; left: -50px; animation-delay: 3s; }
.orb3 { width: 300px; height: 300px; background: radial-gradient(circle, #8b5cf6, transparent); top: 40%; left: 40%; animation-delay: 6s; }

@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.05); }
}

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content { flex: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  padding: 8px 16px; border-radius: 50px; margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.4; } }

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-sub {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 480px; margin-bottom: 40px;
  animation: fadeUp 0.8s 0.15s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 60px;
  animation: fadeUp 0.8s 0.25s ease both;
}
.hero-stats {
  display: flex; align-items: center; gap: 32px;
  animation: fadeUp 0.8s 0.35s ease both;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800;
  line-height: 1; color: var(--text);
}
.stat-sym { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--primary); display: inline; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero visual */
.hero-visual { flex: 1; position: relative; min-height: 420px; }
.code-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), var(--gradient-glow);
  animation: fadeUp 0.8s 0.2s ease both;
}
.code-header {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.code-filename { margin-left: 8px; font-size: 0.8rem; color: var(--text-muted); font-family: monospace; }
.code-body { padding: 24px; font-family: 'Courier New', monospace; font-size: 0.9rem; line-height: 1.8; }
.kw { color: #c792ea; } .fn { color: #82aaff; } .key { color: #f07178; }
.str { color: #c3e88d; } .num { color: #f78c6c; }
.code-footer { padding: 12px 20px; background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); font-size: 0.82rem; color: #22c55e; display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; animation: pulse 2s infinite; }

.floating-badge {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: rgba(13,17,23,0.9);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.b1 { top: -20px; right: -10px; color: #22c55e; animation: float1 4s ease-in-out infinite; }
.b2 { bottom: 40px; left: -20px; color: var(--primary-light); animation: float2 4s ease-in-out infinite; }
.b3 { bottom: -20px; right: 60px; color: var(--accent); animation: float1 4s 2s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes float2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)} }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-muted); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase;
  animation: fadeIn 1s 1s both;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

/* ---- MARQUEE ---- */
.marquee-wrap {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden; padding: 18px 0;
}
.marquee-track {
  display: flex; gap: 48px; align-items: center;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; white-space: nowrap; }
.marquee-track .sep { color: var(--primary); font-size: 0.75rem; }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ---- SERVICES ---- */
.services { padding: 120px 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative; overflow: hidden;
  transition: var(--transition);
  opacity: 0; transform: translateY(20px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 40px rgba(99,102,241,0.08); }
.service-card:hover::before { opacity: 1; }
.service-card.featured {
  border-color: rgba(99,102,241,0.35);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), var(--bg3));
}
.service-icon {
  width: 56px; height: 56px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; color: var(--primary-light);
  transition: var(--transition);
}
.service-card:hover .service-icon { background: rgba(99,102,241,0.2); transform: scale(1.05); }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--text-muted); font-size: 0.93rem; margin-bottom: 20px; line-height: 1.7; }
.service-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.service-tags span {
  font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 50px;
}
.service-link { font-size: 0.88rem; font-weight: 600; color: var(--primary-light); transition: gap 0.2s; }
.service-link:hover { color: var(--primary); }
.featured-badge {
  position: absolute; top: 24px; right: 24px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--gradient); color: #fff;
  padding: 4px 12px; border-radius: 50px;
}

/* ---- WORK ---- */
.work { padding: 120px 0; background: rgba(255,255,255,0.01); }
.work-filters {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 48px; flex-wrap: wrap;
}
.filter-btn {
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 0.88rem;
  color: var(--text-muted);
  padding: 10px 24px; border-radius: 50px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  color: var(--text); background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3);
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.work-card { border-radius: var(--radius); overflow: hidden; background: var(--bg3); border: 1px solid var(--border); transition: var(--transition); }
.work-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,0.4); }
.work-card.large { grid-column: span 1; }
.work-img { height: 240px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.work-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s;
}
.work-card:hover .work-overlay { opacity: 1; }
.work-link {
  color: #fff; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.9rem;
  border: 1.5px solid rgba(255,255,255,0.6); padding: 10px 24px; border-radius: 50px;
  transition: background 0.25s;
}
.work-link:hover { background: rgba(255,255,255,0.1); }
.work-info { padding: 24px; }
.work-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary-light); }
.work-info h3 { font-size: 1.15rem; margin: 8px 0; }
.work-info p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Mockup styles */
.work-mockup { width: 80%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; overflow: hidden; }
.mockup-bar { height: 28px; background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.mockup-content { padding: 16px; }
.mockup-line { height: 8px; background: rgba(255,255,255,0.12); border-radius: 4px; margin-bottom: 10px; }
.mockup-line.w80 { width: 80%; } .mockup-line.w60 { width: 60%; } .mockup-line.w70 { width: 70%; } .mockup-line.w50 { width: 50%; } .mockup-line.w90 { width: 90%; } .mockup-line.w75 { width: 75%; }
.mockup-blocks { display: flex; gap: 10px; margin-top: 12px; }
.mockup-block { height: 40px; flex: 1; background: rgba(255,255,255,0.08); border-radius: 8px; }
.mockup-block.g { background: rgba(6,182,212,0.2); }
.work-mockup.mobile { background: transparent; border: none; }
.mockup-phone { width: 120px; height: 200px; background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12); border-radius: 24px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.phone-notch { width: 50px; height: 14px; background: rgba(255,255,255,0.08); border-radius: 0 0 10px 10px; margin: 0 auto; }
.phone-screen { flex: 1; padding: 12px; }
.phone-line { height: 6px; background: rgba(255,255,255,0.15); border-radius: 3px; margin-bottom: 8px; }
.phone-line.w70 { width: 70%; }
.phone-circle { width: 44px; height: 44px; border-radius: 50%; background: rgba(99,102,241,0.3); margin: 10px auto 0; }
.work-mockup.brand { background: transparent; border: none; }
.brand-circle { width: 80px; height: 80px; border-radius: 50%; background: rgba(99,102,241,0.15); border: 2px solid rgba(99,102,241,0.3); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--primary-light); }

/* ---- ABOUT ---- */
.about { padding: 120px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-left p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; }
.about-features { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.feature { display: flex; gap: 16px; }
.feature-icon { width: 28px; height: 28px; border-radius: 50%; background: rgba(99,102,241,0.15); border: 1px solid rgba(99,102,241,0.3); display: flex; align-items: center; justify-content: center; color: var(--primary-light); font-size: 0.75rem; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.feature strong { display: block; font-family: 'Syne', sans-serif; margin-bottom: 4px; }
.feature p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* About visual */
.about-visual { position: relative; }
.av-main {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative; z-index: 1;
}
.team-avatars { display: flex; margin-bottom: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem;
  color: #fff; border: 2px solid var(--bg);
  margin-right: -12px;
}
.avatar.more { background: var(--bg3); border: 2px solid var(--border); color: var(--text-muted); font-size: 0.75rem; }
.team-label { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.tech-stack-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tech-pill { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); background: rgba(255,255,255,0.04); border: 1px solid var(--border); padding: 5px 14px; border-radius: 50px; }

.av-card {
  position: absolute; z-index: 2;
  background: rgba(13,17,23,0.9); backdrop-filter: blur(16px);
  border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.av-icon { font-size: 1.4rem; }
.av-card strong { display: block; font-family: 'Syne', sans-serif; font-size: 0.95rem; }
.av-card span { font-size: 0.78rem; color: var(--text-muted); }
.av1 { top: -30px; right: -20px; animation: float1 5s ease-in-out infinite; }
.av2 { bottom: 30px; left: -30px; animation: float2 5s ease-in-out infinite; }
.av3 { top: 50%; right: -30px; transform: translateY(-50%); animation: float1 5s 2s ease-in-out infinite; }

/* ---- PRICING ---- */
.pricing { padding: 120px 0; background: rgba(255,255,255,0.01); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 36px; position: relative; transition: var(--transition);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(0,0,0,0.3); }
.pricing-card.featured {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(160deg, rgba(99,102,241,0.1), var(--bg3));
  transform: scale(1.04);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }
.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  background: var(--gradient); color: #fff;
  padding: 5px 16px; border-radius: 50px; white-space: nowrap;
}
.pricing-header { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.plan-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--primary-light); display: block; margin-bottom: 12px; }
.plan-price { font-family: 'Syne', sans-serif; font-size: 2.6rem; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.currency { font-size: 1.5rem; vertical-align: super; }
.period { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-header p { color: var(--text-muted); font-size: 0.9rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.plan-features li { display: flex; align-items: center; gap: 12px; font-size: 0.93rem; }
.plan-features li.disabled { color: var(--text-muted); }
.check { color: var(--primary-light); font-weight: 700; }

/* ---- TESTIMONIALS ---- */
.testimonials { padding: 120px 0; }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; transition: var(--transition);
}
.testi-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.3); border-color: rgba(99,102,241,0.2); }
.testi-card.featured { border-color: rgba(99,102,241,0.3); background: linear-gradient(135deg, rgba(99,102,241,0.08), var(--bg3)); }
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 20px; }
.testi-card p { color: var(--text-muted); font-style: italic; line-height: 1.8; margin-bottom: 28px; font-size: 0.95rem; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.88rem; color: #fff; flex-shrink: 0; }
.testi-author strong { display: block; font-size: 0.93rem; margin-bottom: 2px; }
.testi-author span { font-size: 0.8rem; color: var(--text-muted); }

/* ---- CONTACT ---- */
.contact { padding: 120px 0; background: rgba(255,255,255,0.01); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-left p { color: var(--text-muted); margin: 16px 0 40px; font-size: 1.05rem; line-height: 1.8; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon { width: 44px; height: 44px; background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary-light); flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 4px; }
.contact-item a, .contact-item span { color: var(--text); font-size: 0.95rem; }

/* Contact form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; }
.form-group input, .form-group select, .form-group textarea {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px;
  color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none; resize: vertical;
  -webkit-appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form-group select option { background: #1a1f2e; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: rgba(99,102,241,0.5); box-shadow: 0 0 0 3px rgba(99,102,241,0.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(148,163,184,0.4); }
.form-success { text-align: center; color: #22c55e; font-weight: 600; font-size: 0.9rem; padding: 12px; background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); border-radius: 10px; display: none; }
.form-success.is-success { color: #22c55e; background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.2); }
.form-success.is-error { color: #fca5a5; background: rgba(239,68,68,0.09); border-color: rgba(239,68,68,0.2); }

/* ---- FOOTER ---- */
.footer { padding: 80px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 60px; margin-bottom: 64px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; line-height: 1.7; max-width: 280px; }
.social-links { display: flex; gap: 12px; margin-top: 24px; }
.social-links a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.social-links a:hover { color: var(--text); background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.3); }
.footer-col h4 { font-family: 'Syne', sans-serif; font-size: 0.88rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul a { font-size: 0.9rem; color: rgba(148,163,184,0.7); transition: color 0.25s; }
.footer-col ul a:hover { color: var(--text); }
.footer-col > p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 16px; line-height: 1.7; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-form input {
  flex: 1; background: var(--bg3); border: 1px solid var(--border);
  border-right: none; border-radius: 10px 0 0 10px;
  padding: 12px 16px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(148,163,184,0.4); }
.newsletter-form button {
  background: var(--gradient); color: #fff;
  padding: 12px 18px; border-radius: 0 10px 10px 0;
  font-weight: 700; font-size: 1rem; cursor: none;
  transition: opacity 0.25s;
}
.newsletter-form button:hover { opacity: 0.85; }
.newsletter-success { margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; color: var(--text-muted); transition: color 0.25s; }
.footer-links a:hover { color: var(--text); }

/* ---- AOS TRANSITIONS ---- */
[data-aos] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-aos].visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 50px; }
}

@media (max-width: 768px) {
  .navbar .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-container { gap: 0; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg); z-index: 200;
    align-items: center; justify-content: center;
    gap: 32px; font-size: 1.5rem;
  }
  .nav-links.open a { font-size: 1.3rem; }

  .hero { flex-direction: column; padding: 100px 24px 60px; gap: 50px; min-height: auto; }
  .hero-visual { display: none; }
  .hero-stats { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .av-card { display: none; }
  .cursor, .cursor-dot { display: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}

/* ---- MULTI PAGE LAYOUT ---- */
.nav-links a.active { color: var(--text); }
.page-hero {
  padding: 180px 0 96px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(99,102,241,0.22), transparent 30%),
    radial-gradient(circle at top right, rgba(6,182,212,0.14), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%);
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}
.page-section { padding: 96px 0; }
.alt-surface { background: rgba(255,255,255,0.02); }
.section-actions { display: flex; justify-content: center; margin-top: 36px; }
.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.vertical-stack { grid-template-columns: 1fr; }
.mini-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.mini-card strong { display: block; margin-bottom: 10px; font-family: 'Syne', sans-serif; font-size: 1.05rem; }
.mini-card p { color: var(--text-muted); line-height: 1.7; font-size: 0.95rem; }
.cta-strip { padding: 0 0 96px; }
.cta-strip__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(99,102,241,0.16), rgba(6,182,212,0.08));
  box-shadow: var(--shadow);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.insight-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.insight-card:hover { transform: translateY(-6px); border-color: rgba(99,102,241,0.4); }
.insight-card h3 { font-family: 'Syne', sans-serif; font-size: 1.2rem; margin: 14px 0 12px; }
.insight-card p { color: var(--text-muted); line-height: 1.7; }
.insight-thumb {
  height: 180px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.expanded-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.footer .social-links a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
}
@media (max-width: 1024px) {
  .compact-grid,
  .blog-grid,
  .expanded-grid,
  .split-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-strip__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .page-hero { padding: 150px 0 72px; }
  .compact-grid,
  .blog-grid,
  .expanded-grid,
  .split-cards { grid-template-columns: 1fr; }
  .page-section { padding: 72px 0; }
}

/* ---- WHITE THEME OVERRIDES ---- */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --accent: #f97316;
  --bg: #f6f8fc;
  --bg2: #ffffff;
  --bg3: #eef3fb;
  --border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --text-muted: #475569;
  --gradient: linear-gradient(135deg, #2563eb, #1d4ed8, #f97316);
  --gradient-glow: 0 20px 60px rgba(37, 99, 235, 0.18);
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

html { background: var(--bg); }
body {
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(249,115,22,0.06), transparent 22%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
  color: var(--text);
}
button { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, .logo, .btn-primary, .btn-ghost, .btn-outline, .btn-nav, .plan-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.cursor { border-color: rgba(37,99,235,0.35); background: rgba(37,99,235,0.05); }
.cursor-dot { background: var(--primary); }
.cursor.active { background: rgba(37,99,235,0.12); }

.section-tag {
  color: var(--primary);
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.16);
}

.navbar { background: rgba(255,255,255,0.72); backdrop-filter: blur(14px); }
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.nav-links a { color: #64748b; }
.nav-links a:hover,
.nav-links a.active,
.nav-links a.active::after { color: var(--text); }
.hamburger span { background: var(--text); }
.logo-icon, .logo-accent { color: var(--primary); }

.hero { min-height: auto; padding-top: 160px; padding-bottom: 96px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.orb { opacity: 0.14; filter: blur(110px); }
.orb1 { background: radial-gradient(circle, rgba(37,99,235,0.72), transparent 68%); }
.orb2 { background: radial-gradient(circle, rgba(249,115,22,0.45), transparent 68%); }
.orb3 { background: radial-gradient(circle, rgba(59,130,246,0.36), transparent 68%); }
.grid-overlay {
  background-image:
    linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  opacity: 0.4;
}
.hero-sub, .section-sub, .about-left p, .mini-card p, .testi-card p, .insight-card p, .footer-brand p, .footer-col p, .contact-left p { color: var(--text-muted); }
.hero-badge, .floating-badge, .code-card, .av-main, .av-card, .contact-right, .contact-item, .mini-card,
.service-card, .work-card, .pricing-card, .testi-card, .insight-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(15,23,42,0.08);
  box-shadow: var(--shadow);
}
.code-header, .code-footer { color: #64748b; }
.code-body, .code-filename { color: #0f172a; }
.kw { color: #2563eb; }
.str { color: #ea580c; }
.key { color: #0f172a; }
.num, .fn { color: #7c3aed; }

.btn-primary { box-shadow: 0 18px 40px rgba(37,99,235,0.18); }
.btn-primary:hover { box-shadow: 0 22px 50px rgba(37,99,235,0.24); }
.btn-ghost, .btn-outline {
  color: var(--text);
  border-color: rgba(15,23,42,0.1);
  background: rgba(255,255,255,0.7);
}
.btn-ghost:hover, .btn-outline:hover { background: #fff; color: var(--primary); border-color: rgba(37,99,235,0.24); }

.marquee-wrap, .alt-surface { background: rgba(255,255,255,0.52); }
.marquee-track { color: #334155; }
.sep { color: var(--accent); }

.services-grid, .work-grid, .pricing-grid, .testi-grid, .blog-grid, .split-cards, .footer-grid, .contact-grid, .about-grid {
  align-items: stretch;
}
.service-card, .work-card, .pricing-card, .testi-card, .insight-card, .mini-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.service-card p, .work-info p, .pricing-header p, .testi-card p, .insight-card p { flex-grow: 1; }
.work-info, .pricing-header, .testi-author { margin-top: auto; }
.service-tags, .service-link, .plan-features, .btn-outline, .btn-primary.full, .testi-author { margin-top: 18px; }
.work-img, .insight-thumb { width: 100%; }
.work-card .work-img { min-height: 260px; }
.work-card.large .work-img { min-height: 260px; }
.service-card { min-height: 100%; }
.pricing-card { min-height: 100%; }
.testi-card { min-height: 100%; }
.insight-card { min-height: 100%; }

.form-group input, .form-group select, .form-group textarea, .newsletter-form input {
  background: #fff;
  border-color: rgba(15,23,42,0.1);
  color: var(--text);
}
.form-group input::placeholder, .form-group textarea::placeholder, .newsletter-form input::placeholder { color: #94a3b8; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus, .newsletter-form input:focus {
  border-color: rgba(37,99,235,0.28);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}

.footer {
  background: #ffffff;
  border-top-color: rgba(15,23,42,0.08);
}
.footer-col h4, .footer-bottom p, .footer-links a { color: var(--text); }
.footer-links a, .footer-col ul li a { color: #475569; }
.footer-links a:hover, .footer-col ul li a:hover { color: var(--primary); }
.footer .social-links a {
  background: #f8fbff;
  border: 1px solid rgba(15,23,42,0.08);
  color: var(--text);
}
.footer .social-links a:hover { color: var(--primary); border-color: rgba(37,99,235,0.22); }

.page-hero {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.09), transparent 28%),
    radial-gradient(circle at top right, rgba(249,115,22,0.05), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,248,252,0.95));
}
.page-hero::after { background: linear-gradient(90deg, transparent, rgba(15,23,42,0.08), transparent); }
.cta-strip__inner {
  background: linear-gradient(135deg, rgba(37,99,235,0.1), rgba(249,115,22,0.08));
  border-color: rgba(15,23,42,0.08);
}

@media (max-width: 720px) {
  .cursor, .cursor-dot { display: none; }
  body, button { cursor: auto; }
}

/* ---- PREMIUM POLISH OVERRIDES ---- */
.container { max-width: 1240px; }

.navbar {
  padding: 16px 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
.nav-container {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 20px 50px rgba(15,23,42,0.06);
}
.navbar.scrolled .nav-container {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 24px 60px rgba(15,23,42,0.08);
}
.logo { font-size: 1.3rem; }
.nav-links { gap: 28px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.btn-nav {
  padding: 12px 22px;
  box-shadow: 0 14px 30px rgba(37,99,235,0.18);
}
.btn-nav:hover { box-shadow: 0 18px 38px rgba(37,99,235,0.22); }

.hero,
.page-hero,
.page-section,
.services,
.work,
.about,
.pricing,
.testimonials,
.contact {
  position: relative;
}
.page-section::after,
.services::after,
.work::after,
.about::after,
.pricing::after,
.testimonials::after,
.contact::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(15,23,42,0.08), transparent);
}
.footer::after,
.cta-strip::after,
.hero::after,
.page-hero::after { pointer-events: none; }

.hero-content,
.hero-visual,
.page-hero .container {
  position: relative;
  z-index: 1;
}
.hero-title,
.section-title {
  letter-spacing: -0.04em;
}
.hero-title { font-size: clamp(3rem, 7vw, 5.4rem); }
.hero-sub {
  font-size: 1.08rem;
  max-width: 630px;
}
.hero-badge {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(37,99,235,0.14);
  box-shadow: 0 12px 30px rgba(37,99,235,0.08);
}
.hero-stats {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 22px;
  padding: 18px 22px;
  box-shadow: 0 22px 50px rgba(15,23,42,0.07);
}
.code-card {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(15,23,42,0.14);
}
.floating-badge {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 36px rgba(15,23,42,0.08);
}

.section-header { margin-bottom: 72px; }
.section-title { margin-bottom: 18px; }
.section-sub { max-width: 640px; }
.page-hero {
  padding-top: 176px;
  padding-bottom: 104px;
}
.page-hero .section-title {
  max-width: 860px;
}
.page-hero .section-sub {
  max-width: 700px;
  margin-left: 0;
}

.btn-primary,
.btn-outline,
.btn-ghost {
  min-height: 50px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.btn-primary {
  border-radius: 16px;
  padding: 14px 26px;
}
.btn-primary.full { border-radius: 16px; }
.btn-outline,
.btn-ghost {
  border-radius: 16px;
}

.service-card,
.work-card,
.pricing-card,
.testi-card,
.insight-card,
.mini-card,
.contact-right,
.contact-item,
.av-main,
.av-card,
.code-card {
  border-radius: 24px;
}
.service-card,
.work-card,
.pricing-card,
.testi-card,
.insight-card,
.mini-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.service-card:hover,
.work-card:hover,
.pricing-card:hover,
.testi-card:hover,
.insight-card:hover,
.mini-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37,99,235,0.16);
  box-shadow: 0 28px 70px rgba(15,23,42,0.1);
}
.service-card.featured,
.pricing-card.featured,
.testi-card.featured {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,247,255,0.96));
  border-color: rgba(37,99,235,0.14);
}
.service-icon,
.feature-icon,
.ci-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.12), rgba(249,115,22,0.12));
  border: 1px solid rgba(37,99,235,0.1);
}
.work-img,
.insight-thumb {
  border-radius: 20px;
  overflow: hidden;
}
.work-info,
.pricing-header,
.testi-author {
  padding-top: 2px;
}
.pricing-grid,
.testi-grid,
.blog-grid,
.services-grid,
.work-grid { gap: 26px; }
.plan-features li,
.footer-col ul li {
  padding: 6px 0;
}

.contact-grid {
  gap: 30px;
}
.contact-right {
  padding: 28px;
}
.contact-form { gap: 18px; }
.form-group input,
.form-group select,
.form-group textarea,
.newsletter-form input {
  border-radius: 14px;
  min-height: 52px;
}
.form-group textarea { min-height: 150px; }
.newsletter-form input { border-radius: 14px 0 0 14px; }
.newsletter-form button { border-radius: 0 14px 14px 0; }

.footer {
  padding-top: 88px;
}
.footer-grid {
  gap: 44px;
}
.footer-brand p { max-width: 360px; }
.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  margin-bottom: 12px;
}
.footer-bottom {
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .nav-container {
    border-radius: 28px;
    gap: 24px;
  }
  .hero { gap: 44px; }
  .page-hero { padding-top: 164px; }
}

@media (max-width: 720px) {
  .nav-container {
    border-radius: 20px;
    padding: 12px 16px;
  }
  .hero,
  .page-hero { padding-top: 136px; }
  .section-header { margin-bottom: 52px; }
  .contact-right { padding: 22px; }
  .hero-stats { border-radius: 18px; }
  .btn-primary,
  .btn-outline,
  .btn-ghost { width: 100%; justify-content: center; }
  .hero-actions { width: 100%; flex-direction: column; }
}

/* ---- HEADER RESTRUCTURE ---- */
.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-header-action {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.84rem;
  white-space: nowrap;
}
.nav-links {
  justify-content: center;
  margin-left: 0;
}
.nav-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.logo--brand {
  padding: 8px 0;
  white-space: nowrap;
}

/* ---- HERO REBUILD ---- */
.hero {
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  display: grid;
  align-items: center;
}
.hero-note {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 0;
}
.hero-stage {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-screen,
.hero-metric,
.hero-stack-card {
  will-change: transform;
  transition: transform 0.25s ease;
}
.hero-screen {
  position: relative;
  width: 100%;
  max-width: 520px;
  padding: 22px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,248,252,0.98));
  border: 1px solid rgba(37,99,235,0.1);
  box-shadow: 0 35px 90px rgba(15,23,42,0.14);
}
.hero-screen__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.hero-screen__label {
  margin-left: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
}
.hero-screen__body {
  display: grid;
  gap: 16px;
}
.hero-screen__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hero-screen__panel {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 22px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}
.hero-screen__panel--wide {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(249,115,22,0.07));
}
.hero-screen__panel strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--text);
}
.hero-screen__panel p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.hero-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-metric {
  position: absolute;
  width: 220px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 26px 55px rgba(15,23,42,0.1);
}
.hero-metric--accent {
  background: linear-gradient(180deg, rgba(37,99,235,0.96), rgba(29,78,216,0.92));
  color: #fff;
}
.hero-metric__value {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.hero-metric__label {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: inherit;
}
.hero-float--left { top: 28px; left: 0; }
.hero-float--right { top: 150px; right: 0; }
.hero-float--bottom {
  position: absolute;
  left: 40px;
  bottom: 18px;
}
.hero-stack-card {
  max-width: 280px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 26px 55px rgba(15,23,42,0.08);
}
.hero-stack-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.hero-stack-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.hero-stack-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.hero-screen::before,
.hero-stack-card::before,
.hero-metric::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(249,115,22,0.15), rgba(255,255,255,0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.hero-stage::after {
  content: '';
  position: absolute;
  inset: 40px 70px 70px;
  border-radius: 38px;
  background: radial-gradient(circle at 20% 20%, rgba(37,99,235,0.12), transparent 40%), radial-gradient(circle at 80% 20%, rgba(249,115,22,0.12), transparent 28%);
  z-index: -1;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.hero-float--main { animation: floatSlow 6s ease-in-out infinite; }
.hero-float--left { animation: floatSlow 5.3s ease-in-out infinite; }
.hero-float--right { animation: floatSlow 4.8s ease-in-out infinite; }
.hero-float--bottom { animation: floatSlow 5.8s ease-in-out infinite; }

@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'cta brand'
      'nav nav';
  }
  .nav-cta-group { grid-area: cta; }
  .nav-links { grid-area: nav; padding-top: 8px; flex-wrap: wrap; }
  .nav-brand-wrap { grid-area: brand; }
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-stage {
    min-height: 500px;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'brand brand';
  }
  .nav-cta-group { display: none; }
  .nav-brand-wrap { justify-content: space-between; width: 100%; }
  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 24px;
    box-shadow: 0 28px 65px rgba(15,23,42,0.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; margin-left: 0; }
  .hero-screen__grid { grid-template-columns: 1fr; }
  .hero-metric,
  .hero-stack-card {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 18px;
  }
  .hero-stage {
    display: block;
    min-height: auto;
  }
  .hero-stage::after { inset: 30px 20px 20px; }
}

/* ---- HEADER ORDER FIX ---- */
.nav-shell {
  grid-template-columns: auto 1fr auto;
}
.logo--brand {
  justify-self: start;
}
.nav-links {
  justify-self: center;
}
.nav-cta-group {
  justify-self: end;
}
@media (max-width: 1180px) {
  .nav-shell {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: none;
  }
  .logo--brand { order: 1; }
  .nav-links { order: 2; }
  .nav-cta-group { order: 3; }
}
@media (max-width: 820px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .logo--brand { order: 1; }
  .nav-cta-group {
    order: 2;
    gap: 0;
  }
  .nav-cta-group .btn-header-action {
    display: none;
  }
  .nav-links {
    order: 3;
    justify-self: stretch;
  }
}

/* ---- HEADER MATCHED STYLE ---- */
.navbar {
  padding: 10px 0;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 8px 30px rgba(15,23,42,0.04);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}
.nav-container.nav-shell--classic {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 24px;
}
.logo--header {
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
}
.logo-box {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d63d8;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(29,99,216,0.22);
}
.logo--header .logo-accent { color: #f97316; }
.nav-shell--classic .nav-links {
  gap: 14px;
}
.nav-shell--classic .nav-links a {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.97rem;
  font-weight: 600;
  color: #5b6576;
}
.nav-shell--classic .nav-links a::after {
  display: none;
}
.nav-shell--classic .nav-links a:hover {
  color: #1e293b;
  background: #f3f6fb;
}
.nav-shell--classic .nav-links a.active {
  background: #eaf2ff;
  color: #1d63d8;
}
.nav-cta-group--header {
  gap: 12px;
}
.btn-header-light {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.12);
  color: #1e293b;
  box-shadow: none;
}
.btn-header-light:hover {
  border-color: rgba(29,99,216,0.22);
  color: #1d63d8;
  background: #fff;
}
.btn-header-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff8c2b, #ff7a13);
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(249,115,22,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-header-call::before {
  content: '◔';
  margin-right: 8px;
  font-size: 0.95rem;
}
.btn-header-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(249,115,22,0.28);
}
@media (max-width: 1180px) {
  .nav-container.nav-shell--classic {
    padding: 12px 18px;
  }
  .nav-shell--classic .nav-links {
    gap: 6px;
  }
  .nav-shell--classic .nav-links a {
    padding: 10px 12px;
    font-size: 0.92rem;
  }
}
@media (max-width: 820px) {
  .nav-container.nav-shell--classic {
    padding: 12px 16px;
  }
  .nav-cta-group--header .btn-header-action,
  .nav-cta-group--header .btn-header-call {
    display: none;
  }
  .nav-shell--classic .nav-links {
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15,23,42,0.08);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15,23,42,0.1);
  }
  .nav-shell--classic .nav-links a {
    width: 100%;
  }
}

/* ---- UX POLISH LAYER ---- */
body {
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

main, section { position: relative; }
.section-header,
.page-hero .container,
.hero-content,
.about-left,
.contact-left {
  max-width: 100%;
}
.section-title,
.hero-title {
  text-wrap: balance;
}
.section-sub,
.hero-sub,
.about-left p,
.contact-left p,
.mini-card p,
.service-card p,
.work-info p,
.pricing-header p,
.testi-card p,
.insight-card p {
  text-wrap: pretty;
}

.page-section,
.services,
.work,
.about,
.pricing,
.testimonials,
.contact,
.page-hero {
  scroll-margin-top: 110px;
}

.page-section {
  padding: 88px 0;
}
.section-header {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.section-sub {
  font-size: 1.02rem;
}

.hero {
  gap: 64px;
  padding-bottom: 110px;
}
.hero-content {
  max-width: 620px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}
.hero-pills .tech-pill,
.tech-stack-row .tech-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(15,23,42,0.08);
  color: #334155;
  font-size: 0.86rem;
  font-weight: 600;
}
.hero-stats {
  margin-top: 28px;
  gap: 18px;
}
.stat {
  min-width: 0;
}
.stat-label {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.84rem;
}

.hero-screen__panel,
.hero-metric,
.hero-stack-card,
.service-card,
.work-card,
.pricing-card,
.testi-card,
.insight-card,
.mini-card,
.contact-right,
.contact-item,
.av-main,
.av-card {
  backdrop-filter: blur(8px);
}

.services-grid,
.work-grid,
.pricing-grid,
.testi-grid,
.blog-grid,
.split-cards {
  row-gap: 28px;
}

.service-card,
.work-card,
.pricing-card,
.testi-card,
.insight-card,
.mini-card {
  padding: 24px;
}
.service-card {
  gap: 0;
}
.service-card h3,
.work-info h3,
.pricing-header .plan-name,
.insight-card h3,
.mini-card strong {
  letter-spacing: -0.02em;
}
.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
}
.featured-badge,
.popular-badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 700;
  color: var(--primary);
}
.service-link:hover {
  color: #1d4ed8;
}

.work-card {
  padding: 0;
}
.work-img {
  min-height: 240px;
}
.work-info {
  padding: 22px 22px 24px;
}
.work-cat {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-grid,
.contact-grid {
  gap: 36px;
}
.about-left,
.contact-left,
.contact-right,
.about-visual {
  height: 100%;
}
.about-features {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.feature {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(15,23,42,0.07);
}
.contact-info {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}
.contact-item {
  padding: 18px;
  border-radius: 18px;
}
.contact-right {
  padding: 30px;
}
.form-row {
  gap: 18px;
}
.form-group {
  gap: 10px;
}
.form-group label {
  color: #475569;
  font-size: 0.78rem;
}
.form-group input,
.form-group select,
.form-group textarea,
.newsletter-form input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover,
.newsletter-form input:hover {
  border-color: rgba(37,99,235,0.16);
}

.pricing-card {
  padding: 26px;
}
.pricing-header {
  margin-bottom: 12px;
}
.plan-features {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #475569;
}
.check { color: #16a34a; }

.testi-card {
  gap: 0;
}
.stars {
  color: #f59e0b;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  margin-bottom: 14px;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testi-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
}

.blog-grid {
  align-items: stretch;
}
.insight-card {
  padding: 20px;
}
.insight-card .service-link {
  margin-top: 18px;
}

.cta-strip {
  padding-top: 8px;
}
.cta-strip__inner {
  padding: 38px 40px;
  gap: 22px;
}

.footer {
  margin-top: 12px;
}
.footer-grid {
  align-items: start;
}
.footer-col ul {
  display: grid;
  gap: 2px;
}
.footer-col ul li {
  margin-bottom: 0;
}
.footer-bottom {
  gap: 16px;
}

/* tone down old aggressive hover/tilt rules */
.service-card:hover,
.work-card:hover,
.pricing-card:hover,
.testi-card:hover,
.insight-card:hover,
.mini-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(15,23,42,0.08);
}

@media (max-width: 1180px) {
  .hero {
    gap: 48px;
  }
  .work-grid,
  .pricing-grid,
  .testi-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section-header {
    margin-bottom: 44px;
  }
  .page-section {
    padding: 72px 0;
  }
  .hero {
    padding-top: 132px;
    padding-bottom: 84px;
    gap: 36px;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%;
    justify-content: center;
  }
  .hero-pills {
    gap: 10px;
  }
  .hero-stats {
    padding: 16px;
  }
  .work-grid,
  .pricing-grid,
  .testi-grid,
  .blog-grid,
  .services-grid,
  .split-cards,
  .about-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .contact-right,
  .pricing-card,
  .service-card,
  .testi-card,
  .work-info,
  .mini-card {
    padding: 22px;
  }
  .work-card {
    padding: 0;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---- FULL WIDTH HEADER + BUTTON SIZE FIX ---- */
.navbar {
  width: 100%;
}
.nav-container.nav-shell--classic {
  width: 100%;
  max-width: 100%;
  padding: 12px 32px;
}
.nav-shell--classic {
  width: 100%;
}
.nav-shell--classic .nav-links {
  flex: 1;
  justify-content: center;
}
.nav-cta-group--header {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.btn-header-action,
.btn-header-call {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.96rem;
  line-height: 1;
  white-space: nowrap;
}
.btn-header-light {
  min-width: 118px;
}
.btn-header-call {
  min-width: 158px;
  padding: 0 24px;
  border-radius: 14px;
}
@media (max-width: 1180px) {
  .nav-container.nav-shell--classic {
    padding: 12px 20px;
  }
  .btn-header-action,
  .btn-header-call {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.9rem;
  }
  .btn-header-call {
    min-width: 146px;
  }
}
@media (max-width: 820px) {
  .nav-container.nav-shell--classic {
    padding: 12px 16px;
  }
}

/* ---- HERO QUOTE LAYOUT ---- */
.hero--quote {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 56px;
  min-height: 720px;
  padding-top: 150px;
  padding-bottom: 96px;
}
.hero-bg--image {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.72)),
    radial-gradient(circle at 20% 30%, rgba(37,99,235,0.1), transparent 25%),
    radial-gradient(circle at 70% 40%, rgba(249,115,22,0.08), transparent 20%),
    linear-gradient(135deg, #eef4fb 0%, #f9fbff 50%, #eef3fb 100%);
}
.hero-content--quote {
  max-width: 620px;
  align-self: center;
}
.hero-badge--soft {
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #1d63d8;
  border: 1px solid rgba(37,99,235,0.08);
}
.hero-title--quote {
  max-width: 640px;
  font-size: clamp(3.5rem, 8vw, 5.4rem);
  line-height: 0.96;
  margin-top: 18px;
}
.hero-sub--quote {
  max-width: 560px;
  margin-top: 20px;
  font-size: 1.08rem;
}
.hero-actions--quote {
  margin-top: 28px;
}
.hero-btn-secondary {
  background: rgba(255,255,255,0.9);
}
.hero-slider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 22px 0 0;
}
.hero-slider-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(15,23,42,0.12);
}
.hero-slider-dots__active {
  width: 28px !important;
  background: linear-gradient(135deg, #ff8c2b, #ff7a13) !important;
}
.hero-stats--quote {
  max-width: 460px;
  padding: 16px 0 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
.hero-quote-card {
  align-self: center;
  position: relative;
}
.hero-quote-card__inner {
  padding: 28px;
  border-radius: 26px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 28px 70px rgba(15,23,42,0.12);
}
.hero-quote-card__inner h2 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 10px;
  color: #1e293b;
}
.hero-quote-card__inner > p {
  color: #64748b;
  margin-bottom: 20px;
}
.contact-form--hero .form-group {
  gap: 0;
}
.contact-form--hero .form-row {
  gap: 14px;
}
.contact-form--hero input,
.contact-form--hero select,
.contact-form--hero textarea {
  background: #f8fbff;
}
.hero-submit {
  margin-top: 8px;
  background: linear-gradient(135deg, #ff8c2b, #ff7a13);
  box-shadow: 0 18px 36px rgba(249,115,22,0.24);
}
.hero-submit:hover {
  box-shadow: 0 20px 40px rgba(249,115,22,0.28);
}
@media (max-width: 1180px) {
  .hero--quote {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 32px;
  }
  .hero-quote-card {
    max-width: 620px;
    width: 100%;
  }
}
@media (max-width: 720px) {
  .hero--quote {
    padding-top: 132px;
    padding-bottom: 72px;
  }
  .hero-title--quote {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
  .hero-quote-card__inner {
    padding: 22px;
  }
  .hero-stats--quote {
    max-width: 100%;
  }
}

/* ---- FIXES LAYER ---- */
.social-links--footer a {
  min-width: 56px;
  width: auto;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}
.work-card .service-link {
  margin-top: 14px;
}

/* ---- HOMEPAGE REFERENCE REBUILD ---- */
.page-home {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 32%, #ffffff 100%);
}

.home-section-header .section-tag {
  background: transparent;
  border: none;
  color: #f97316;
  letter-spacing: 0.14em;
  padding: 0;
}

.home-services,
.home-industries,
.home-why,
.home-projects,
.home-testimonials,
.home-stack,
.home-faq,
.home-insights {
  padding-top: 96px;
  padding-bottom: 96px;
}

.home-showcase {
  background: #ffffff;
}

.home-card-grid {
  display: grid;
  gap: 24px;
}

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

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

.home-service-card {
  display: grid;
  grid-template-rows: 208px 1fr;
  min-height: 100%;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.1);
}

.home-service-card__media {
  position: relative;
  overflow: hidden;
}

.home-service-card__media::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(15,23,42,0.08));
}

.home-service-card__media--web {
  background: linear-gradient(135deg, rgba(225,232,245,0.9), rgba(207,221,240,0.9)), radial-gradient(circle at 30% 35%, rgba(59,130,246,0.24), transparent 22%), linear-gradient(120deg, #d7e4f6 0%, #f2f6fb 45%, #d5e0f0 100%);
}

.home-service-card__media--analytics {
  background: linear-gradient(135deg, rgba(21,38,67,0.96), rgba(13,110,175,0.92));
}

.home-service-card__media--mobile {
  background: linear-gradient(135deg, #d9e7fb, #f7fbff 42%, #c8dcf8 100%);
}

.home-service-card__media--brand {
  background: linear-gradient(135deg, #f3eadf, #faf7f1 40%, #e7dcc8 100%);
}

.home-service-card__media--web::after,
.home-service-card__media--analytics::after,
.home-service-card__media--mobile::after,
.home-service-card__media--brand::after {
  content: '';
  position: absolute;
  inset: 16px;
  border-radius: 18px;
}

.home-service-card__media--web::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(242,247,252,0.96));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}

.home-service-card__media--analytics::after {
  background: linear-gradient(180deg, rgba(13,23,42,0.12), rgba(13,23,42,0.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.home-service-card__media--mobile::after {
  width: 110px;
  height: 168px;
  margin: auto;
  inset: 0;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(227,236,248,0.98));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.08), 0 18px 40px rgba(37,99,235,0.12);
}

.home-service-card__media--brand::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(250,246,238,0.98));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}

.home-service-card__body {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 24px;
}

.home-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #edf4ff;
  color: #2563eb;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.home-service-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.16rem;
  color: #162033;
  margin-bottom: 10px;
}

.home-service-card p {
  color: #64748b;
  font-size: 0.94rem;
}

.home-list {
  margin: 18px 0 16px;
  display: grid;
  gap: 8px;
}

.home-list li {
  position: relative;
  padding-left: 16px;
  color: #475569;
  font-size: 0.88rem;
}

.home-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #f97316);
}

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

.industry-card {
  min-height: 96px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.04);
}

.industry-card span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 0.92rem;
}

.industry-card strong {
  font-size: 0.96rem;
  color: #223047;
}

.home-split {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.home-split__content p {
  color: #64748b;
  max-width: 520px;
  margin-top: 12px;
}

.home-split__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 32px;
}

.home-split__metrics strong {
  display: block;
  color: #1d4ed8;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  line-height: 1;
}

.home-split__metrics span {
  display: block;
  margin-top: 8px;
  color: #64748b;
  font-size: 0.86rem;
}

.home-advantage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-advantage-grid .mini-card {
  min-height: 136px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.home-stats-band {
  padding: 36px 0;
  background: linear-gradient(135deg, #1d63d8, #2563eb 55%, #2f74ec 100%);
}

.home-stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.home-band-stat {
  text-align: center;
  color: #fff;
}

.home-band-stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.home-band-stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.86);
}

.work-card--home,
.insight-card,
.faq-item {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.05);
}

.work-card--home .work-img,
.insight-media {
  height: 210px;
}

.work-img--photo,
.insight-media {
  position: relative;
  overflow: hidden;
}

.work-img--desk {
  background: linear-gradient(135deg, #f0ece4, #f8f6f2 45%, #d7cdbc 100%);
}

.work-img--medical {
  background: linear-gradient(135deg, #dbe8f7, #f6fbff 42%, #c9dff4 100%);
}

.work-img--analytics,
.insight-media--dashboard {
  background: linear-gradient(135deg, #0d203f, #133a64 55%, #0e76b7 100%);
}

.insight-media--workspace {
  background: linear-gradient(135deg, #e7edf6, #fbfdff 42%, #d3deef 100%);
}

.insight-media--laptop {
  background: linear-gradient(135deg, #dfeaf5, #f7fbff 42%, #c8d8ea 100%);
}

.work-img--desk::after,
.work-img--medical::after,
.work-img--analytics::after,
.insight-media--workspace::after,
.insight-media--dashboard::after,
.insight-media--laptop::after {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 18px;
}

.work-img--desk::after,
.insight-media--workspace::after,
.insight-media--laptop::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.86), rgba(243,247,252,0.96));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.06);
}

.work-img--medical::after {
  width: 132px;
  height: 170px;
  margin: auto;
  inset: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(224,236,249,0.98));
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.08), 0 18px 42px rgba(37,99,235,0.12);
}

.work-img--analytics::after,
.insight-media--dashboard::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.08));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.home-testimonials {
  background: #fbfcfe;
}

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

.stack-card {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  font-weight: 700;
  color: #334155;
  box-shadow: 0 12px 30px rgba(15,23,42,0.04);
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  font-family: 'Inter', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.faq-trigger span {
  font-size: 1.2rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.faq-item.open .faq-trigger span {
  transform: rotate(45deg);
  color: #2563eb;
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, padding 0.28s ease;
  padding: 0 22px;
}

.faq-item.open .faq-panel {
  max-height: 180px;
  padding: 0 22px 20px;
}

.faq-panel p {
  color: #64748b;
  font-size: 0.94rem;
}

.home-cta-band {
  padding: 82px 0;
  background: linear-gradient(135deg, #1d63d8, #2b6ee8 60%, #3f83f8 100%);
}

.home-cta-band__inner {
  max-width: 820px;
  text-align: center;
}

.home-cta-band .section-tag {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.78);
  padding: 0;
}

.home-cta-band h2 {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.home-cta-band p {
  max-width: 640px;
  margin: 16px auto 0;
  color: rgba(255,255,255,0.82);
}

.home-cta-band__actions {
  justify-content: center;
  margin-top: 28px;
}

.home-cta-band .btn-outline {
  color: #ffffff;
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08);
}

.home-cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.14);
}

.home-services .section-actions,
.home-projects .section-actions,
.home-testimonials .section-actions,
.home-insights .section-actions {
  margin-top: 30px;
}

@media (max-width: 1180px) {
  .home-card-grid--four,
  .industry-grid,
  .home-stats-band__grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card-grid--three,
  .home-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .home-services,
  .home-industries,
  .home-why,
  .home-projects,
  .home-testimonials,
  .home-stack,
  .home-faq,
  .home-insights {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .home-card-grid--four,
  .home-card-grid--three,
  .industry-grid,
  .home-advantage-grid,
  .home-stats-band__grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .home-service-card {
    grid-template-rows: 190px 1fr;
  }

  .hero-quote-card__inner h2 {
    font-size: 1.7rem;
  }

  .home-split__metrics {
    gap: 18px;
  }

  .home-stats-band {
    padding: 28px 0;
  }

  .faq-trigger {
    font-size: 0.92rem;
    padding: 16px 18px;
  }

  .faq-item.open .faq-panel {
    padding: 0 18px 18px;
  }
}

/* ---- STRICT HOME MATCH TUNING ---- */
.home-hero {
  align-items: center;
  min-height: 760px;
  gap: 64px;
}

.home-hero .hero-bg--image {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0.78)),
    radial-gradient(circle at 18% 20%, rgba(37,99,235,0.08), transparent 24%),
    radial-gradient(circle at 76% 22%, rgba(249,115,22,0.08), transparent 18%),
    linear-gradient(135deg, #eef4fb 0%, #ffffff 42%, #eef3fb 100%);
}

.home-hero__content {
  padding-bottom: 10px;
}

.home-hero .hero-title--quote {
  max-width: 580px;
  font-size: clamp(3.4rem, 7vw, 5.25rem);
  letter-spacing: -0.05em;
}

.home-hero .gradient-text {
  background: linear-gradient(135deg, #ff8f2c, #ff6f0f);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-hero .hero-sub--quote {
  max-width: 520px;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #68809c;
}

.home-hero .hero-actions--quote {
  margin-top: 26px;
}

.home-hero .btn-primary,
.home-cta-band .btn-primary {
  background: linear-gradient(135deg, #ff8d27, #ff7411);
  box-shadow: 0 18px 34px rgba(249,115,22,0.2);
}

.home-hero .btn-outline,
.home-showcase .btn-outline,
.home-projects .btn-outline,
.home-insights .btn-outline,
.home-testimonials .btn-outline {
  background: #ffffff;
  color: #263449;
  border: 1px solid rgba(15,23,42,0.12);
}

.home-hero .hero-stats--quote {
  gap: 24px;
  padding-top: 22px;
}

.home-hero .stat-num,
.home-hero .stat-sym {
  color: #132238;
}

.home-hero .stat-label {
  color: #7a8ca2;
}

.hero-quote-card {
  max-width: 520px;
  width: 100%;
}

.hero-quote-card__inner {
  padding: 30px;
  border-radius: 24px;
  box-shadow: 0 28px 50px rgba(15,23,42,0.12);
}

.hero-quote-card__inner h2 {
  font-size: 1.95rem;
  letter-spacing: -0.03em;
}

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

.contact-form--hero input,
.contact-form--hero select,
.contact-form--hero textarea {
  min-height: 52px;
  border-radius: 12px;
  border: 1px solid #dbe4f0;
  background: #fdfefe;
  color: #243447;
}

.contact-form--hero textarea {
  min-height: 104px;
}

.hero-submit {
  min-height: 56px;
  border-radius: 12px;
}

.home-section-header {
  margin-bottom: 52px;
}

.home-section-header .section-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: #162033;
}

.home-section-header .section-sub {
  max-width: 640px;
  color: #70829b;
}

.home-services,
.home-industries,
.home-why,
.home-projects,
.home-testimonials,
.home-stack,
.home-faq,
.home-insights {
  position: relative;
}

.home-services::before,
.home-testimonials::before,
.home-insights::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(241,245,251,0.42) 40%, rgba(255,255,255,0));
  pointer-events: none;
}

.home-card-grid {
  align-items: stretch;
}

.home-service-card,
.work-card--home,
.insight-card,
.testi-card {
  height: 100%;
}

.home-service-card__body,
.work-info,
.insight-card,
.testi-card {
  display: flex;
  flex-direction: column;
}

.home-service-card .service-link,
.work-card--home .service-link,
.insight-card .service-link {
  margin-top: auto;
  padding-top: 16px;
}

.home-service-card__media--web::before,
.home-service-card__media--brand::before,
.work-img--desk::before,
.insight-media--workspace::before,
.insight-media--laptop::before {
  content: '';
  position: absolute;
  inset: 24px;
  background-image: linear-gradient(rgba(37,99,235,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 16px 16px;
  border-radius: 18px;
}

.home-service-card__media--analytics::before,
.work-img--analytics::before,
.insight-media--dashboard::before {
  content: '';
  position: absolute;
  inset: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.home-service-card__media--analytics::after,
.work-img--analytics::after,
.insight-media--dashboard::after {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06)),
    linear-gradient(90deg, transparent 0 15%, rgba(6,182,212,0.22) 15% 27%, transparent 27% 36%, rgba(59,130,246,0.26) 36% 52%, transparent 52% 62%, rgba(249,115,22,0.24) 62% 76%, transparent 76%);
}

.home-service-card__media--mobile::before,
.work-img--medical::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 18%, rgba(37,99,235,0.14), transparent 20%), linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
}

.home-service-card__media--brand::after,
.work-img--desk::after,
.insight-media--workspace::after,
.insight-media--laptop::after {
  background-image:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(243,247,252,0.98)),
    linear-gradient(90deg, transparent 0 24%, rgba(15,23,42,0.06) 24% 25%, transparent 25% 49%, rgba(15,23,42,0.06) 49% 50%, transparent 50%);
}

.industry-card {
  min-height: 102px;
  padding: 16px;
}

.home-why .mini-card {
  padding: 22px 20px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15,23,42,0.04);
}

.home-stats-band {
  margin-top: 4px;
}

.home-band-stat strong {
  font-size: 2.1rem;
}

.work-card--home {
  border-radius: 18px;
}

.work-card--home .work-info {
  gap: 8px;
}

.work-card--home .btn-primary {
  align-self: center;
}

.home-projects .section-actions .btn-primary {
  min-width: 170px;
  justify-content: center;
}

.home-testimonials .testi-card {
  padding: 22px;
  border-radius: 18px;
}

.home-testimonials .testi-card.featured {
  border-color: rgba(37,99,235,0.16);
  box-shadow: 0 22px 50px rgba(37,99,235,0.08);
}

.stack-card {
  min-height: 70px;
  border-radius: 14px;
  font-size: 0.92rem;
}

.faq-item {
  border-radius: 14px;
}

.faq-trigger {
  min-height: 62px;
}

.home-insights .insight-card {
  border-radius: 18px;
  overflow: hidden;
}

.home-insights .insight-card h3 {
  margin-top: 12px;
  color: #1b2638;
}

.home-cta-band {
  padding: 88px 0;
}

.home-cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-cta-band h2 {
  margin-top: 12px;
}

.home-cta-band__actions .btn-primary,
.home-cta-band__actions .btn-outline {
  min-width: 188px;
  justify-content: center;
}

@media (max-width: 1024px) {
  .home-hero {
    gap: 42px;
  }

  .contact-form--hero .form-row {
    grid-template-columns: 1fr;
  }
}

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

  .home-hero .hero-title--quote {
    max-width: 100%;
    font-size: clamp(2.75rem, 13vw, 4.3rem);
  }

  .hero-quote-card__inner {
    padding: 22px;
  }

  .home-hero .hero-actions--quote,
  .home-cta-band__actions {
    flex-direction: column;
    width: 100%;
  }

  .home-hero .hero-actions--quote a,
  .home-cta-band__actions a {
    width: 100%;
    justify-content: center;
  }
}

/* ---- SPACING DENSITY FIX (GLOBAL + FOOTER) ---- */
:root {
  --space-section-desktop: 76px;
  --space-section-mobile: 58px;
}

.container {
  max-width: 1320px;
  padding-left: 18px;
  padding-right: 18px;
}

.page-section,
.home-services,
.home-industries,
.home-why,
.home-projects,
.home-testimonials,
.home-stack,
.home-faq,
.home-insights {
  padding-top: var(--space-section-desktop);
  padding-bottom: var(--space-section-desktop);
}

.section-header,
.home-section-header {
  margin-bottom: 38px;
}

.section-sub,
.home-section-header .section-sub {
  margin-top: 8px;
}

/* reduce oversized CTA strip footprint */
.home-cta-band {
  padding-top: 64px;
  padding-bottom: 64px;
}

.home-cta-band__inner {
  max-width: 980px;
}

/* tighten footer side whitespace and vertical rhythm */
.footer {
  padding-top: 54px;
  padding-bottom: 18px;
}

.footer .container {
  max-width: 1320px;
  padding-left: 18px;
  padding-right: 18px;
}

.footer-grid {
  grid-template-columns: 1.35fr 0.9fr 0.9fr 1.1fr;
  gap: 34px;
  margin-bottom: 32px;
}

.footer-brand p {
  max-width: 420px;
  margin-top: 12px;
}

.footer-col h4 {
  margin-bottom: 12px;
}

.footer-col ul {
  gap: 0;
}

.footer-col ul li {
  padding: 3px 0;
}

.footer-bottom {
  padding-top: 18px;
}

/* keep cards compact and aligned */
.home-card-grid {
  gap: 18px;
}

.home-service-card {
  grid-template-rows: 186px 1fr;
}

.work-card--home .work-img,
.insight-media {
  height: 186px;
}

.home-service-card__body,
.work-info,
.insight-card,
.testi-card,
.mini-card {
  padding: 18px;
}

.industry-grid {
  gap: 14px;
}

.industry-card {
  min-height: 86px;
}

.stack-grid {
  gap: 12px;
}

.stack-card {
  min-height: 62px;
  padding: 14px;
}

@media (max-width: 1180px) {
  .container,
  .footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }

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

@media (max-width: 820px) {
  .page-section,
  .home-services,
  .home-industries,
  .home-why,
  .home-projects,
  .home-testimonials,
  .home-stack,
  .home-faq,
  .home-insights {
    padding-top: var(--space-section-mobile);
    padding-bottom: var(--space-section-mobile);
  }

  .home-cta-band {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .footer {
    padding-top: 38px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .home-service-card {
    grid-template-rows: 170px 1fr;
  }

  .work-card--home .work-img,
  .insight-media {
    height: 170px;
  }
}

/* ---- BUTTON + SPACING FIX ---- */
:root {
  --btn-h: 46px;
  --btn-px: 20px;
  --btn-radius: 12px;
  --btn-gap: 8px;
}

/* Base button reset for consistent sizing */
.btn-primary,
.btn-outline,
.btn-ghost,
.btn-nav,
.btn-header-light,
.btn-header-call,
.btn-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap);
  min-height: var(--btn-h);
  padding: 0 var(--btn-px);
  border-radius: var(--btn-radius);
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  margin: 0;
}

.btn-primary span,
.btn-outline span,
.btn-ghost span,
.btn-header-call span,
.btn-header-action span {
  line-height: 1;
}

/* Specific sizing refinements */
.btn-primary {
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-outline,
.btn-ghost,
.btn-header-light,
.btn-header-action {
  font-size: 0.93rem;
  font-weight: 600;
}

.btn-header-call {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.93rem;
}

.btn-header-light,
.btn-header-action {
  min-height: 42px;
  padding: 0 16px;
}

/* Keep full-width buttons truly full width without extra spacing bugs */
.btn-primary.full,
.btn-outline.full {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
}

/* Button groups spacing */
.hero-actions,
.hero-actions--quote,
.home-cta-band__actions,
.nav-cta-group,
.nav-cta-group--header,
.section-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-actions {
  justify-content: center;
  margin-top: 22px;
}

/* Remove accidental oversized spacing in key places */
.hero-actions--quote {
  margin-top: 20px;
  margin-bottom: 0;
}

.home-cta-band__actions {
  margin-top: 22px;
}

/* Footer newsletter button alignment */
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0;
}

.newsletter-form button {
  min-width: 44px;
  min-height: 44px;
  border-radius: 0 10px 10px 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Mobile button behavior */
@media (max-width: 820px) {
  :root {
    --btn-h: 44px;
    --btn-px: 16px;
  }

  .hero-actions,
  .hero-actions--quote,
  .home-cta-band__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions--quote .btn-primary,
  .hero-actions--quote .btn-outline,
  .home-cta-band__actions .btn-primary,
  .home-cta-band__actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .nav-cta-group,
  .nav-cta-group--header {
    gap: 8px;
  }
}

/* ---- HEADER CTA EDGE + SIZE FIX ---- */
.nav-container.nav-shell--classic {
  padding-left: 22px;
  padding-right: 22px;
}

.nav-cta-group--header {
  gap: 10px;
  margin-left: 10px;
  flex-shrink: 0;
}

.btn-header-light,
.btn-header-action {
  min-height: 40px;
  padding: 0 14px;
  min-width: 0;
  font-size: 0.92rem;
  border-radius: 11px;
}

.btn-header-call {
  min-height: 42px;
  padding: 0 16px;
  min-width: 0;
  font-size: 0.92rem;
  border-radius: 12px;
}

.btn-header-call::before {
  margin-right: 6px;
}

@media (max-width: 1180px) {
  .nav-container.nav-shell--classic {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn-header-light,
  .btn-header-action,
  .btn-header-call {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }
}

/* ---- CONTACT PAGE DESIGN FIX ---- */
.page-contact .contact.page-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.page-contact .contact-grid {
  gap: 36px;
  align-items: start;
}

.page-contact .contact-left p {
  margin: 12px 0 22px;
  font-size: 1rem;
  line-height: 1.7;
}

.page-contact .contact-info {
  gap: 14px;
}

.page-contact .contact-item {
  padding: 14px 16px;
  border-radius: 14px;
}

.page-contact #schedule.mini-card {
  margin-top: 14px !important;
  padding: 20px 18px;
  border-radius: 16px;
  min-height: 0;
  height: auto;
  display: block;
}

.page-contact #schedule.mini-card strong {
  margin: 0 0 10px;
  font-size: 1.02rem;
  line-height: 1.35;
}

.page-contact #schedule.mini-card p {
  margin: 0;
  flex-grow: 0;
  min-height: 0;
  line-height: 1.65;
  color: #475569;
}

.page-contact .contact-right {
  padding: 22px;
  border-radius: 18px;
}

.page-contact .contact-form {
  gap: 14px;
}

.page-contact .form-group {
  gap: 6px;
}

/* keep cursor behavior consistent on contact page */
.page-contact.has-custom-cursor .cursor,
.page-contact.has-custom-cursor .cursor-dot {
  display: block;
}

@media (max-width: 900px) {
  .page-contact .contact.page-section {
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .page-contact .contact-grid {
    gap: 24px;
  }

  .page-contact .contact-right {
    padding: 18px;
  }
}

/* ---- FOOTER ENHANCEMENT ---- */
.footer-grid--enhanced {
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 28px;
}

.social-links--footer-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.social-links--footer-icons a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-links--footer-icons a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-links--footer-icons a:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.32);
  color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.footer-col--contact .footer-contact-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-col--contact .footer-contact-list li {
  display: grid;
  gap: 4px;
  padding: 0;
}

.footer-col--contact .footer-contact-list strong {
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #64748b;
}

.footer-col--contact .footer-contact-list a,
.footer-col--contact .footer-contact-list span {
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.45;
}

.footer-col--contact .newsletter-form {
  margin-top: 14px;
}

/* ---- CONTACT MAP SECTION ---- */
.contact-map-section {
  padding-top: 22px;
  padding-bottom: 76px;
}

.contact-map-header {
  margin-bottom: 28px;
}

.contact-map-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.contact-map-wrap iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

/* ---- SMOOTH PAGE FLOW ---- */
body {
  opacity: 1;
  transform: none;
}

body.page-ready {
  opacity: 1;
  transform: none;
}

.nav-links a,
.footer-links a,
.footer-col a,
.btn-primary,
.btn-outline,
.btn-header-light,
.btn-header-call,
.service-card,
.work-card,
.insight-card,
.testi-card,
.mini-card {
  transition-duration: 0.25s;
  transition-timing-function: ease;
}

@media (max-width: 1180px) {
  .footer-grid--enhanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .contact-map-wrap iframe {
    height: 360px;
  }
}

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

  .contact-map-section {
    padding-top: 10px;
    padding-bottom: 58px;
  }

  .contact-map-wrap iframe {
    height: 300px;
  }
}

/* ---- REAL ICONS POLISH ---- */
.home-card-icon,
.industry-card span,
.ci-icon {
  font-size: 0;
}

.home-card-icon i,
.industry-card span i,
.ci-icon i {
  font-size: 18px;
  line-height: 1;
}

.stack-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.stack-card i {
  font-size: 22px;
  line-height: 1;
}

.stack-card .devicon-amazonwebservices-plain-wordmark {
  font-size: 17px;
}

.stack-card span {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.stack-svg {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stack-svg svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
`n
.social-links--footer-icons a svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 820px) {
  .stack-card {
    justify-content: flex-start;
    padding-left: 16px;
  }
}


/* ---- HERO ANIMATION UPGRADE ---- */
.home-hero {
  position: relative;
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  inset: auto;
  pointer-events: none;
  z-index: 0;
}

.home-hero::before {
  width: 420px;
  height: 420px;
  left: -120px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.22), transparent 68%);
  animation: heroGlowFloat 10s ease-in-out infinite;
}

.home-hero::after {
  width: 380px;
  height: 380px;
  right: -90px;
  top: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 68%);
  animation: heroGlowFloat 12s ease-in-out infinite reverse;
}

@keyframes heroGlowFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  50% { transform: translate3d(0, -16px, 0) scale(1.06); opacity: 1; }
}

.home-hero .hero-content,
.home-hero .hero-quote-card,
.home-hero .hero-stats,
.home-hero .hero-slider-dots {
  opacity: 0;
  transform: translateY(18px);
}

.home-hero.is-animated .hero-content {
  animation: heroRevealUp 0.7s ease forwards;
}

.home-hero.is-animated .hero-slider-dots {
  animation: heroRevealUp 0.7s ease 0.35s forwards;
}

.home-hero.is-animated .hero-stats {
  animation: heroRevealUp 0.7s ease 0.5s forwards;
}

.home-hero.is-animated .hero-quote-card {
  animation: heroRevealRight 0.8s ease 0.2s forwards;
}

.home-hero .hero-title,
.home-hero .hero-sub,
.home-hero .hero-actions {
  opacity: 0;
  transform: translateY(12px);
}

.home-hero.is-animated .hero-title {
  animation: heroRevealUp 0.65s ease 0.08s forwards;
}

.home-hero.is-animated .hero-sub {
  animation: heroRevealUp 0.65s ease 0.2s forwards;
}

.home-hero.is-animated .hero-actions {
  animation: heroRevealUp 0.65s ease 0.3s forwards;
}

@keyframes heroRevealUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroRevealRight {
  from { opacity: 0; transform: translateX(26px) translateY(8px); }
  to { opacity: 1; transform: translateX(0) translateY(0); }
}

.home-hero .hero-quote-card__inner {
  will-change: transform;
  animation: heroCardFloat 6.5s ease-in-out infinite;
}

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

.home-hero .btn-primary {
  position: relative;
  overflow: hidden;
}

.home-hero .btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.38) 48%, transparent 75%);
  transform: skewX(-18deg);
  animation: heroBtnSheen 4.6s ease-in-out infinite;
}

@keyframes heroBtnSheen {
  0%, 70% { left: -130%; }
  100% { left: 130%; }
}

.home-hero .hero-quote-card__inner:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.home-hero .hero-bg--image {
  animation: heroBgShift 16s ease-in-out infinite;
}

@keyframes heroBgShift {
  0%, 100% { background-position: 0% 0%, 20% 20%, 76% 22%, 0% 0%; }
  50% { background-position: 0% 0%, 28% 24%, 70% 18%, 2% 2%; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero::before,
  .home-hero::after,
  .home-hero .hero-quote-card__inner,
  .home-hero .hero-bg--image,
  .home-hero .btn-primary::after,
  .home-hero .hero-content,
  .home-hero .hero-quote-card,
  .home-hero .hero-title,
  .home-hero .hero-sub,
  .home-hero .hero-actions,
  .home-hero .hero-stats,
  .home-hero .hero-slider-dots {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- HERO HEIGHT NORMALIZATION ---- */
.home-hero.hero--quote {
  width: calc(100% - 36px);
  max-width: 1340px;
  margin-left: auto;
  margin-right: auto;
  min-height: 620px;
  padding-top: 132px;
  padding-bottom: 56px;
  padding-left: 18px;
  padding-right: 18px;
  gap: 40px;
}

.home-hero .hero-content--quote {
  align-self: center;
}

.home-hero .hero-title--quote {
  font-size: clamp(2.7rem, 5.5vw, 4.3rem);
  line-height: 1.02;
  margin-top: 12px;
}

.home-hero .hero-sub--quote {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.65;
}

.home-hero .hero-actions--quote {
  margin-top: 16px;
}

.home-hero .hero-stats--quote {
  margin-top: 14px;
  padding-top: 12px;
}

.home-hero .hero-quote-card {
  align-self: center;
}

.home-hero .hero-quote-card__inner {
  padding: 24px;
}

.home-hero .hero-quote-card__inner h2 {
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.home-hero .hero-quote-card__inner > p {
  margin-bottom: 14px;
}

@media (max-width: 1180px) {
  .home-hero.hero--quote {
    min-height: 560px;
    padding-top: 124px;
    padding-bottom: 46px;
  }
}

@media (max-width: 820px) {
  .home-hero.hero--quote {
    width: calc(100% - 24px);
    min-height: auto;
    padding-top: 118px;
    padding-bottom: 34px;
    padding-left: 12px;
    padding-right: 12px;
    gap: 26px;
  }

  .home-hero .hero-title--quote {
    font-size: clamp(2.2rem, 10vw, 3.3rem);
  }

  .home-hero .hero-quote-card__inner {
    padding: 18px;
  }

  .home-hero .hero-stats--quote {
    padding-top: 8px;
    margin-top: 10px;
  }
}

/* ---- HERO TEXT ROTATION TRANSITION ---- */
.home-hero__content {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.home-hero__content.hero-copy-transition {
  opacity: 0;
  transform: translateY(8px);
}

/* ---- SYSTEMATIC STABILITY LAYER (LATEST) ---- */
.skip-link {
  position: absolute;
  top: -44px;
  left: 12px;
  z-index: 1200;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 0.9rem;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 10px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

main#main-content {
  display: block;
}

.container {
  width: min(100%, 1320px);
  margin-inline: auto;
  padding-inline: clamp(14px, 2.2vw, 26px);
}

.page-section {
  padding-block: clamp(56px, 7vw, 88px);
}

.nav-container.nav-shell--classic {
  max-width: 1320px;
  margin-inline: auto;
}

.nav-links {
  gap: clamp(12px, 1.5vw, 24px);
}

.nav-links a {
  font-size: 0.98rem;
}

.nav-cta-group--header {
  margin-left: 0;
}

.btn-header-action,
.btn-header-light,
.btn-header-call {
  min-height: 44px;
  padding-inline: 18px;
}

.btn-header-call i,
.btn-header-call svg {
  flex-shrink: 0;
}

.mini-card p {
  flex-grow: 0;
}

.service-icon i {
  font-size: 1.15rem;
  line-height: 1;
}

.testi-avatar--red { background: #ef4444; }
.testi-avatar--blue { background: #2563eb; }
.testi-avatar--green { background: #10b981; }
.testi-avatar--indigo { background: #6366f1; }
.testi-avatar--violet { background: #8b5cf6; }
.testi-avatar--cyan { background: #06b6d4; }
.testi-avatar--teal { background: #14b8a6; }
.testi-avatar--orange { background: #f97316; }

.insight-thumb--blog {
  background: linear-gradient(135deg, #111827, #334155);
}

.work-img--fintrack { background: linear-gradient(135deg, #0f2027, #203a43, #2c5364); }
.work-img--medicare { background: linear-gradient(135deg, #1a0533, #4a00e0, #8e2de2); }
.work-img--veritas { background: linear-gradient(135deg, #0d0d0d, #1a1a2e, #16213e); }
.work-img--greenleaf { background: linear-gradient(135deg, #0a3d0a, #1b6b1b, #27ae60); }
.work-img--sparkhr { background: linear-gradient(135deg, #1a0a00, #c0392b, #e74c3c); }
.work-img--edupath { background: linear-gradient(135deg, #0d1b2a, #1b4332, #40916c); }

.footer .newsletter-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1280px) {
  .nav-container.nav-shell--classic {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn-header-light,
  .btn-header-action {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nav-links {
    width: min(94vw, 420px);
    max-height: calc(100vh - 110px);
    overflow-y: auto;
  }
}

/* ---- FORM DROPDOWN VISIBILITY FIX (LIGHT THEME) ---- */
.form-group select,
.contact-form--hero select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  color-scheme: light;
}

.form-group select option,
.contact-form--hero select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

.form-group select option:checked,
.contact-form--hero select option:checked {
  background: #e8f0ff !important;
  color: #0f172a !important;
}

/* ---- CURSOR RELIABILITY FIX ---- */
body,
button,
a,
input,
select,
textarea {
  cursor: auto;
}

body.has-custom-cursor,
body.has-custom-cursor button,
body.has-custom-cursor a,
body.has-custom-cursor input,
body.has-custom-cursor select,
body.has-custom-cursor textarea {
  cursor: none !important;
}

body.has-custom-cursor .cursor {
  display: block !important;
  border-color: rgba(37, 99, 235, 0.7);
  background: rgba(37, 99, 235, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 6px 20px rgba(15, 23, 42, 0.14);
}

body.has-custom-cursor .cursor-dot {
  display: block !important;
  background: #2563eb;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}

@media (max-width: 1024px) {
  body.has-custom-cursor,
  body.has-custom-cursor button,
  body.has-custom-cursor a,
  body.has-custom-cursor input,
  body.has-custom-cursor select,
  body.has-custom-cursor textarea {
    cursor: auto !important;
  }

  .cursor,
  .cursor-dot {
    display: none !important;
  }
}

/* ---- UNIFIED RESPONSIVE LAYER (ALL SCREENS) ---- */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

/* Large laptops / small desktops */
@media (max-width: 1366px) {
  .container,
  .footer .container,
  .nav-container.nav-shell--classic {
    max-width: 1220px;
  }

  .hero,
  .page-hero,
  .page-section {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Laptop / tablet landscape */
@media (max-width: 1180px) {
  .home-card-grid--four,
  .industry-grid,
  .stack-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-card-grid--three,
  .testi-grid,
  .blog-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-grid,
  .contact-grid,
  .home-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .home-hero.hero--quote {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-quote-card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
}

/* Tablet portrait / small laptop */
@media (max-width: 1024px) {
  .navbar {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .nav-container.nav-shell--classic {
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
  }

  .hamburger {
    display: inline-flex !important;
  }

  .nav-links {
    position: fixed;
    top: 84px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    z-index: 1200;
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
  }

  .nav-cta-group--header {
    justify-content: flex-end;
    margin-left: auto;
  }

  .btn-header-light,
  .btn-header-action {
    display: none !important;
  }

  .hero-title,
  .hero-title--quote,
  .page-hero .section-title {
    font-size: clamp(2rem, 6.5vw, 3.2rem);
    line-height: 1.06;
  }

  .hero-actions,
  .hero-actions--quote,
  .home-cta-band__actions {
    flex-wrap: wrap;
  }

  .contact-form--hero .form-row,
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-map-wrap iframe {
    height: 320px;
  }
}

/* Mobile landscape / large phones */
@media (max-width: 820px) {
  .container,
  .footer .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-section,
  .contact.page-section,
  .home-hero.hero--quote {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home-card-grid--four,
  .home-card-grid--three,
  .industry-grid,
  .stack-grid,
  .testi-grid,
  .blog-grid,
  .work-grid,
  .split-cards,
  .compact-grid,
  .footer-grid,
  .footer-grid--enhanced {
    grid-template-columns: 1fr !important;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-outline,
  .hero-actions--quote .btn-primary,
  .hero-actions--quote .btn-outline,
  .home-cta-band__actions .btn-primary,
  .home-cta-band__actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .hero-stats,
  .hero-stats--quote {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
  }

  .hero-stats .stat,
  .hero-stats--quote .stat {
    flex: 1;
    min-width: 0;
  }

  .hero-stats .stat-num,
  .hero-stats--quote .stat-num {
    font-size: 1.45rem;
  }

  .hero-quote-card__inner,
  .contact-right {
    padding: 18px;
    border-radius: 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .contact-map-wrap iframe {
    height: 280px;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .logo--header {
    font-size: 1rem;
  }

  .logo-box {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .btn-header-call {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .nav-links {
    top: 76px;
    left: 10px;
    right: 10px;
  }

  .hero-title,
  .hero-title--quote,
  .page-hero .section-title {
    font-size: clamp(1.75rem, 8.2vw, 2.4rem);
  }

  .hero-sub,
  .hero-sub--quote,
  .section-sub {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .home-service-card__media,
  .work-img,
  .insight-media,
  .insight-thumb {
    height: 180px !important;
    min-height: 180px !important;
  }

  .service-card,
  .pricing-card,
  .testi-card,
  .insight-card,
  .mini-card,
  .work-card,
  .contact-right {
    border-radius: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .contact-form--hero input,
  .contact-form--hero select,
  .contact-form--hero textarea {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .form-group textarea,
  .contact-form--hero textarea {
    min-height: 96px;
  }

  .contact-map-wrap iframe {
    height: 240px;
  }
}

/* ---- HEADER OVERFLOW FIX ---- */
.navbar,
.nav-container.nav-shell--classic {
  overflow: visible;
}

.nav-shell--classic .logo--header {
  flex-shrink: 0;
}

.nav-shell--classic .nav-links {
  min-width: 0;
  gap: clamp(10px, 1.3vw, 22px);
}

.nav-shell--classic .nav-links a {
  white-space: nowrap;
  font-size: clamp(0.9rem, 0.85rem + 0.15vw, 0.98rem);
}

.nav-cta-group--header {
  margin-left: 0;
  flex-shrink: 0;
}

@media (max-width: 1440px) {
  .nav-container.nav-shell--classic {
    padding-left: 16px;
    padding-right: 16px;
    gap: 12px;
  }

  .nav-shell--classic .nav-links {
    gap: clamp(8px, 1vw, 16px);
  }

  .btn-header-light,
  .btn-header-action {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.9rem;
  }

  .btn-header-call {
    min-height: 40px;
    padding: 0 13px;
    font-size: 0.9rem;
  }
}

/* ---- HEADER STABILITY FIX (FINAL AUTHORITY) ---- */
.header-topbar {
  background: #1f2937;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  position: relative;
  z-index: 150;
}

.header-topbar__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-topbar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.header-topbar__left a,
.header-topbar__left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #f3f4f6;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.header-topbar__left a:hover {
  color: #ffffff;
}

.header-topbar__right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-topbar__right a {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1;
}

.header-topbar__right a:hover {
  color: #ffffff;
}

.nav-container.nav-shell--classic {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.navbar {
  top: 38px !important;
}

.navbar.scrolled {
  top: 0 !important;
}

.nav-shell--classic .logo--header {
  flex: 0 0 auto;
}

.nav-shell--classic .nav-links {
  display: flex;
  width: 100%;
  min-width: 0;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 0 10px;
  overflow: hidden;
}

.nav-shell--classic .nav-links li {
  flex: 0 1 auto;
}

.nav-shell--classic .nav-cta-group--header {
  flex: 0 0 auto;
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
}

.nav-shell--classic .btn-header-action,
.nav-shell--classic .btn-header-light,
.nav-shell--classic .btn-header-call {
  white-space: nowrap;
}

/* Medium desktop/laptop where overflow used to happen */
@media (max-width: 1500px) {
  .nav-shell--classic .nav-links {
    gap: 8px;
  }

  .nav-shell--classic .nav-links a {
    font-size: 0.91rem;
    padding-inline: 1px;
  }
}

@media (max-width: 1320px) {
  .header-topbar__left {
    gap: 14px;
  }

  .header-topbar__left a,
  .header-topbar__left span {
    font-size: 0.84rem;
  }

  .nav-shell--classic .nav-links {
    gap: 10px;
    margin-left: 12px;
    margin-right: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }

  .nav-shell--classic .nav-links a {
    font-size: 0.92rem;
    padding-inline: 2px;
  }

  .nav-shell--classic .btn-header-action,
  .nav-shell--classic .btn-header-light {
    padding: 0 11px;
    min-height: 38px;
    font-size: 0.88rem;
  }

  .nav-shell--classic .btn-header-call {
    padding: 0 12px;
    min-height: 38px;
    font-size: 0.88rem;
  }
}

/* Tight laptop widths: keep primary CTA, hide secondary to prevent clipping */
@media (max-width: 1400px) {
  .nav-shell--classic .btn-header-action,
  .nav-shell--classic .btn-header-light {
    display: none !important;
  }

  .nav-shell--classic .nav-links {
    gap: 8px;
  }
}

/* Tight laptop widths: keep primary CTA, hide secondary to prevent clipping */
@media (max-width: 1180px) {
  .nav-shell--classic .btn-header-action,
  .nav-shell--classic .btn-header-light {
    display: none !important;
  }

  .nav-shell--classic .nav-links {
    gap: 8px;
    margin-left: 8px;
    margin-right: 8px;
  }

  .nav-shell--classic .nav-links a {
    font-size: 0.9rem;
  }
}

/* Tablet/mobile handled by hamburger */
@media (max-width: 1024px) {
  .header-topbar {
    display: none;
  }

  .navbar {
    top: 0 !important;
  }

  .nav-container.nav-shell--classic {
    display: grid !important;
    grid-template-columns: auto auto;
    align-items: center;
  }

  .nav-shell--classic .nav-links {
    display: none;
  }

  .nav-shell--classic .nav-links.open {
    display: flex !important;
  }

  .nav-shell--classic .btn-header-call {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.9rem;
  }
}

/* ---- HEADER REFERENCE LOCK (DESKTOP MATCH) ---- */
.header-topbar {
  display: block !important;
  background: #1f2937 !important;
}

.header-topbar__inner {
  max-width: 1240px;
  padding: 9px 18px;
  min-height: 36px;
}

.header-topbar__left {
  gap: 22px;
}

.header-topbar__left a,
.header-topbar__left span {
  font-size: 0.88rem;
}

.navbar {
  top: 36px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
  padding: 10px 0 !important;
}

.navbar.scrolled {
  top: 36px !important;
  background: #ffffff !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.nav-container.nav-shell--classic {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.nav-shell--classic .logo--header {
  margin-right: 2px;
}

.nav-shell--classic .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0 16px;
  overflow: visible;
  flex-wrap: nowrap;
  max-width: 100%;
}

.nav-shell--classic .nav-links a {
  font-size: 1rem;
  color: #475569;
  white-space: nowrap;
}

.nav-shell--classic .nav-links a.active {
  color: #1d63d8;
}

.nav-shell--classic .nav-cta-group--header {
  gap: 10px;
  padding-left: 6px;
}

.nav-shell--classic .btn-header-light,
.nav-shell--classic .btn-header-action {
  display: inline-flex !important;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.93rem;
}

.nav-shell--classic .btn-header-call {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 0.93rem;
}

@media (max-width: 1366px) {
  .nav-container.nav-shell--classic {
    padding: 0 14px !important;
    gap: 12px;
  }

  .nav-shell--classic .nav-links {
    gap: 16px;
    padding: 0 10px;
  }

  .nav-shell--classic .nav-links a {
    font-size: 0.95rem;
  }

  .nav-shell--classic .btn-header-light,
  .nav-shell--classic .btn-header-action {
    padding: 0 14px;
    min-height: 40px;
    font-size: 0.9rem;
  }

  .nav-shell--classic .btn-header-call {
    padding: 0 14px;
    min-height: 40px;
    font-size: 0.9rem;
  }
}

@media (max-width: 1240px) {
  .nav-shell--classic .btn-header-light,
  .nav-shell--classic .btn-header-action {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .header-topbar {
    display: none !important;
  }

  .navbar,
  .navbar.scrolled {
    top: 0 !important;
  }

  .nav-container.nav-shell--classic {
    grid-template-columns: auto auto;
  }
}

/* ---- STATIC HEADER MODE (NO MOVING/FLOATING) ---- */
.header-topbar {
  position: static !important;
}

.navbar,
.navbar.scrolled {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
}

/* ---- HERO TO HEADER SPACING FIX ---- */
.hero,
.page-hero {
  padding-top: 56px !important;
}

.home-hero.hero--quote {
  padding-top: 56px !important;
}

@media (max-width: 1024px) {
  .hero,
  .page-hero,
  .home-hero.hero--quote {
    padding-top: 44px !important;
  }
}

@media (max-width: 576px) {
  .hero,
  .page-hero,
  .home-hero.hero--quote {
    padding-top: 32px !important;
  }
}

/* ---- RENDER PERFORMANCE IMPROVEMENTS ---- */
@supports (content-visibility: auto) {
  main > section:not(.hero):not(.home-hero):not(.page-hero) {
    content-visibility: auto;
    contain-intrinsic-size: 800px;
  }
}

/* ---- DEVELOPER QUICK MAP ----
  Header layout/tuning: search "HEADER STABILITY FIX (FINAL AUTHORITY)" and "HEADER REFERENCE LOCK (DESKTOP MATCH)"
  Hero spacing under header: search "HERO TO HEADER SPACING FIX"
  Form styling/select/readability: search "FORM DROPDOWN VISIBILITY FIX (LIGHT THEME)"
  Cursor behavior: search "CURSOR RELIABILITY FIX"
  Global responsive rules: search "UNIFIED RESPONSIVE LAYER (ALL SCREENS)"
*/

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
