/* ═══════════════════════════════════════════════════
   RIELDEX — Data Analytics, Automatización & Agentes de IA
   ─────────────────────────────────────────────────
   Paleta Oficial:
   - Blanco: #FFFFFF (Fondo principal y superficies limpias)
   - Azul:   #072357 (Color corporativo principal, textos, CTA fondo)
   - Rojo:   #DA121A (Acento principal, CTAs, elementos destacados)
   ═══════════════════════════════════════════════════ */

/* ── PARAMETRIC COLOR SOURCES ── */
:root {
  /* ★ Base page color — Blanco #FFFFFF */
  --color-base:     #FFFFFF;
  --color-base-rgb: 255, 255, 255;

  /* ★ CTA accent section color — Azul #072357 */
  --color-cta:      #072357;
  --color-cta-rgb:  7, 35, 87;

  /* ── Brand Palette ── */
  --red:         #DA121A;
  --red-hover:   #B80E15;
  --red-rgb:     218, 18, 26;
  --red-dim:     rgba(var(--red-rgb), 0.08);
  --red-glow:    rgba(var(--red-rgb), 0.24);

  /* Backward-compatible alias */
  --purple:      var(--red);
  --purple-rgb:  var(--red-rgb);
  --purple-dim:  var(--red-dim);
  --purple-glow: var(--red-glow);

  --navy:        #072357;
  --navy-rgb:    7, 35, 87;
  --navy-dark:   #041537;

  /* ── Light surface scale (derived from #FFFFFF & #072357) ── */
  --bg:           var(--color-base);
  --surface-0:    #FFFFFF;   /* base — pure white */
  --surface-1:    #F7F9FC;   /* secondary sections: subtle cool white */
  --surface-2:    #EEF3F9;   /* hover / elevated */
  --surface-card: #FFFFFF;   /* cards */
  --surface-3:    #CBD5E1;   /* dividers, scrollbar */

  /* ── Special sections ── */
  --surface-dark: var(--color-cta);  /* CTA block in corporate blue #072357 */

  /* ── Borders ── */
  --border:        rgba(7, 35, 87, 0.12);
  --border-subtle: rgba(7, 35, 87, 0.07);

  /* ── Body text ── */
  --text-primary:   #072357;
  --text-secondary: rgba(7, 35, 87, 0.74);
  --text-tertiary:  rgba(7, 35, 87, 0.55);
  --text-label:     rgba(7, 35, 87, 0.52);

  /* ── CTA section text (white on #072357) ── */
  --cta-text-primary:   #FFFFFF;
  --cta-text-secondary: rgba(255, 255, 255, 0.80);

  /* ── Nav transparent backgrounds ── */
  --nav-bg-scrolled: rgba(var(--color-base-rgb), 0.92);
  --nav-bg-mobile:   rgba(var(--color-base-rgb), 0.98);

  /* ── Typography ── */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', 'Fira Code', monospace;

  /* ── Shape ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* ── Motion ── */
  --transition-fast: 0.18s ease;
  --transition-base: 0.30s ease;
  --transition-slow: 0.60s cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Layout ── */
  --nav-h: 72px;
  --container-max: 1200px;
  --container-pad: clamp(1.5rem, 4vw, 3rem);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* ── ACCESSIBILITY: SKIP LINK & FOCUS ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  background: var(--navy);
  color: #FFFFFF;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 1rem;
}

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

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface-0); }
::-webkit-scrollbar-thumb { background: rgba(7, 35, 87, 0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* ── SELECTION ── */
::selection { background: var(--red); color: #FFFFFF; }

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

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

.section-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 580px;
}

.accent { color: var(--red); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red);
  color: #FFFFFF;
  border: 1px solid var(--red);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--red-glow);
  background: var(--red-hover);
  border-color: var(--red-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(7, 35, 87, 0.22);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(7, 35, 87, 0.05);
  transform: translateY(-1px);
}

/* Ghost on dark CTA section */
.cta-section .btn-ghost {
  color: var(--cta-text-primary);
  border-color: rgba(255, 255, 255, 0.30);
}
.cta-section .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: #FFFFFF;
}

.btn-large { padding: 1.1rem 2.25rem; font-size: 1rem; }

