/* ============================================
   TOKENS
============================================ */
:root {
  --bg: #0a0b0a;
  --surface: #131513;
  --line: #232523;
  --text: #f4f5f2;
  --text-dim: #9a9d99;
  --mint: #2ee6a6;
  --mint-dim: #1f9d72;

  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---- hide scrollbar (site-wide) — scrolling still works, it's just invisible ---- */
html {
  scrollbar-width: none;   /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}

::-webkit-scrollbar {
  display: none; /* Chrome, Safari, new Edge */
}

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

html {
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
  -webkit-font-smoothing: antialiased;
}

[id] {
  scroll-margin-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-solid {
  background: var(--mint);
  color: #000;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--mint-dim);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--mint);
  background: rgba(49, 222, 162, 0.08);
}

.btn-primary {
  background: var(--mint);
  color: #000;
}
.btn-primary:hover {
  background: var(--mint);
  box-shadow: 0 8px 24px rgba(46, 230, 166, 0.35);
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transform: translateY(0);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  will-change: transform;
}

.navbar.nav-hidden {
  transform: translateY(-100%);
  pointer-events: none;
  transition: transform 0.1s ease-out;
}

/* on the homepage only: float the navbar over the hero so the hero's
   clipping box reaches the true top of the page, revealing more of the
   globe underneath the transparent navbar instead of the globe being
   cut off at the navbar's old boundary */
.navbar-hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.navbar.scrolled {
  background: rgba(10, 11, 10, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* backdrop-filter above creates a new containing block for fixed-position
   descendants — this would trap the full-screen menu inside the navbar's
   own box instead of the viewport once the page had been scrolled, so it
   must be neutralized whenever the menu is open. */
.navbar.mobile-open {
  transform: none !important;
  will-change: auto !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #0a0b0a !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}
.navbar.mobile-open.scrolled {
  background: #0a0b0a !important;
}

.nav-inner {
  position: relative;
  z-index: 150;
  max-width: 1400px;
  margin: 0 auto;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  color: var(--mint);
  display: inline-flex;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* desktop center nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-link:hover { color: var(--mint); }
.nav-link.active { color: var(--mint); }

.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}
.nav-dropdown-toggle svg { transition: transform 0.25s ease; width: 12px; height: 12px; }
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle { color: var(--mint); }
.nav-dropdown:hover .nav-dropdown-toggle svg,
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-dim);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-dropdown-menu a:hover { background: rgba(46, 230, 166, 0.08); color: var(--mint); }

/* ---- Services mega-menu (rich panel with icon cards + sidebar) ---- */
.nav-dropdown-menu.mega {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 980px;
  max-width: 95vw;
  background: rgba(14, 17, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7), 0 0 35px rgba(46, 230, 166, 0.06);
  flex-direction: row;
  align-items: stretch;
  padding: 22px 24px;
  gap: 20px;
}
.nav-dropdown:hover .nav-dropdown-menu.mega,
.nav-dropdown.open .nav-dropdown-menu.mega {
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 14px;
  flex: 3;
}

/* Horizontal squircle layout without outer card containers */
.nav-dropdown-menu.mega .mega-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 14px !important;
  padding: 8px 10px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease !important;
}

.nav-dropdown-menu.mega .mega-card:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  transform: translateY(-1px);
}

.nav-dropdown-menu.mega .mega-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e6edf3;
  margin-bottom: 0 !important;
  margin-top: 1px;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.nav-dropdown-menu.mega .mega-card:hover .mega-icon {
  background: var(--mint);
  color: #080a08;
  border-color: var(--mint);
  box-shadow: 0 0 16px rgba(46, 230, 166, 0.45);
  transform: scale(1.05);
}

.nav-dropdown-menu.mega .mega-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-dropdown-menu.mega .mega-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.nav-dropdown-menu.mega .mega-card h4,
.nav-dropdown-menu.mega .mega-card .mega-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 3px 0;
  padding: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: normal;
  transition: color 0.2s ease;
  display: block;
}

.nav-dropdown-menu.mega .mega-card:hover h4,
.nav-dropdown-menu.mega .mega-card:hover .mega-title {
  color: var(--mint);
}

.nav-dropdown-menu.mega .mega-card p {
  font-family: var(--font-body);
  font-size: 0.74rem;
  color: #8a8f98;
  margin: 0;
  padding: 0;
  line-height: 1.35;
  white-space: normal;
  transition: color 0.2s ease;
}

.nav-dropdown-menu.mega .mega-card:hover p {
  color: #c9d1d9;
}

.mega-aside,
.nav-dropdown-menu.mega .mega-aside {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}
.mega-aside h4,
.mega-aside .mega-aside-title,
.nav-dropdown-menu.mega .mega-aside h4,
.nav-dropdown-menu.mega .mega-aside .mega-aside-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}
.mega-aside p,
.nav-dropdown-menu.mega .mega-aside p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.mega-aside .btn,
.nav-dropdown-menu.mega .mega-aside .btn {
  font-size: 0.85rem;
  padding: 12px 18px;
  border-radius: 8px;
  width: fit-content;
  margin-top: 4px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.mega-aside .btn:hover,
.nav-dropdown-menu.mega .mega-aside .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(46, 230, 166, 0.3);
}
.mega-aside .btn:active,
.nav-dropdown-menu.mega .mega-aside .btn:active {
  transform: translateY(-1px);
  transition-duration: 0.15s;
}
.mega-aside .btn.btn-solid,
.nav-dropdown-menu.mega .mega-aside .btn.btn-solid {
  color: #000000;
}
.mega-aside .btn.btn-solid:hover,
.nav-dropdown-menu.mega .mega-aside .btn.btn-solid:hover {
  background: #5effc8;
}
.nav-dropdown-menu.mega .mega-aside-link {
  font-size: 0.85rem;
  color: var(--mint);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 !important;
  background: none !important;
  width: fit-content;
}
.nav-dropdown-menu.mega .mega-aside-link:hover {
  color: #5effc8;
  text-decoration: underline;
}

.nav-right {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.6);
  animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(46, 230, 166, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); }
}

.nav-cta { padding: 12px 22px; font-size: 0.88rem; border-radius: 8px; }

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  flex-shrink: 0;
  transition: border-color 0.3s ease;
}
.navbar.mobile-open .nav-toggle { border-color: var(--mint); }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  background: var(--mint);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar.mobile-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar.mobile-open .nav-toggle span:nth-child(2) { opacity: 0; }
.navbar.mobile-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* full-screen nav overlay, opened by the hamburger */
.nav-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  width: 100dvw;
  height: 100vh;
  height: 100dvh;
  z-index: 99;
  background: #0a0b0a !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 96px 24px 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.navbar.mobile-open .nav-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.nav-overlay-links a {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text);
  padding: 22px 0;
  transition: color 0.25s ease;
  width: fit-content;
}
.nav-overlay-links a:hover { color: var(--mint); }
.nav-overlay-links a.active { color: var(--mint); }

