/* ============ 1. DESIGN TOKENS ============ */
:root {
  --bg: #070A12;
  --surface: #0D1320;
  --surface-2: #131B2C;
  --primary: #2FE0BF;
  --primary-dk: #17B79A;
  --secondary: #7B6CFF;
  --accent-grad: linear-gradient(120deg, #2FE0BF 0%, #7B6CFF 100%);
  --text: #F2F5FA;
  --muted: #97A3B8;
  --text-on-primary: #06251F;
  --border: rgba(255, 255, 255, .08);
  --border-hi: rgba(47, 224, 191, .35);
  --success: #34D399;
  --warning: #FBBF24;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --shadow: 0 24px 64px -24px rgba(0, 0, 0, .55);
  --glow: 0 0 40px -8px rgba(47, 224, 191, .45);

  --ff-display: "Bricolage Grotesque", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --fs-hero: clamp(2.75rem, 6.5vw, 5.25rem);
  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(2rem, 4vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.5rem);
  --fs-h4: clamp(1.125rem, 1.5vw, 1.25rem);
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-metric: clamp(2.25rem, 4vw, 3.5rem);

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-6: 48px;
  --sp-8: 64px;
  --sp-12: 96px;
  --section-pad: clamp(80px, 10vw, 140px);
  --container: 1366px;
}

/* ============ 2. RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

#main {
  overflow: hidden;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.7;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit
}

/* Base Global Typography Elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-display);
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 750;
  line-height: 1.05;
  margin-bottom: 24px;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  margin-bottom: 18px;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.25;
  margin-bottom: 14px;
}

h4 {
  font-size: var(--fs-h4);
  line-height: 1.3;
  margin-bottom: 12px;
}

p {
  font-size: var(--fs-body);
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px
}

::selection {
  background: var(--primary);
  color: var(--text-on-primary)
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px)
}

section {
  padding-block: var(--section-pad);
  position: relative
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  z-index: 200;
  font-weight: 700
}

.skip-link:focus {
  left: 8px
}

/* ============ 3. SHARED COMPONENTS ============ */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--primary)
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--sp-6)
}

.section-head h2 {
  font-size: var(--fs-h2);
  margin-bottom: 18px
}

.section-head p {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.6
}

.section-head.center {
  margin-inline: auto;
  text-align: center
}

.section-head.center .eyebrow {
  justify-content: center
}

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding-inline: 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .9375rem;
  letter-spacing: .01em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}

.btn svg {
  transition: transform .25s ease
}

.btn:hover svg {
  transform: translateX(4px)
}

.btn-primary {
  background: var(--primary);
  color: var(--text-on-primary)
}

.btn-primary:hover {
  background: var(--primary-dk);
  box-shadow: var(--glow);
  transform: translateY(-2px)
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text)
}

.btn-ghost:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px)
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--muted);
  text-transform: uppercase;
}

.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary)
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow)
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

