/* ============================================================
   GAMER S.A. — COMMAND INTERFACE STYLESHEET
   Global Maritime Supply Authority
   Version: 1.0.0 | Architecture: BEM + CSS Custom Properties
   ============================================================ */

/* ============================================================
   1. CSS RESET & ROOT DESIGN TOKENS
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* ── BRAND IDENTITY TOKENS ── */
  --canvas-bg:              #FFFFFF;
  --panel-dark:             #1C2D37;
  --laser-accent:           #00B2B2;
  --laser-accent-gradient:  linear-gradient(135deg, #00B2B2 0%, #008080 100%);

  /* ── COLOR TOKENS ── */
  --color-canvas:           #FFFFFF;
  --color-atmosphere:       #1C2D37;
  --color-atmosphere-mid:   #162830;
  --color-laser:            #00B2B2;
  --color-laser-dim:        rgba(0, 178, 178, 0.08);
  --color-laser-glow:       rgba(0, 178, 178, 0.30);
  --color-laser-border:     rgba(0, 178, 178, 0.25);
  --color-text-primary:     #1C2D37;
  --color-text-secondary:   #3D5060;
  --color-text-muted:       #8097A8;
  --color-text-accent:      #00B2B2;
  --color-border:           rgba(28, 45, 55, 0.18);
  --color-border-mid:       rgba(28, 45, 55, 0.12);
  --color-surface:          rgba(28, 45, 55, 0.04);
  --color-surface-hover:    rgba(28, 45, 55, 0.08);
  --color-grid-line:        rgba(0, 178, 178, 0.06);
  --color-grid-line-mid:    rgba(28, 45, 55, 0.04);
  --color-success:          #00A878;

  /* ── TYPOGRAPHY TOKENS ── */
  --font-heading:  'Monument Extended', 'Bebas Neue', 'Impact', 'Arial Black', system-ui, sans-serif;
  --font-wide:     'Barlow Condensed', 'Bebas Neue', 'Arial Black', sans-serif;
  --font-data:     'Geist Mono', 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;

  /* ── FONT SCALE (fluid) ── */
  --text-2xs:  clamp(0.55rem,  0.8vw,  0.65rem);
  --text-xs:   clamp(0.65rem,  1vw,    0.75rem);
  --text-sm:   clamp(0.75rem,  1.2vw,  0.875rem);
  --text-base: clamp(0.875rem, 1.4vw,  1rem);
  --text-md:   clamp(1rem,     1.8vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 2.2vw,  1.5rem);
  --text-xl:   clamp(1.5rem,   3vw,    2rem);
  --text-2xl:  clamp(2rem,     4.5vw,  3.25rem);
  --text-3xl:  clamp(2.75rem,  6vw,    4.75rem);
  --text-hero: clamp(3.5rem,   10vw,   9rem);

  /* ── SPACING SCALE ── */
  --sp-1:  0.25rem;   /* 4px  */
  --sp-2:  0.5rem;    /* 8px  */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.25rem;   /* 20px */
  --sp-6:  1.5rem;    /* 24px */
  --sp-8:  2rem;      /* 32px */
  --sp-10: 2.5rem;    /* 40px */
  --sp-12: 3rem;      /* 48px */
  --sp-16: 4rem;      /* 64px */
  --sp-20: 5rem;      /* 80px */
  --sp-24: 6rem;      /* 96px */
  --sp-32: 8rem;      /* 128px */

  /* ── HUD DIMENSIONS ── */
  --hud-bar-height:   56px;
  --hud-side-width:   28px;
  --hud-corner-size:  18px;
  --hud-pad:          14px;

  /* ── TRANSITIONS ── */
  --ease-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-base:   300ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:   550ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* ── RUNTIME STATE ── */
  --scroll-progress: 0;
}

/* ============================================================
   2. GLOBAL BASE STYLES
   ============================================================ */

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--color-atmosphere) var(--color-canvas);
}

html::-webkit-scrollbar { width: 6px; }
html::-webkit-scrollbar-track { background: #f0f4f5; }
html::-webkit-scrollbar-thumb { background: var(--panel-dark); border-radius: 3px; }

body {
  background-color: var(--color-canvas);
  color: var(--color-text-primary);
  font-family: var(--font-data);
  font-size: var(--text-base);
  line-height: 1.6;
  padding-top: var(--hud-bar-height);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--laser-accent);
  color: #FFFFFF;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--color-laser);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   3. HUD OVERLAY (HEADS-UP DISPLAY)
   ============================================================ */

.hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  font-family: var(--font-data);
}

/* ── HUD Top Bar ── */
.hud__top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--hud-bar-height);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 var(--sp-4);
  background: rgba(28, 45, 55, 0.97);
  border-bottom: 1px solid rgba(0, 178, 178, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
  gap: var(--sp-3);
}

/* ── HUD Telemetry (Left) ── */
.hud__telemetry {
  display: none; /* hidden on mobile; revealed at 769px+ */
  align-items: center;
  gap: var(--sp-3);
}

.hud__telemetry-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hud__label {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.hud__clock {
  font-size: var(--text-xs);
  color: var(--color-laser);
  letter-spacing: 0.08em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: opacity var(--ease-fast);
}

.hud__gps {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.05em;
  transition: opacity var(--ease-base);
}

.hud__telemetry-separator {
  color: rgba(255, 255, 255, 0.30);
  font-size: var(--text-2xs);
  opacity: 0.5;
}

/* ── HUD Brand + Nav (Center) ── */
.hud__brand-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  justify-content: flex-start;
}

.hud__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}

.hud__logo-mark {
  color: var(--color-laser);
  font-size: 10px;
  line-height: 1;
}