.nav-overlay-footer {
  max-width: 1300px;
  margin: 60px auto 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 30px 48px 80px;
  overflow: hidden;
  background: var(--bg);
}

/* compensate for the navbar being taken out of flow (navbar-hero) so the
   hero's own text content still clears it and isn't hidden underneath */
.navbar-hero + .hero {
  padding-top: 120px;
}

/* rotating wireframe globe, centered behind the copy */
.hero-globe {
  position: absolute;
  top: 53%;
  left: 50%;
  width: min(1400px, 150vw);
  height: min(1400px, 150vw);
  transform: translate(-50%, -50%);
  z-index: 0;
  will-change: opacity;
  opacity: 1;
  filter: drop-shadow(0 0 8px rgba(46, 230, 166, 0.75)) drop-shadow(0 0 24px rgba(46, 230, 166, 0.45));
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 45%, transparent 0%, transparent 30%, var(--bg) 78%),
    linear-gradient(180deg, rgba(10,11,10,0.1) 0%, rgba(10,11,10,0.35) 70%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 0 rgba(46, 230, 166, 0.6);
  animation: pulseDot 2s ease-out infinite;
}

.hero-heading {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6.5vw, 5rem);
  margin-bottom: 36px;
}

.hero-box {
  border: 1px solid var(--mint-dim);
  background: rgba(46, 230, 166, 0.04);
  border-radius: 12px;
  padding: 26px 30px;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-box p {
  color: var(--text-dim);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-cta { border-radius: 8px; }
.hero-cta svg { transition: transform 0.25s ease; }
.hero-cta:hover svg { transform: translateX(3px); }

/* ============================================
   SCROLL CUE
============================================ */
.scroll-cue {
  position: absolute;
  bottom: 20px;
  left: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scroll-cue span {
  width: 1px;
  height: 34px;
  background: var(--mint);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}
.scroll-cue p {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}

/* ============================================
   SHARED SECTION LAYOUT
============================================ */
.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 120px 48px;
}

.section-head { max-width: 620px; margin-bottom: 64px; }
.section-head.center { max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--mint);
  border: 1px solid var(--mint-dim);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: 20px;
}
.eyebrow.center {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .eyebrow.center { display: flex; }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
}
.section-title em {
  font-style: normal;
  color: var(--mint);
}

.about-text {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 480px;
}

/* ============================================
   REVEAL ON SCROLL
============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}
/* Hero section content is above the fold: display immediately to maximize LCP and FCP without waiting for intersection */
.hero [data-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
/* buttons keep their hover/active lift even after the reveal-in transform has settled */
.btn[data-reveal].in-view:hover,
.btn[data-reveal]:hover { transform: translateY(-3px); }
.btn[data-reveal].in-view:active,
.btn[data-reveal]:active { transform: translateY(-1px); }

/* ============================================
   ABOUT
============================================ */
.about-inner {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-media { position: relative; }

.about-frame {
  aspect-ratio: 4 / 5;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  background: radial-gradient(circle at 50% 30%, #1c1f1c 0%, var(--surface) 75%);
  border: 1px solid var(--line);
}
.about-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%) contrast(1.05);
}

.about-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 11, 10, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--mint-dim);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.about-tag .pill-dot { flex-shrink: 0; }

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--mint);
  color: var(--bg);
  border-radius: 14px;
  padding: 20px 22px;
  max-width: 170px;
}
.badge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.3;
}

.stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  flex-wrap: nowrap;
  justify-content: center;
}
.stat { display: block; min-width: 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text);
  display: inline;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--mint);
}
.stat p { color: var(--text-dim); font-size: 0.9rem; margin-top: 4px; }

/* ============================================
   SERVICES
============================================ */
/* ============================================
   SERVICES (3x2 MATRIX + FULL-WIDTH INLINE DRAWER)
============================================ */
.services { background: var(--surface); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  align-items: stretch;
}

.service-card {
  background: #111311;
  padding: 34px 28px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.service-card:hover {
  background: #161916;
}

.service-card.active {
  background: #141714;
  box-shadow: inset 0 0 0 1px rgba(46, 230, 166, 0.45);
}

/* Card Head & Diamond Bullet */
.service-card-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.service-icon {
  color: var(--mint);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  margin: 0;
  transform: translateY(-1px);
  transition: transform 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-icon {
  transform: translateY(-1px) scale(1.15);
  color: #5effc8;
}

/* Title & Subtitle */
.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.service-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0 0 18px;
}

/* Learn More Text Link */
.service-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  width: fit-content;
  transition: color 0.2s ease, gap 0.25s ease, opacity 0.2s ease;
  user-select: none;
  background: none;
  border: none;
  padding: 0;
}

.service-learn-more .learn-more-arrow {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-learn-more {
  color: #ffffff;
  gap: 10px;
  opacity: 0.85;
}

.service-card:hover .service-learn-more .learn-more-arrow {
  transform: translateX(4px);
}

.service-card.active .service-learn-more {
  color: #ffffff;
}

.service-card.active .service-learn-more .learn-more-arrow {
  transform: rotate(90deg);
  color: #ffffff;
}

/* ============================================
   FULL-WIDTH INLINE DRAWER (NO BROKEN HOLES)
============================================ */
.service-full-drawer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
  background: #141714;
  border-top: 1px solid rgba(46, 230, 166, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  width: 100%;
  overflow: hidden;
  z-index: 5;
}

.service-full-drawer.open {
  grid-template-rows: 1fr;
  opacity: 1;
  box-shadow: inset 0 1px 0 rgba(46, 230, 166, 0.35), 0 20px 40px rgba(0, 0, 0, 0.5);
}

.service-drawer-container {
  min-height: 0;
  overflow: hidden;
  padding: 0 44px;
  transition: padding 0.38s ease;
  position: relative;
}

.service-full-drawer.open .service-drawer-container {
  padding: 44px 44px 40px;
}

.service-drawer-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.service-drawer-close:hover {
  background: rgba(46, 230, 166, 0.15);
  border-color: var(--mint);
  color: var(--mint);
  transform: scale(1.08);
}

.service-drawer-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
}

.service-drawer-left {
  display: flex;
  flex-direction: column;
}

.service-drawer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.service-drawer-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--mint);
}
.service-drawer-num:empty {
  display: none;
}

.service-drawer-icon {
  color: var(--mint);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.service-drawer-icon:empty {
  display: none;
}
.service-drawer-icon svg {
  width: 28px;
  height: 28px;
}

.service-drawer-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  margin: 0 0 12px;
}

