/* ============================================================
   NEXUS — Main Stylesheet
   Enterprise Software Development Website
   ============================================================ */

/* ---- 1. DESIGN TOKENS ---- */
:root {
  --bg:         #080808;
  --bg-2:       #0F0F0F;
  --bg-3:       #161616;
  --bg-card:    #111111;
  --bg-card-2:  #1A1A1A;

  --text:       #F0F0F0;
  --text-2:     #9CA3AF;
  --text-3:     #6B7280;

  --border:     rgba(255, 255, 255, 0.07);
  --border-2:   rgba(255, 255, 255, 0.13);

  --accent:     #7C3AED;
  --accent-2:   #8B5CF6;
  --accent-3:   #A78BFA;
  --accent-bg:  rgba(124, 58, 237, 0.12);
  --accent-bg-2:rgba(124, 58, 237, 0.06);

  --green:      #059669;
  --green-2:    #10B981;
  --green-bg:   rgba(5, 150, 105, 0.12);

  --yellow:     #D97706;
  --yellow-2:   #F59E0B;

  --blue:       #2563EB;
  --blue-2:     #3B82F6;

  --nav-h:      72px;
  --max-w:      1300px;
  --pad:        clamp(20px, 4vw, 64px);

  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;

  --t:      0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.75);
}

/* ---- 2. RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html, body { max-width: 100%; overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

:focus-visible {
  outline: 3px solid var(--accent-3);
  outline-offset: 3px;
}

/* ---- 3. LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section     { padding: 120px 0; }
.section-sm  { padding: 80px 0; }
.section-alt { background: var(--bg-2); }

/* ---- 4. NAVIGATION ---- */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background var(--t-slow), border-color var(--t-slow), backdrop-filter var(--t-slow);
}
#site-header.scrolled {
  background: rgba(8,8,8,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h);
  min-width: 0;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 900; letter-spacing: -0.04em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px; height: 34px; background: var(--accent);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900; color: white; letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  margin: 0 24px; align-self: stretch;
}
.nav-item { position: relative; align-self: stretch; display: flex; align-items: center; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 13px;
  font-size: 14px; font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
  white-space: nowrap; cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--bg-3); }
.nav-chevron {
  width: 12px; height: 12px; opacity: 0.5;
  transition: transform var(--t), opacity var(--t);
  flex-shrink: 0;
}
.nav-item.is-open .nav-chevron { transform: rotate(180deg); opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 8px; }

/* ---- 5. DROPDOWNS ---- */
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 210px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 10px 6px 6px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t), visibility var(--t), transform var(--t);
}
.nav-item.is-open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r-sm);
  font-size: 14px; color: var(--text-2);
  white-space: nowrap;
  transition: color var(--t), background var(--t);
  cursor: pointer;
}
.nav-dropdown-link:hover { color: var(--text); background: var(--bg-3); }
.nav-dropdown-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--border-2); flex-shrink: 0;
  transition: background var(--t);
}
.nav-dropdown-link:hover .nav-dropdown-dot { background: var(--accent-3); }

/* Mega Menu */
.mega-menu-wrap {
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  padding: 32px 0 36px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t-slow), visibility var(--t-slow);
}
.nav-item.is-open .mega-menu-wrap {
  opacity: 1; visibility: visible; pointer-events: all;
}
.mega-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
}
.mega-col-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 10px; padding: 0 10px;
}
.mega-link {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 500;
  color: var(--text-2); cursor: pointer;
  transition: color var(--t), background var(--t);
}
.mega-link:hover { color: var(--text); background: var(--bg-3); }
.mega-link .nav-dropdown-dot { transition: background var(--t); }
.mega-link:hover .nav-dropdown-dot { background: var(--accent-3); }

/* Industries dropdown wide */
.industries-dropdown {
  position: absolute; top: 100%;
  left: 50%; transform: translateX(-50%) translateY(-6px);
  width: 720px;
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 10px 6px 6px; display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--t), visibility var(--t), transform var(--t);
}
.nav-item.is-open .industries-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