.hud__logo-text {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #FFFFFF;
  letter-spacing: 0.2em;
  line-height: 1;
}

.hud__logo-suffix {
  font-family: var(--font-data);
  font-size: var(--text-xs);
  color: var(--color-laser);
  letter-spacing: 0.15em;
  align-self: flex-end;
  padding-bottom: 2px;
}

.hud__nav {
  display: none;
  align-items: center;
  gap: var(--sp-5);
}

.hud__nav-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.1em;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--ease-fast);
  position: relative;
  padding-bottom: 2px;
}

.hud__nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-laser);
  transition: width var(--ease-base);
}

.hud__nav-link:hover,
.hud__nav-link--active {
  color: #FFFFFF;
}

.hud__nav-link:hover::after,
.hud__nav-link--active::after {
  width: 100%;
}

.hud__nav-link--active {
  color: var(--color-laser);
}

/* ── HUD Actions (Right) ── */
.hud__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-content: flex-end;
}

.hud__rfq-btn {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: var(--color-laser);
  color: #FFFFFF;
  font-family: var(--font-data);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background var(--ease-fast), box-shadow var(--ease-fast), transform var(--ease-fast);
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  white-space: nowrap;
}

.hud__rfq-btn:hover {
  background: #009999;
  box-shadow: 0 0 20px var(--color-laser-glow);
  transform: translateY(-1px);
}

.hud__rfq-btn-icon {
  font-size: 8px;
  line-height: 1;
}

/* Hamburger — shown on mobile, hidden on desktop */
.hud__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--sp-3);
  background: transparent;
  border: 1px solid var(--color-border-mid);
  cursor: pointer;
}

.hud__hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.80);
  transition: transform var(--ease-base), opacity var(--ease-base);
}

.hud__hamburger[aria-expanded="true"] .hud__hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hud__hamburger[aria-expanded="true"] .hud__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hud__hamburger[aria-expanded="true"] .hud__hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── HUD Scroll Tracks (Left & Right) ── */
.hud__scroll-track {
  position: absolute;
  top: calc(var(--hud-bar-height) + var(--sp-4));
  bottom: var(--sp-8);
  width: 2px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}

.hud__scroll-track--left  { left: 10px; }
.hud__scroll-track--right { right: 10px; }

.hud__scroll-indicator {
  width: 2px;
  height: 0%;
  background: var(--color-laser);
  transition: height 80ms linear;
  box-shadow: 0 0 6px var(--color-laser-glow);
  flex-shrink: 0;
}

.hud__scroll-label {
  font-size: 7px;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  opacity: 0.5;
  margin-top: var(--sp-2);
}

/* ============================================================
   4. MOBILE BOTTOM SHEET MENU
   ============================================================ */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-menu[hidden] { display: none; }

.mobile-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 45, 55, 0.80);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--ease-base);
}

.mobile-menu__sheet {
  position: relative;
  background: var(--color-atmosphere-mid);
  border-top: 1px solid var(--color-laser-border);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 0 0;
  padding: var(--sp-4) var(--sp-6) var(--sp-10);
  transform: translateY(100%);
  transition: transform var(--ease-slow);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-height: 85vh;
  overflow-y: auto;
}

.mobile-menu--open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu--open .mobile-menu__sheet    { transform: translateY(0); }

.mobile-menu__handle {
  width: 36px;
  height: 3px;
  background: rgba(255, 255, 255, 0.30);
  border-radius: 2px;
  margin: 0 auto var(--sp-2);
}

.mobile-menu__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-menu__status {
  font-size: var(--text-2xs);
  color: var(--color-laser);
  letter-spacing: 0.12em;
}

.mobile-menu__close {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  transition: color var(--ease-fast), border-color var(--ease-fast);
}

.mobile-menu__close:hover {
  color: var(--laser-accent);
  border-color: var(--color-laser-border);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: var(--sp-4) 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--ease-fast), padding-left var(--ease-base);
}

.mobile-menu__link:hover {
  color: var(--laser-accent);
  padding-left: var(--sp-3);
}

.mobile-menu__rfq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: var(--color-laser);
  color: #FFFFFF;
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-top: var(--sp-2);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background var(--ease-fast);
}

.mobile-menu__rfq-btn:hover { background: #009999; }

.mobile-menu__telemetry {
  display: flex;
  gap: var(--sp-3);
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.08em;
  justify-content: center;
  padding-top: var(--sp-3);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: var(--sp-8) var(--sp-5) var(--sp-6);
}

/* ── Hero Background Grid ── */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px),
    linear-gradient(var(--color-grid-line-mid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid-line-mid) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
  z-index: 0;
}

.hero__grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(0, 178, 178, 0.04) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(28, 45, 55, 0.04) 0%, transparent 70%),
              linear-gradient(to bottom, transparent 70%, var(--color-canvas) 100%);
}

/* ── Hero Content Layout ── */
.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: var(--sp-5);
  align-items: start;
  width: 100%;
}

.hero__accent-strip {
  display: none;
  grid-column: 1;
  grid-row: 1 / 4;
  align-items: center;
  padding-right: var(--sp-6);
  border-right: 1px solid var(--color-laser-border);
}

.hero__accent-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  color: var(--color-laser);
  font-weight: 600;
  transform: rotate(180deg);
}

.hero__headline-block {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.hero__pre-label {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-laser);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
}

.hero__headline-line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
}

.hero__headline-line--1 { color: var(--color-text-primary); }
.hero__headline-line--2 { color: var(--color-text-primary); }
.hero__headline-line--3 { color: var(--color-text-primary); }

