/* ==========================================================================
   Radius Data Systems, LLC — Production Stylesheet
   Zero-dependency, pure CSS, responsive Desktop & Mobile
   ========================================================================== */

:root {
  --bg-deep: #08101b;
  --bg-surface: rgba(13, 24, 42, 0.90);
  --bg-surface-deep: rgba(8, 16, 27, 0.93);
  --bg-subcard: rgba(8, 16, 27, 0.64);
  --brand-blue: #3078B3;
  --brand-blue-dark: #24659B;
  --brand-sky: #6eb5f0;
  --brand-ice: #dbeafe;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --border-soft: rgba(90, 167, 230, 0.20);
  --border-hover: rgba(110, 181, 240, 0.56);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Visually hidden semantic SEO / Screen-reader landmark */
.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;
}

/* ==========================================================================
   Main Full-Viewport Interactive Stage
   ========================================================================== */
.site-stage {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-deep);
  user-select: none;
  -webkit-user-select: none;
}

.site-atmosphere {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 62% at 50% 48%, rgba(48, 120, 179, 0.20) 0%, rgba(22, 52, 88, 0.09) 45%, rgba(8, 16, 27, 0.99) 82%),
    radial-gradient(circle at 85% 15%, rgba(78, 163, 232, 0.08) 0%, transparent 40%);
}

.network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  cursor: grab;
  display: block;
}
.network-canvas:active {
  cursor: grabbing;
}

.dots-layer {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

/* ==========================================================================
   Top Header (Revamped Logo + Whisper-Quiet Desktop Navigation)
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(26px + env(safe-area-inset-top, 0px)) 40px 0;
  pointer-events: none;
}

.logo-btn {
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s ease;
}
.logo-btn:hover {
  opacity: 0.9;
}
.logo-btn:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 6px;
  border-radius: 6px;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  object-fit: contain;
}

.desktop-nav {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.dnav-btn {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  position: relative;
}
.dnav-btn:hover,
.dnav-btn.is-hovered {
  color: var(--brand-ice);
}
.dnav-btn.is-active {
  color: #ffffff;
  font-weight: 600;
}
.dnav-btn.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-sky);
}
.dnav-btn:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ==========================================================================
   Interactive Section Dots & Clamped Floating Labels on Logo Network
   ========================================================================== */
.node-hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 18;
  background: transparent;
  border: 0;
  padding: 12px;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
}
.node-hotspot:focus-visible .dot-core {
  box-shadow: 0 0 0 4px var(--bg-deep), 0 0 0 6px var(--brand-sky);
}

.dot-core {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #e8f4fd;
  border: 2.5px solid var(--brand-blue);
  box-shadow: 0 0 0 4px rgba(48, 120, 179, 0.24), 0 0 18px rgba(78, 163, 232, 0.65);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}

.node-hotspot:hover .dot-core,
.node-hotspot.is-hovered .dot-core,
.node-hotspot.is-active .dot-core {
  transform: scale(1.34);
  background: #ffffff;
  border-color: var(--brand-sky);
  box-shadow: 0 0 0 7px rgba(90, 167, 230, 0.24), 0 0 26px rgba(110, 181, 240, 0.95);
}

@keyframes dotPulse {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(2.8); opacity: 0; }
}
.dot-core::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  border: 1.5px solid rgba(110, 181, 240, 0.65);
  animation: dotPulse 3.2s cubic-bezier(0.16, 0.64, 0.3, 1) infinite;
}

.node-label {
  position: absolute;
  z-index: 17;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--brand-ice);
  background: rgba(9, 18, 31, 0.88);
  border: 1px solid rgba(78, 163, 232, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  white-space: nowrap;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.38);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, opacity 0.25s ease;
}
.node-label:hover,
.node-label.is-hovered {
  color: #ffffff;
  background: rgba(24, 52, 86, 0.94);
  border-color: rgba(110, 181, 240, 0.72);
}
.node-label.is-active {
  color: #ffffff;
  background: var(--brand-blue);
  border-color: #7cc0f5;
  box-shadow: 0 6px 22px rgba(48, 120, 179, 0.52);
}
.node-label:focus-visible {
  outline: 2px solid var(--brand-sky);
  outline-offset: 2px;
}

/* ==========================================================================
   Content Overlay Layer (Overview Tagline / Side Panel / Mobile Bottom Sheet)
   ========================================================================== */
.content-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  z-index: 20;
  pointer-events: none;
  display: flex;
}

.content-layer--overview {
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0 40px 60px;
}

.content-layer--desktop-panel {
  align-items: center;
  justify-content: flex-end;
  padding: 104px 40px 64px;
}

.content-layer--mobile-sheet {
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

/* Overview Intro Copy */
.overview-intro {
  max-width: 440px;
  animation: fadeUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.overview-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: #ffffff;
}
.overview-sub {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Desktop Side Panel */
.rds-panel {
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  width: 475px;
  max-width: 46vw;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: linear-gradient(165deg, var(--bg-surface), var(--bg-surface-deep));
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border-soft);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: desktopPanelIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.panel-header {
  flex-shrink: 0;
  padding: 20px 28px 13px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-sky);
}

.panel-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.panel-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.panel-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 28px;
}
.panel-body::-webkit-scrollbar { width: 4px; }
.panel-body::-webkit-scrollbar-track { background: transparent; }
.panel-body::-webkit-scrollbar-thumb { background: rgba(78, 163, 232, 0.35); border-radius: 999px; }

.panel-footer {
  flex-shrink: 0;
  padding: 14px 28px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}

