/* ==========================================================================
   Macaw Bytes - Premium Digital Agency Design System (v2 Polish)
   ========================================================================== */

/* --- 1. Variables --- */
:root {
  /* Color Palette */
  --bg-dark: #050607;
  --bg-surface: #0B0F0D;
  --bg-surface-light: #101612;
  
  /* Primary Accents */
  --accent-primary: #00FF88;
  --accent-primary-hover: #14C878;
  
  /* Text Colors */
  --text-main: #F5F7F6;
  --text-muted: #A8B3AD;
  
  /* UI Elements */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(11, 15, 13, 0.6);
  --glow-effect: rgba(0, 255, 136, 0.15);
  
  /* Typography - Plus Jakarta Sans (headings) + Source Sans 3 (body) */
  --font-heading: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --radius-control: 10px;
  --sticky-cta-height: 64px;
  
  /* Spacing System */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 2rem;     /* 32px */
  --space-lg: 4rem;     /* 64px */
  --space-xl: 7rem;     /* 112px */
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. Base & Reset --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 255, 136, 0.02) 0%, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
  color: var(--text-main);
  letter-spacing: -0.025em;
}

p {
  font-size: clamp(1.05rem, 1.15vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* --- 3. Layout Utilities --- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--space-xl) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

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

.hidden-mobile {
  display: inline;
}

/* --- 4. Components --- */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-control);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px var(--glow-effect);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  color: var(--bg-dark);
  box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background-color: rgba(0, 255, 136, 0.05);
  transform: translateY(-2px);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* Section Typography */
.section-tag {
  display: inline-block;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 1.2rem;
  line-height: 1.1;
}

.section-desc {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  max-width: 650px;
  margin: 0 auto var(--space-lg) auto;
  line-height: 1.7;
}

/* --- 5. Animations --- */
/* Only hide when JS has marked the document (progressive enhancement) */
html.js-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js-ready .reveal-on-scroll.fade-in-up,
html.js-ready .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js-ready .reveal-on-scroll,
  .hero-visual .floating-card,
  .showcase-browser,
  .showcase-tile,
  .showcase-metric {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- 6. Global Layout --- */
/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.85rem 0;
  background: rgba(7, 9, 11, 0.88);
  border-bottom: 1px solid transparent;
  /* Avoid backdrop-filter on .header - it traps position:fixed children (mobile menu) */
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  background: rgba(7, 9, 11, 0.96);
  border-bottom-color: var(--border-subtle);
  padding: 0.65rem 0;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 52px;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1003;
}

.logo__mark {
  height: 36px;
  width: auto;
  display: block;
}

.logo__wordmark {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu__label,
.nav-menu__cta,
.nav-menu__top,
.nav-menu__foot,
.nav-menu__place,
.nav-menu__close,
.nav-link__num,
.nav-link__arrow {
  display: none;
}

.nav-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.05rem;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-item__row {
  display: contents;
}

.nav-item__toggle {
  display: none;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.55rem 0.45rem 0.45rem;
  list-style: none;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(11, 13, 16, 0.97);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 1005;
}

.nav-item--has-children:hover > .nav-submenu,
.nav-item--has-children:focus-within > .nav-submenu {
  display: block;
}

.nav-sublink {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: #c5ccd4 !important;
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-sublink:hover,
.nav-sublink:focus-visible {
  background: rgba(74, 168, 224, 0.1);
  color: #fff !important;
  outline: none;
}

.nav-sublink.active {
  color: #2eae4e !important;
  background: rgba(46, 174, 78, 0.1);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.62rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-main) !important;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0.62rem;
  right: 0.62rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #4aa8e0, #2eae4e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav-link:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: #2eae4e !important;
  background: rgba(46, 174, 78, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1003;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
  border-radius: 6px;
  white-space: nowrap;
}

.header-cta i {
  font-size: 1.05rem;
}

.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0;
  position: relative;
  z-index: 1003;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(46, 174, 78, 0.45);
  background: rgba(46, 174, 78, 0.08);
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--text-main);
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
  border-radius: 2px;
  pointer-events: none;
}

.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }

.menu-toggle.active {
  border-color: rgba(46, 174, 78, 0.5);
  background: rgba(46, 174, 78, 0.12);
}

.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* Footer */
.footer {
  position: relative;
  background-color: #07090b;
  border-top: 1px solid var(--border-subtle);
  padding: clamp(3.5rem, 7vw, 5rem) 0 1.75rem;
  overflow: hidden;
}

.footer__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #4aa8e0, #2eae4e 50%, #f0b429);
  opacity: 0.85;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.35fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2.75rem;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  font-family: var(--font-heading);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.15rem;
}

.footer-logo img:last-child {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer-logo img:first-child {
  height: 38px;
  width: auto;
}

.footer-blurb {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 28rem;
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  border-radius: 6px;
}

.footer-wa i {
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #2eae4e;
  outline: none;
}

.footer-links a:active,
.footer-links a.is-active,
.footer-links a[aria-current="page"] {
  color: #3bc45f;
}

.footer-links__more {
  color: #2eae4e !important;
  font-weight: 600;
}

.footer-links__more:hover,
.footer-links__more:focus-visible {
  color: #3bc45f !important;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.95rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.footer-contact i {
  font-size: 1.15rem;
  color: #4aa8e0;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.footer-contact a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: #2eae4e;
  outline: none;
}

.footer-contact a:active {
  color: #3bc45f;
}

.footer-locations {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-locations__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  opacity: 0.8;
}

.footer-locations p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  max-width: none;
}

.footer-locations a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-locations a:hover,
.footer-locations a:focus-visible {
  border-color: rgba(46, 174, 78, 0.45);
  color: #2eae4e;
  background: rgba(46, 174, 78, 0.08);
  outline: none;
}

.footer-locations a:active,
.footer-locations a.is-active,
.footer-locations a[aria-current="page"] {
  border-color: rgba(46, 174, 78, 0.55);
  color: #3bc45f;
  background: rgba(46, 174, 78, 0.12);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  color: var(--text-main);
}