.hero__headline-line--4 {
  color: var(--color-laser);
  -webkit-text-stroke: 0;
  text-shadow: 0 0 40px rgba(0, 178, 178, 0.35);
}

.hero__sub-headline {
  font-size: var(--text-md);
  color: var(--color-text-secondary);
  letter-spacing: 0.12em;
  font-weight: 400;
  margin-top: var(--sp-2);
  opacity: 0;
  transform: translateY(20px);
}

.hero__descriptor {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border-mid);
  max-width: 100%;
}

.hero__body {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  opacity: 0;
  transform: translateY(20px);
}

.hero__stats {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.hero__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-laser);
  line-height: 1;
  letter-spacing: 0.04em;
}

.hero__stat-value sup {
  font-size: 0.45em;
  vertical-align: super;
}

.hero__stat-label {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  letter-spacing: 0.18em;
  font-weight: 500;
}

.hero__stat-sub {
  font-size: 9px;
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
  line-height: 1.4;
  opacity: 0.65;
  max-width: 120px;
}

.hero__cta-group {
  display: flex;
  gap: var(--sp-4);
  align-items: stretch;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all var(--ease-base);
  text-decoration: none;
}

.hero__cta--primary {
  background: var(--laser-accent);
  color: #FFFFFF;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.hero__cta--primary:hover {
  background: #009999;
  box-shadow: 0 0 30px var(--color-laser-glow);
  transform: translateY(-2px);
}

.hero__cta--secondary {
  border: 1px solid var(--color-border-mid);
  color: var(--color-text-secondary);
  background: transparent;
}

.hero__cta--secondary:hover {
  border-color: var(--color-laser-border);
  color: var(--color-text-primary);
  background: var(--color-laser-dim);
}

/* ── Globe Column Separator ── */
.hero__content > .hero__globe-wrapper {
  grid-column: 1;
  grid-row: 3;
}

.hero__globe-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 280px;
  overflow: visible;
}

.hero__globe-frame {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(28, 45, 55, 0.5);
  border: 1px solid rgba(0, 178, 178, 0.20);
  border-bottom: none;
  margin-bottom: -1px;
}

.hero__globe-label,
.hero__globe-coords {
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.hero__globe-label { color: var(--color-laser); opacity: 0.7; }

/* ── Globe Viewport ── */
.globe-viewport {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  background: rgba(16, 30, 44, 0.92);
  overflow: hidden;
  /* Circular mask — globe shape */
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 178, 178, 0.25),
    0 0 48px rgba(0, 178, 178, 0.10),
    0 0 100px rgba(0, 178, 178, 0.04),
    inset 0 0 60px rgba(16, 32, 48, 0.6);
}

/* D3 orthographic globe canvas */
#globe-3d {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  cursor: grab;
  border-radius: 50%;
}
#globe-3d:active { cursor: grabbing; }

/* Atmosphere — radial vignette that fades edges to look spherical */
.globe-viewport__atmosphere {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 55%,
    rgba(16, 30, 44, 0.55) 75%,
    rgba(16, 30, 44, 0.92) 92%,
    rgba(16, 30, 44, 1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Info strip below globe circle */
.hero__globe-footer {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  justify-content: center;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(28, 45, 55, 0.5);
  border: 1px solid var(--color-border-mid);
  border-top: none;
  margin-top: -1px;
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.1em;
  font-family: var(--font-data);
}

/* ── Hero Scroll Prompt ── */
.hero__scroll-prompt {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
}

.hero__scroll-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-border-mid);
}

.hero__scroll-text {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  letter-spacing: 0.25em;
  animation: blink-text 2s ease-in-out infinite;
}

/* ── Hero entrance animation class (added via JS) ── */
.animate-in {
  animation: slide-up-fade 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ============================================================
   5b. WHY GAMER S.A. SECTION
   ============================================================ */

.why-us {
  padding: var(--sp-12) var(--sp-5);
  border-top: 1px solid var(--color-border-mid);
  position: relative;
}

.why-us__header {
  margin-bottom: var(--sp-10);
}

.why-us__tag {
  display: block;
  font-size: var(--text-2xs);
  color: var(--color-laser);
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: var(--sp-3);
}

.why-us__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--sp-4);
}

.why-us__intro {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  max-width: 580px;
  line-height: 1.65;
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
}

.why-us__card {
  display: flex;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border: 1px solid var(--color-border-mid);
  background: #FFFFFF;
  box-shadow: 0 2px 12px rgba(28, 45, 55, 0.06);
  transition: background var(--ease-base), border-color var(--ease-base), box-shadow var(--ease-base);
}

.why-us__card:hover {
  background: rgba(0, 178, 178, 0.04);
  border-color: rgba(0, 178, 178, 0.30);
  box-shadow: 0 4px 24px rgba(28, 45, 55, 0.10);
}

.why-us__card-stat {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  color: var(--color-laser);
  line-height: 1;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 64px;
  opacity: 0.8;
  padding-top: 2px;
}

.why-us__card-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-2);
}

.why-us__card-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  letter-spacing: 0.03em;
}

/* ============================================================
   6. CATALOG SECTION (OPERATIONAL SCOPE)
   ============================================================ */

.catalog {
  padding: var(--sp-12) var(--sp-5);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 1200px;
}

.catalog::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--sp-16);
  right: var(--sp-16);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-mid), transparent);
}

.catalog__header {
  margin-bottom: var(--sp-12);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  gap: var(--sp-4);
  align-items: start;
}

.catalog__section-tag {
  grid-column: 1 / -1;
  font-size: var(--text-xs);
  color: var(--color-laser);
  letter-spacing: 0.18em;
  font-weight: 600;
  opacity: 0.8;
}

