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

:root {
  color-scheme: dark;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  --bg-primary: #020617;
  --bg-secondary: #0f172a;
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.35);
  --surface: rgba(15, 23, 42, 0.82);
  --surface-elevated: rgba(30, 41, 59, 0.85);
  --surface-border: rgba(148, 163, 184, 0.22);
  --header-height: 92px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-deep: 0 24px 60px rgba(2, 6, 23, 0.55);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.45);
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: inherit;
  color: var(--text-primary);
  background:
    radial-gradient(120% 140% at 15% 10%, rgba(56, 189, 248, 0.25), transparent 55%),
    radial-gradient(140% 120% at 92% 0%, rgba(168, 85, 247, 0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

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

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

a:hover,
a:focus {
  color: #f8fafc;
}

button {
  font: inherit;
}

.container {
  width: min(1100px, 100% - 3rem);
  margin: 0 auto;
}

.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;
}

@media (max-width: 720px) {
  .container {
    width: min(100%, 100% - 2rem);
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(2, 6, 23, 0.85);
  border-bottom: 1px solid var(--surface-border);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  min-height: var(--header-height);
  padding: 1rem 0;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.25rem);
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-title {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.logo-button {
  border: 0;
  background: transparent;
  border-radius: var(--radius-md);
  padding: 0.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  outline: none;
}

.logo-button:hover,
.logo-button:focus-visible {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 2px rgba(56, 189, 248, 0.28),
    0 0 38px rgba(56, 189, 248, 0.45);
  background: transparent;
}

.logo-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.logo-button--active {
  animation: hornPulse 0.5s ease;
}

@keyframes hornPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.4);
  }

  100% {
    box-shadow: 0 0 0 24px rgba(56, 189, 248, 0);
  }
}

.site-logo {
  width: clamp(54px, 6vw, 72px);
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 0;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 10px 20px rgba(56, 189, 248, 0.18);
}

.nav-link:focus-visible {
  outline: 2px solid transparent;
}

.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 6vw, 6rem);
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(3rem, 5vw, 3.75rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.18), rgba(37, 99, 235, 0.12));
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 22% 20%, rgba(56, 189, 248, 0.18), transparent 60%);
  pointer-events: none;
}

.identity-hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  min-width: 0;
}


.identity-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.identity-tag {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(94, 234, 212, 0.9);
}

.identity-description {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.identity-values {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.address-block {
  background: var(--surface-elevated);
  border-radius: var(--radius-md);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.address-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.address-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.address-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.address-copy {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(15, 23, 42, 0.7);
  color: rgba(125, 211, 252, 0.95);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.address-copy:hover,
.address-copy:focus-visible {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.6);
  color: #f8fafc;
}

.address-copy:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.6);
  outline-offset: 3px;
}

.address-copy[data-copied="true"] {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.9);
  color: #f8fafc;
  transform: translateY(-1px);
}

.address-copy[disabled],
.address-copy[disabled]:hover,
.address-copy[disabled]:focus-visible {
  cursor: not-allowed;
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(148, 163, 184, 0.4);
  color: rgba(148, 163, 184, 0.6);
  transform: none;
  outline: none;
}

.address-value {
  font-size: clamp(1.8rem, 4.8vw, 2.8rem);
  line-height: 1.1;
  font-weight: 500;
  word-break: break-word;
  color: #f8fafc;
  text-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
}

.address-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.95);
}

.address-meta-flag {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.55));
}

.address-meta-flag img {
  display: block;
  height: 1.35rem;
  width: auto;
  border-radius: 2px;
}

.address-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.address-meta-item--rdns {
  flex-wrap: wrap;
  align-items: baseline;
}

.address-meta-label {
  font-weight: 500;
}

.address-meta-item--rdns .address-meta-value {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.address-meta-item + .address-meta-item::before {
  content: "•";
  display: inline-block;
  margin: 0 0.45rem;
  color: rgba(148, 163, 184, 0.7);
}

.identity-note {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.9);
}

.mono {
  font-family: "Google Sans Code", "Fira Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

.info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 720px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.section-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.card-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 200px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.info-card:hover::before,
.info-card:focus-within::before {
  opacity: 1;
}

.info-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.info-card--security {
  gap: 1.25rem;
}

.security-capability-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 0.65rem 1.25rem;
}