.social-icon:hover {
  color: #2eae4e;
  border-color: rgba(46, 174, 78, 0.45);
  background: rgba(46, 174, 78, 0.1);
  transform: translateY(-2px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  max-width: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  color: #2eae4e;
  outline: none;
}

.footer-legal a:active,
.footer-legal a.is-active,
.footer-legal a[aria-current="page"] {
  color: #3bc45f;
}

.totop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: #14181e;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 20px;
  z-index: 99;
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.totop.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.totop:hover {
  border-color: rgba(46, 174, 78, 0.5);
  color: #2eae4e;
}

/* --- 7. Homepage Specific --- */
/* Hero Section */
.hero {
  padding: 72px 0 76px;
  min-height: clamp(640px, 82svh, 760px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 78%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content {
  max-width: 650px;
}
.hero-eyebrow {
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 1.15rem;
  text-transform: uppercase;
}
.hero-eyebrow span {
  width: 34px;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 16px var(--glow-effect);
}
.hero-title {
  font-size: clamp(2.85rem, 4.8vw, 4.75rem);
  line-height: 1.03;
  font-weight: 700;
  margin-bottom: 1.35rem;
  letter-spacing: 0;
}
.hero-desc {
  margin-left: 0;
  margin-bottom: 0;
  max-width: 610px;
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 2rem;
}
.hero-actions .btn {
  gap: 10px;
}
.hero-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 600px;
  margin-top: 1.75rem;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--border-subtle);
}
.hero-proof-item {
  padding: 1rem 1.1rem;
  background: rgba(16, 22, 18, 0.68);
}
.hero-proof-item strong,
.hero-proof-item span {
  display: block;
}
.hero-proof-item strong {
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}
.hero-proof-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.35;
}
.hero-visual {
  position: relative;
  width: 100%;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glow-bg {
  position: absolute;
  top: 18%;
  right: -18%;
  width: 70vw;
  height: 46vw;
  background: linear-gradient(135deg, transparent 0%, rgba(0,255,136,0.06) 42%, rgba(73,120,255,0.08) 58%, transparent 100%);
  filter: blur(12px);
  transform: rotate(-8deg);
  z-index: 0;
  pointer-events: none;
}
.hero-showcase {
  position: relative;
  width: min(100%, 620px);
  min-height: 520px;
}
.showcase-browser,
.showcase-tile,
.showcase-metric {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: rgba(16, 22, 18, 0.84);
  box-shadow: 0 24px 70px rgba(0,0,0,0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.showcase-browser {
  position: absolute;
  top: 82px;
  right: 0;
  width: min(540px, 94%);
  overflow: hidden;
  animation: float1 9s ease-in-out infinite;
}
.showcase-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.browser-dots {
  display: flex;
  gap: 7px;
}
.browser-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.28);
}
.browser-dots span:nth-child(2) {
  background: rgba(0,255,136,0.72);
}
.showcase-browser img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}
.showcase-tile,
.showcase-metric {
  position: absolute;
  z-index: 2;
}
.showcase-tile {
  padding: 1rem;
}
.showcase-tile span,
.showcase-metric span {
  color: var(--text-muted);
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}
.showcase-tile strong,
.showcase-metric strong {
  color: var(--text-main);
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.25;
  margin-top: 0.25rem;
}
.showcase-tile--top {
  top: 18px;
  left: 28px;
  width: 230px;
  animation: float2 7s ease-in-out infinite reverse;
}
.showcase-pulse {
  height: 7px;
  margin-top: 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-primary) 0 62%, rgba(255,255,255,0.1) 62% 100%);
}
.showcase-tile--bottom {
  right: 46px;
  bottom: 18px;
  width: 300px;
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem;
  animation: float1 8s ease-in-out infinite 0.8s;
}
.showcase-tile--bottom img {
  width: 90px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  object-position: top center;
}
.showcase-metric {
  left: 0;
  bottom: 92px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 236px;
  padding: 0.95rem 1rem;
  animation: float2 6.5s ease-in-out infinite 0.35s;
}
.showcase-metric i {
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: rgba(0,255,136,0.09);
  font-size: 1.35rem;
}
.floating-card {
  background: rgba(16, 22, 18, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  position: absolute;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@keyframes float1 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}
@keyframes float2 {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Trust Strip */
.trust-strip {
  display: flex;
  gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.hero-trust {
  margin-top: 2rem;
}
.trust-strip::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.trust-item {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
}
.service-card .icon-wrapper {
  color: var(--accent-primary);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Why Us */
.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.why-card {
  height: 100%;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.portfolio-card {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-light);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  height: 100%;
}
.portfolio-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}
.portfolio-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-card:hover img {
  transform: scale(1.05);
}
.portfolio-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, rgba(11,15,13,1) 0%, transparent 100%);
}
.portfolio-info {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface-light);
  position: relative;
  z-index: 2;
}

/* Process Timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  background: var(--bg-surface-light);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  position: relative;
  transition: border-color var(--transition-fast);
}
.process-step:hover {
  border-color: rgba(0,255,136,0.2);
}
.process-num {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,255,136,0.08);
  border-radius: 50px;
  border: 1px solid rgba(0,255,136,0.15);
}
.process-step h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}
.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}
/* Blog abstract thumbnail */
.blog-thumb-abstract {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.blog-thumb-abstract::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.blog-thumb-glow {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-effect) 0%, transparent 70%);
  width: 200px; height: 200px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.blog-thumb-icon {
  position: relative;
  z-index: 2;
  color: rgba(0,255,136,0.3);
  font-size: 3rem;
}

/* Industries */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.industry-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: var(--bg-surface-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-control);
  font-size: 1rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  text-decoration: none;
}
.industry-chip:hover {
  border-color: var(--accent-primary);
  color: var(--text-main);
  background: rgba(0,255,136,0.05);
}