.catalog__heading {
  grid-column: 1;
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}

.catalog__intro {
  grid-column: 1;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 100%;
  align-self: end;
}

/* ── Catalog Grid ── */
.catalog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--color-border-mid);
  border: 1px solid var(--color-border-mid);
}

/* ── Catalog Card ── */
.catalog-card {
  position: relative;
  background: #FFFFFF;
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  transition: background var(--ease-base), box-shadow var(--ease-base);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(28, 45, 55, 0.06);
}

.catalog-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-laser-dim);
  opacity: 0;
  transition: opacity var(--ease-base);
}

.catalog-card:hover::before { opacity: 1; }

.catalog-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--color-laser);
  transition: height var(--ease-slow);
}

.catalog-card:hover::after { height: 100%; }

.catalog-card__index {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: rgba(0, 178, 178, 0.06);
  line-height: 1;
  pointer-events: none;
  transition: color var(--ease-base);
}

.catalog-card:hover .catalog-card__index {
  color: rgba(0, 178, 178, 0.10);
}

.catalog-card__icon-area {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border-mid);
  color: var(--color-text-muted);
  flex-shrink: 0;
  transition: border-color var(--ease-base), color var(--ease-base);
}

.catalog-card:hover .catalog-card__icon-area {
  border-color: var(--color-laser-border);
  color: var(--color-laser);
}

.catalog-card__icon {
  width: 24px;
  height: 24px;
}

.catalog-card__title {
  font-family: var(--font-wide);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.catalog-card__description {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.75;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ── Spec Data Sheet ── */
.catalog-card__specs {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border-mid);
  position: relative;
  z-index: 1;
}

.catalog-card__spec {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
}

.catalog-card__spec-label {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  font-weight: 600;
  min-width: 80px;
  flex-shrink: 0;
}

.catalog-card__spec-value {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  letter-spacing: 0.06em;
}

.catalog-card__action {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-laser);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: var(--sp-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--ease-base), transform var(--ease-base);
  position: relative;
  z-index: 1;
  text-decoration: none;
}

.catalog-card:hover .catalog-card__action,
.catalog-card:focus-within .catalog-card__action {
  opacity: 1;
  transform: translateX(0);
}

.catalog-card__action:hover,
.catalog-card__action:focus-visible { text-decoration: underline; }

/* ============================================================
   6b. PROCUREMENT PROCESS SECTION
   ============================================================ */

.process {
  padding: var(--sp-12) var(--sp-5);
  border-top: 1px solid var(--color-border-mid);
}

.process__header {
  margin-bottom: var(--sp-10);
}

.process__tag {
  display: block;
  font-size: var(--text-2xs);
  color: var(--color-laser);
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: var(--sp-3);
}

.process__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: var(--sp-3);
}

.process__intro {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  letter-spacing: 0.05em;
  line-height: 1.65;
  max-width: 500px;
}

.process__steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process__step {
  display: flex;
  gap: var(--sp-6);
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--color-border-mid);
}

.process__step:first-child { border-top: 1px solid var(--color-border-mid); }

.process__step-number {
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-laser);
  opacity: 0.15;
  flex-shrink: 0;
  width: 90px;
  letter-spacing: 0.02em;
  transition: opacity var(--ease-base);
  user-select: none;
}

.process__step:hover .process__step-number { opacity: 0.4; }

.process__step-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-text-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}

.process__step-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.7;
  letter-spacing: 0.03em;
  max-width: 620px;
}

.process__step-cta {
  display: inline-block;
  margin-top: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--color-laser);
  letter-spacing: 0.14em;
  text-decoration: none;
  transition: opacity var(--ease-fast);
}

.process__step-cta:hover,
.process__step-cta:focus-visible { opacity: 0.7; }

/* ============================================================
   7. PROOF & COVERAGE SECTION
   ============================================================ */

.proof {
  padding: var(--sp-12) 0;
  position: relative;
  overflow: hidden;
}

.proof::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--sp-16);
  right: var(--sp-16);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border-mid), transparent);
}

/* ── Marquee ── */
.proof__marquee-wrapper {
  padding: 0 var(--sp-16);
  margin-bottom: var(--sp-16);
}

.proof__marquee-header {
  margin-bottom: var(--sp-8);
}

.proof__section-tag {
  display: block;
  font-size: var(--text-xs);
  color: var(--color-laser);
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin-bottom: var(--sp-3);
}

.proof__heading {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  letter-spacing: 0.06em;
  color: var(--color-text-primary);
  line-height: 1;
}

.proof__marquee {
  overflow: hidden;
  border-top: 1px solid var(--color-border-mid);
  border-bottom: 1px solid var(--color-border-mid);
  padding: var(--sp-3) 0;
  position: relative;
}

.proof__marquee::before,
.proof__marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
}

.proof__marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-canvas), transparent);
}

.proof__marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--color-canvas), transparent);
}

.proof__marquee-track {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}

.proof__marquee-track:hover { animation-play-state: paused; }

.proof__marquee-item {
  font-family: var(--font-wide);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--color-text-secondary);
  white-space: nowrap;
  transition: color var(--ease-fast);
}

.proof__marquee-item:hover { color: var(--color-text-primary); }

.proof__marquee-sep {
  color: var(--color-laser);
  font-size: 8px;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Coverage Stats + Port Map ── */
.proof__coverage {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding: 0 var(--sp-5);
  align-items: start;
}

.proof__coverage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-1);
  background: var(--color-border-mid);
  border: 1px solid var(--color-border-mid);
}

.proof__stat-block {
  background: var(--color-canvas);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  transition: background var(--ease-base);
}

