/* ============================================================
   Gep Amalgamation Inc. — Convergence Architecture Stylesheet
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary-dark: #0F1923;
  --color-secondary-dark: #1A2A3A;
  --color-accent-teal: #0BC5EA;
  --color-accent-purple: #7C3AED;
  --color-warm-accent: #F59E0B;
  --color-light-text: #F1F5F9;
  --color-body-text: #CBD5E1;
  --color-muted-text: #94A3B8;
  --color-surface: #1E293B;
  --color-card-bg: #1E2D3D;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-primary-dark);
  color: var(--color-body-text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent-teal);
  text-decoration: none;
  transition: color var(--transition-smooth);
}

a:hover,
a:focus-visible {
  color: var(--color-warm-accent);
}

:focus-visible {
  outline: 2px solid var(--color-accent-teal);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-light-text);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-smooth), padding var(--transition-smooth);
}

.site-nav.scrolled {
  background: var(--color-primary-dark);
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-light-text);
  text-decoration: none;
}

.nav-brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-muted-text);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent-teal);
  transition: width var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-light-text);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-light-text);
  transition: transform var(--transition-smooth), opacity var(--transition-smooth);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}

/* Blueprint grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 197, 234, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 197, 234, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

/* Diagonal accent lines */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(124, 58, 237, 0.06) 48%, rgba(124, 58, 237, 0.06) 52%, transparent 52%),
    linear-gradient(225deg, transparent 48%, rgba(11, 197, 234, 0.04) 48%, rgba(11, 197, 234, 0.04) 52%, transparent 52%);
}

/* CSS Particle System */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--color-accent-teal);
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0;
}

.particle:nth-child(1)  { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 20%; animation-duration: 12s; animation-delay: 1s; width: 2px; height: 2px; }
.particle:nth-child(3)  { left: 30%; animation-duration: 10s; animation-delay: 2s; background: var(--color-accent-purple); }
.particle:nth-child(4)  { left: 40%; animation-duration: 14s; animation-delay: 0.5s; width: 4px; height: 4px; }
.particle:nth-child(5)  { left: 50%; animation-duration: 9s; animation-delay: 3s; }
.particle:nth-child(6)  { left: 60%; animation-duration: 11s; animation-delay: 1.5s; background: var(--color-accent-purple); width: 2px; height: 2px; }
.particle:nth-child(7)  { left: 70%; animation-duration: 13s; animation-delay: 2.5s; }
.particle:nth-child(8)  { left: 80%; animation-duration: 8s; animation-delay: 4s; width: 3px; height: 3px; }
.particle:nth-child(9)  { left: 15%; animation-duration: 15s; animation-delay: 1.8s; background: var(--color-warm-accent); width: 2px; height: 2px; }
.particle:nth-child(10) { left: 25%; animation-duration: 10s; animation-delay: 3.5s; }
.particle:nth-child(11) { left: 35%; animation-duration: 12s; animation-delay: 0.8s; width: 2px; height: 2px; }
.particle:nth-child(12) { left: 45%; animation-duration: 9s; animation-delay: 2.2s; background: var(--color-warm-accent); }
.particle:nth-child(13) { left: 55%; animation-duration: 14s; animation-delay: 1.2s; }
.particle:nth-child(14) { left: 65%; animation-duration: 11s; animation-delay: 3.8s; width: 3px; height: 3px; background: var(--color-accent-purple); }
.particle:nth-child(15) { left: 75%; animation-duration: 8s; animation-delay: 0.3s; }
.particle:nth-child(16) { left: 85%; animation-duration: 13s; animation-delay: 4.2s; width: 2px; height: 2px; }
.particle:nth-child(17) { left: 5%;  animation-duration: 10s; animation-delay: 2.8s; background: var(--color-accent-purple); }
.particle:nth-child(18) { left: 90%; animation-duration: 12s; animation-delay: 1.6s; }
.particle:nth-child(19) { left: 42%; animation-duration: 9s; animation-delay: 1.3s; background: var(--color-warm-accent); width: 2px; height: 2px; }
.particle:nth-child(20) { left: 58%; animation-duration: 11s; animation-delay: 3.2s; }