.btn-arrow {
  width: 18px; height: 18px;
  transition: transform var(--transition-fast);
}
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── SECTION HEADER ── */
.section-header { margin-bottom: 4rem; }

/* ── REVEAL ANIMATIONS ── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-up.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ══════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition-base),
              border-color var(--transition-base),
              backdrop-filter var(--transition-base),
              box-shadow var(--transition-base);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-bg-scrolled);
  border-color: var(--border);
  box-shadow: 0 4px 24px rgba(7, 35, 87, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ── Nav Logo ── */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 44px;
  height: 33px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-logo-wordmark {
  width: 112px;
  height: 28px;
  flex-shrink: 0;
  color: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.wordmark-svg {
  width: 100%;
  height: 100%;
}

/* ── Nav Links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}
.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width var(--transition-base);
}
.nav-links li a:hover,
.nav-links li a[data-active="true"] {
  color: var(--navy);
}
.nav-links li a:hover::after,
.nav-links li a[data-active="true"]::after {
  width: 100%;
}

.nav-cta {
  background: var(--red-dim) !important;
  border: 1px solid rgba(218, 18, 26, 0.30) !important;
  color: var(--red) !important;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: all var(--transition-fast) !important;
}
.nav-cta:hover {
  background: var(--red) !important;
  color: #FFFFFF !important;
  border-color: var(--red) !important;
}
.nav-cta::after { display: none !important; }

/* ── Nav Right (lang + toggle) ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ── Language Toggle ── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color var(--transition-fast);
  background: rgba(7, 35, 87, 0.03);
}
.lang-toggle:hover { border-color: rgba(7, 35, 87, 0.28); }

.lang-opt {
  transition: color var(--transition-fast), font-weight var(--transition-fast);
  cursor: pointer;
}
.lang-opt.active {
  color: var(--red);
  font-weight: 600;
}
.lang-sep { color: var(--border); font-size: 0.65rem; }

/* ── Hamburger ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--navy);
  transition: all var(--transition-fast);
}

/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--surface-0);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas { width: 100%; height: 100%; opacity: 0.55; }

/* grid overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(7, 35, 87, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 35, 87, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(7, 35, 87, 0.04);
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 2px;
  margin-bottom: 2.5rem;
}
.tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--navy);
  margin-bottom: 1.75rem;
  max-width: 860px;
}

.hero-headline .accent { color: var(--red); }

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 650px;
  margin-bottom: 3rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(7, 35, 87, 0.30), transparent);
  animation: scrollFade 2.5s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0; transform: scaleY(0.5) translateY(-20px); }
  50%       { opacity: 1; transform: scaleY(1)   translateY(0); }
}

/* ══════════════════════════════════════════════════
   BELOW-THE-FOLD RENDERING OPTIMIZATION
══════════════════════════════════════════════════ */
.services-section,
.diff-section,
.tech-section,
.industries-section,
.approach-section,
.cta-section,
.footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* ══════════════════════════════════════════════════
   VALUE / 3 CORE PILLARS SECTION
══════════════════════════════════════════════════ */
.value-section {
  padding: 8rem 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.value-intro {
  max-width: 680px;
  margin-bottom: 4.5rem;
}
.value-intro .section-title { margin-bottom: 1.25rem; }

.value-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.pillar-card {
  background: var(--surface-0);
  padding: 2.75rem 2.25rem;
  transition: background var(--transition-base), transform var(--transition-base);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width var(--transition-slow);
}
.pillar-card:hover { background: var(--surface-2); }
.pillar-card:hover::before { width: 100%; }

.pillar-icon {
  width: 44px; height: 44px;
  color: var(--navy);
  margin-bottom: 1.5rem;
  transition: color var(--transition-base), transform var(--transition-base);
}
.pillar-card:hover .pillar-icon {
  color: var(--red);
  transform: translateY(-2px);
}

.pillar-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.7rem;
}
.pillar-desc {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════
   SERVICES SECTION (3 CORE PILLARS DETAIL)
══════════════════════════════════════════════════ */
.services-section {
  padding: 8rem 0;
  background: var(--surface-0);
}

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

.service-card {
  background: var(--surface-card);
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background var(--transition-base);
}
.service-card:hover { background: var(--surface-1); }

.service-accent-line {
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height var(--transition-slow), background var(--transition-base);
}
.service-card:hover .service-accent-line { height: 100%; }

.service-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1.5rem;
}

.service-body { display: flex; flex-direction: column; flex: 1; }

.service-title {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex: 1;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 1.1rem;
  position: relative;
  transition: color var(--transition-fast);
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(7, 35, 87, 0.25);
  transition: background var(--transition-fast);
}
.service-card:hover .service-list li { color: var(--navy); }
.service-card:hover .service-list li::before { background: var(--red); }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--transition-fast);
  align-self: flex-start;
}
.service-link span { transition: transform var(--transition-fast); }
.service-card:hover .service-link { color: var(--red); }
.service-card:hover .service-link span:last-child { transform: translateX(4px); }