.proof__stat-block:hover { background: rgba(0, 178, 178, 0.05); }

.proof__stat-value {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-laser);
  line-height: 1;
  letter-spacing: 0.04em;
}

.proof__stat-value sup {
  font-size: 0.45em;
  vertical-align: super;
}

.proof__stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  letter-spacing: 0.1em;
  font-weight: 600;
}

.proof__stat-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Port Map ── */
.proof__map-wrapper {
  overflow: hidden;
  /* Bleed through the coverage container's horizontal padding so the map
     extends edge-to-edge within the section */
  margin: 0 calc(-1 * var(--sp-5));
}

.proof__map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(28, 45, 55, 0.90);
  border-bottom: 1px solid rgba(0, 178, 178, 0.15);
}

.proof__map-tag {
  font-size: var(--text-2xs);
  color: var(--color-laser);
  letter-spacing: 0.15em;
  opacity: 0.8;
}

.proof__map-status {
  font-size: var(--text-2xs);
  color: var(--color-success);
  letter-spacing: 0.1em;
  animation: blink-text 3s ease-in-out infinite;
}

.proof__map {
  position: relative;
  background: rgba(10, 22, 34, 0.95);
  height: 320px;
  overflow: hidden;
}

/* Leaflet map fills the container (above the grid, below the legend) */
#leaflet-map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 32px; /* leave room for legend */
  z-index: 1;
}

/* Override Leaflet's default blue link colour */
.leaflet-container a { color: #8097A8; }
/* Attribution: keep it technically visible but non-intrusive */
.leaflet-control-attribution {
  font-size: 9px !important;
  background: transparent !important;
  color: rgba(74, 90, 110, 0.35) !important;
  box-shadow: none !important;
  padding: 1px 4px !important;
}
.leaflet-control-attribution a { color: rgba(74, 90, 110, 0.45) !important; }
/* Dark background fills the edges beyond world bounds (prevents white gaps) */
.leaflet-container { background: #040D1A !important; }

/* Port name tooltip */
.leaflet-port-tooltip {
  background: rgba(28, 45, 55, 0.95) !important;
  border: 1px solid rgba(0, 178, 178, 0.30) !important;
  border-radius: 2px !important;
  color: #FFFFFF !important;
  font-family: 'Geist Mono', 'JetBrains Mono', monospace !important;
  font-size: 10px !important;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5) !important;
  padding: 3px 7px !important;
}
.leaflet-port-tooltip::before { display: none !important; }

.proof__map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 178, 178, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 178, 178, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}

.proof__map-legend {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(28, 45, 55, 0.92);
  border-top: 1px solid rgba(0, 178, 178, 0.15);
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.1em;
  z-index: 3;
}

.proof__map-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-laser);
  box-shadow: 0 0 6px var(--color-laser);
  flex-shrink: 0;
}

/* ============================================================
   8. RFQ LEAD CAPTURE SECTION
   ============================================================ */

.rfq {
  padding: var(--sp-12) var(--sp-5);
  position: relative;
}

.rfq::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--sp-16);
  right: var(--sp-16);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-laser-border), transparent);
}

.rfq::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(0, 178, 178, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.rfq__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
  position: relative;
  z-index: 1;
}

/* ── Info Panel ── */
.rfq__info-panel {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  background: var(--panel-dark);
  padding: var(--sp-8);
}

.rfq__section-tag {
  font-size: var(--text-xs);
  color: var(--laser-accent);
  letter-spacing: 0.18em;
  opacity: 0.9;
}

.rfq__heading {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 0.95;
  letter-spacing: 0.04em;
  color: #FFFFFF;
}

.rfq__description {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  max-width: 380px;
}

.rfq__info-stats {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(0, 178, 178, 0.20);
  border: 1px solid rgba(0, 178, 178, 0.20);
  margin-top: var(--sp-2);
}

.rfq__info-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(255, 255, 255, 0.05);
  gap: var(--sp-4);
}

.rfq__info-stat-label {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.15em;
}

.rfq__info-stat-value {
  font-size: var(--text-xs);
  color: var(--laser-accent);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.rfq__contact-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(0, 178, 178, 0.15);
  border: 1px solid rgba(0, 178, 178, 0.20);
  margin-top: var(--sp-2);
}

.rfq__contact-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: background var(--ease-fast);
}

.rfq__contact-item:hover { background: rgba(0, 178, 178, 0.08); }

.rfq__contact-label {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
}

.rfq__contact-value {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.05em;
  transition: color var(--ease-fast);
}

.rfq__contact-item:hover .rfq__contact-value { color: var(--laser-accent); }

/* ── Form Panel ── */
.rfq__form-panel {
  background: #FFFFFF;
  border: 1px solid var(--color-border-mid);
  box-shadow: 0 4px 24px rgba(28, 45, 55, 0.08);
  overflow: hidden;
}

.rfq__form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-6);
  background: rgba(28, 45, 55, 0.06);
  border-bottom: 1px solid var(--color-border-mid);
}

.rfq__form-status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-success);
  letter-spacing: 0.1em;
}

.rfq__form-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

.rfq__form-id {
  font-size: var(--text-2xs);
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
}

.rfq__form {
  padding: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.rfq__field-group {
  display: grid;
  gap: var(--sp-5);
}

.rfq__field-group--half {
  grid-template-columns: 1fr;
}

.rfq__field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  position: relative;
}

.rfq__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.12em;
  font-weight: 600;
  cursor: pointer;
}

.rfq__label-tag {
  color: var(--color-laser);
  opacity: 0.6;
  font-size: var(--text-2xs);
}

.rfq__label-required {
  color: var(--color-laser);
  margin-left: auto;
  font-size: var(--text-sm);
}