@keyframes floatUp {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-10vh) scale(1.5);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent-teal);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 0.2s forwards;
}

.hero-heading {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-heading .word {
  display: inline-block;
  overflow: hidden;
}

.hero-heading .word .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  animation: staggerIn 0.6s ease-out forwards;
}

.hero-heading .word .char:nth-child(1)  { animation-delay: 0.4s; }
.hero-heading .word .char:nth-child(2)  { animation-delay: 0.44s; }
.hero-heading .word .char:nth-child(3)  { animation-delay: 0.48s; }
.hero-heading .word .char:nth-child(4)  { animation-delay: 0.52s; }
.hero-heading .word .char:nth-child(5)  { animation-delay: 0.56s; }
.hero-heading .word .char:nth-child(6)  { animation-delay: 0.60s; }
.hero-heading .word .char:nth-child(7)  { animation-delay: 0.64s; }
.hero-heading .word .char:nth-child(8)  { animation-delay: 0.68s; }
.hero-heading .word .char:nth-child(9)  { animation-delay: 0.72s; }
.hero-heading .word .char:nth-child(10) { animation-delay: 0.76s; }
.hero-heading .word .char:nth-child(11) { animation-delay: 0.80s; }
.hero-heading .word .char:nth-child(12) { animation-delay: 0.84s; }
.hero-heading .word:nth-child(2) .char:nth-child(1) { animation-delay: 0.6s; }
.hero-heading .word:nth-child(2) .char:nth-child(2) { animation-delay: 0.64s; }
.hero-heading .word:nth-child(2) .char:nth-child(3) { animation-delay: 0.68s; }
.hero-heading .word:nth-child(2) .char:nth-child(4) { animation-delay: 0.72s; }
.hero-heading .word:nth-child(2) .char:nth-child(5) { animation-delay: 0.76s; }
.hero-heading .word:nth-child(2) .char:nth-child(6) { animation-delay: 0.80s; }
.hero-heading .word:nth-child(2) .char:nth-child(7) { animation-delay: 0.84s; }
.hero-heading .word:nth-child(2) .char:nth-child(8) { animation-delay: 0.88s; }
.hero-heading .word:nth-child(2) .char:nth-child(9) { animation-delay: 0.92s; }
.hero-heading .word:nth-child(2) .char:nth-child(10) { animation-delay: 0.96s; }
.hero-heading .word:nth-child(2) .char:nth-child(11) { animation-delay: 1.00s; }
.hero-heading .word:nth-child(2) .char:nth-child(12) { animation-delay: 1.04s; }
.hero-heading .word:nth-child(2) .char:nth-child(13) { animation-delay: 1.08s; }
.hero-heading .word:nth-child(3) .char:nth-child(1) { animation-delay: 0.8s; }
.hero-heading .word:nth-child(3) .char:nth-child(2) { animation-delay: 0.84s; }
.hero-heading .word:nth-child(3) .char:nth-child(3) { animation-delay: 0.88s; }
.hero-heading .word:nth-child(3) .char:nth-child(4) { animation-delay: 0.92s; }
.hero-heading .word:nth-child(3) .char:nth-child(5) { animation-delay: 0.96s; }
.hero-heading .word:nth-child(3) .char:nth-child(6) { animation-delay: 1.00s; }
.hero-heading .word:nth-child(3) .char:nth-child(7) { animation-delay: 1.04s; }
.hero-heading .word:nth-child(3) .char:nth-child(8) { animation-delay: 1.08s; }
.hero-heading .word:nth-child(3) .char:nth-child(9) { animation-delay: 1.12s; }
.hero-heading .word:nth-child(3) .char:nth-child(10) { animation-delay: 1.16s; }
.hero-heading .word:nth-child(3) .char:nth-child(11) { animation-delay: 1.20s; }

@keyframes staggerIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-tagline {
  font-size: 1.25rem;
  color: var(--color-accent-teal);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 1.0s forwards;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--color-accent-teal);
  color: var(--color-accent-teal);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color var(--transition-smooth), border-color var(--transition-smooth);
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 1.2s forwards;
  text-decoration: none;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-purple));
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: -1;
}