/* ══════════════════════════════════════════════════
   DIFFERENTIATOR SECTION
══════════════════════════════════════════════════ */
.diff-section {
  padding: 8rem 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.diff-title { margin-bottom: 1.5rem; }
.diff-left .section-desc { max-width: 460px; }

.diff-pillar {
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition-base);
}
.diff-pillar:first-child { border-top: 1px solid var(--border); }
.diff-pillar:hover { border-color: rgba(218, 18, 26, 0.4); }

.diff-pillar-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.diff-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 500;
  letter-spacing: 0.1em;
  flex-shrink: 0;
}
.diff-pillar-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
}
.diff-pillar-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
  padding-left: 2.5rem;
}

/* ══════════════════════════════════════════════════
   TECHNOLOGY SECTION
══════════════════════════════════════════════════ */
.tech-section {
  padding: 8rem 0;
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.tech-category {
  background: var(--surface-1);
  padding: 2rem 1.5rem;
  transition: background var(--transition-base);
}
.tech-category:hover { background: var(--surface-2); }

.tech-cat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25rem;
}

.tech-tags { display: flex; flex-direction: column; gap: 0.5rem; }

.tech-tag {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
  transition: color var(--transition-fast);
}
.tech-category:hover .tech-tag { color: var(--navy); }
.tech-tag.accent-tag { color: var(--red); font-weight: 500; }

/* ══════════════════════════════════════════════════
   INDUSTRIES SECTION
══════════════════════════════════════════════════ */
.industries-section {
  padding: 8rem 0;
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.industry-card {
  background: var(--surface-0);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition-base);
}
.industry-card:hover { background: var(--surface-2); }

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--border);
  transition: background var(--transition-base);
}
.industry-card:hover::after { background: var(--red); }

.industry-featured { background: var(--surface-0); }
.industry-featured::after { background: rgba(218, 18, 26, 0.45); }

.industry-icon {
  width: 48px; height: 48px;
  color: var(--navy);
  margin-bottom: 1.5rem;
  transition: color var(--transition-base);
}
.industry-card:hover .industry-icon { color: var(--red); }

.industry-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.industry-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-label);
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.industry-desc {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}
.industry-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-dim);
  border: 1px solid rgba(218, 18, 26, 0.24);
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
}

/* ══════════════════════════════════════════════════
   APPROACH SECTION
══════════════════════════════════════════════════ */
.approach-section {
  padding: 8rem 0;
  background: var(--surface-0);
  border-top: 1px solid var(--border-subtle);
}

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.approach-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(25% / 2);
  width: calc(100% - 25% / 2 - 25% / 2);
  height: 1px;
  background: linear-gradient(to right, var(--border), rgba(218, 18, 26, 0.45), var(--border));
  z-index: 0;
}