.security-capability {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.security-capability::before {
  content: '\\2022';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.65);
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.security-capability[data-support='yes']::before {
  content: '\\2713';
  border-color: rgba(34, 197, 94, 0.65);
  background: rgba(34, 197, 94, 0.22);
  color: #22c55e;
}

.security-capability[data-support='no']::before {
  content: '\\2717';
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(248, 113, 113, 0.25);
  color: #f87171;
}

.security-capability__label {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 780px) {
  .security-capability-list {
    grid-template-columns: 1fr;
  }
}

.info-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.info-list__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.5fr) 1fr;
  gap: 0.75rem;
  align-items: start;
}

.info-list__term {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.info-list__value {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.55;
}

@media (max-width: 640px) {
  .info-list__row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .info-list__term {
    font-size: 0.78rem;
  }

  .info-list__value {
    font-size: 0.95rem;
  }
}

.info-value {
  margin: 0;
  font-size: 0.95rem;
  word-break: break-word;
  color: #f8fafc;
}

.info-note,
.info-placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.info-card--map {
  grid-column: 1 / -1;
  gap: 1.5rem;
}

.map-card__header {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 760px;
}

.map-card__header h3 {
  margin: 0;
}

.map-card__text {
  margin: 0;
  color: var(--text-muted);
}

.map-card__canvas {
  position: relative;
  width: 100%;
  height: clamp(260px, 38vh, 520px);
  border-radius: calc(var(--radius-lg) - 8px);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.1);
  background:
    radial-gradient(circle at 18% 22%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 80% 78%, rgba(15, 118, 110, 0.12), transparent 60%),
    #020b1b;
  cursor: default;
}

.map-card__canvas .maplibregl-canvas {
  outline: none;
}

.map-card__canvas .maplibregl-control-container {
  display: none;
}

.map-card__attribution {
  margin: 0;
  text-align: right;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.75);
}

.map-card__attribution a {
  color: rgba(148, 163, 184, 0.9);
  text-decoration: none;
}

.map-card__attribution a:hover,
.map-card__attribution a:focus {
  color: var(--text-primary);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--surface-border);
  background: rgba(2, 6, 23, 0.92);
  padding: 1.5rem 0;
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.connection-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.38);
  box-shadow: 0 14px 24px rgba(2, 6, 23, 0.28);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    opacity 0.2s ease;
  flex-shrink: 0;
  cursor: default;
}

.connection-indicator[data-state='hidden'] {
  opacity: 0;
  visibility: hidden;
}

.connection-indicator__icon {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.65);
  box-shadow: 0 0 10px rgba(148, 163, 184, 0.4);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.connection-indicator[data-state='connecting'] {
  background: rgba(37, 99, 235, 0.1);
  border-color: rgba(56, 189, 248, 0.4);
}

.connection-indicator[data-state='connecting'] .connection-indicator__icon {
  background: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}

.connection-indicator[data-state='connected'] {
  background: rgba(22, 101, 52, 0.18);
  border-color: rgba(74, 222, 128, 0.5);
}

.connection-indicator[data-state='connected'] .connection-indicator__icon {
  background: #34d399;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.connection-indicator[data-state='fallback'] {
  background: rgba(120, 53, 15, 0.2);
  border-color: rgba(251, 191, 36, 0.5);
}

.connection-indicator[data-state='fallback'] .connection-indicator__icon {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.55);
}

.connection-indicator[data-state='error'] {
  background: rgba(127, 29, 29, 0.2);
  border-color: rgba(248, 113, 113, 0.5);
}

.connection-indicator[data-state='error'] .connection-indicator__icon {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.55);
}

@media (max-width: 900px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .site-header__actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    margin-left: 0;
  }

  .site-nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 80px;
  }

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

  .site-header__inner {
    padding: 0.75rem 0;
  }

  .brand {
    width: 100%;
    justify-content: space-between;
  }

  .brand-text {
    align-items: flex-end;
  }

  .site-main {
    padding-top: calc(var(--header-height) + 2.5rem);
  }

  .hero {
    padding: 2.25rem;
    gap: 1.5rem;
  }

  .identity-hero {
    gap: 1.5rem;
  }

  .address-meta {
    gap: 0.25rem;
    font-size: 0.9rem;
  }

  .address-copy {
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }

  .map-card__attribution {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