/* ---- 6. BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 22px;
  border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  line-height: 1; white-space: nowrap;
  transition: all var(--t); cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: white;
  border: 1px solid transparent;
}
.btn-primary:hover {
  background: var(--accent-2);
  box-shadow: 0 0 28px rgba(124,58,237,0.4);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { background: var(--bg-3); }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }
.btn-lg { padding: 15px 32px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--r-sm); }

/* ---- 7. HAMBURGER / MOBILE MENU ---- */
.hamburger {
  display: none; width: 40px; height: 40px;
  border-radius: var(--r-sm); background: var(--bg-3);
  border: 1px solid var(--border);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background var(--t);
}
.hamburger:hover { background: var(--bg-card-2, #1A1A1A); }
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--bg-2);
  z-index: 998; padding-top: var(--nav-h);
  overflow-x: hidden; overflow-y: auto; transform: translateX(100%);
  transition: transform var(--t-slow);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-nav-list { padding: 24px var(--pad) 40px; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-group { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link {
  display: block; padding: 13px 14px; font-size: 16px; font-weight: 600;
  color: var(--text-2); border-radius: var(--r-sm);
  transition: color var(--t), background var(--t);
}
.mobile-nav-link:hover { color: var(--text); background: var(--bg-3); }
.mobile-nav-sub { padding-left: 16px; display: flex; flex-direction: column; gap: 1px; margin: 4px 0; }
.mobile-nav-sub a {
  display: block; padding: 9px 14px; font-size: 14px; color: var(--text-2);
  border-radius: var(--r-sm); cursor: pointer;
  transition: color var(--t), background var(--t);
}
.mobile-nav-sub a:hover { color: var(--text); background: var(--bg-3); }

/* ---- 8. HOME PAGE ---- */
.home-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 60px) 0 80px;
  background: var(--bg);
  position: relative; overflow: hidden;
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.home-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 55%; height: 100%;
  background: radial-gradient(ellipse at 80% 30%, rgba(124,58,237,0.16) 0%, transparent 65%);
  pointer-events: none;
}
.home-hero-content { position: relative; z-index: 1; max-width: 820px; }
.home-hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--accent-bg); border: 1px solid rgba(139,92,246,0.3);
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-3);
  margin-bottom: 28px;
}
.home-hero-label::before {
  content: ''; display: block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent-3);
}
.home-hero-title {
  font-size: clamp(44px, 7.5vw, 100px); font-weight: 900;
  line-height: 0.93; letter-spacing: -0.035em;
  margin-bottom: 28px;
}
.home-hero-title span { color: var(--accent-3); }
.home-hero-sub {
  font-size: clamp(16px, 1.8vw, 19px); color: var(--text-2);
  line-height: 1.65; max-width: 560px; margin-bottom: 40px;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home sections */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-3); margin-bottom: 12px;
}
.section-heading {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.025em; margin-bottom: 18px;
}
.section-lead {
  font-size: clamp(15px, 1.5vw, 17px); color: var(--text-2);
  line-height: 1.7; max-width: 640px;
}

/* Service Cards Grid (Home) */
.home-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 56px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 36px 32px;
  cursor: pointer;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.service-card:hover {
  border-color: var(--border-2); transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.service-card-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
}
.service-card-title { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.service-card-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.service-card-bullets { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.service-card-bullets li {
  font-size: 13px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.service-card-bullets li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-3); flex-shrink: 0;
}
.service-card-arrow {
  margin-top: 24px; font-size: 13px; font-weight: 600; color: var(--accent-3);
  display: flex; align-items: center; gap: 6px;
  transition: gap var(--t);
}
.service-card:hover .service-card-arrow { gap: 12px; }

/* Industry Tags */
.industry-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.industry-tag {
  padding: 7px 16px; border-radius: var(--r-full);
  border: 1px solid var(--border-2); font-size: 13px; font-weight: 500;
  color: var(--text-2); background: var(--bg-card); cursor: pointer;
  transition: color var(--t), border-color var(--t), background var(--t);
}
.industry-tag:hover {
  color: var(--text); border-color: rgba(139,92,246,0.4);
  background: var(--accent-bg-2);
}

/* How We Work Steps */
.steps-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px;
}
.step-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; position: relative;
}
.step-card-num {
  font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px var(--border-2); margin-bottom: 16px;
}
.step-card-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.step-card-desc { font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, #1a0533 0%, #2d1064 50%, #1a0533 100%);
  border: 1px solid rgba(124,58,237,0.3); border-radius: var(--r-xl);
  padding: 100px var(--pad); text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  font-size: clamp(30px, 4.5vw, 52px); font-weight: 900;
  letter-spacing: -0.03em; margin-bottom: 16px; position: relative;
}
.cta-banner p {
  font-size: 17px; color: rgba(255,255,255,0.65);
  max-width: 460px; margin: 0 auto 36px; position: relative;
}
.cta-banner-actions { display: flex; justify-content: center; gap: 12px; position: relative; }