.step-btn {
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-size: 12.5px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}
.step-btn:hover {
  color: #ffffff;
}
.step-btn--next {
  color: var(--brand-sky);
  font-weight: 500;
}

/* Mobile Swipeable Bottom Sheet */
.rds-sheet {
  pointer-events: auto;
  user-select: text;
  -webkit-user-select: text;
  width: 100%;
  max-height: 62dvh;
  display: flex;
  flex-direction: column;
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(13, 25, 44, 0.96), rgba(8, 16, 27, 0.99));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid rgba(90, 167, 230, 0.28);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.62);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: mobileSheetIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.sheet-header {
  flex-shrink: 0;
  padding: 10px 20px 10px;
  border-bottom: 1px solid var(--border-hairline);
}
.sheet-grab {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  margin: 0 auto 10px;
}
.sheet-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px;
}
.sheet-footer {
  flex-shrink: 0;
  padding: 10px 20px 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.sheet-counter {
  font-size: 11px;
  color: var(--text-subtle);
}

/* ==========================================================================
   Section Typography & Components
   ========================================================================== */
.sec-heading {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.24;
  color: #ffffff;
}

.sec-lead {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-muted);
}

.sec-prose {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-secondary);
}
.sec-prose p {
  margin: 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
}
.pillar-item {
  text-align: center;
  padding: 9px 6px;
  border-radius: 10px;
  background: rgba(8, 16, 27, 0.68);
  border: 1px solid rgba(48, 120, 179, 0.22);
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-ice);
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subcard {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-subcard);
  border: 1px solid rgba(48, 120, 179, 0.22);
  transition: border-color 0.22s ease, background 0.22s ease;
}
.subcard:hover {
  border-color: rgba(96, 174, 240, 0.48);
  background: rgba(14, 29, 50, 0.74);
}
.subcard-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}
.subcard-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* LiNK Module Switcher */
.link-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.link-tab {
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(8, 16, 27, 0.78);
  border: 1px solid rgba(100, 116, 139, 0.38);
  cursor: pointer;
  transition: all 0.2s ease;
}
.link-tab:hover {
  border-color: var(--brand-sky);
  color: #ffffff;
}
.link-tab.is-selected {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.link-detail {
  padding: 16px;
  border-radius: 12px;
  background: rgba(8, 16, 27, 0.78);
  border: 1px solid rgba(48, 120, 179, 0.30);
}
.link-detail-title {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}
.link-detail-tag {
  font-size: 12px;
  color: var(--brand-sky);
  margin-bottom: 10px;
}
.link-detail-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.external-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--brand-sky);
  transition: color 0.2s ease;
}
.external-link:hover {
  color: #ffffff;
}

/* Contact Rows */
.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg-subcard);
  border: 1px solid rgba(48, 120, 179, 0.24);
}
.contact-meta {
  min-width: 0;
}
.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.contact-email {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.contact-email:hover {
  color: var(--brand-sky);
}
.copy-btn {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  border: 0;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--brand-ice);
  background: rgba(48, 120, 179, 0.28);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.copy-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.social-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.social-pill {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, color 0.2s ease;
}
.social-pill:hover {
  background: rgba(48, 120, 179, 0.42);
  color: #ffffff;
}
.location-note {
  font-size: 11.5px;
  color: var(--text-subtle);
}

.mobile-legal-links {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 11.5px;
  color: var(--text-subtle);
}
.mobile-legal-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Bottom Footer Bar (Desktop Legal Links / Mobile Thumb Navigation Dock)
   ========================================================================== */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  pointer-events: none;
}

.desktop-footer {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px 22px;
  font-size: 12px;
  color: var(--text-subtle);
}
.desktop-footer-links {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}
.desktop-footer-links a {
  transition: color 0.2s ease;
}
.desktop-footer-links a:hover {
  color: var(--text-secondary);
}

.mobile-dock-wrap {
  padding: 0 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
.mobile-dock {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(11, 21, 38, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(48, 120, 179, 0.28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.mob-nav-btn {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 4px;
  border-radius: 11px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.mob-nav-btn:hover,
.mob-nav-btn:active {
  background: rgba(48, 120, 179, 0.28);
  color: #ffffff;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes desktopPanelIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes mobileSheetIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Large & Ultrawide Displays (>= 1600px)
   ========================================================================== */
@media (min-width: 1600px) {
  .brand-logo {
    height: 68px;
  }
  .dnav-btn {
    font-size: 14.5px;
  }
  .overview-title {
    font-size: 32px;
  }
  .overview-sub {
    font-size: 15px;
  }
  .rds-panel {
    width: 520px;
  }
  .sec-heading {
    font-size: 26px;
  }
  .sec-prose {
    font-size: 14.5px;
  }
  .node-label {
    font-size: 13px;
    padding: 6px 14px;
  }
}

/* ==========================================================================
   Responsive Mobile Breakpoint (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .site-header {
    justify-content: center;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 20px 0;
  }
  .brand-logo {
    height: 52px;
  }
  .desktop-nav {
    display: none;
  }
  .content-layer--overview {
    align-items: center;
    text-align: center;
    padding: 0 24px calc(82px + env(safe-area-inset-bottom, 0px));
  }
  .overview-intro {
    max-width: 320px;
  }
  .overview-title {
    font-size: 20px;
  }
  .overview-sub {
    font-size: 12.5px;
  }
  .sec-heading {
    font-size: 20px;
  }
  .node-label {
    font-size: 11.5px;
    padding: 4px 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dot-core::after {
    animation: none;
  }
  .rds-panel,
  .rds-sheet,
  .overview-intro {
    animation: none;
  }
}