.rfq__input,
.rfq__textarea {
  width: 100%;
  background: rgba(28, 45, 55, 0.04);
  border: 1px solid var(--color-border-mid);
  border-bottom: 2px solid var(--color-border-mid);
  color: var(--color-text-primary);
  font-family: var(--font-data);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  padding: var(--sp-3) var(--sp-4);
  outline: none;
  transition: border-color var(--ease-fast), background var(--ease-fast), box-shadow var(--ease-fast);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.rfq__input::placeholder,
.rfq__textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.6;
}

.rfq__input:focus,
.rfq__textarea:focus {
  border-color: var(--color-laser-border);
  border-bottom-color: var(--color-laser);
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 178, 178, 0.10);
}

.rfq__input--error {
  border-bottom-color: #FF4040 !important;
  background: rgba(255, 64, 64, 0.05) !important;
}

.rfq__input--date {
  color-scheme: light;
}

.rfq__textarea {
  resize: vertical;
  min-height: 120px;
}

.rfq__form-footer {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--color-border-mid);
}

.rfq__form-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.rfq__submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  background: var(--color-laser);
  color: #FFFFFF;
  font-family: var(--font-data);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background var(--ease-fast), box-shadow var(--ease-fast), transform var(--ease-fast);
  align-self: flex-start;
  overflow: hidden;
}

.rfq__submit-btn:hover:not(:disabled) {
  background: #009999;
  box-shadow: 0 0 30px var(--color-laser-glow);
  transform: translateY(-2px);
}

.rfq__submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.rfq__submit-btn--loading {
  background: var(--color-atmosphere) !important;
  color: var(--color-laser) !important;
}

.rfq__submit-btn--success {
  background: var(--color-success) !important;
  color: var(--color-canvas) !important;
}

.rfq__submit-btn--error {
  background: #C0392B !important;
  color: #fff !important;
  border-color: #C0392B !important;
}

.rfq__submit-btn-icon {
  font-size: 10px;
  line-height: 1;
  transition: transform var(--ease-base);
}

.rfq__submit-btn:hover .rfq__submit-btn-icon { transform: translateX(3px); }

/* ============================================================
   9. TERMINAL FOOTER
   ============================================================ */

.terminal-footer {
  background: var(--color-atmosphere-mid);
  border-top: 1px solid var(--color-border-mid);
  position: relative;
  overflow: hidden;
}

.terminal-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-laser-border), transparent);
}

.terminal-footer__layout {
  display: flex;
  flex-direction: column;
}

/* ── Terminal Command Line ── */
.terminal-footer__cmdline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-8);
  background: rgba(0, 0, 0, 0.20);
  border-bottom: 1px solid rgba(0, 178, 178, 0.15);
  overflow: hidden;
}

.terminal-footer__prompt {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--color-laser);
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
}

.terminal-footer__output {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.08em;
  white-space: normal;
}

.terminal-footer__cursor {
  font-family: var(--font-data);
  font-size: var(--text-sm);
  color: var(--color-laser);
  animation: blink-cursor 1.1s step-end infinite;
  flex-shrink: 0;
}

/* ── Footer Bottom Bar ── */
.terminal-footer__bottom {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: var(--sp-4);
  padding: var(--sp-5);
}

.terminal-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.terminal-footer__logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: #FFFFFF;
  letter-spacing: 0.12em;
}

.terminal-footer__tagline {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.1em;
}

.terminal-footer__registry {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-2);
  align-items: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.06em;
  font-style: normal;
  margin-top: var(--sp-2);
  opacity: 0.9;
}

.terminal-footer__registry a {
  color: rgba(255, 255, 255, 0.50);
  text-decoration: none;
  transition: color var(--ease-fast);
}

.terminal-footer__registry a:hover { color: var(--laser-accent); }

.terminal-footer__registry-sep {
  color: var(--color-laser);
  opacity: 0.4;
  font-size: 8px;
}

.terminal-footer__nav {
  display: flex;
  gap: var(--sp-5);
  align-items: center;
}

.terminal-footer__nav-link {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.60);
  letter-spacing: 0.1em;
  transition: color var(--ease-fast);
  text-decoration: none;
}

.terminal-footer__nav-link:hover { color: var(--laser-accent); }

.terminal-footer__legal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-1);
}

.terminal-footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.06em;
}

.terminal-footer__status {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-success);
  letter-spacing: 0.1em;
}

.terminal-footer__status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-success);
  animation: pulse-dot 2s ease-in-out infinite;
}

.terminal-footer__dev {
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.40);
  letter-spacing: 0.1em;
  font-family: var(--font-data);
}

.terminal-footer__dev-link {
  color: var(--color-laser);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity var(--ease-fast);
}

.terminal-footer__dev-link:hover { opacity: 1; }

/* ============================================================
   10. KEYFRAME ANIMATIONS
   ============================================================ */

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes blink-text {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 0   rgba(0, 178, 178, 0.35); }
  50%       { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(0, 178, 178, 0); }
}