/* ---- 9. GENERIC PAGE HERO ---- */
.page-hero {
  min-height: 48vh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 64px) 0 64px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero::after {
  content: '';
  position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.12) 0%, transparent 65%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-breadcrumb {
  font-size: 12px; color: var(--text-3); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.page-hero-breadcrumb span { cursor: pointer; transition: color var(--t); }
.page-hero-breadcrumb span:hover { color: var(--text-2); }
.page-hero-breadcrumb::before { content: none; }
.breadcrumb-sep { opacity: 0.4; }
.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 76px); font-weight: 900;
  letter-spacing: -0.035em; line-height: 0.96; margin-bottom: 20px;
}
.page-hero-sub { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-2); max-width: 580px; }

/* Services hub hero — green gradient */
.services-hero {
  background: linear-gradient(140deg, #0a3a1a 0%, #0d5e28 45%, #1a7a40 100%);
}
.services-hero h1, .services-hero .page-hero-sub { color: white; }
.services-hero .page-hero-breadcrumb { color: rgba(255,255,255,0.5); }

/* ---- 10. SERVICES HUB LAYOUT ---- */
.hub-layout {
  display: grid; grid-template-columns: 270px 1fr; gap: 24px;
  align-items: start; padding: 64px 0 100px;
}
.hub-sidebar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden; position: sticky; top: calc(var(--nav-h) + 16px);
}
.hub-sidebar-section {
  border-bottom: 1px solid var(--border);
}
.hub-sidebar-cat {
  padding: 12px 16px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3);
  background: var(--bg-2);
}
.hub-nav-item {
  display: block; padding: 11px 16px;
  font-size: 14px; font-weight: 500; color: var(--text-2);
  border-bottom: 1px solid var(--border);
  cursor: pointer; border-left: 3px solid transparent;
  transition: color var(--t), background var(--t), border-left-color var(--t);
}
.hub-nav-item:last-child { border-bottom: none; }
.hub-nav-item:hover { color: var(--text); background: var(--bg-3); }
.hub-nav-item.active {
  color: var(--accent-3); background: var(--accent-bg-2);
  border-left-color: var(--accent);
}
.hub-content {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 48px 56px; min-height: 500px;
}
.hub-content-title {
  font-size: clamp(24px, 3vw, 38px); font-weight: 900; letter-spacing: -0.025em;
  margin-bottom: 8px;
}
.hub-content-sub { font-size: 16px; color: var(--accent-3); font-weight: 600; margin-bottom: 24px; }
.hub-content p { font-size: 15px; color: var(--text-2); line-height: 1.7; margin-bottom: 14px; }

/* ---- 11. BULLET LIST ---- */
.bullet-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.bullet-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; color: var(--text-2); line-height: 1.55;
}
.bullet-list li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-3); margin-top: 8px;
}

/* Section separator */
.content-section { margin-bottom: 48px; }
.content-section:last-child { margin-bottom: 0; }
.content-section-title {
  font-size: 20px; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 16px;
  position: relative; padding-bottom: 12px;
}
.content-section-title::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 28px; height: 3px; background: var(--accent); border-radius: 2px;
}