/* ============ 4. HEADER ============ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(7, 10, 18, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.logo {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: 1.5rem;
  letter-spacing: -.02em;
  display: flex;
  align-items: center;
  gap: 2px
}

.logo em {
  font-style: normal;
  color: var(--primary)
}

.main-nav .menu {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center
}

.main-nav .menu-item {
  position: relative
}

.main-nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: rgba(242, 245, 250, .8);
  position: relative;
  padding-block: 6px;
  transition: color .2s;
  display: block
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  transition: width .25s ease
}

.main-nav a:hover,
.main-nav .current-menu-item>a {
  color: var(--text)
}

.main-nav a:hover::after,
.main-nav .current-menu-item>a::after {
  width: 100%
}

.main-nav .menu-item-has-children>a::before {
  content: "";
  display: inline-block;
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-left: 5px;
  transform: translateY(3px);
  transition: transform .2s;
  margin-right: 5px;
}

.main-nav .menu-item-has-children:hover>a::before {
  transform: translateY(3px) rotate(180deg)
}

.main-nav .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .2s ease;
  box-shadow: var(--shadow)
}

.main-nav .menu-item:hover>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0)
}

.main-nav .sub-menu li {
  display: block
}

.main-nav .sub-menu a {
  padding: 8px 24px;
  color: var(--muted);
  font-size: .875rem
}

.main-nav .sub-menu a::after {
  display: none
}

.main-nav .sub-menu a:hover {
  color: var(--primary);
  background: rgba(255, 255, 255, .03)
}

.header-cta {
  height: 44px;
  padding-inline: 22px;
  font-size: .875rem
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  padding: 100px 32px 96px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible
}

.mobile-menu .menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  width: 100%
}

.mobile-menu li {
  display: block;
  width: 100%
}

.mobile-menu a {
  font-family: var(--ff-display);
  font-size: 1rem;
  font-weight: 650;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%
}

.mobile-menu .sub-menu {
  list-style: none;
  display: none;
  padding-left: 24px;
  border-left: 1px solid var(--border-hi);
  margin-block: 12px
}

.mobile-menu .sub-menu.open {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.mobile-menu .sub-menu a {
  font-size: 1.375rem;
  padding: 8px 0;
  border-bottom: none;
  font-weight: 500;
  color: var(--muted)
}

.mobile-menu .menu-item-has-children>a::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
  transition: transform .3s;
  margin-right: 12px
}

.mobile-menu .menu-item-has-children.open>a::after {
  transform: rotate(-135deg);
  color: var(--primary)
}

.mobile-menu .btn {
  position: relative;
  margin-top: 24px;
  justify-content: center;
  width: 100%
}

body.menu-open {
  overflow: hidden
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg)
}

body.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0
}

body.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg)
}

/* ============ 5. HERO ============ */
.hero {
  padding-top: calc(72px + clamp(64px, 9vw, 120px));
  padding-bottom: var(--sp-8)
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(47, 224, 191, .14), rgba(123, 108, 255, .08) 55%, transparent 75%);
  filter: blur(20px);
}

.hero-text {
  max-width: 820px;
  position: relative
}

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 750;
  line-height: 1.02;
  margin-bottom: 24px
}

.hero .lead {
  color: var(--muted);
  font-size: var(--fs-lead);
  max-width: 640px;
  margin-bottom: 36px
}

/* ============ HERO SEO INTRO SECTION ============ */
.hero-seo-intro {
  padding-block: clamp(48px, 6vw, 88px);
  position: relative;
}

.hero-seo-intro .container {
  position: relative;
  z-index: 2;
}

.hero-seo-intro .section-head {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  padding: clamp(32px, 4.5vw, 52px) clamp(28px, 5vw, 56px);
  background: linear-gradient(135deg, rgba(19, 27, 44, 0.6) 0%, rgba(13, 19, 32, 0.85) 100%);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px -24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}

.hero-seo-intro .section-head::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(47, 224, 191, 0.1) 0%, rgba(123, 108, 255, 0.05) 50%, transparent 70%);
  pointer-events: none;
  border-radius: 50%;
}

.hero-seo-intro .section-head:hover {
  border-color: rgba(47, 224, 191, 0.35);
  box-shadow: 0 32px 80px -20px rgba(0, 0, 0, 0.75), 0 0 40px -10px rgba(47, 224, 191, 0.18);
  transform: translateY(-2px);
}

.hero-seo-intro .section-head h2 {
  font-size: var(--fs-h2);
  line-height: 1.12;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.hero-seo-intro .section-head p {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px
}

.hero-note {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .05em;
  display: flex;
  align-items: center;
  gap: 8px
}

.hero-note .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success)
}

/* dashboard panel */
.dash {
  margin-top: clamp(48px, 6vw, 72px);
  background: linear-gradient(180deg, rgba(19, 27, 44, .9), rgba(13, 19, 32, .9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(8px);
}

.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border)
}

.dash-bar .dots {
  display: flex;
  gap: 6px
}

.dash-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border)
}

.dash-bar .label {
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .08em
}

.dash-chart {
  padding: 28px 24px 8px
}

.dash-chart svg {
  width: 100%;
  height: auto
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}

.dash-stat {
  padding: 24px;
  text-align: left
}

