/* ============================================================================
   ORBIS NODES — Public Corporate Website (https://orbisnodes.com)
   Design System: Brushed Obsidian Titanium, Sovereign Emerald & Institutional Gold
   ============================================================================ */

:root {
  --bg-void: #090C10;
  --bg-primary: #0D1117;
  --bg-surface: #131922;
  --bg-surface-2: #1A222E;
  --bg-glass: rgba(13, 17, 23, 0.82);

  --border-subtle: rgba(203, 205, 206, 0.12);
  --border-strong: rgba(203, 205, 206, 0.24);
  --border-emerald: rgba(24, 184, 154, 0.40);
  --border-gold: rgba(212, 175, 55, 0.36);

  --text-primary: #F3F5F7;
  --text-secondary: #C4CBD4;
  --text-muted: #8B95A3;

  --emerald: #18B89A;
  --emerald-deep: #0B816E;
  --emerald-soft: rgba(24, 184, 154, 0.13);
  --gold: #D4AF37;
  --gold-light: #F3D98B;
  --gold-soft: rgba(212, 175, 55, 0.13);

  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.52);
  --max-w: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

p { margin: 0 0 1rem; color: var(--text-secondary); }
a { color: var(--emerald); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: #3CE2C3; }
img { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Ambient Grid Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(24, 184, 154, 0.11), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(212, 175, 55, 0.07), transparent 36%),
    linear-gradient(rgba(203, 205, 206, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203, 205, 206, 0.03) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 64px 64px, 64px 64px;
}

/* ============================================================================
   NAVBAR
   ============================================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-brand img { height: 34px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle button.active {
  background: var(--emerald);
  color: #061310;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-deep) 100%);
  color: #041512;
  box-shadow: 0 10px 28px rgba(24, 184, 154, 0.25);
}

.btn-primary:hover { color: #041512; box-shadow: 0 14px 34px rgba(24, 184, 154, 0.36); }

.btn-gold {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.btn-gold:hover {
  background: rgba(212, 175, 55, 0.22);
  color: #FFF4CC;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #FFF;
}

.nav-burger {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.25rem;
  cursor: pointer;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  padding: 72px 0 64px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
}

.hero-grid > *,
.contact-grid > *,
.academy-banner > *,
.bento-3 > *,
.bento-2 > *,
.hub-grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.1vw, 3.45rem);
  line-height: 1.08;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero h1 .hl {
  background: linear-gradient(90deg, #2EE0BD 0%, #F3D98B 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.06rem;
  color: var(--text-secondary);
  max-width: 590px;
  margin-bottom: 28px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-visual {
  position: relative;
}

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(24, 184, 154, 0.14);
  background: var(--bg-surface);
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 16 / 10.6;
  object-fit: cover;
}

.hero-frame-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(9, 12, 16, 0.92);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hero-frame-cap strong { color: var(--text-primary); }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.kpi-card {
  background: linear-gradient(180deg, rgba(26, 34, 46, 0.78) 0%, rgba(19, 25, 34, 0.88) 100%);
  border: 1px solid var(--border-subtle);
  border-top: 2px solid var(--emerald);
  border-radius: var(--radius-md);
  padding: 20px 20px 18px;
}

.kpi-card.gold { border-top-color: var(--gold); }

.kpi-val {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-lbl {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================================
   SECTIONS GENERAL
   ============================================================================ */
section.band {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

section.band.alt {
  background: linear-gradient(180deg, rgba(19, 25, 34, 0.55) 0%, rgba(9, 12, 16, 0.25) 100%);
}

.sec-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.sec-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 10px;
}

.sec-kicker.gold { color: var(--gold-light); }

.sec-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
  margin-bottom: 12px;
}

.sec-head p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================================
   ENGINEERING BENTO GRID + ARCHITECTURAL RENDERS
   ============================================================================ */
.bento-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-emerald);
  transform: translateY(-2px);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  background: var(--emerald-soft);
  border: 1px solid var(--border-emerald);
  color: var(--emerald);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-bottom: 16px;
}

.card-icon.gold {
  background: var(--gold-soft);
  border-color: var(--border-gold);
  color: var(--gold-light);
}