@keyframes ping-wave {
  0%   { transform: translate(-50%, -50%) scale(1);   opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(4.5); opacity: 0; }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   11. RESPONSIVE — MIN-WIDTH: 640px (2-col catalog)
   ============================================================ */

@media (min-width: 640px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   12. RESPONSIVE — MIN-WIDTH: 769px (tablet+)
   ============================================================ */

@media (min-width: 769px) {
  /* HUD */
  .hud__top-bar    { grid-template-columns: 1fr auto 1fr; padding: 0 var(--sp-6); gap: var(--sp-4); }
  .hud__telemetry  { display: flex; }
  .hud__brand-nav  { justify-content: center; gap: var(--sp-8); }
  .hud__nav        { display: flex; }
  .hud__hamburger  { display: none; }
  .hud__rfq-btn    { display: inline-flex; }
  .hud__scroll-track { display: flex; }

  /* Hero */
  .hero {
    padding: var(--sp-10) var(--sp-8) var(--sp-8);
    min-height: calc(100vh - var(--hud-bar-height));
  }
  .hero__content {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto auto;
    gap: var(--sp-6);
  }
  .hero__accent-strip { display: flex; grid-column: 1; grid-row: 1 / 3; }
  .hero__headline-block { grid-column: 2; grid-row: 1; }
  .hero__descriptor { grid-column: 2; grid-row: 2; max-width: unset; }
  .hero__content > .hero__globe-wrapper { grid-column: 1 / -1; grid-row: 3; }
  .hero__globe-wrapper { min-height: 340px; }
  .globe-viewport  { width: 340px; height: 340px; }
  .hero__cta-group { flex-direction: row; align-items: center; }
  .hero__cta       { justify-content: flex-start; }

  /* Catalog */
  .catalog         { padding: var(--sp-16) var(--sp-8); }
  .catalog__header { grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: var(--sp-4) var(--sp-8); }
  .catalog__intro  { grid-column: 2; max-width: 400px; }

  /* Why Us */
  .why-us          { padding: var(--sp-16) var(--sp-8); }
  .why-us__grid    { grid-template-columns: repeat(2, 1fr); }

  /* Process */
  .process         { padding: var(--sp-16) var(--sp-8); }

  /* Coverage */
  .proof__coverage          { padding: 0 var(--sp-8); gap: var(--sp-6); }
  .proof__coverage-stats    { grid-template-columns: repeat(4, 1fr); }
  .proof__map               { height: 480px; }
  .proof__map-wrapper       { margin: 0 calc(-1 * var(--sp-8)); }
  .proof__marquee-wrapper   { padding: 0 var(--sp-8); }

  /* RFQ */
  .rfq                      { padding: var(--sp-16) var(--sp-8); }
  .rfq__layout              { grid-template-columns: 1fr 1.6fr; gap: var(--sp-16); }
  .rfq__field-group--half   { grid-template-columns: 1fr 1fr; }
  .rfq__submit-btn          { align-self: auto; justify-content: flex-start;
                               clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); }

  /* Footer */
  .terminal-footer__bottom  { grid-template-columns: 1fr auto 1fr; align-items: center;
                               padding: var(--sp-6) var(--sp-8); gap: var(--sp-6); }
  .terminal-footer__nav     { flex-wrap: nowrap; gap: var(--sp-5); }
  .terminal-footer__legal   { align-items: center; flex-direction: row; }
}

/* ============================================================
   13. RESPONSIVE — MIN-WIDTH: 1025px (desktop)
   ============================================================ */

@media (min-width: 1025px) {
  /* Hero */
  .hero             { padding: var(--sp-12) var(--sp-16) var(--sp-12); }
  .hero__content    { grid-template-columns: auto 1fr auto 1fr; grid-template-rows: auto 1fr auto; gap: var(--sp-8); }
  .hero__accent-strip { grid-column: 1; grid-row: 1 / 4; }
  .hero__headline-block { grid-column: 2; grid-row: 1 / 3; }
  .hero__descriptor { grid-column: 2; grid-row: 3; max-width: 520px; }
  .hero__content > .hero__globe-wrapper { grid-column: 4; grid-row: 1 / 4; align-self: start; }
  .hero__globe-wrapper {
    min-height: 400px;
    height: calc(100vh - var(--hud-bar-height) - 2 * var(--sp-12));
  }
  .globe-viewport {
    width: min(560px, calc(100vh - var(--hud-bar-height) - 2 * var(--sp-12) - 60px));
    height: min(560px, calc(100vh - var(--hud-bar-height) - 2 * var(--sp-12) - 60px));
  }

  /* Catalog */
  .catalog          { padding: var(--sp-20) var(--sp-16); }
  .catalog__grid    { grid-template-columns: repeat(3, 1fr); }

  /* Why Us */
  .why-us           { padding: var(--sp-20) var(--sp-16); }
  .why-us__grid     { grid-template-columns: repeat(4, 1fr); }

  /* Process */
  .process          { padding: var(--sp-20) var(--sp-16); }
  .process__step-number { font-size: 7rem; width: 110px; }

  /* Coverage */
  .proof__coverage        { grid-template-columns: 1fr 2fr; padding: 0 var(--sp-16); gap: var(--sp-8); }
  .proof__coverage-stats  { grid-template-columns: 1fr 1fr; }
  .proof__map             { height: 520px; }
  /* At desktop the map is in the right column — only bleed right */
  .proof__map-wrapper     { margin-left: 0; margin-right: calc(-1 * var(--sp-16)); }
  .proof__marquee-wrapper { padding: 0 var(--sp-16); }

  /* RFQ */
  .rfq                    { padding: var(--sp-20) var(--sp-16); }
  .rfq__heading           { font-size: var(--text-3xl); }

  /* Footer */
  .terminal-footer__bottom { padding: var(--sp-6) var(--sp-16); }
}

/* ============================================================
   14. ACCESSIBILITY & REDUCED MOTION
   ============================================================ */

/* Small map label adjustments */
.proof__map-tag    { font-size: 9px; letter-spacing: 0.08em; }
.proof__map-header { flex-wrap: wrap; gap: var(--sp-1); padding: var(--sp-2) var(--sp-3); }
.proof__map-legend { gap: var(--sp-2); font-size: 9px; padding: var(--sp-2) var(--sp-3);
                     flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
#leaflet-map       { bottom: 28px; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }
}

/* ============================================================
   15. RFQ POPUP MODAL
   ============================================================ */

.rfq-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s var(--ease-base), visibility 0.25s var(--ease-base);
}