/* Steps */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin-top: 8px;
}
.step-item {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 20px;
}
.step-item-num {
  font-size: 40px; font-weight: 900; line-height: 1; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.12); margin-bottom: 12px;
}
.step-item-title { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step-item-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ---- 12. INDUSTRY HUB ---- */
.industry-hub-hero {
  background: linear-gradient(140deg, #0a0a0a 0%, #111 100%);
}
.industries-stack { display: flex; flex-direction: column; }
.industry-row {
  display: flex; align-items: stretch;
  min-height: 100px;
  border-bottom: 1px solid var(--border);
  cursor: pointer; position: relative; overflow: hidden;
  transition: background var(--t);
}
.industry-row:hover { background: rgba(255,255,255,0.02); }
.industry-row-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 32px 0;
}
.industry-row-left { display: flex; align-items: center; gap: 24px; }
.industry-row-number {
  font-size: 13px; font-weight: 700; color: var(--text-3);
  font-variant-numeric: tabular-nums; min-width: 30px;
}
.industry-row-bar { width: 4px; height: 52px; border-radius: 2px; flex-shrink: 0; }
.industry-row-name {
  font-size: clamp(20px, 2.8vw, 34px); font-weight: 900;
  letter-spacing: -0.03em; line-height: 1.05;
  transition: color var(--t);
}
.industry-row:hover .industry-row-name { color: white; }
.industry-row-sub { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.industry-row-arrow {
  font-size: 22px; color: var(--text-3);
  transition: transform var(--t), color var(--t);
  flex-shrink: 0;
}
.industry-row:hover .industry-row-arrow { transform: translateX(8px); color: var(--text); }

/* ---- 13. DETAIL PAGES (service/industry) ---- */
.detail-hero {
  min-height: 46vh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 64px) 0 60px;
  position: relative; overflow: hidden;
}
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.6) 100%);
}
.detail-hero-content { position: relative; z-index: 1; }
.detail-hero h1 {
  font-size: clamp(36px, 5.5vw, 80px); font-weight: 900;
  letter-spacing: -0.035em; line-height: 0.95; margin-bottom: 16px; color: white;
}
.detail-hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 560px; }

.detail-body { padding: 80px 0 100px; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: start; }
.detail-main { }
.detail-sidebar { }
.detail-sidebar-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; position: sticky; top: calc(var(--nav-h) + 20px);
}
.detail-sidebar-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 16px; }