.service-drawer-desc {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin: 0 0 24px;
}

.service-drawer-action .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Detail Sections (styled matching reference image) */
.service-drawer-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.drawer-detail-block {
  display: flex;
  flex-direction: column;
}

.drawer-detail-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7d7a;
  margin-bottom: 8px;
  display: block;
}

.drawer-detail-text {
  font-size: 0.92rem;
  color: #d0d3d0;
  line-height: 1.65;
  margin: 0;
}

.drawer-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-detail-list li {
  font-size: 0.92rem;
  color: #e2e5e2;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.drawer-detail-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  flex-shrink: 0;
}

/* View All Services CTA Button (Home Page) */
.services-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

.services-view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 0 24px rgba(46, 230, 166, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-decoration: none;
}

.services-view-all-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(46, 230, 166, 0.4);
}

.services-view-all-btn svg {
  transition: transform 0.2s ease;
}

.services-view-all-btn:hover svg {
  transform: translateX(3px);
}

/* ============================================
   SERVICES PAGE: FLAGSHIP SHOWCASE SECTION
============================================ */
.services-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 36px;
  max-width: 800px;
}

.services-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #a1a7b0;
  border-radius: 9999px;
  padding: 9px 22px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.services-filter-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.services-filter-btn.active {
  background: rgba(46, 230, 166, 0.12);
  border-color: rgba(46, 230, 166, 0.4);
  color: var(--mint);
  box-shadow: 0 0 18px rgba(46, 230, 166, 0.22);
  font-weight: 600;
}

/* ============================================
   SERVICES HUB GRID (Clean 3-Column Hub Layout)
============================================ */
.services-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: transparent;
  border: none;
  margin-top: 0;
  align-items: stretch;
}

.services-page-grid .service-hub-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.services-page-grid .service-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--mint);
  background: linear-gradient(180deg, rgba(46, 230, 166, 0.04), transparent 60%), var(--surface);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(46, 230, 166, 0.08);
}

.services-page-grid .service-hub-card.active {
  border-color: var(--mint);
  background: linear-gradient(180deg, rgba(46, 230, 166, 0.08), transparent 60%), var(--surface);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(46, 230, 166, 0.14);
}

.services-page-grid .service-hub-card.active .service-hub-icon {
  background: var(--mint);
  color: #080a08;
  border-color: var(--mint);
  transform: scale(1.05);
}

.services-page-grid .service-hub-card.active .service-hub-title {
  color: var(--mint);
}

.services-page-grid .service-hub-card.active .service-hub-cta {
  color: var(--mint);
}

.services-page-grid .service-hub-card.active .service-hub-cta svg {
  transform: rotate(90deg);
}

.services-page-grid .service-full-drawer {
  border-radius: 20px;
  border: 1px solid rgba(46, 230, 166, 0.35);
  background: #111311;
  margin: 10px 0;
}

.service-hub-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(46, 230, 166, 0.12);
  color: var(--mint);
  border: 1px solid rgba(46, 230, 166, 0.2);
  border-radius: 12px;
  margin-bottom: 22px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.services-page-grid .service-hub-card:hover .service-hub-icon {
  background: var(--mint);
  color: #080a08;
  border-color: var(--mint);
  transform: scale(1.05);
}

.service-hub-title {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
  transition: color 0.2s ease;
}

.services-page-grid .service-hub-card:hover .service-hub-title {
  color: var(--mint);
}

.service-hub-tag {
  font-size: 13px;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin: 0 0 14px;
}

.service-hub-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
  margin: 0 0 24px;
  flex: 1;
}

.service-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-top: auto;
  transition: color 0.2s ease;
}

.service-hub-cta svg {
  transition: transform 0.25s ease;
}

.services-page-grid .service-hub-card:hover .service-hub-cta {
  color: var(--mint);
}

.services-page-grid .service-hub-card:hover .service-hub-cta svg {
  transform: translate(2px, -2px);
}

/* Service & Automation Hub Bottom Callout Section (As seen in reference screenshot) */
.services-hub-cta {
  margin-top: 72px;
  padding: 80px 48px;
  background: linear-gradient(180deg, #181a18 0%, #111311 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(46, 230, 166, 0.03);
}

.services-hub-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 166, 0.6), transparent);
}

.services-hub-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 700px;
}

.services-hub-cta p {
  font-family: var(--font-body);
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.7;
  max-width: 720px;
  margin: 0 auto 36px;
}

.services-hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mint);
  color: #0a0b0a;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 16px 36px;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(46, 230, 166, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.services-hub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46, 230, 166, 0.45);
  background: #3affbe;
  color: #050705;
}

.services-hub-btn svg {
  transition: transform 0.2s ease;
}

.services-hub-btn:hover svg {
  transform: translateX(4px);
}

@media (max-width: 960px) {
  .services-page-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  .services-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .services-page-grid .service-hub-card {
    padding: 28px 24px;
  }
  .services-hub-cta {
    padding: 50px 24px;
    margin-top: 48px;
    border-radius: 20px;
  }
  .services-hub-cta h2 {
    font-size: 1.85rem;
  }
  .services-hub-cta p {
    font-size: 0.96rem;
  }
  .services-hub-btn {
    width: 100%;
    padding: 14px 24px;
  }
}

/* ============================================
   TECH MARQUEE
============================================ */
.stack { padding: 90px 0 50px; overflow: hidden; }
.stack .eyebrow { margin-bottom: 44px; }

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 55s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 0 56px;
  position: relative;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "•";
  position: absolute;
  right: -4px;
  color: var(--mint);
}

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

/* ============================================
   WORK
============================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.work-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
.work-card:hover { transform: translateY(-6px); border-color: var(--mint-dim); }

.work-media {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 18px 20px;
}
.work-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover .work-media::before { opacity: 1; }

.work-card[data-tone="1"] .work-media { background: linear-gradient(135deg, #103b2c, #0a0b0a); }
.work-card[data-tone="2"] .work-media { background: linear-gradient(135deg, #0f2f38, #0a0b0a); }
.work-card[data-tone="3"] .work-media { background: linear-gradient(135deg, #2c1f10, #0a0b0a); }
.work-card[data-tone="4"] .work-media { background: linear-gradient(135deg, #241030, #0a0b0a); }

.work-duration {
  position: relative;
  z-index: 1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint);
  background: rgba(10, 11, 10, 0.85);
  border: 1px solid var(--mint-dim);
  padding: 5px 12px;
  border-radius: 100px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.work-card:hover .work-duration { opacity: 1; transform: translateY(0); }

.work-number {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(244, 245, 242, 0.08);
  transition: transform 0.5s ease, color 0.3s ease;
}
.work-card:hover .work-number { transform: scale(1.12); color: rgba(46, 230, 166, 0.18); }

.work-info { padding: 22px 24px 26px; }
.work-info h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.work-info p { color: var(--text-dim); font-size: 0.9rem; }

/* ============================================
   WORK — FEATURED (home page, sticky overlapping stack)
============================================ */
.work-feature-grid {
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
  max-width: 1115px;
  margin: 0 auto;
}