.hero-cta:hover::before,
.hero-cta:focus-visible::before {
  opacity: 1;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: var(--color-primary-dark);
  border-color: transparent;
}

.hero-cta svg {
  transition: transform var(--transition-bounce);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-muted-text);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeSlideUp 0.8s ease-out 1.5s forwards;
}

.scroll-indicator .mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--color-muted-text);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  background: var(--color-accent-teal);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { top: 6px; opacity: 1; }
  50% { top: 16px; opacity: 0.3; }
}

/* ============================================================
   METRICS BANNER
   ============================================================ */
.metrics {
  padding: 4rem 2rem 5rem;
  background: var(--color-primary-dark);
  position: relative;
}

.metrics-row {
  display: flex;
  justify-content: center;
  gap: 6rem;
  max-width: 900px;
  margin: 0 auto;
  flex-wrap: wrap;
}

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

.metric-value {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--color-light-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--color-muted-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--color-accent-teal), transparent);
  opacity: 0.3;
}

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section {
  padding: 7rem 2rem;
  position: relative;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-accent-teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-heading {
  margin-bottom: 3rem;
  color: var(--color-light-text);
}

/* Fade-in reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
  background: var(--color-secondary-dark);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-purple), transparent);
  opacity: 0.4;
}

.about-grid {
  max-width: 800px;
  margin: 0 auto;
}

.about-narrative {
  color: var(--color-body-text);
  font-size: 1.1rem;
  line-height: 1.9;
}

.about-narrative p {
  margin-bottom: 1.75rem;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

/* Pull-quote */
.pull-quote {
  position: relative;
  margin: 3.5rem 0;
  padding: 2.5rem 3rem;
  border-left: 4px solid var(--color-accent-teal);
  background: var(--color-card-bg);
}

.pull-quote blockquote {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-light-text);
  line-height: 1.5;
  font-style: italic;
}

.pull-quote blockquote::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent-teal);
  margin-bottom: 1.5rem;
}

.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--color-accent-teal);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* Ornament divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.ornament-divider .line {
  width: 60px;
  height: 1px;
  background: var(--color-accent-purple);
  opacity: 0.5;
}

.ornament-divider .diamond {
  width: 8px;
  height: 8px;
  background: var(--color-accent-teal);
  transform: rotate(45deg);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-primary-dark);
  position: relative;
}

.services-list {
  max-width: 1000px;
  margin: 0 auto;
}

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr 2fr;
  gap: 2rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  position: relative;
  cursor: default;
  transition: padding var(--transition-smooth);
}

.service-row:nth-child(even) {
  grid-template-columns: 48px 2fr 1fr;
}

.service-row:nth-child(even) .service-icon {
  order: 1;
}

.service-row:nth-child(even) .service-name {
  order: 3;
  text-align: right;
}

.service-row:nth-child(even) .service-desc {
  order: 2;
}

.service-row:hover {
  padding: 3.5rem 0;
  background: rgba(30, 45, 61, 0.3);
  margin: 0 -2rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Connecting line */
.service-row::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  width: 1px;
  height: 0;
  background: var(--color-accent-teal);
  opacity: 0;
  transition: height var(--transition-smooth), opacity var(--transition-smooth);
}

.service-row:hover::before {
  height: 40%;
  opacity: 0.4;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-teal);
  transition: color var(--transition-smooth), transform var(--transition-bounce);
}

.service-icon svg {
  width: 36px;
  height: 36px;
}

.service-row:hover .service-icon {
  color: var(--color-accent-purple);
  transform: scale(1.1);
}

.service-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-light-text);
  transition: color var(--transition-smooth);
}

.service-row:hover .service-name {
  color: var(--color-accent-teal);
}

.service-desc {
  color: var(--color-muted-text);
  line-height: 1.8;
  font-size: 0.95rem;
}

.service-desc .secondary-desc {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.3s ease, margin 0.3s ease;
  color: var(--color-body-text);
  margin-top: 0;
}