.dash-stat+.dash-stat {
  border-left: 1px solid var(--border)
}

.dash-stat .num {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: var(--fs-metric);
  line-height: 1;
  color: var(--text)
}

.dash-stat .num em {
  font-style: normal;
  color: var(--primary)
}

.dash-stat .lbl {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px
}

/* ============ 6. MARQUEES ============ */
.marquee-section {
  padding-block: var(--sp-6);
  border-block: 1px solid var(--border)
}

.marquee-label {
  text-align: center;
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent)
}

.marquee-track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: scroll 36s linear infinite;
  padding-inline: 36px
}

.marquee:hover .marquee-track {
  animation-play-state: paused
}

.marquee-track span {
  font-family: var(--ff-display);
  font-weight: 650;
  font-size: 1.375rem;
  color: rgba(242, 245, 250, .4);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 72px;
}

.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-hi)
}

@keyframes scroll {
  to {
    transform: translateX(-50%)
  }
}

.marquee-tech .marquee-track {
  animation-duration: 44s
}

.marquee-tech .marquee-track span {
  font-family: var(--ff-mono);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: .04em;
  color: rgba(242, 245, 250, .5)
}

/* ============ 7. SERVICES ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden
}

.service-card::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 224, 191, .14), transparent);
  opacity: 0;
  transition: opacity .35s ease;
}

.service-card:hover::before {
  opacity: 1
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--primary);
}

.service-card h3 {
  font-size: var(--fs-h3)
}

.service-card>p {
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65
}

.service-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px
}

.service-card li {
  display: flex;
  gap: 10px;
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.5
}

.service-card li svg {
  flex: none;
  margin-top: 3px;
  color: var(--primary)
}

.service-cta {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: .875rem;
  color: var(--primary);
}

.service-cta svg {
  transition: transform .25s
}

.service-card:hover .service-cta svg {
  transform: translateX(4px)
}

/* ============ 8. COMPARISON ============ */
.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch
}

.compare-col {
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface)
}

.compare-col.win {
  border-color: var(--border-hi);
  background: linear-gradient(180deg, rgba(47, 224, 191, .06), var(--surface) 45%);
  position: relative
}

.compare-col.win::before {
  content: "RECOMMENDED";
  position: absolute;
  top: -11px;
  left: 40px;
  font-family: var(--ff-mono);
  font-size: .65rem;
  letter-spacing: .16em;
  background: var(--primary);
  color: var(--text-on-primary);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-weight: 600
}

.compare-col h3 {
  font-size: 1.375rem;
  margin-bottom: 24px
}

.compare-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px
}

.compare-col li {
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55
}

.compare-col li svg {
  flex: none;
  margin-top: 3px
}

.compare-col.lose li svg {
  color: #5B6577
}

.compare-col.win li {
  color: var(--text)
}

.compare-col.win li svg {
  color: var(--primary)
}

.compare-prose {
  max-width: 760px;
  margin-top: var(--sp-6);
  color: var(--muted);
  font-size: .9375rem
}

/* ============ 9. PROCESS ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hi), transparent);
}

.process-step {
  position: relative;
  padding-top: 0
}

.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--ff-mono);
  font-weight: 600;
  font-size: .875rem;
  color: var(--primary);
  background: var(--surface-2);
  border: 1px solid var(--border-hi);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.process-step h3 {
  font-size: 1.1875rem;
  margin-bottom: 10px
}

.process-step p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6
}

/* ============ 10. CASE STUDIES ============ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.case-metric {
  font-family: var(--ff-display);
  font-weight: 750;
  font-size: var(--fs-metric);
  line-height: 1;
  color: var(--primary)
}

.case-metric-lbl {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px
}

.case-spark {
  margin-block: 6px
}

.case-spark svg {
  width: 100%;
  height: 64px
}

.case-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 16px
}

.case-sub b {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 650
}

.case-sub small {
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

/* ============ 11. INDUSTRIES ============ */
.rail-wrap {
  position: relative
}

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  margin-inline: calc(clamp(20px, 4vw, 48px) * -1);
  padding-inline: clamp(20px, 4vw, 48px);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-2) transparent;
  padding-top: 10px;
}