.work-feature {
  display: block;
  position: sticky;
  border-radius: 22px;
  overflow: hidden;
  border: 2px solid #000;
  box-shadow:
    0 -26px 44px -14px rgba(0, 0, 0, 0.75),
    0 40px 60px -12px rgba(0, 0, 0, 0.85);
}

.work-feature:nth-child(1) { top: 88px; z-index: 1; }
.work-feature:nth-child(2) { top: 106px; z-index: 2; }
.work-feature:nth-child(3) { top: 124px; z-index: 3; }
.work-feature:nth-child(4) { top: 142px; z-index: 4; }
.work-feature:nth-child(5) { top: 160px; z-index: 5; }
.work-feature:nth-child(6) { top: 178px; z-index: 6; margin-bottom: 0; }

.work-feature + .work-feature { margin-top: 35px; }

.work-feature-media {
  position: relative;
  min-height: 520px;
  padding: 24px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.work-feature-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.16), transparent 55%);
  pointer-events: none;
}
.work-feature-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.45) 68%, rgba(0, 0, 0, 0.94) 100%);
  pointer-events: none;
  z-index: 3;
}

.work-feature[data-tone="1"] .work-feature-media {
  background: url("/images/sairae-bg.jpg") center/cover no-repeat, linear-gradient(135deg, #3d5240, #1c271e);
}
.work-feature[data-tone="1"] .work-feature-media::before {
  background: linear-gradient(180deg, rgba(12, 18, 13, 0.2) 0%, transparent 42%, rgba(10, 16, 11, 0.72) 100%);
}
.work-feature[data-tone="1"] .work-feature-media::after {
  background: radial-gradient(circle at 50% 22%, rgba(206, 217, 206, 0.28), transparent 60%);
}
.work-feature[data-tone="2"] .work-feature-media {
  background: url("/images/geospatial-bg.jpg") center/cover no-repeat, linear-gradient(135deg, #071015, #04080b);
}
.work-feature[data-tone="2"] .work-feature-media::before {
  background: linear-gradient(180deg, rgba(4, 9, 12, 0.25) 0%, transparent 42%, rgba(3, 7, 10, 0.75) 100%);
}
.work-feature[data-tone="2"] .work-feature-media::after {
  background: radial-gradient(circle at 50% 22%, rgba(34, 193, 207, 0.25), transparent 60%);
}
.work-feature[data-tone="3"] .work-feature-media {
  background: url("/images/dream-strokes-bg.jpg") center/cover no-repeat, linear-gradient(135deg, #14100c, #0a0806);
}
.work-feature[data-tone="3"] .work-feature-media::before {
  background: linear-gradient(180deg, rgba(12, 9, 7, 0.25) 0%, transparent 42%, rgba(10, 8, 6, 0.75) 100%);
}
.work-feature[data-tone="3"] .work-feature-media::after {
  background: radial-gradient(circle at 50% 22%, rgba(212, 163, 115, 0.22), transparent 60%);
}
.work-feature[data-tone="4"] .work-feature-media { background: linear-gradient(135deg, #2fd399, #0b5a3f); }
.work-feature[data-tone="5"] .work-feature-media { background: linear-gradient(135deg, #6478f7, #1c2470); }
.work-feature[data-tone="6"] .work-feature-media { background: linear-gradient(135deg, #f0599e, #6b1240); }

.wf-badges {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 14px;
  align-self: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.wf-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: rgba(0, 0, 0, 0.16);
  border: 2px solid rgba(255, 255, 255, 0.65);
  padding: 8px 18px;
  border-radius: 100px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.wf-mock {
  position: relative;
  z-index: 2;
  text-align: center;
  margin: 10px auto 0;
  width: 100%;
}
.wf-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: 0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.wf-frame {
  max-width: 860px;
  width: 88%;
  height: 350px;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  border-bottom: none;
  background: #0d0f0d;
  box-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.75), 0 8px 20px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.work-feature:hover .wf-frame {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.85), 0 12px 28px rgba(0, 0, 0, 0.5);
}
.wf-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.wf-frame:has(.wf-frame-placeholder) {
  max-width: 500px;
  height: 260px;
  border-radius: 18px 18px 0 0;
}
.wf-frame-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.work-feature-info {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
  margin-top: -65px;
}
.work-feature-info h2,
.work-feature-info h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.work-feature-info p { color: rgba(255, 255, 255, 0.75); font-size: 0.95rem; }
.wf-tag { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

.wf-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--mint);
  color: #0a0b0a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.work-feature:hover .wf-arrow { transform: rotate(45deg); }

.work-feature-grid.static .wf-arrow {
  display: none !important;
}

/* ============================================
   BENEFITS
============================================ */
.benefits { background: var(--surface); }
.benefits .section-head { max-width: 640px; }
.benefits .about-text { max-width: 100%; margin-top: 8px; margin-bottom: 0; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
  border: 1px solid var(--line);
  gap: 1px;
  margin-top: 56px;
  overflow: hidden;
  align-items: stretch;
}

.benefit-card {
  background: #111311;
  padding: 34px 28px;
  transition: background 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.benefit-card:hover {
  background: #161916;
}

.benefit-card-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 20px;
}

.benefit-number {
  font-family: var(--font-display);
  color: var(--mint);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0;
  line-height: 1;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--mint);
  margin-bottom: 16px;
}
.benefit-icon svg { width: 100%; height: 100%; display: block; }

.benefit-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.benefit-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin: 0;
}

/* ============================================
   TESTIMONIALS — SCROLLING WALL
============================================ */
.testimonials { padding: 30px 0 120px; overflow: hidden; }

.testimonial-wall {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 64px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.t-row { overflow: hidden; }

.t-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marqueeScroll 46s linear infinite;
}
.t-row-reverse .t-track {
  animation-name: marqueeScrollReverse;
  animation-duration: 52s;
}

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

.t-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
}
.t-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 20px;
  min-height: 66px;
}

.author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--mint);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}
.author div { text-align: left; display: flex; flex-direction: column; }
.author strong { font-size: 0.9rem; }
.author span { color: var(--text-dim); font-size: 0.8rem; }

/* ============================================
   FAQ
============================================ */
.faq { background: var(--surface); }

.faq-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq-list { display: flex; flex-direction: column; padding-bottom: 57px; }

.faq-inner .section-head {
  position: sticky;
  top: 60px;
  align-self: start;
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  padding: 26px 16px 26px 20px;
  position: relative;
  border-radius: 8px;
  transition: color 0.25s ease, background 0.25s ease, padding-left 0.25s ease;
}
.faq-question::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0%;
  background: var(--mint);
  border-radius: 2px;
  transition: height 0.25s ease;
}
.faq-question:hover {
  color: var(--mint);
  background: rgba(46, 230, 166, 0.05);
  padding-left: 26px;
}
.faq-question:hover::before { height: 55%; }
.faq-item.open .faq-question { color: var(--mint); }

.faq-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mint);
  font-size: 1.1rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-answer p {
  color: var(--text-dim);
  line-height: 1.6;
  padding: 0 16px 26px 20px;
  max-width: 560px;
}

.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(46, 230, 166, 0.1); }
.faq-item.open .faq-answer { max-height: 200px; }