.service-row:hover .secondary-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 0.75rem;
}

/* ============================================================
   INDUSTRIES — DIAGONAL SPLIT
   ============================================================ */
.industries {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: var(--color-secondary-dark);
}

.industries-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.industries-left {
  background: var(--color-card-bg);
  padding: 5rem 3rem;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.industries-right {
  background: var(--color-secondary-dark);
  padding: 5rem 3rem;
  clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
  margin-left: -15%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.industries-left h3 {
  margin-bottom: 2rem;
  color: var(--color-accent-teal);
}

.industry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.industry-list li {
  font-size: 1.05rem;
  color: var(--color-body-text);
  padding-left: 1.5rem;
  position: relative;
  transition: color var(--transition-smooth), transform var(--transition-smooth);
}

.industry-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--color-accent-teal);
  border-radius: 50%;
}

.industry-list li:hover {
  color: var(--color-light-text);
  transform: translateX(6px);
}

/* System diagram visual */
.system-diagram {
  width: 100%;
  max-width: 400px;
  position: relative;
}

.diagram-node {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--color-accent-teal);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(11, 197, 234, 0.5);
}

.diagram-node.purple {
  background: var(--color-accent-purple);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.5);
}

.diagram-node.gold {
  background: var(--color-warm-accent);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

.diagram-line {
  position: absolute;
  height: 1px;
  background: rgba(148, 163, 184, 0.3);
  transform-origin: left center;
}

.diagram-line.active {
  background: var(--color-accent-teal);
  opacity: 0.6;
}

.diagram-label {
  position: absolute;
  font-size: 0.7rem;
  color: var(--color-muted-text);
  font-family: var(--font-mono);
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

/* ============================================================
   PROCESS — INTEGRATION TIERS
   ============================================================ */
.process {
  background: var(--color-primary-dark);
  position: relative;
}

.tiers {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tier {
  background: var(--color-card-bg);
  border: 1px solid rgba(148, 163, 184, 0.08);
  padding: 2.5rem;
  position: relative;
  transition: border-color var(--transition-smooth);
}

.tier:hover {
  border-color: rgba(11, 197, 234, 0.3);
}

.tier-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tier-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-accent-teal);
  line-height: 1;
  opacity: 0.7;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-light-text);
}

.tier-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: center;
}

.tier-flow .flow-box {
  background: var(--color-surface);
  padding: 1.25rem;
  text-align: center;
  border-radius: 2px;
}

.tier-flow .flow-box h4 {
  font-size: 0.85rem;
  color: var(--color-accent-teal);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tier-flow .flow-box p {
  color: var(--color-body-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.tier-flow .flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-purple);
  padding: 0 1rem;
}

.tier-flow .flow-arrow svg {
  width: 32px;
  height: 32px;
}

/* Tier connector between tiers */
.tier-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  color: var(--color-accent-teal);
  opacity: 0.4;
}

.tier-connector svg {
  width: 24px;
  height: 24px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--color-secondary-dark);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 7rem 2rem;
}

/* Pattern overlay */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(11, 197, 234, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 50%),
    linear-gradient(45deg, transparent 49.5%, rgba(11, 197, 234, 0.03) 49.5%, rgba(11, 197, 234, 0.03) 50.5%, transparent 50.5%);
  background-size: 100% 100%, 100% 100%, 40px 40px;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  margin-bottom: 1rem;
}

.cta-content p {
  color: var(--color-muted-text);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 3rem;
  background: linear-gradient(135deg, var(--color-accent-teal), var(--color-accent-purple));
  color: var(--color-light-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition-bounce), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.cta-button:hover,
.cta-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(11, 197, 234, 0.25);
}

.cta-phone {
  display: block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--color-accent-teal);
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  padding: 5rem 2rem 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem;
}

.footer-brand p {
  color: var(--color-muted-text);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 0.8rem;
  color: var(--color-accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--color-muted-text);
  font-size: 0.9rem;
  transition: color var(--transition-smooth);
}

.footer-column a:hover {
  color: var(--color-accent-teal);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--color-muted-text);
  font-size: 0.85rem;
}