/* Marquee Tools */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  padding: 1.5rem 0;
  background: var(--bg-surface-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.marquee-content {
  display: inline-block;
  animation: marquee 40s linear infinite;
}
.tech-pill {
  display: inline-block;
  padding: 10px 24px;
  background: var(--bg-dark);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  margin: 0 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* CTA Section */
.cta-section-bg {
  background: radial-gradient(circle at center, rgba(0, 255, 136, 0.08) 0%, var(--bg-dark) 70%);
  border-top: 1px solid var(--border-subtle);
}

/* Shared inner page hero */
.inner-hero {
  padding: clamp(120px, 18vw, 160px) 0 clamp(64px, 10vw, 88px);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(0, 255, 136, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(16, 22, 18, 0.9), transparent);
}
.inner-hero .section-desc,
.inner-hero .hero-title {
  margin-left: auto;
  margin-right: auto;
}
.inner-hero .flex {
  justify-content: center;
}

/* Content grids */
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.content-card {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-light);
  border-radius: 14px;
  padding: 1.5rem;
}
.content-card h2,
.content-card h3 {
  margin-bottom: 0.65rem;
}
.content-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-light);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.pricing-card.is-featured {
  border-color: rgba(0, 255, 136, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 255, 136, 0.12);
}
.pricing-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent-primary);
  padding: 4px 10px;
  border-radius: 6px;
}
.pricing-amount {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0.35rem 0 0.75rem;
}
.pricing-blurb {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex: 0 0 auto;
}
.pricing-card .check-list {
  flex: 1;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: auto;
}
.testimonial-card footer span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.testimonial-quote {
  color: var(--text-main) !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}
.testimonial-stars {
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}

/* Sticky mobile CTA */
.mb-sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(5, 6, 7, 0.94);
  border-top: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 8px;
}
.mb-sticky-cta__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  background: var(--bg-surface-light);
  text-decoration: none;
}
.mb-sticky-cta__btn--primary {
  background: var(--accent-primary);
  color: #061008;
  border-color: transparent;
  font-weight: 700;
}
.mb-sticky-cta__btn--primary:hover,
.mb-sticky-cta__btn--primary:focus-visible {
  color: #061008;
  filter: brightness(1.05);
}
.mb-sticky-cta__btn:hover {
  color: var(--text-main);
}

/* --- FAQ accordion --- */
.mb-faq-section {
  border-top: 1px solid var(--border-subtle);
}

.mb-faq-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.mb-faq-head .section-title {
  margin-bottom: 0.65rem;
}

.mb-faq-intro {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
  max-width: 36rem;
}

.mb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: none;
  width: 100%;
}

.mb-faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-surface-light);
  margin: 0;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.mb-faq-item[open] {
  border-color: rgba(74, 168, 224, 0.35);
  background: linear-gradient(145deg, rgba(74, 168, 224, 0.08), rgba(46, 174, 78, 0.04) 60%, var(--bg-surface-light));
}

.mb-faq-item summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem 1rem;
  cursor: pointer;
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  list-style: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.02rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.mb-faq-item summary::-webkit-details-marker { display: none; }

.mb-faq-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  opacity: 0.85;
}

.mb-faq-q {
  min-width: 0;
}

.mb-faq-toggle {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.mb-faq-toggle::before,
.mb-faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--text-main);
  transform: translate(-50%, -50%);
}

.mb-faq-toggle::before {
  width: 10px;
  height: 1.5px;
}

.mb-faq-toggle::after {
  width: 1.5px;
  height: 10px;
  transition: opacity 0.2s ease;
}

.mb-faq-item[open] .mb-faq-toggle {
  border-color: var(--accent-primary);
  background: rgba(0, 255, 136, 0.12);
}

.mb-faq-item[open] .mb-faq-toggle::after {
  opacity: 0;
}