/* ============================================
   FINAL CTA (FULL WIDTH & HEROIC ANIMATIONS)
============================================ */
.final-cta {
  width: 100%;
  padding: 140px 24px 150px;
  background-color: #090a09;
  background-image: 
    radial-gradient(ellipse 75% 65% at 50% 50%, rgba(46, 230, 166, 0.12), transparent 75%),
    radial-gradient(circle at 50% 35%, rgba(46, 230, 166, 0.1), transparent 60%),
    linear-gradient(180deg, #0c0e0c 0%, #060706 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
  margin-top: 50px;
  isolation: isolate;
}

/* Laser Border Beam hidden */
.final-cta-beam {
  display: none !important;
}

/* Subtle Technical Grid Overlay */
.final-cta-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 25%, transparent 80%);
  opacity: 0.7;
  z-index: 0;
}

/* Ambient Pulsing Neon Glow */
.final-cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(750px, 85vw);
  height: min(420px, 60vw);
  background: radial-gradient(ellipse, rgba(46, 230, 166, 0.15) 0%, rgba(46, 230, 166, 0.05) 45%, transparent 72%);
  filter: blur(52px);
  pointer-events: none;
  z-index: 0;
  animation: ctaAuroraPulse 5.5s ease-in-out infinite alternate;
}

@keyframes ctaAuroraPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.7;
  }
  50% {
    transform: translate(-50%, -52%) scale(1.1);
    opacity: 1;
    filter: blur(48px);
  }
  100% {
    transform: translate(-50%, -48%) scale(0.96);
    opacity: 0.8;
  }
}

.final-cta-inner,
.final-cta .section-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Pure White Headline */
.final-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 10vw, 7.8rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  margin: 0 auto 36px;
  padding: 0.05em 0.08em 0.28em;
  max-width: 1200px;
  text-wrap: balance;
  color: #ffffff !important;
  background: none !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: #ffffff !important;
  animation: none !important;
  text-shadow: none !important;
  transition: transform 0.3s ease;
}

/* Crisp Clean CTA Button with subtle shadow */
.final-cta .btn {
  position: relative;
  padding: 18px 44px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--mint);
  color: #080a08;
  box-shadow: 0 4px 14px rgba(46, 230, 166, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.final-cta .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 230, 166, 0.35);
}

.final-cta .btn:active {
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .final-cta-beam::after,
  .final-cta-glow,
  .final-cta h2,
  .final-cta .btn {
    animation: none !important;
  }
}

/* ============================================
   FOOTER
============================================ */
.footer { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 10px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 50px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 240px;
  line-height: 1.5;
}

.footer-social-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--text);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.footer-social-link:hover { color: var(--mint); }

.footer-col h3,
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text);
  font-size: 0.92rem;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--mint); }

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 0.82rem;
}



.contact-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.contact-details a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mint);
}
.contact-details span { color: var(--text-dim); font-size: 0.9rem; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
}

.form-row { margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--text-dim); }

.form-row input,
.form-row textarea,
.form-row select {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.25s ease;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--mint);
}

.form-submit { width: 100%; justify-content: center; border: none; }

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--mint);
  min-height: 1.2em;
}

/* ============================================
   INNER PAGE BANNER (services / work / reviews / legal)
============================================ */
.page-banner {
  position: relative;
  padding: 145px 24px 55px;
  text-align: center;
  background: transparent;
}
.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}

.page-banner.no-line::after,
.contact-page-banner::after,
.page-banner:has(+ .contact-page)::after {
  display: none !important;
}
.page-banner .eyebrow.center { margin-bottom: 20px; }
.page-banner h1,
.page-banner .title-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.2rem) !important;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 auto 18px;
  max-width: 960px;
  text-wrap: balance;
}
.page-banner p {
  color: var(--text-dim);
  font-size: clamp(1.02rem, 1.8vw, 1.15rem);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
  text-wrap: pretty;
}

.work-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.filter-pill {
  padding: 12px 26px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.filter-pill:hover { border-color: var(--mint-dim); transform: translateY(-2px); }
.filter-pill.active { background: var(--mint); color: #0a0b0a; border-color: var(--mint); }

/* static (non-overlapping) featured-work grid, used on the Work page */
.work-feature-grid.static .work-feature {
  position: relative;
  top: auto;
  z-index: auto;
}
.work-feature-grid.static .work-feature + .work-feature { margin-top: 35px; }

.work-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 60px 0 0;
  font-size: 0.95rem;
}

/* ============================================
   CONTACT PAGE (multi-step form)
============================================ */
.contact-page .section-inner {
  padding-top: 0;
  padding-bottom: 0;
}

.contact-page-inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.title-xl {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.2rem) !important;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
}

/* ============================================
   REVIEWS PAGE — AUTHENTIC GOOGLE REVIEWS SYSTEM
============================================ */
.google-trust-bar {
  margin-bottom: 40px;
  padding: 24px 32px;
  background: linear-gradient(135deg, rgba(22, 24, 22, 0.9) 0%, rgba(16, 18, 16, 0.95) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.google-trust-badge {
  display: flex;
  align-items: center;
  gap: 16px;
}

.google-trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.google-trust-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.google-trust-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rating-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.google-trust-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.google-trust-label strong {
  color: #ffffff;
  letter-spacing: 0.06em;
}

.google-trust-meta {
  display: flex;
  align-items: center;
  gap: 28px;
}

.trust-stat {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.trust-stat strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mint);
  line-height: 1.1;
}

.trust-stat span {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.trust-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--line);
}

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

.google-review-card,
.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.google-review-card:hover,
.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 230, 166, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(46, 230, 166, 0.05);
}

