:root {
  --bg: #061521;
  --panel: rgba(7, 22, 35, 0.78);
  --card: rgba(10, 30, 48, 0.78);
  --line: rgba(118, 230, 255, 0.22);
  --text: #f2fbff;
  --muted: #9ec7d8;
  --accent: #28d7ff;
  --accent-2: #27e0b1;
  --accent-dark: #0794b8;
  --button-text: #02131b;
  --ghost-bg: rgba(12, 32, 50, 0.72);
}

:root[data-theme="light"] {
  --bg: #edf8fc;
  --panel: rgba(255, 255, 255, 0.88);
  --card: rgba(255, 255, 255, 0.92);
  --line: rgba(19, 117, 154, 0.18);
  --text: #082335;
  --muted: #426c80;
  --accent: #039dcc;
  --accent-2: #0abf98;
  --accent-dark: #057f99;
  --button-text: #ffffff;
  --ghost-bg: rgba(229, 247, 252, 0.88);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(40, 215, 255, 0.22), transparent 65%),
    radial-gradient(780px 520px at 100% 8%, rgba(39, 224, 177, 0.16), transparent 62%),
    linear-gradient(160deg, #03101b 0%, #062236 48%, #052f3e 100%);
}

:root[data-theme="light"] .bg-layer {
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(40, 215, 255, 0.17), transparent 65%),
    radial-gradient(780px 520px at 100% 8%, rgba(39, 224, 177, 0.13), transparent 62%),
    linear-gradient(160deg, #f7fcff 0%, #edf8fc 48%, #e1f4f8 100%);
}

.shell {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  text-decoration: none;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 0.72em;
  height: 0.72em;
  margin-right: 0.42rem;
  border: 3px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 7px rgba(40, 215, 255, 0.1);
  vertical-align: -0.05em;
}

.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
}

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

.right-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.control-btn,
.control-select {
  border: 1px solid var(--line);
  background: var(--ghost-bg);
  color: var(--text);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.control-btn {
  cursor: pointer;
  min-width: 128px;
}

.control-select {
  cursor: pointer;
}

.hero,
.content {
  margin-top: 1rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(8px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 800;
}

h1 {
  margin: 0.5rem 0 0;
  line-height: 1.08;
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--muted);
  max-width: 64ch;
  line-height: 1.65;
}

.cta-row {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  padding: 0.78rem 1.15rem;
  border: 1px solid transparent;
}

.btn-primary {
  color: var(--button-text);
  background: linear-gradient(90deg, var(--accent) 0%, #6ef3ff 48%, var(--accent-2) 100%);
}

:root[data-theme="light"] .btn-primary {
  color: #ffffff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: var(--ghost-bg);
}

.grid {
  margin-top: 1rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
}

.card h2 {
  margin-top: 0;
}

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

.link {
  text-decoration: none;
  color: #72efff;
  font-weight: 800;
}

:root[data-theme="light"] .link {
  color: #057f99;
}

.link:hover {
  color: #c8fbff;
}

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

.footer {
  padding: 0.8rem 0 2rem;
}

.list {
  display: grid;
  gap: 0.8rem;
  padding-left: 1.2rem;
}

.list li {
  color: var(--muted);
  line-height: 1.55;
}

.globe-card {
  position: relative;
  min-height: 270px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(40, 215, 255, 0.22), transparent 45%),
    linear-gradient(140deg, rgba(6, 35, 55, 0.92), rgba(4, 69, 85, 0.84));
}

.globe-grid {
  position: absolute;
  inset: 34px;
  border: 2px solid rgba(114, 239, 255, 0.55);
  border-radius: 50%;
}

.globe-grid::before,
.globe-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.globe-grid::before {
  border-left: 2px solid rgba(114, 239, 255, 0.33);
  border-right: 2px solid rgba(114, 239, 255, 0.33);
  transform: scaleX(0.42);
}

.globe-grid::after {
  border-top: 2px solid rgba(114, 239, 255, 0.3);
  border-bottom: 2px solid rgba(114, 239, 255, 0.3);
  transform: scaleY(0.45);
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 8px rgba(39, 224, 177, 0.2), 0 0 24px rgba(39, 224, 177, 0.72);
}

.pin-a {
  left: 28%;
  top: 36%;
}

.pin-b {
  left: 58%;
  top: 54%;
}

.pin-c {
  left: 72%;
  top: 30%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 960px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-controls {
    width: 100%;
    justify-content: flex-start;
  }

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

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

  .hero,
  .content {
    padding: 1.2rem;
  }
}
