:root {
  --bg: #0b111b;
  --bg-soft: #0f1724;
  --panel: #111a2a;
  --ink: #e9edf5;
  --muted: #9fb0c8;
  --accent: #4fd1c5;
  --accent-2: #7c6cf4;
  --shadow: 0 20px 60px rgba(4, 10, 20, 0.45);
  --radius: 16px;
  --font-body: "Manrope", "Space Grotesk", system-ui, -apple-system, sans-serif;
}

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

body {
  margin: 0;
  background: radial-gradient(circle at 20% 20%, rgba(79, 209, 197, 0.08), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(124, 108, 244, 0.12), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

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

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(15, 23, 36, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(10px);
}

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

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  border-radius: 0;
  padding: 0;
  border: none;
}

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

.brand-name {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-tagline {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(79, 209, 197, 0.12);
}

.nav-links .portal-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b111b;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(79, 209, 197, 0.35);
  border: 1px solid transparent;
}

.nav-links .portal-link:hover {
  transform: translateY(-1px);
  color: #0b111b;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  padding: 72px 16px 52px;
  align-items: center;
}

.hero-content h1 {
  margin: 12px 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.2;
}

.hero .lede {
  color: var(--muted);
  max-width: 620px;
}

.hero-full {
  grid-template-columns: 1fr;
  width: 100%;
}

.hero-full .hero-content {
  max-width: none;
  width: 100%;
}

.hero-full .lede {
  max-width: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
}

.lede,
.section-lede {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin: 22px 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b111b;
  box-shadow: 0 10px 30px rgba(79, 209, 197, 0.35);
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.divider {
  opacity: 0.35;
}

.portal-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: center;
  place-items: center;
  padding: 82px 16px;
  text-align: center;
}

.portal-copy {
  max-width: 640px;
}

.portal-copy h1 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.18;
}

.portal-list {
  color: var(--ink);
  margin: 16px auto 12px;
  text-align: left;
  max-width: 520px;
}

.portal-card {
  position: relative;
  background: linear-gradient(165deg, rgba(79, 209, 197, 0.12), rgba(124, 108, 244, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  max-width: 540px;
  width: 100%;
  justify-self: center;
  overflow: hidden;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(79, 209, 197, 0.2), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(124, 108, 244, 0.22), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

.portal-card-head,
.login-form,
.portal-help,
.portal-note {
  position: relative;
  z-index: 1;
}

.portal-card-head h2 {
  margin: 0 0 6px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 8px;
}

.form-label {
  font-weight: 700;
  font-size: 14px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 13px 12px;
  color: var(--ink);
  font-size: 15px;
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(79, 209, 197, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn.full {
  width: 100%;
  text-align: center;
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.9s linear infinite;
  transition: opacity 0.15s ease;
}

.login-submit.is-loading .spinner {
  opacity: 1;
}

.login-submit.is-loading .btn-text {
  opacity: 0.6;
}

.login-submit:disabled {
  cursor: not-allowed;
}

.login-message {
  min-height: 22px;
  margin-top: 6px;
  color: #ffb3b3;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.portal-help {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.portal-help a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
}

.portal-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero-visual {
  background: linear-gradient(145deg, rgba(79, 209, 197, 0.12), rgba(124, 108, 244, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.globe {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 25% 25%, rgba(79, 209, 197, 0.2), transparent 40%),
    radial-gradient(circle at 75% 30%, rgba(124, 108, 244, 0.2), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.25), #0c1523 70%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.globe::before,
.globe::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
}

.globe::before {
  background:
    radial-gradient(circle, transparent 58%, rgba(255, 255, 255, 0.08) 60%, transparent 62%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04) 2px, transparent 3px, transparent 6px);
  mix-blend-mode: screen;
}

.globe::after {
  background:
    repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.05) 0deg 4deg, transparent 4deg 12deg);
  transform: rotate(12deg);
  mix-blend-mode: screen;
}

.globe-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(11, 17, 27, 0.85);
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  box-shadow: var(--shadow);
}

.globe-city {
  display: block;
  font-weight: 800;
}

.globe-role {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.globe-node {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  animation: float 8s ease-in-out infinite;
}

.globe-node span {
  font-weight: 700;
}

.globe-node small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.node-edge { top: 12%; left: 18%; animation-delay: 0.2s; }
.node-security { top: 18%; right: 10%; animation-delay: 0.6s; }
.node-cloud { bottom: 16%; right: 14%; animation-delay: 1s; }
.node-datacenter { bottom: 12%; left: 12%; animation-delay: 1.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero-badge {
  margin-top: 14px;
  width: fit-content;
}

.badge {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.section {
  padding: 56px 16px;
}

.section-header {
  max-width: 760px;
}

.section-header h2 {
  margin: 8px 0;
  font-size: clamp(26px, 3vw, 32px);
}

.section-lede {
  margin: 10px 0 26px;
}

.cards {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.card ul {
  padding-left: 18px;
  color: var(--ink);
}

.muted {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.platforms {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.platform-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.platform-name {
  font-weight: 700;
}

.platform-detail {
  color: var(--muted);
  text-align: right;
}

.badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.badge-tile {
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(79, 209, 197, 0.16), rgba(124, 108, 244, 0.12));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.note {
  color: var(--muted);
  margin-top: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}

.list-check,
.list-dash {
  padding-left: 18px;
}

.panel {
  background: var(--panel);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.meta-card h3 {
  margin-top: 0;
}

.meta-detail {
  color: var(--muted);
  margin: 8px 0;
}

.muted-inline {
  color: #7b8aa5;
}

.visit-layout {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(220px, 1fr);
  gap: 16px;
  align-items: center;
}

.visit-details {
  align-self: center;
}

.visit-map {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map-embed {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

.map-note {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.panel-meta {
  margin-top: 14px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.green { background: #6bdba7; }
.teal { background: #4fd1c5; }

.contact {
  display: grid;
  place-items: center;
}

.contact-card {
  width: min(720px, 100%);
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.12), rgba(124, 108, 244, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}

.contact-meta {
  color: var(--muted);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer {
  margin-top: 40px;
  padding: 20px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .portal-hero {
    grid-template-columns: 1fr;
  }

  .orbital {
    aspect-ratio: 1.2;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    background: rgba(15, 23, 36, 0.9);
    padding: 8px;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.show {
    display: flex;
  }

  .platform-row {
    flex-direction: column;
    gap: 6px;
  }

  .platform-detail {
    text-align: left;
  }

  .visit-layout {
    grid-template-columns: 1fr;
  }
}
