/* ═══════════════════════════════════════════════
   NUMLOGIC.COM — PREMIUM CSS DESIGN SYSTEM
   ═══════════════════════════════════════════════ */

/* ─── RESET & ROOT ──────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --color-bg:           #080d1a;
  --color-bg-2:         #0c1425;
  --color-bg-card:      rgba(255,255,255,0.03);
  --color-bg-card-h:    rgba(255,255,255,0.06);
  --color-border:       rgba(255,255,255,0.07);
  --color-border-h:     rgba(0,212,255,0.3);

  --color-primary:      #00d4ff;
  --color-primary-dark: #0099cc;
  --color-accent:       #7c3aed;
  --color-accent-2:     #a855f7;
  --color-green:        #10b981;

  --color-text:         #e8edf5;
  --color-text-muted:   #8899b4;
  --color-text-dim:     #4a5568;

  /* Gradients */
  --grad-primary:       linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --grad-primary-h:     linear-gradient(135deg, #00e5ff 0%, #9333ea 100%);
  --grad-bg-radial:     radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.08) 0%, transparent 65%);
  --grad-card:          linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);

  /* Typography */
  --font-display:       'Outfit', sans-serif;
  --font-body:          'Inter', sans-serif;

  /* Spacing */
  --section-pad:        100px;
  --container-max:      1200px;
  --container-pad:      24px;

  /* Transitions */
  --transition:         all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:    all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-card:        0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:        0 0 40px rgba(0,212,255,0.15);
  --shadow-glow-h:      0 0 60px rgba(0,212,255,0.3);
  --shadow-btn:         0 4px 20px rgba(0,212,255,0.3);
  --shadow-btn-h:       0 8px 32px rgba(0,212,255,0.5);

  /* Border radius */
  --radius-sm:          8px;
  --radius-md:          16px;
  --radius-lg:          24px;
  --radius-xl:          32px;
  --radius-pill:        100px;
}

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

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

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-primary-dark); border-radius: 3px; }

/* ─── UTILITY ────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.section-pad {
  padding: var(--section-pad) 0;
}

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

/* ─── SECTION HEADERS ────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.25);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── BUTTONS ────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-primary-h);
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-h);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary span { position: relative; z-index: 1; }
.btn-primary .btn-text { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ─── NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(8,13,26,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-num { color: var(--color-primary); }
.logo-logic { color: var(--color-text); }

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

.nav-link {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover { color: var(--color-text); background: rgba(255,255,255,0.05); }

.nav-cta {
  padding: 9px 22px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-btn);
  transition: var(--transition);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-btn-h); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center;
  padding: 120px var(--container-pad) 80px;
  overflow: hidden;
  background: var(--color-bg);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-bg-radial);
  pointer-events: none;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* Orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: orb-float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, transparent 70%);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
  bottom: 100px;
  left: -100px;
  animation-delay: 2s;
}

.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 70%);
  bottom: 50px;
  right: -80px;
  animation-delay: 4s;
}

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

.hero-orb-1 {
  animation: orb-float-1 8s ease-in-out infinite;
}
@keyframes orb-float-1 {
  0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
  50% { transform: translateX(-50%) translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  animation: fade-in-up 0.8s ease both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-green);
  box-shadow: 0 0 8px var(--color-green);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 8px var(--color-green); }
  50% { box-shadow: 0 0 16px var(--color-green), 0 0 30px rgba(16,185,129,0.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 24px;
  animation: fade-in-up 0.8s ease 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fade-in-up 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px 32px;
  flex-wrap: wrap;
  gap: 0;
  animation: fade-in-up 0.8s ease 0.4s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--color-text-dim);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
  animation: scroll-line-anim 2s ease-in-out infinite;
}

@keyframes scroll-line-anim {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── MARQUEE ────────────────────────────────── */
.marquee-section {
  background: rgba(0,212,255,0.04);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
  overflow: hidden;
}

.marquee-track {
  width: 100%;
  overflow: hidden;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-content span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.marquee-sep {
  color: var(--color-primary) !important;
  font-size: 0.625rem !important;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SERVICES ───────────────────────────────── */
.services {
  background: var(--color-bg);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  opacity: 0.3;
}

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

.service-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--color-border-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

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

.service-card--featured {
  border-color: rgba(0,212,255,0.2);
  background: linear-gradient(145deg, rgba(0,212,255,0.06) 0%, rgba(8,13,26,0.5) 100%);
}

.service-card--featured::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grad-primary);
}

.service-card-inner {
  padding: 32px;
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon-wrap {
  margin-bottom: 20px;
}

.service-icon {
  font-size: 2.25rem;
  display: inline-block;
  filter: drop-shadow(0 0 12px rgba(0,212,255,0.4));
}

.service-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.service-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  flex: 1;
}

.service-list li {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  padding-left: 18px;
  position: relative;
}

.service-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 0.75rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.service-cta:hover { gap: 8px; }

/* ─── WHY US ─────────────────────────────────── */
.why-us {
  background: var(--color-bg-2);
  position: relative;
}

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

.why-card {
  padding: 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--color-border-h);
  transform: translateY(-4px);
  background: var(--color-bg-card-h);
  box-shadow: var(--shadow-glow);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
  filter: drop-shadow(0 0 10px rgba(0,212,255,0.3));
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ─── TECH STACK ─────────────────────────────── */
.tech-stack {
  background: var(--color-bg);
}

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

.tech-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: var(--transition);
  cursor: default;
}

.tech-pill:hover {
  border-color: var(--color-border-h);
  background: var(--color-bg-card-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tech-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
  color: var(--color-primary);
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.4));
}

.tech-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