.gr-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.gr-user-profile {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gr-user-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gr-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gr-user-name h4,
.gr-user-name .gr-user-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.gr-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 230, 166, 0.1);
  border: 1px solid rgba(46, 230, 166, 0.25);
  color: var(--mint);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}

.gr-user-sub {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.35;
}

.gr-google-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  opacity: 0.95;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.google-review-card:hover .gr-google-icon {
  opacity: 1;
  transform: scale(1.08);
}

.gr-stars-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.gr-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #ffb800;
}

.gr-stars svg {
  width: 17px;
  height: 17px;
  fill: #ffb800;
}

.gr-rating-text {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffb800;
}

.gr-review-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.gr-review-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 24px;
  flex: 1;
}

.gr-project-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 12px;
  border-radius: 8px;
  margin-top: auto;
  align-self: flex-start;
}

.gr-project-tag .tag-icon {
  color: var(--mint);
  font-weight: 700;
}

@media (max-width: 960px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .google-trust-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .google-trust-meta {
    width: 100%;
    justify-content: space-between;
  }
  .trust-stat {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .google-review-card,
  .review-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .google-trust-bar {
    padding: 20px 18px;
  }
  .google-trust-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .trust-stat-divider {
    display: none;
  }
}

.contact-page-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 20px;
}
.contact-page-info .contact-details a { font-size: 1.15rem; }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.social-links a svg { width: 18px; height: 18px; }
.social-links a:hover { border-color: var(--mint-dim); color: var(--mint); background: rgba(46, 230, 166, 0.06); }

.step-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
}

.form-steps {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 600;
}
.step-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.step-item.active .step-circle,
.step-item.done .step-circle {
  background: var(--mint);
  border-color: var(--mint);
  color: var(--bg);
}
.step-item.active { color: var(--text); }
.step-connector {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin: 0 14px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-step { display: none; }
.form-step.active { display: block; }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 8px;
}
.form-actions .btn-outline { border-color: var(--line); }

/* ============================================
   RESPONSIVE
============================================ */

/* ---- Small laptops / large tablets (1024px) ---- */
@media (max-width: 1100px) {
  .nav-inner { padding: 20px 32px; }
  .section-inner { padding: 100px 32px; }

  .hero-globe { width: min(1150px, 165vw); height: min(1150px, 165vw); }
  .hero { padding: 50px 32px 70px; }

  .work-grid { gap: 20px; }
  .work-feature-media { min-height: 420px; padding: 20px 22px; }
  .services-grid, .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Tablets / large phones (768–900px) ---- */
@media (max-width: 900px) {
  .nav-inner { padding: 18px 24px; gap: 16px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .status-pill { padding: 8px 13px; font-size: 0.78rem; }
  .section-inner { padding: 80px 24px; }

  /* ---- mobile nav overlay: align to top and scroll instead of overflowing ---- */
  .nav-overlay { justify-content: flex-start; padding: 100px 24px 40px; }
  .nav-overlay-footer { margin-top: 36px; flex-wrap: wrap; gap: 8px; }

  /* ---- hero: center everything, keep clearance for the scroll cue ---- */
  .hero { padding: 40px 24px 100px; min-height: 100vh; min-height: 100svh; }
  .hero-globe { width: min(800px, 170vw); height: min(800px, 170vw); opacity: 0.8; }
  .hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-status { margin: 0 auto 24px; }
  .hero-heading { margin-bottom: 28px; }
  .hero-box { padding: 22px 24px; max-width: 100%; margin: 0 auto 32px; }
  .hero-cta { margin: 0 auto; }
  .scroll-cue { left: 50%; transform: translateX(-50%); bottom: 24px; }

  /* ---- section headers: center on mobile ---- */
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .section-head.center { margin-bottom: 48px; }

  /* ---- about ---- */
  .about-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .about-media { width: 100%; max-width: 340px; margin: 0 auto; }
  .about-frame { width: 100%; max-width: 340px; }
  .about-content { display: flex; flex-direction: column; align-items: center; }
  .about-text { margin-left: auto; margin-right: auto; }
  .stats { justify-content: center; gap: 20px; flex-wrap: nowrap; }
  .stat { text-align: left; }

  /* ---- services & benefits ---- */
  .services-grid, .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 1px; }
  .service-card, .benefit-card { padding: 30px 24px; }

  /* Mobile responsiveness: hide duplicated card header, title, and description inside drawer */
  .service-drawer-header,
  .service-drawer-title,
  .service-drawer-desc {
    display: none !important;
  }
  .service-drawer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-drawer-left {
    order: 2;
    margin: 0;
  }
  .service-drawer-right {
    order: 1;
  }
  .service-drawer-action {
    width: 100%;
    margin-top: 10px;
  }
  .service-drawer-action .btn {
    width: 100%;
    justify-content: center;
  }
  .service-full-drawer.open .service-drawer-container { padding: 32px 24px 28px; }

  .marquee-track span { font-size: 1.3rem; padding: 0 26px; }

  /* ---- work ---- */
  .work-grid { grid-template-columns: 1fr; }
  .work-info { text-align: center; }
  .work-feature-media { min-height: 420px; padding: 20px 18px 20px; }
  .wf-frame { width: 96%; height: 250px; border-radius: 14px 14px 0 0; }
  .wf-frame:has(.wf-frame-placeholder) { height: 210px; }
  .work-feature:nth-child(1) { top: 80px; }
  .work-feature:nth-child(2) { top: 96px; }
  .work-feature:nth-child(3) { top: 112px; }
  .work-feature:nth-child(4) { top: 128px; }
  .work-feature:nth-child(5) { top: 144px; }
  .work-feature:nth-child(6) { top: 160px; }
  .wf-badge { font-size: 0.8rem; padding: 9px 18px; }
  .work-feature-info { flex-direction: column; align-items: flex-start; gap: 14px; margin-top: -50px; }

  .t-card { width: 300px; }

  /* ---- faq: header stays centered, question/answer text stays left ---- */
  .faq-inner { grid-template-columns: 1fr; gap: 20px; }
  .faq-inner .section-head { position: static; }

  .testimonial-wall { mask-image: none; -webkit-mask-image: none; }

  .final-cta { padding: 100px 20px 110px; }
  .final-cta-inner { padding: 0 !important; }

  /* ---- contact ---- */
  .contact-inner { grid-template-columns: 1fr; gap: 50px; text-align: center; }
  .contact-content { display: flex; flex-direction: column; align-items: center; }
  .contact-details { align-items: center; }
  .contact-form { padding: 28px; text-align: left; }

  /* ---- footer: two columns, left-aligned, brand spans full width ---- */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; text-align: left; justify-items: start; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 340px; }



  /* ---- inner page banner / contact page ---- */
  .page-banner { padding: 125px 20px 42px; }
  .contact-page-inner { grid-template-columns: 1fr; gap: 40px; }
  .step-form { padding: 26px; }
  .form-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ---- Phones (480px and below) ---- */
@media (max-width: 480px) {
  .page-banner { padding: 105px 16px 32px; }
  .status-pill { display: none; }
  .nav-inner { padding: 16px 18px; }
  .logo-text { font-size: 1.15rem; }
  .nav-cta { padding: 9px 14px; font-size: 0.78rem; }
  .nav-toggle { width: 36px; height: 36px; }

  .nav-overlay { padding: 90px 20px 32px; }
  .nav-overlay-links a { font-size: clamp(1.2rem, 9vw, 1.6rem); padding: 16px 0; }
  .nav-overlay-footer { flex-direction: column; gap: 6px; }

  .section-inner { padding: 64px 20px; }

  .hero { padding: 36px 20px 90px; }
  .hero-globe { width: min(600px, 160vw); height: min(600px, 160vw); opacity: 0.7; }
  .hero-status { font-size: 0.82rem; margin-bottom: 20px; }
  .hero-heading { font-size: clamp(2.1rem, 9vw, 2.8rem); margin-bottom: 24px; }
  .hero-box { padding: 18px 20px; margin-bottom: 28px; }
  .hero-box p { font-size: 0.95rem; }
  .hero-cta { width: 100%; justify-content: center; }
  .scroll-cue { bottom: 16px; }

  .about-media { width: 100%; max-width: 260px; margin: 0 auto; }
  .about-frame { width: 100%; max-width: 260px; margin: 0 auto; }
  .stats { justify-content: center; gap: 14px; flex-wrap: nowrap; }
  .stat-number, .stat-plus { font-size: 1.5rem; }
  .stat p { font-size: 0.7rem; }

  .services-grid, .benefits-grid { grid-template-columns: 1fr; gap: 1px; }
  .service-card, .benefit-card { padding: 26px 20px; }
  .service-learn-more { font-size: 0.88rem; margin-top: 14px; }
  .service-full-drawer.open .service-drawer-container { padding: 28px 18px 24px; }
  .service-drawer-title { font-size: 1.35rem; }
  .service-drawer-close { top: 16px; right: 16px; width: 32px; height: 32px; font-size: 1.15rem; }

  .work-number { font-size: 3.2rem; }
  .work-info { padding: 18px 20px 22px; }

  .t-card { width: 260px; padding: 20px; }

  .faq-question { font-size: 1rem; padding: 20px 0; }

  .final-cta { padding: 80px 16px 90px; }
  .final-cta h2 { font-size: clamp(2.6rem, 11vw, 3.8rem); margin-bottom: 28px; line-height: 1.02; text-transform: uppercase; padding: 0.05em 0.08em 0.28em; color: #ffffff !important; background: none !important; background-clip: border-box !important; -webkit-background-clip: border-box !important; -webkit-text-fill-color: #ffffff !important; text-shadow: none !important; }
  .final-cta-inner { padding: 0 !important; border-radius: 0 !important; }
  .final-cta .btn { padding: 16px 36px; font-size: 1rem; width: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .footer-brand p { max-width: 100%; }



  .form-steps { gap: 0; }
  .step-label { display: none; }
  .step-connector { margin: 0 8px; }
}

/* ---- iPads only (portrait & landscape) — the globe was rendering too small on this range, so size it back up ---- */
@media (min-width: 768px) and (max-width: 1180px) {
  .hero-globe {
    width: min(1500px, 210vw);
    height: min(1500px, 210vw);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; animation: none !important; }
}

/* ============================================
   AUTHENTICATION UI (LOGIN & SIGNUP)
============================================ */
html.auth-html,
body.auth-body {
  min-height: 100dvh;
}

.auth-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vh, 20px);
  position: relative;
  background: var(--bg);
}

/* Dot-grid pattern with soft mint glows, matching the site's hero treatment */
.auth-bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 22% 22%, rgba(46, 230, 166, 0.16), transparent 40%),
    radial-gradient(circle at 82% 78%, rgba(46, 230, 166, 0.12), transparent 42%),
    radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  background-position: 0 0, 0 0, 0 0;
}

