:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #0e1220;
  --muted: #5b6478;
  --accent: #2459cc; /* #2b6fff old #2459cc #1c4599 */
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(6, 24, 44, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.6 "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg), #eef2f9);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1120px; margin: 0 auto; padding: 24px; }

/* NAVBAR */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 18px 0;
}
.nav a.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; color: var(--ink); }
.nav a.logo span { color: var(--ink); }
.nav .links { display: flex; gap: 18px; align-items: center; }
.nav .links a { color: var(--ink); font-weight: 600; }
.nav .links a.signin { padding: 10px 14px; border-radius: 999px; color: var(--accent-ink); background: var(--accent); box-shadow: var(--shadow); text-decoration: none; }

/* mobile menu */
.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid #d5d9e6;
  background: #fff; cursor: pointer; align-items: center; justify-content: center; gap: 4px;
}
.menu-toggle .bar { display: block; width: 18px; height: 2px; background: var(--ink); }
.mobile-menu {
  position: fixed; inset: 0; background: rgba(2,10,30,.36); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  z-index: 40; display: grid; place-items: start end; padding: 16px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner {
  width: min(86vw, 320px); background: var(--surface); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); display: grid; gap: 8px;
}
.mobile-menu-inner a { color: var(--ink); font-weight: 600; padding: 10px 12px; border-radius: 10px; display: inline-block; text-decoration: none; }
.mobile-menu-inner a:hover { background: #f1f4fb; text-decoration: none; }
.mobile-menu-inner a.signin { display: block; background: var(--accent); color: var(--accent-ink); padding: 12px; border-radius: 12px; }

/* BUTTONS */
.btn {
  display: inline-block; border-radius: 999px; padding: 12px 18px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow);
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }

/* HERO */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius);
  padding: 56px; background: radial-gradient(1200px 500px at 80% -20%, #dbe7ff 0, transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
.hero h1 { font-size: 52px; line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

/* FEATURES */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 32px 0 8px; }
.feature { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }
.feature .detail { margin-top: 8px; color: var(--muted); font-size: 14px; line-height:1.5; }

/* SPLIT SECTIONS */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; margin: 48px 0; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.split .illustration { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); max-width: 120%; transform: translateX(-8%); }
.split.reverse .illustration { transform: translateX(8%); }
.split .illustration img { width: 100%; height: auto; display:block; }
.split, .split .illustration { overflow: visible; }
.split h2 { margin: 0 0 10px; font-size: 28px; }
.split p { color: var(--muted); margin: 0; }

/* DARK BAND */
.band { background: #0f172a; color: #e6ebff; border-radius: var(--radius); padding: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band a { color: #cfe0ff; }

/* FOOTER */
.footer { color: var(--muted); font-size: 14px; padding: 40px 20px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* NETWORK PAGE MAP */
.map-wrap { position: relative; width: 100%; aspect-ratio: 2000 / 857; border-radius: 18px; overflow: hidden; background: #0b1020; box-shadow: var(--shadow); }
.map-wrap img.map { width: 100%; height: 100%; object-fit: cover; opacity: .65; filter: contrast(110%); }
.map-dots { position: absolute; inset: 0; }
.dot {
  position: absolute; width: 12px; height: 12px; margin-left: -6px; margin-top: -6px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 0 0 rgba(43,111,255,.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(43,111,255,.6); }
  70% { box-shadow: 0 0 0 16px rgba(43,111,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(43,111,255,0); }
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero { padding: 32px; }
  .hero h1 { font-size: 38px; }
  .features { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split .illustration, .split.reverse .illustration { transform: none; max-width: 100%; }
  .nav .links { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ===== DARK THEME (scoped to pages using <Base theme="dark" />) ===== */
.theme-dark {
  --bg: #0b1020;
  --surface: #0f152a;
  --ink: #f1f4ff;
  --muted: #a6afd1;
  background: #0b1020;
}
.theme-dark .nav a.logo, .theme-dark .nav a.logo span, .theme-dark .nav .links a { color: var(--ink); }
.theme-dark .menu-toggle { background: #0f152a; border-color: #202a4a; }
.theme-dark .menu-toggle .bar { background: var(--ink); }
.theme-dark .mobile-menu-inner { background: var(--surface); }
.theme-dark .feature, .theme-dark .hero, .theme-dark .split .illustration { background: var(--surface); }
.theme-dark .footer { color: var(--muted); }
