@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:wght@600;700&display=swap");

:root {
  color-scheme: light;
  --ink: #2c2c2e;
  --ink-soft: #3a3a3c;
  --soft: #6e6e73;
  --mute: #8e8e93;
  --line: rgba(44, 44, 46, 0.1);
  --bg: #f7f9f8;
  --panel: #ffffff;
  --teal: #0d8a80;
  --teal-deep: #0a6b63;
  --teal-soft: rgba(13, 138, 128, 0.12);
  --sand: #f3eee6;
  --amber: #c27a2d;
  --shadow: 0 16px 40px rgba(44, 44, 46, 0.07);
  --serif: "SF Pro Display", "Segoe UI Variable Display", "PingFang SC",
    "Helvetica Neue", system-ui, sans-serif;
  --sans: "SF Pro Text", "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", system-ui, sans-serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1.35rem;
  backdrop-filter: saturate(180%) blur(16px);
  background: rgba(247, 249, 248, 0.78);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  font-size: 0.86rem;
  color: var(--soft);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--teal-deep);
}

.hero {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3.5vw, 2.25rem) 1.35rem clamp(1.35rem, 3vw, 1.85rem);
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 78% 8%, rgba(13, 138, 128, 0.18), transparent 55%),
    radial-gradient(720px 420px at 8% 85%, rgba(194, 122, 45, 0.08), transparent 50%),
    linear-gradient(180deg, #eef5f3 0%, #f7f9f8 52%, #ffffff 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 68%,
    rgba(247, 249, 248, 0.5) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--teal-deep);
}

.hero-title {
  margin: 0.65rem 0 0;
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--ink-soft);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero-title {
    white-space: normal;
    font-size: clamp(1.1rem, 4.6vw, 1.35rem);
  }
}

.hero-lead {
  margin: 0.75rem 0 0;
  max-width: 34rem;
  color: var(--soft);
  font-size: 1.02rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 980px;
  padding: 0.68rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 560;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn-ghost {
  background: var(--sand);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: #ebe4d8;
  color: var(--ink);
}

.section {
  padding: clamp(2.4rem, 5.5vw, 4rem) 1.35rem;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink-soft);
}

.section .lead {
  margin: 0.55rem 0 0;
  max-width: 38rem;
  color: var(--soft);
  font-size: 0.98rem;
}

.features {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

@media (min-width: 800px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: 1rem 0 0;
  border-top: 1px solid var(--line);
  animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.feature:nth-child(2) {
  animation-delay: 0.08s;
}

.feature:nth-child(3) {
  animation-delay: 0.16s;
}

.feature h3 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}

.feature p {
  margin: 0.35rem 0 0;
  color: var(--soft);
  font-size: 0.92rem;
}

.community {
  background: linear-gradient(180deg, #eef4f3 0%, #f5f5f7 100%);
}

.map-shell {
  margin-top: 1.35rem;
  padding: 1rem 0.9rem 0.85rem;
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: fade 1.1s ease both;
}

.map-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.55rem 1.25rem;
  margin-bottom: 0.55rem;
  padding: 0 0.25rem;
}

.map-stat {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink-soft);
}

.map-stat span {
  color: var(--mute);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
}

.map-note {
  margin: 0;
  max-width: 34rem;
  color: var(--mute);
  font-size: 0.8rem;
  line-height: 1.4;
}

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0.2rem 0 0.7rem;
  padding: 0 0.15rem;
}

.map-modes {
  display: inline-flex;
  padding: 2px;
  border-radius: 980px;
  background: var(--teal-soft);
}

.map-mode {
  border: 0;
  border-radius: 980px;
  padding: 0.26rem 0.62rem;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 560;
  color: var(--soft);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.map-mode:hover {
  color: var(--teal-deep);
}

.map-mode.is-active {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 1px 3px rgba(13, 138, 128, 0.12);
}

.map-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--mute);
  font-size: 0.74rem;
}

.map-legend-bar {
  width: 88px;
  height: 8px;
  border-radius: 980px;
  background: linear-gradient(
    90deg,
    #bae6fd 0%,
    #38bdf8 20%,
    #facc15 45%,
    #f97316 70%,
    #dc2626 88%,
    #450a0a 100%
  );
}

.world-globe {
  position: relative;
  width: 100%;
  min-height: 400px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, #1a2330 0%, #0f141c 60%, #0b0e13 100%);
  cursor: grab;
}

.world-globe[data-mode='borders'] {
  background:
    radial-gradient(circle at 50% 42%, #d9e6f2 0%, #eef3f7 55%, #f5f5f7 100%);
}

.globe-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  z-index: 1;
  pointer-events: none;
}

.world-globe:active {
  cursor: grabbing;
}

.world-globe canvas {
  display: block;
  width: 100% !important;
}

.map-hint {
  margin: 0.5rem 0 0;
  text-align: center;
  color: var(--mute);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.footer {
  padding: 1.75rem 1.35rem 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.84rem;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1.25rem;
}

.footer a {
  color: var(--soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