.mb-faq-answer {
  padding: 0 1.25rem 1.25rem 3.4rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.mb-faq-answer p {
  margin: 0;
  max-width: 48rem;
  font-size: 1rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .mb-faq-item summary {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
  }
  .mb-faq-num {
    display: none;
  }
  .mb-faq-answer {
    padding-left: 1.25rem;
  }
}

/* --- 8. Mobile & Responsive Adjustments --- */
@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 1024px) {
  :root {
    --space-xl: 5rem;
    --space-lg: 3.5rem;
  }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 820px; margin: 0 auto; }
  .hero-eyebrow { justify-content: center; }
  .hero-visual { height: 430px; }
  .hero-showcase { min-height: 400px; max-width: 680px; }
  .showcase-browser { top: 42px; right: auto; left: 50%; translate: -50% 0; }
  .showcase-tile--top { left: 28px; top: 0; text-align: left; }
  .showcase-tile--bottom { right: 30px; bottom: 0; text-align: left; }
  .showcase-metric { left: 24px; bottom: 68px; text-align: left; }
  .hero-title { max-width: 800px; margin: 0 auto 1.5rem; }
  .hero .section-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-proof-grid { margin-left: auto; margin-right: auto; }
  .hero-trust { justify-content: center; }
  .why-us-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col--brand { grid-column: 1 / -1; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .hidden-mobile { display: none !important; }
  .service-grid, .why-us-grid, .portfolio-grid, .process-timeline { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; }
  
  .hero { padding: 58px 0 48px; min-height: auto; }
  .hero::before { background-size: 54px 54px; }
  .hero-title { font-size: clamp(2.15rem, 9vw, 3rem); }
  .hero-eyebrow { font-size: 0.74rem; letter-spacing: 0.06em; }
  .hero-desc { font-size: 1rem; }
  .hero .btn { width: 100%; margin-bottom: 12px; }
  .hero-actions { gap: 0; margin-top: 1.5rem; }
  .hero-proof-grid { grid-template-columns: 1fr; margin-top: 1.2rem; }
  .hero-content > p:first-child { text-align: center; }
  .hero-trust {
    gap: 1.25rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
  }
  .trust-item { font-size: 0.86rem; }
  .hero-visual {
    height: 310px;
    margin-top: 1rem;
  }
  .hero-showcase {
    min-height: 300px;
    width: 100%;
  }
  .showcase-browser {
    top: 26px;
    width: 100%;
  }
  .showcase-browser-bar {
    padding: 0.7rem 0.8rem;
    font-size: 0.65rem;
  }
  .showcase-browser img { aspect-ratio: 16 / 9; }
  .showcase-tile--top {
    display: none;
  }
  .showcase-tile--bottom {
    right: 8px;
    bottom: 0;
    width: min(290px, 86%);
    grid-template-columns: 74px 1fr;
  }
  .showcase-tile--bottom img { width: 74px; }
  .showcase-metric {
    left: 8px;
    bottom: 72px;
    min-width: 0;
    max-width: 225px;
    padding: 0.75rem;
  }
  .showcase-metric i {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .cta-section-bg { padding: 80px 0 !important; }
  .cta-section-bg .section-title { font-size: clamp(1.85rem, 6vw, 2.5rem); }

  .mb-sticky-cta { display: flex; }
  body { padding-bottom: calc(var(--sticky-cta-height) + env(safe-area-inset-bottom)); }
  .totop { bottom: calc(84px + env(safe-area-inset-bottom)) !important; right: 16px !important; }
}

@media (max-width: 1100px) {
  /* Mobile / tablet header */
  .header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: block !important;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    margin: 0;
    background: rgba(5, 7, 9, 0.62);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1002;
    display: block;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 380px);
    height: 100%;
    height: 100dvh;
    background:
      radial-gradient(ellipse 80% 40% at 100% 0%, rgba(74, 168, 224, 0.14), transparent 55%),
      radial-gradient(ellipse 60% 35% at 0% 100%, rgba(46, 174, 78, 0.1), transparent 50%),
      #0b0d10;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
    box-shadow: -20px 0 48px rgba(0, 0, 0, 0.45);
  }

  .nav-menu__panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4aa8e0, #2eae4e 55%, #f0b429);
    z-index: 1;
  }

  .nav-menu.active .nav-menu__panel {
    transform: translateX(0);
  }

  .nav-menu__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.35rem 1.15rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
  }

  .nav-menu__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
  }

  .nav-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .nav-menu__close:hover,
  .nav-menu__close:focus-visible {
    border-color: rgba(46, 174, 78, 0.5);
    background: rgba(46, 174, 78, 0.12);
    outline: none;
  }

  .nav-menu__close span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    margin-left: -8px;
    background: #f2f4f6;
    border-radius: 2px;
  }

  .nav-menu__close span:first-child {
    transform: translateY(-50%) rotate(45deg);
  }

  .nav-menu__close span:last-child {
    transform: translateY(-50%) rotate(-45deg);
  }

  .nav-menu__brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu__label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #f2f4f6;
    margin: 0 0 0.15rem;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }

  .nav-menu__place {
    margin: 0;
    font-size: 0.78rem;
    color: #9aa3ad;
    letter-spacing: 0.02em;
  }

  .nav-list {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
    padding: 1rem 1rem;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list li {
    list-style: none;
  }

  .nav-item--has-children {
    border-radius: 10px;
  }

  .nav-item__row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-item__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    min-height: 52px;
    margin: 0;
    padding: 0;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }

  .nav-item__toggle i {
    font-size: 1rem;
    transition: transform 0.2s ease;
  }

  .nav-item__toggle:hover,
  .nav-item__toggle:focus-visible {
    background: rgba(74, 168, 224, 0.08);
    border-color: rgba(74, 168, 224, 0.22);
    color: #fff;
    outline: none;
  }

  .nav-item--open > .nav-item__row > .nav-item__toggle {
    background: rgba(46, 174, 78, 0.12);
    border-color: rgba(46, 174, 78, 0.3);
    color: #2eae4e;
  }

  .nav-item--open > .nav-item__row > .nav-item__toggle i {
    transform: rotate(180deg);
  }

  .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    margin: 0.15rem 0 0.35rem;
    padding: 0.25rem 0 0.25rem 0.65rem;
    border: 0;
    border-left: 2px solid rgba(46, 174, 78, 0.35);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-item--open > .nav-submenu,
  .nav-item--has-children:hover > .nav-submenu,
  .nav-item--has-children:focus-within > .nav-submenu {
    display: block;
  }

  /* On mobile, only open via toggle class, not hover */
  .nav-item--has-children:hover > .nav-submenu {
    display: none;
  }

  .nav-item--open > .nav-submenu {
    display: block;
  }

  .nav-sublink {
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    color: #b4bcc6 !important;
  }

  .nav-link {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 0.95rem;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    color: #f2f4f6 !important;
    background: transparent;
    min-height: 52px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .nav-item__row > .nav-link {
    grid-template-columns: auto 1fr;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link__num {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #4aa8e0;
    opacity: 0.9;
  }

  .nav-link__arrow {
    display: inline-block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover,
  .nav-link:focus-visible {
    background: rgba(74, 168, 224, 0.08);
    border-color: rgba(74, 168, 224, 0.22);
    color: #fff !important;
    outline: none;
  }

  .nav-link:hover .nav-link__arrow,
  .nav-link:focus-visible .nav-link__arrow {
    color: #2eae4e;
    transform: translateX(3px);
  }

  .nav-link.active {
    background: linear-gradient(135deg, rgba(46, 174, 78, 0.16), rgba(74, 168, 224, 0.08));
    border-color: rgba(46, 174, 78, 0.35);
    color: #fff !important;
  }

  .nav-link.active .nav-link__num {
    color: #f0b429;
  }

  .nav-link.active .nav-link__arrow {
    color: #2eae4e;
  }

  .nav-menu__foot {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.28);
    flex-shrink: 0;
  }

  .nav-menu__cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0;
    width: 100%;
    min-height: 50px;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
  }

  .nav-menu__meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
  }

  .nav-menu__meta a {
    color: #9aa3ad !important;
    font-size: 0.88rem;
    font-weight: 500;
  }

  .nav-menu__meta a:hover {
    color: #2eae4e !important;
  }

  .header.menu-open {
    background: rgba(7, 9, 11, 0.98);
    border-bottom-color: var(--border-subtle);
    z-index: 1005;
  }

  .header.menu-open .logo,
  .header.menu-open .nav-actions,
  .header.menu-open .menu-toggle {
    z-index: 1006;
  }
}

@media (max-width: 430px) {
  .nav-menu__panel {
    width: 100%;
  }
  .section-title { font-size: 2.2rem; }
  .glass-card { padding: 2rem 1.5rem; }
  .portfolio-info { padding: 1.5rem; }
  .industry-chip { padding: 10px 20px; font-size: 0.9rem; }
  .btn { padding: 14px 28px; }
}