.social-icons {
  display: flex;
  gap: 1.25rem;
}

.social-icons a {
  color: var(--color-muted-text);
  transition: color var(--transition-smooth), transform var(--transition-bounce);
}

.social-icons a:hover {
  color: var(--color-accent-teal);
  transform: translateY(-2px);
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* ============================================================
   LEGAL PAGES (Privacy & Terms)
   ============================================================ */
.legal-page {
  background: var(--color-primary-dark);
  min-height: 100vh;
}

.legal-hero {
  background: var(--color-secondary-dark);
  padding: 8rem 2rem 4rem;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  position: relative;
}

.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-teal), var(--color-accent-purple), transparent);
}

.legal-hero h1 {
  margin-bottom: 0.75rem;
}

.legal-hero .effective-date {
  color: var(--color-muted-text);
  font-size: 0.95rem;
}

.legal-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  align-items: start;
}

/* Sidebar TOC */
.legal-sidebar {
  position: sticky;
  top: 6rem;
}

.legal-sidebar nav {
  background: var(--color-card-bg);
  border: 1px solid rgba(148, 163, 184, 0.08);
  padding: 2rem;
}

.legal-sidebar h3 {
  font-size: 0.8rem;
  color: var(--color-accent-teal);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
}

.legal-sidebar ol {
  list-style: none;
  counter-reset: toc-counter;
}

.legal-sidebar ol li {
  counter-increment: toc-counter;
  margin-bottom: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.4;
}

.legal-sidebar ol li a {
  color: var(--color-muted-text);
  display: block;
  padding: 0.35rem 0;
  transition: color var(--transition-smooth), padding-left var(--transition-smooth);
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
}

.legal-sidebar ol li a:hover,
.legal-sidebar ol li a.active {
  color: var(--color-accent-teal);
  border-left-color: var(--color-accent-teal);
}

/* Legal content */
.legal-content {
  max-width: 750px;
}

.legal-content section {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.legal-content section:last-child {
  border-bottom: none;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--color-light-text);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.legal-content h2 .clause-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--color-accent-teal);
  font-weight: 400;
  opacity: 0.7;
}

.legal-content p {
  font-size: 1rem;
  color: var(--color-body-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.legal-content .address-block {
  background: var(--color-card-bg);
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border-left: 3px solid var(--color-accent-teal);
}

.legal-content .address-block p {
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .industries-container {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .industries-left,
  .industries-right {
    clip-path: none;
    margin-left: 0;
    padding: 4rem 2rem;
  }

  .industries-right {
    display: none;
  }

  .tier-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tier-flow .flow-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-body {
    grid-template-columns: 1fr;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
  }

  .legal-sidebar nav ol li {
    margin-bottom: 0;
  }

  .legal-sidebar nav ol li a {
    border-left: none;
    padding-left: 0;
    border-bottom: 1px solid transparent;
  }

  .legal-sidebar nav ol li a:hover,
  .legal-sidebar nav ol li a.active {
    border-left: none;
    border-bottom-color: var(--color-accent-teal);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
  }

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

  .hamburger {
    display: flex;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .metrics-row {
    gap: 2.5rem 4rem;
  }

  .metric-divider {
    display: none;
  }

  .service-row,
  .service-row:nth-child(even) {
    grid-template-columns: 36px 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .service-row .service-desc,
  .service-row:nth-child(even) .service-desc,
  .service-row:nth-child(even) .service-name {
    order: unset;
    text-align: left;
  }

  .service-row .service-desc {
    grid-column: 1 / -1;
  }

  .service-row .service-name {
    font-size: 1.25rem;
  }

  .service-row:nth-child(even) .service-name {
    order: 2;
  }

  .tier {
    padding: 1.5rem;
  }

  .tier-number {
    font-size: 2rem;
  }

  .tier-title {
    font-size: 1.2rem;
  }

  .pull-quote {
    padding: 1.5rem;
  }

  .pull-quote blockquote {
    font-size: 1.2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 1.8rem;
  }

  .metrics-row {
    gap: 2rem;
    flex-direction: column;
  }

  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }
}