.rail::-webkit-scrollbar {
  height: 6px
}

.rail::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 3px
}

.industry-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px
}

.industry-card h3 {
  font-size: 1.125rem
}

.industry-card p {
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6
}

.industry-card .service-icon {
  width: 46px;
  height: 46px
}

.rail-hint {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px
}

/* ============ 12. TESTIMONIALS ============ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px
}

.testi-card {
  display: flex;
  flex-direction: column;
  gap: 18px
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--warning)
}

.testi-card blockquote {
  font-size: .9875rem;
  line-height: 1.7;
  color: var(--text)
}

.testi-who {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border)
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-weight: 750;
  color: var(--text-on-primary);
  font-size: .9375rem;
}

.testi-who b {
  display: block;
  font-size: .9375rem
}

.testi-who small {
  color: var(--muted);
  font-size: .8125rem
}

/* ============ 13. INSIGHTS ============ */
.insights-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px
}

.article-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.article-thumb {
  aspect-ratio: 16/8.5;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0/24px 24px,
    linear-gradient(140deg, var(--surface-2), #0A1020);
}

.article-thumb::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% -10%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(47, 224, 191, .22), transparent);
}

.article-thumb .tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 10, 18, .7);
  backdrop-filter: blur(8px)
}

.article-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1
}

.article-body h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  transition: color .2s
}

.article-card:hover h3 {
  color: var(--primary)
}

.article-meta {
  font-family: var(--ff-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 16px;
  margin-top: auto
}

.insights-side {
  display: flex;
  flex-direction: column;
  gap: 24px
}

.insights-side .article-card {
  flex-direction: row;
  align-items: stretch
}

.insights-side .article-thumb {
  aspect-ratio: auto;
  flex: 0 0 38%
}

.insights-side .article-body {
  padding: 22px
}

.insights-side h3 {
  font-size: 1.0625rem
}

.featured .article-body h3 {
  font-size: clamp(1.375rem, 2vw, 1.75rem)
}

/* ============ 14. FAQ ============ */
.faq-wrap {
  max-width: 820px;
  margin-inline: auto
}

.faq-item {
  border-bottom: 1px solid var(--border)
}

.faq-item:first-child {
  border-top: 1px solid var(--border)
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 650;
  color: var(--text);
}

.faq-q .icon {
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform .3s, border-color .3s, background .3s
}

.faq-item.open .icon {
  transform: rotate(45deg);
  border-color: var(--border-hi);
  background: rgba(47, 224, 191, .08)
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease
}

.faq-a p {
  padding: 0 4px 26px;
  color: var(--muted);
  font-size: .9375rem;
  max-width: 60ch
}

/* ============ 15. CTA BANNER ============ */
.cta-banner {
  padding-block: 0
}

.cta-panel {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  padding: clamp(64px, 8vw, 110px) 32px;
  background:
    radial-gradient(ellipse 70% 90% at 50% 110%, rgba(47, 224, 191, .16), transparent 65%),
    radial-gradient(ellipse 50% 70% at 80% -10%, rgba(123, 108, 255, .14), transparent 65%),
    var(--surface);
}

.cta-panel .grid-bg {
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 10%, transparent 80%)
}

.cta-panel h2 {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 750;
  margin-bottom: 20px;
  position: relative
}

.cta-panel p {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: var(--fs-lead);
  position: relative
}

.cta-panel .btn {
  position: relative;
  margin-bottom: 20px;
}