.tech-level {
  font-size: 0.75rem;
  color: var(--color-text-dim);
  display: block;
}

/* ─── HOW IT WORKS ───────────────────────────── */
.how-it-works {
  background: var(--color-bg-2);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.step-card {
  position: relative;
  padding: 40px 32px;
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  margin: 0 12px;
  transition: var(--transition);
}

.step-card:hover {
  border-color: var(--color-border-h);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
  margin-bottom: 16px;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.step-connector {
  position: absolute;
  top: 50%;
  right: -32px;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  z-index: 1;
}

/* ─── MARKETS ────────────────────────────────── */
.markets {
  background: var(--color-bg);
}

.markets-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.market-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: var(--transition);
  cursor: default;
}

.market-card:hover {
  border-color: var(--color-border-h);
  background: var(--color-bg-card-h);
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
}

.market-flag {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  transition: var(--transition);
}

.market-card:hover .market-flag {
  transform: scale(1.15);
  filter: drop-shadow(0 6px 16px rgba(0,212,255,0.3));
}

.market-name {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.market-detail {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* ─── TESTIMONIALS ───────────────────────────── */
.testimonials {
  background: var(--color-bg-2);
}

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

.testimonial-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--color-border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: block;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-name {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.author-role {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
  margin-top: 2px;
}

/* ─── CONTACT ────────────────────────────────── */
.contact {
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-info {
  position: relative;
  z-index: 1;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  margin-top: 16px;
}

.contact-desc {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.contact-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.feature-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.btn-calendly { font-size: 1rem; padding: 16px 36px; }

.calendly-note {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--color-text-dim);
}

/* ─── CONTACT FORM ───────────────────────────── */
.contact-form-wrap {
  position: relative;
  z-index: 1;
}

.contact-form {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.form-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 11px 16px;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238899b4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group select option { background: var(--color-bg-2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

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

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

.btn-submit {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 14px;
  margin-top: 4px;
}

.btn-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn-submit.loading .btn-text { display: none; }
.btn-submit.loading .btn-loader { display: block; }

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

.form-success, .form-error {
  display: none;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-top: 12px;
  text-align: center;
}

.form-success {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--color-green);
}

.form-error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}

/* ─── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--color-bg-2);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 12px 0 8px;
  line-height: 1.5;
}

.footer-location {
  font-size: 0.8125rem;
  color: var(--color-text-muted); /* was --color-text-dim (#4a5568, failing 2.6:1) — now #8899b4 (~5.1:1 ✅) */
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col a:hover { color: var(--color-primary); }

.footer-markets {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 1.25rem;
  flex-wrap: wrap;
}

.footer-markets span {
  cursor: default;
  transition: var(--transition);
  display: inline-block;
}

.footer-markets span:hover { transform: scale(1.2); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: var(--color-text-muted); /* was --color-text-dim (#4a5568, failing 2.6:1) — now #8899b4 (~5.1:1 ✅) */
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: 0.8125rem;
  color: var(--color-text-muted); /* was --color-text-dim (#4a5568, failing 2.6:1) — now #8899b4 (~5.1:1 ✅) */
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--color-primary); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Staggered delays for grid items */
.services-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.services-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.why-grid [data-animate]:nth-child(2) { transition-delay: 0.07s; }
.why-grid [data-animate]:nth-child(3) { transition-delay: 0.14s; }
.why-grid [data-animate]:nth-child(4) { transition-delay: 0.21s; }
.why-grid [data-animate]:nth-child(5) { transition-delay: 0.28s; }
.why-grid [data-animate]:nth-child(6) { transition-delay: 0.35s; }
.tech-grid [data-animate]:nth-child(2) { transition-delay: 0.05s; }
.tech-grid [data-animate]:nth-child(3) { transition-delay: 0.10s; }
.tech-grid [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.tech-grid [data-animate]:nth-child(5) { transition-delay: 0.20s; }
.tech-grid [data-animate]:nth-child(6) { transition-delay: 0.25s; }
.tech-grid [data-animate]:nth-child(7) { transition-delay: 0.30s; }
.tech-grid [data-animate]:nth-child(8) { transition-delay: 0.35s; }
.steps-container [data-animate]:nth-child(2) { transition-delay: 0.15s; }
.steps-container [data-animate]:nth-child(3) { transition-delay: 0.3s; }
.markets-grid [data-animate]:nth-child(2) { transition-delay: 0.05s; }
.markets-grid [data-animate]:nth-child(3) { transition-delay: 0.10s; }
.markets-grid [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.markets-grid [data-animate]:nth-child(5) { transition-delay: 0.20s; }
.markets-grid [data-animate]:nth-child(6) { transition-delay: 0.25s; }
.testimonials-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1200px) {
  .markets-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  :root { --section-pad: 80px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { gap: 40px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  /* Nav */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: rgba(8,13,26,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 8px;
    padding: 80px 24px 32px;
    border-left: 1px solid var(--color-border);
    overflow-y: auto;
    z-index: 999;
    transform: translateX(100%);
    transition: var(--transition);
  }

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

  .nav-link { width: 100%; font-size: 1rem; padding: 12px 16px; }
  .nav-cta { width: 100%; text-align: center; justify-content: center; margin-top: 8px; }
  .nav-toggle { display: flex; z-index: 1001; }

  /* Steps */
  .steps-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .step-card { margin: 0; }
  .step-connector { display: none; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }

  /* Hero stats */
  .hero-stats { gap: 16px; }
  .stat-item { padding: 8px 12px; }

  /* Markets */
  .markets-grid { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  :root { --section-pad: 48px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .markets-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { flex-direction: column; gap: 16px; }
  .stat-divider { width: 80px; height: 1px; }
}