.approach-step {
  padding: 0 1.5rem 0 0;
  position: relative;
  z-index: 1;
}
.step-connector {
  height: 56px;
  display: flex;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.75rem;
}
.step-title {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.step-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.step-geo { position: absolute; top: 0; left: -4px; }

.geo-dot {
  border-radius: 50%;
  border: 1.5px solid rgba(7, 35, 87, 0.25);
  transition: border-color var(--transition-base), transform var(--transition-base);
}
.geo-dot-sm  { width: 14px; height: 14px; background: var(--surface-0); }
.geo-dot-md  { width: 18px; height: 18px; background: var(--surface-0); }
.geo-dot-lg  { width: 22px; height: 22px; }
.geo-dot-xl  { width: 28px; height: 28px; }
.geo-dot-accent {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
}
.approach-step:hover .geo-dot { transform: scale(1.2); }

/* ══════════════════════════════════════════════════
   CTA FINAL  (Corporate Blue #072357 section)
══════════════════════════════════════════════════ */
.cta-section {
  padding: 10rem 0;
  background: var(--surface-dark); /* #072357 */
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(4, 21, 55, 0.6) 0%, transparent 70%),
    radial-gradient(ellipse 45% 65% at 85% 50%, rgba(218, 18, 26, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.cta-geo { position: absolute; inset: 0; pointer-events: none; }
.cta-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.cta-circle-1 { width: 600px; height: 600px; right: -200px; top: 50%; transform: translateY(-50%); }
.cta-circle-2 { width: 380px; height: 380px; right: -80px;  top: 50%; transform: translateY(-50%); border-color: rgba(218, 18, 26, 0.35); }

.cta-content { position: relative; z-index: 1; }
.cta-text { max-width: 620px; }

.cta-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--cta-text-primary);
  margin-bottom: 1.5rem;
}
.cta-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--cta-text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.section-label.light {
  color: #FF6B70;
  letter-spacing: 0.18em;
}

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  padding-top: 4rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand { display: flex; flex-direction: column; gap: 1.25rem; }

.footer-logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-logo-mark {
  width: 44px;
  height: 33px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.footer-logo-mark img,
.footer-logo-mark svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-logo-wordmark {
  width: 112px;
  height: 28px;
  flex-shrink: 0;
  color: var(--navy);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.footer-logo-wordmark svg { width: 100%; height: 100%; }

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-nav-head {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.footer-nav-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-nav-col ul li a {
  font-size: 0.84rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-nav-col ul li a:hover { color: var(--red); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}
.footer-copy { font-size: 0.8rem; color: var(--text-tertiary); }
.footer-copy-right {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 1024px)
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .value-pillars         { grid-template-columns: 1fr; }
  .services-grid         { grid-template-columns: 1fr; }
  .diff-grid             { grid-template-columns: 1fr; gap: 4rem; }
  .tech-grid             { grid-template-columns: repeat(3, 1fr); }
  .approach-steps        { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .approach-steps::before{ display: none; }
  .industries-grid       { grid-template-columns: repeat(2, 1fr); }
  .footer-top            { grid-template-columns: 1fr; gap: 3rem; }
  .footer-nav            { grid-template-columns: repeat(2, 1fr); }
}

/* ── TABLET / MOBILE  (≤ 768px) ── */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0;
    width: 100%;
    background: var(--nav-bg-mobile);
    backdrop-filter: blur(20px);
    padding: 2rem var(--container-pad) 2.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.is-open li { border-bottom: 1px solid var(--border-subtle); }
  .nav-links.is-open li a {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    color: var(--navy);
  }
  .nav-links.is-open .nav-cta {
    margin-top: 1rem;
    text-align: center;
    display: block;
    border-radius: var(--radius-sm);
  }
  .nav-toggle { display: flex; }

  .hero-content { padding-top: 4rem; padding-bottom: 4rem; }

  .value-section,
  .services-section,
  .diff-section,
  .tech-section,
  .industries-section,
  .approach-section { padding: 5rem 0; }

  .value-pillars   { grid-template-columns: 1fr; }
  .section-header  { margin-bottom: 2.5rem; }
  .tech-grid       { grid-template-columns: repeat(2, 1fr); }
  .approach-steps  { grid-template-columns: 1fr; gap: 2rem; }
  .industries-grid { grid-template-columns: 1fr; }

  .cta-section { padding: 6rem 0; }
  .cta-circle-1, .cta-circle-2 { display: none; }

  .footer-top  { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-nav  { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .nav-logo-wordmark { width: 90px; height: 24px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .tech-grid   { grid-template-columns: 1fr; }
  .footer-nav  { grid-template-columns: 1fr; }
  .nav-logo-wordmark { width: 80px; height: 20px; }
}