.cta-micro {
  margin-top: 20px;
  font-family: var(--ff-mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
  position: relative
}

/* ============ 16. CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start
}

.contact-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px
}

.contact-points li {
  display: flex;
  gap: 16px;
  align-items: flex-start
}

.contact-points .service-icon {
  width: 44px;
  height: 44px;
  flex: none
}

.contact-points b {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.0625rem;
  margin-bottom: 2px
}

.contact-points p {
  color: var(--muted);
  font-size: .875rem
}

.form-card {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius)
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
  width: 100%;
  max-width: 100%
}

.field label {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .02em
}

.field input,
.field select,
.field textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s, box-shadow .2s;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #5B6577
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(47, 224, 191, .12)
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%2397A3B8' stroke-width='2'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 38px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.field textarea {
  min-height: 110px;
  resize: vertical
}

.form-card .btn {
  width: 100%;
  max-width: 100%;
  justify-content: center;
  margin-top: 6px;
  white-space: normal;
  height: auto;
  min-height: 52px;
  padding: 14px 20px;
  text-align: center
}

.form-note {
  text-align: center;
  margin-top: 14px;
  font-size: .78rem;
  color: var(--muted)
}

/* ============ 17. FOOTER ============ */
.site-footer {
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden
}

.footer-news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap
}

.footer-news h3 {
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  max-width: 420px
}

.news-form {
  display: flex;
  gap: 10px;
  flex: 0 1 440px;
  min-width: 280px;
  max-width: 100%
}

.news-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0 22px;
  height: 52px;
  color: var(--text);
  font: inherit;
  font-size: 1rem
}

.news-form input:focus {
  outline: none;
  border-color: var(--border-hi)
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-block: var(--sp-8)
}

.footer-main p {
  color: var(--muted);
  font-size: .875rem;
  max-width: 34ch;
  margin-top: 14px
}

.footer-main h4 {
  font-family: var(--ff-mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600
}

.footer-main ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.footer-main ul a {
  font-size: .9rem;
  color: rgba(242, 245, 250, .75);
  transition: color .2s
}

.footer-main ul a:hover {
  color: var(--primary)
}

.footer-badges {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap
}

.badge {
  font-family: var(--ff-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px
}

.badge svg {
  color: var(--primary)
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap
}

.footer-legal small {
  color: var(--muted);
  font-size: .8125rem
}

.footer-legal nav {
  display: flex;
  gap: 22px
}

.footer-legal nav a {
  font-size: .8125rem;
  color: var(--muted)
}

.footer-legal nav a:hover {
  color: var(--text)
}

.socials {
  display: flex;
  gap: 10px
}

.socials a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: border-color .2s, color .2s, transform .2s
}

.socials a:hover {
  border-color: var(--border-hi);
  color: var(--primary);
  transform: translateY(-2px)
}

/* ============ 18. REVEAL & MOTION ============ */
.reveal {
  opacity: 1
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important
  }

  html {
    scroll-behavior: auto
  }
}

/* ============ 19. RESPONSIVE ============ */
@media (max-width:1024px) {

  .services-grid,
  .cases-grid,
  .testi-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 48px
  }

  .process-grid::before {
    display: none
  }

  .insights-grid {
    grid-template-columns: 1fr
  }

  .footer-main {
    grid-template-columns: 1fr 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px
  }

  .contact-points {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px
  }
}

@media (max-width:820px) {
  .main-nav {
    display: none
  }

  .header-cta {
    display: none
  }

  .nav-toggle {
    display: flex
  }

  .dash-stats {
    grid-template-columns: 1fr 1fr
  }

  .dash-stat:nth-child(3) {
    border-left: none
  }

  .dash-stat {
    border-top: 1px solid var(--border)
  }

  .dash-stat:nth-child(1),
  .dash-stat:nth-child(2) {
    border-top: none
  }

  .compare-wrap {
    grid-template-columns: 1fr
  }

  .contact-points {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0
  }
}

@media (max-width:640px) {

  .services-grid,
  .cases-grid,
  .testi-grid,
  .process-grid {
    grid-template-columns: 1fr
  }

  .insights-side .article-card {
    flex-direction: column
  }

  .insights-side .article-thumb {
    aspect-ratio: 16/8.5;
    flex: auto
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center
  }

  .btn {
    white-space: normal;
    height: auto;
    min-height: 52px;
    padding-block: 12px;
    text-align: center
  }

  .form-card {
    padding: 24px 18px
  }
}

@media (max-width:540px) {
  .news-form {
    flex-direction: column;
    width: 100%;
    min-width: 0;
    flex: 1 1 100%
  }

  .news-form input,
  .news-form .btn {
    width: 100%
  }
}