.auth-bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, transparent 35%, var(--bg) 85%);
}

.auth-close {
  position: absolute;
  top: clamp(12px, 2.5vw, 20px);
  right: clamp(12px, 2.5vw, 20px);
  z-index: 20;
  width: clamp(32px, 4vw, 38px);
  height: clamp(32px, 4vw, 38px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-dim);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-close:hover {
  background: rgba(46, 230, 166, 0.1);
  border-color: var(--mint-dim);
  color: var(--mint);
  transform: rotate(90deg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vh, 40px) clamp(20px, 4vw, 36px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(16px);
}

html.auth-html {
  scrollbar-width: none;
}

html.auth-html::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.auth-header {
  text-align: center;
  margin-bottom: clamp(16px, 3vh, 32px);
}

.auth-header h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.2vh, 20px);
}

.input-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(10, 11, 10, 0.6);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.input-control:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(46, 230, 166, 0.15);
}

.password-toggle {
  position: absolute;
  right: 14px;
  bottom: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--mint);
}

.password-toggle .icon-eye {
  display: none;
}

.password-toggle.is-visible .icon-eye {
  display: block;
}

.password-toggle.is-visible .icon-eye-off {
  display: none;
}

.btn-auth {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  margin-top: 6px;
}

.social-auth {
  margin-top: clamp(14px, 2.4vh, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 16px);
}

.divider-or {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider-or::before,
.divider-or::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--line);
}

.divider-or span {
  padding: 0 14px;
}