.rfq-modal--open {
  pointer-events: auto;
  visibility: visible;
  opacity: 1;
}

.rfq-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 45, 55, 0.88);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.rfq-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - var(--sp-8));
  overflow-y: auto;
  background: var(--color-canvas);
  border: 1px solid var(--color-border-mid);
  padding: var(--sp-6);
  transform: translateY(20px);
  transition: transform 0.28s var(--ease-base);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}

.rfq-modal--open .rfq-modal__panel {
  transform: translateY(0);
}

/* ── Header ── */
.rfq-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.rfq-modal__tag {
  display: block;
  font-size: var(--text-2xs);
  color: var(--color-laser);
  letter-spacing: 0.2em;
  opacity: 0.7;
  margin-bottom: var(--sp-2);
}

.rfq-modal__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--color-text-primary);
  letter-spacing: 0.06em;
  line-height: 1;
}

.rfq-modal__close {
  background: transparent;
  border: 1px solid var(--color-border-mid);
  color: var(--color-text-secondary);
  width: 36px;
  height: 36px;
  min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: border-color var(--ease-fast), color var(--ease-fast);
}

.rfq-modal__close:hover,
.rfq-modal__close:focus-visible {
  border-color: var(--color-laser);
  color: var(--color-laser);
  outline: none;
}

/* ── Form fields ── */
.rfq-modal__fields {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.rfq-modal__field label {
  display: block;
  font-size: var(--text-2xs);
  color: var(--color-laser);
  letter-spacing: 0.14em;
  margin-bottom: var(--sp-2);
  opacity: 0.9;
}

.rfq-modal__field abbr {
  text-decoration: none;
  opacity: 0.6;
}

.rfq-modal__field input,
.rfq-modal__field textarea {
  width: 100%;
  background: rgba(28, 45, 55, 0.05);
  border: 1px solid var(--color-border-mid);
  color: var(--color-text-primary);
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  font-family: var(--font-data);
  letter-spacing: 0.04em;
  outline: none;
  resize: none;
  transition: border-color var(--ease-fast), background var(--ease-fast);
  color-scheme: light;
}

.rfq-modal__field input:focus,
.rfq-modal__field textarea:focus {
  border-color: var(--color-laser);
  background: #FFFFFF;
}

.rfq-modal__field input::placeholder,
.rfq-modal__field textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.45;
}

.rfq-modal__field--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
}

/* ── Submit ── */
.rfq-modal__submit {
  width: 100%;
  background: var(--laser-accent);
  color: #FFFFFF;
  border: none;
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  letter-spacing: 0.1em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  transition: opacity var(--ease-fast);
}

.rfq-modal__submit:hover  { opacity: 0.85; }
.rfq-modal__submit:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Success state ── */
.rfq-modal__success {
  text-align: center;
  padding: var(--sp-12) var(--sp-4);
}

.rfq-modal__success-icon {
  font-size: 3rem;
  color: var(--color-success);
  line-height: 1;
  margin-bottom: var(--sp-5);
}

.rfq-modal__success-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-3);
}

.rfq-modal__success-text {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.65;
  letter-spacing: 0.03em;
  max-width: 400px;
  margin: 0 auto var(--sp-6);
}

.rfq-modal__success-close {
  background: transparent;
  border: 1px solid var(--color-border-mid);
  color: var(--color-text-secondary);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color var(--ease-fast), color var(--ease-fast);
}

.rfq-modal__success-close:hover,
.rfq-modal__success-close:focus-visible {
  border-color: var(--color-laser);
  color: var(--color-laser);
  outline: none;
}

/* ============================================================
   16. SCROLL-TO-TOP BUTTON
   ============================================================ */

.scroll-top-btn {
  position: fixed;
  bottom: var(--sp-10);
  right: calc(var(--hud-side-width) + var(--sp-5));
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: var(--sp-3) var(--sp-4);
  background: rgba(28, 45, 55, 0.90);
  border: 1px solid var(--color-laser-border);
  clip-path: polygon(0 8px, 8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity var(--ease-base),
    transform var(--ease-spring),
    background var(--ease-fast),
    border-color var(--ease-fast),
    box-shadow var(--ease-fast);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.scroll-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn__icon {
  display: block;
  font-size: var(--text-md);
  color: var(--color-laser);
  line-height: 1;
  transition: transform var(--ease-spring);
}

.scroll-top-btn__label {
  display: block;
  font-family: var(--font-data);
  font-size: var(--text-2xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  transition: color var(--ease-fast);
}

.scroll-top-btn:hover {
  background: var(--color-laser-dim);
  border-color: var(--color-laser);
  box-shadow: 0 0 18px var(--color-laser-glow), inset 0 0 8px rgba(0, 178, 178, 0.06);
}

.scroll-top-btn:hover .scroll-top-btn__icon {
  transform: translateY(-4px);
}

.scroll-top-btn:hover .scroll-top-btn__label {
  color: var(--color-laser);
}

.scroll-top-btn:focus-visible {
  outline: 2px solid var(--color-laser);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top-btn {
    transition: opacity var(--ease-fast);
    transform: none;
  }
  .scroll-top-btn__icon {
    transition: none;
  }
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--laser-accent);
  color: #FFFFFF;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  z-index: 9999;
  transition: top var(--ease-fast);
}

.skip-link:focus { top: var(--sp-2); }