/* ---- 14. TECHNOLOGIES PAGE ---- */
.tech-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 16px;
}
.tech-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 28px 32px;
  transition: border-color var(--t);
}
.tech-block:hover { border-color: var(--border-2); }
.tech-block-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.tech-block-icon {
  width: 40px; height: 40px; border-radius: var(--r-sm); background: var(--accent-bg);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.tech-block-title { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.tech-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-pill {
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 12px; font-weight: 500;
  background: var(--bg-3); color: var(--text-2);
  border: 1px solid var(--border);
}

/* Principles section */
.principles-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px;
}
.principle-item {
  display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
}
.principle-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px;
}
.principle-text { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ---- 15. CONTACT PAGE ---- */
.contact-page { background: #F7F7F7; color: #111; }
.contact-header {
  background: #111; padding: calc(var(--nav-h) + 72px) 0 60px;
}
.contact-header-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.contact-header h1 {
  font-size: clamp(44px, 8vw, 96px); font-weight: 900;
  letter-spacing: -0.04em; line-height: 0.92; color: white;
}
.contact-header-meta { flex-shrink: 0; }
.contact-phone {
  font-size: 28px; font-weight: 800; color: white; letter-spacing: -0.02em; margin-bottom: 6px;
}
.contact-phone-label { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-body-wrap { padding: 72px 0 100px; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.contact-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 16px; color: #111; }
.contact-info p { font-size: 15px; color: #555; line-height: 1.7; margin-bottom: 14px; }
.contact-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.contact-bullet { display: flex; align-items: flex-start; gap: 10px; }
.contact-bullet-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #EDE9FF;
  color: #7C3AED; display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0; font-weight: 700;
}
.contact-bullet-text { font-size: 14px; color: #444; line-height: 1.5; padding-top: 6px; }

.next-steps { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.next-step { display: flex; gap: 16px; }
.next-step-num {
  width: 34px; height: 34px; border-radius: 50%; background: #EDE9FF; color: #7C3AED;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800; flex-shrink: 0;
}
.next-step-title { font-size: 15px; font-weight: 700; color: #111; margin-bottom: 3px; }
.next-step-desc { font-size: 13px; color: #666; line-height: 1.55; }

.contact-form-card {
  background: white; border-radius: var(--r-xl);
  box-shadow: 0 2px 40px rgba(0,0,0,0.08);
  padding: 44px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: #888; margin-bottom: 7px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 13px 15px;
  background: #F5F5F5; border: 1.5px solid #E5E5E5; border-radius: var(--r-sm);
  font-size: 15px; color: #111;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: #7C3AED; background: white;
  box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23999' d='M5 6L0 0h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
}
.form-submit {
  width: 100%; padding: 16px; background: #111; color: white;
  border: none; border-radius: var(--r-sm); font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s, transform 0.15s; margin-top: 8px;
}
.form-submit:hover { background: #333; transform: translateY(-1px); }
.form-note { font-size: 12px; color: #999; line-height: 1.5; margin-top: 14px; text-align: center; }

/* ---- 16. ABOUT / COMPANY PAGE ---- */
.about-stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: var(--border); border-radius: var(--r-lg); overflow: hidden;
  margin-top: 56px;
}
.about-stat {
  background: var(--bg-card); padding: 36px 28px; text-align: center;
}
.about-stat-num {
  font-size: clamp(36px, 5vw, 60px); font-weight: 900; letter-spacing: -0.04em;
  line-height: 1; color: var(--accent-3); margin-bottom: 8px;
}
.about-stat-label { font-size: 13px; color: var(--text-2); font-weight: 500; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px;
  margin-top: 10px;
}
.value-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 22px 22px; display: flex; align-items: flex-start; gap: 14px;
}
.value-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); flex-shrink: 0; margin-top: 7px; }
.value-text { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ---- 17. FOOTER ---- */
#site-footer { background: #0A0A0A; border-top: 1px solid var(--border); padding: 80px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 56px;
  padding-bottom: 64px; border-bottom: 1px solid var(--border);
}
.footer-brand-desc { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-top: 12px; max-width: 240px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: var(--text-2); cursor: pointer; transition: color var(--t); }
.footer-link:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 28px;
}
.footer-meta { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 0; }
.footer-copy { font-size: 13px; color: var(--text-2); }
.footer-sub-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.footer-sub-link { font-size: 13px; color: var(--text-2); cursor: pointer; transition: color var(--t); white-space: nowrap; }
.footer-sub-link:hover { color: var(--text); }

.interactive-link {
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--t);
}

.interactive-link:hover {
  color: var(--accent-3);
}

/* ---- 18. ANIMATIONS ---- */
.page-enter { animation: fadeInUp 0.32s ease forwards; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- 19. UTILITIES ---- */
.text-accent { color: var(--accent-3); }
.text-muted  { color: var(--text-2); }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }

/* Scroll to top of page offset */
html { scroll-padding-top: var(--nav-h); }

/* ---- 20. RESPONSIVE ---- */
@media (max-width: 1100px) {
  .mega-inner { grid-template-columns: 1fr 1fr; }
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
  .hub-layout { grid-template-columns: 240px 1fr; }
  .about-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .home-services-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hub-layout { grid-template-columns: 1fr; }
  .hub-sidebar { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-header-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-sub-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .steps-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .home-hero-actions { flex-direction: column; }
  .home-hero-actions .btn { width: 100%; justify-content: center; }
  .about-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-dropdown { width: calc(100vw - 40px); grid-template-columns: 1fr 1fr; left: 20px; transform: none; }
  .nav-item.is-open .industries-dropdown { transform: none; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .contact-form-card { padding: 28px 20px; }
  .footer-meta { width: 100%; }
  .footer-sub-links { width: 100%; gap: 10px 18px; }
  .footer-sub-link { white-space: normal; }
}

/* Inline grid utilities – responsive */
@media (max-width: 900px) {
  [data-grid="2"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hub-content { padding: 28px 24px !important; }
  .steps-row { grid-template-columns: 1fr 1fr !important; }
  .home-services-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .steps-row { grid-template-columns: 1fr !important; }
  .container,
  .service-card,
  .tech-block,
  .btn,
  .home-hero-content,
  .section-heading,
  .section-lead,
  .footer-copy {
    max-width: 100%;
  }
  .section-heading,
  .home-hero-title,
  .home-hero-sub,
  .section-lead,
  .service-card-title,
  .service-card-desc,
  .footer-copy {
    overflow-wrap: anywhere;
  }
  .btn { min-width: 0; white-space: normal; }
  .cta-banner-actions .btn,
  .home-hero-actions .btn { width: 100%; }
}