.btn-google {
  width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

.auth-footer-text {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: clamp(12px, 2.4vh, 24px);
}

.auth-footer-text a {
  color: var(--mint);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.auth-footer-text a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.strength-meter {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.strength-segment {
  flex: 1;
  height: 100%;
  background: transparent;
  transition: background 0.3s ease;
}

.strength-segment.weak { background: #ef4444; }
.strength-segment.medium { background: #f59e0b; }
.strength-segment.strong { background: var(--mint); }

.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 20px;
  display: none;
}

.auth-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.auth-alert.success {
  display: block;
  background: rgba(46, 230, 166, 0.12);
  border: 1px solid rgba(46, 230, 166, 0.3);
  color: #86efac;
}

.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
}

.forgot-link {
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.forgot-link:hover {
  color: var(--mint);
}

/* ============================================
   TIMED SIGNUP/LOGIN PROMPT POPUP (5-9 SECONDS)
============================================ */
.auth-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 5, 4, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.auth-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-popup-card {
  width: 100%;
  max-width: 440px;
  background: #0d0f0e;
  border: 1px solid rgba(46, 230, 166, 0.25);
  border-radius: 24px;
  padding: 60px 30px 28px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 40px rgba(46, 230, 166, 0.08);
  position: relative;
  text-align: center;
  transform: scale(0.92) translateY(15px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-popup-overlay.active .auth-popup-card {
  transform: scale(1) translateY(0);
}

.auth-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.auth-popup-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.auth-popup-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(46, 230, 166, 0.1);
  border: 1px solid rgba(46, 230, 166, 0.25);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.auth-popup-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.25;
}

.auth-popup-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 24px;
}

.auth-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-popup-btn-primary {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-popup-btn-secondary {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

@media (max-width: 380px) {
  .auth-popup-btn-secondary { font-size: 0.75rem; padding: 12px 10px; }
}

.auth-popup-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.auth-popup-dismiss {
  margin-top: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.auth-popup-dismiss:hover {
  color: var(--text);
}
/* ============================================
   AI AUTOMATION SHOWCASE (search + filters + cards)
============================================ */
.automation-showcase { background: var(--surface); }

.automation-showcase-inner { padding-top: 56px; }

.automation-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto 28px;
}
.automation-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.automation-search input:focus { border-color: var(--mint); }
.automation-search input::placeholder { color: var(--text-dim); }
.automation-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  pointer-events: none;
}

.automation-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.automation-filter {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.automation-filter:hover { border-color: var(--mint-dim); color: var(--text); }
.automation-filter.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.automation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.automation-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .2s ease, border-color .2s ease;
}
.automation-card:hover { transform: translateY(-4px); border-color: var(--mint-dim); }

.automation-card-preview {
  height: 160px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 20%, rgba(46,230,166,0.12), transparent 60%),
    linear-gradient(135deg, #171917 0%, #101210 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.automation-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.automation-card-preview-label {
  color: var(--text-dim);
  font-size: 13px;
  font-family: var(--font-body);
}

.automation-card-tools {
  display: flex;
  gap: 8px;
}
.automation-tool-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mint);
}

.automation-card h2,
.automation-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text);
}
.automation-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}

.automation-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.automation-card-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
}

.automation-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 0;
  font-family: var(--font-body);
}

/* ============================================
   AUTOMATION CTA CALLOUT CARD
============================================ */
.automation-cta-box {
  position: relative;
  max-width: 680px;
  margin: 64px auto 0;
  background: linear-gradient(135deg, rgba(25, 28, 25, 0.75) 0%, rgba(14, 16, 14, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 42px 48px;
  text-align: center;
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(46, 230, 166, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.automation-cta-box:hover {
  border-color: rgba(46, 230, 166, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(46, 230, 166, 0.08);
}

.automation-cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46, 230, 166, 0.6), transparent);
}

.automation-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint);
  background: rgba(46, 230, 166, 0.08);
  border: 1px solid rgba(46, 230, 166, 0.2);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.automation-cta-badge .badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

.automation-cta-box h3,
.automation-cta-box h4 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1.3;
  margin: 0 auto 12px;
  max-width: 540px;
}

.automation-cta-box p {
  color: var(--text-dim);
  font-size: clamp(0.92rem, 1.5vw, 1rem);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 auto 24px;
}

.automation-cta-box .btn {
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.automation-cta-box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 230, 166, 0.4);
}

@media (max-width: 900px) {
  .automation-showcase-inner { padding-top: 40px; }
  .automation-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
}

@media (max-width: 640px) {
  .automation-showcase-inner { padding-top: 28px; }
  .automation-grid { grid-template-columns: 1fr; gap: 18px; }
  .automation-card-preview { height: 130px; }
}

@media (max-width: 480px) {
  .automation-card { padding: 16px; }
  .automation-card-tags span { padding: 5px 12px; font-size: 11px; }
}



/* ============================================
   LEGAL PAGES (PRIVACY POLICY & TERMS)
============================================ */
.legal-hero {
  padding: 145px 24px 55px;
  text-align: center;
  position: relative;
  background: transparent;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(840px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.legal-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: none;
}

.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 5.2rem) !important;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: #ffffff;
  margin: 0 auto 18px;
  max-width: 960px;
  text-wrap: balance;
}

.legal-meta {
  color: var(--text-dim);
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Highlights Grid */
.legal-highlights {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.legal-highlight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.legal-highlight-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46, 230, 166, 0.4);
}

.legal-highlight-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(46, 230, 166, 0.08);
  border: 1px solid rgba(46, 230, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mint);
  font-size: 1.2rem;
}

.legal-highlight-card h3,
.legal-highlight-card .legal-highlight-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: block;
}

.legal-highlight-card p {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Main Layout: Sidebar TOC + Content */
.legal-layout-section {
  padding: 0 24px 100px;
}

.legal-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sticky Sidebar */
.legal-sidebar {
  position: sticky;
  top: 100px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-sidebar-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  margin: 0;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  font-weight: 500;
}

.legal-toc-link span.num {
  font-family: var(--font-mono, monospace);
  font-size: 0.8rem;
  color: var(--mint);
  opacity: 0.75;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  color: #ffffff;
  background: rgba(46, 230, 166, 0.08);
}

.legal-sidebar-card {
  padding: 18px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-sidebar-card h4,
.legal-sidebar-card .legal-sidebar-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  display: block;
}

.legal-sidebar-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.4;
}

.legal-sidebar-card .btn {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* Content Stream */
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.legal-section-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px;
  scroll-margin-top: 110px;
  position: relative;
  transition: border-color 0.25s ease;
}

.legal-section-card:hover {
  border-color: rgba(244, 245, 242, 0.15);
}

.legal-sec-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.legal-sec-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mint);
  background: rgba(46, 230, 166, 0.1);
  border: 1px solid rgba(46, 230, 166, 0.25);
  border-radius: 8px;
  padding: 4px 10px;
}

.legal-sec-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.legal-body {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-body p {
  margin: 0;
}

.legal-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.6;
}

.legal-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px rgba(46, 230, 166, 0.6);
}

.legal-callout {
  background: rgba(46, 230, 166, 0.05);
  border: 1px solid rgba(46, 230, 166, 0.2);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-callout strong {
  color: var(--mint);
  font-size: 0.95rem;
}

.legal-callout p {
  color: var(--text);
  font-size: 0.92rem;
  margin: 0;
}

.legal-callout a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1024px) {
  .legal-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .legal-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: 115px 16px 36px;
  }
  .legal-highlights {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 0 16px;
    margin-bottom: 40px;
  }
  .legal-layout-section {
    padding: 0 16px 80px;
  }
  .legal-section-card {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .legal-sec-header h2 {
    font-size: 1.25rem;
  }
}