.card h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}

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

.render-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.render-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.render-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-emerald);
}

.render-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.render-meta {
  padding: 11px 14px;
}

.render-meta strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text-primary);
}

.render-meta span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================================================
   14-HUB REGIONAL CORRIDOR EXPLORER (PUBLIC PRE-FID SAFE)
   ============================================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover { border-color: var(--border-strong); color: var(--text-primary); }

.filter-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #041512;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.hub-card.rd-featured {
  border-color: rgba(24, 184, 154, 0.28);
  background: linear-gradient(180deg, rgba(19, 32, 34, 0.75) 0%, var(--bg-surface) 100%);
}

.hub-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.hub-country {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald);
  margin-bottom: 4px;
}

.hub-card h3 { font-size: 1.04rem; }

.pill-profile {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  white-space: nowrap;
}

.pill-profile.a { background: rgba(24, 184, 154, 0.14); border-color: var(--border-emerald); color: #52E8CC; }
.pill-profile.b { background: rgba(212, 175, 55, 0.14); border-color: var(--border-gold); color: var(--gold-light); }

.hub-desc {
  font-size: 0.86rem;
  color: var(--text-secondary);
  margin: 0;
}

.hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.hub-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

.prefid-notice {
  margin-top: 22px;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  font-size: 0.86rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prefid-notice strong { color: var(--gold-light); }

/* ============================================================================
   COUNTERPARTIES + ACADEMY
   ============================================================================ */
.bento-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.card li { margin-bottom: 6px; }
.card li strong { color: var(--text-primary); }

.academy-banner {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  padding: 30px;
  background: linear-gradient(135deg, rgba(11, 129, 110, 0.20) 0%, rgba(19, 25, 34, 0.94) 55%, rgba(212, 175, 55, 0.11) 100%);
  border: 1px solid var(--border-emerald);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.academy-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.track-chip {
  background: rgba(9, 12, 16, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
}

.track-chip .code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
}

.track-chip strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  margin-top: 2px;
}

.track-chip span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ============================================================================
   CONTACT & NDA INQUIRY SECTION (MADRID HQ)
   ============================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.hq-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.hq-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.hq-item:last-child { border-bottom: 0; padding-bottom: 0; }

.hq-item .lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  margin-bottom: 4px;
}

.hq-item .val {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.hq-item .sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(24, 184, 154, 0.16);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  cursor: pointer;
}

.consent-row input { width: auto; margin-top: 3px; accent-color: var(--emerald); }

.form-alert {
  display: none;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.form-alert.show { display: block; }
.form-alert.ok { background: rgba(24, 184, 154, 0.14); border: 1px solid var(--border-emerald); color: #6EF2D6; }
.form-alert.err { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.45); color: #FCA5A5; }

/* ============================================================================
   FOOTER & MODAL
   ============================================================================ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 36px 0 42px;
  background: #070A0D;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a { color: var(--text-muted); font-size: 0.84rem; }
.footer-links a:hover { color: var(--emerald); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(5, 8, 12, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open { display: flex; }

.modal-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .hero-grid,
  .academy-banner,
  .contact-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .bento-3,
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .render-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-inner { height: 64px; gap: 8px; }
  .nav-brand img { height: 24px; }
  .nav-actions { gap: 6px; }
  .lang-toggle button { padding: 4px 7px; font-size: 0.68rem; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #0B0F14;
    border-bottom: 1px solid var(--border-strong);
    flex-direction: column;
    padding: 18px 20px 24px;
    gap: 16px;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 1.05rem; }
  .btn-nav-nda { padding: 7px 10px; font-size: 0.72rem; }
  .eyebrow { font-size: 0.63rem; letter-spacing: 0.05em; border-radius: 12px; padding: 6px 11px; max-width: 100%; }
  .hero h1 { font-size: 1.95rem; }
  .hero-ctas .btn { width: 100%; }
  .hero-frame-cap { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bento-3,
  .bento-2,
  .hub-grid,
  .form-row,
  .academy-tracks { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  .render-strip { grid-template-columns: 1fr; }
  .hero { padding: 34px 0 36px; }
  section.band { padding: 48px 0; }
}
