@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #05060b;
  --surface: #0d0e1a;
  --surface-2: #12142442;
  --border: #1c1e33;
  --indigo: #6d5ef0;
  --blue: #4f7fff;
  --text: #eceafb;
  --muted: #8b8ca3;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

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

h1, h2, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.gradient-text {
  background: linear-gradient(90deg, var(--indigo), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---- network glow background: abstract nod to the globe/lines reference,
   without recreating a full world map ---- */
.net-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 40% at 78% 18%, rgba(109, 94, 240, 0.16), transparent),
    radial-gradient(ellipse 40% 35% at 15% 70%, rgba(79, 127, 255, 0.1), transparent);
}
.net-glow svg { position: absolute; top: 0; right: 0; width: 60%; height: 100%; opacity: 0.5; }
.net-glow .node { fill: var(--blue); }
.net-glow .link { stroke: var(--indigo); stroke-width: 1; fill: none; opacity: 0.35; }
.net-glow .pulse { stroke: var(--blue); stroke-width: 1.4; fill: none; stroke-dasharray: 4 10; animation: dash 6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -140; } }
@keyframes ping { 0% { r: 2; opacity: 0.9; } 100% { r: 9; opacity: 0; } }
.net-glow .ping { fill: none; stroke: var(--blue); stroke-width: 1; animation: ping 2.4s ease-out infinite; }

nav.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  position: relative;
  flex-wrap: wrap;
}
.logo { display: flex; align-items: center; gap: 0.55rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.logo .mark { flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
.nav-panel { display: flex; align-items: center; gap: 1.6rem; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border); color: var(--text);
  border-radius: 8px; padding: 0.5rem; cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 720px) {
  nav.topbar { padding: 1rem 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
    order: 3;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }
  .nav-panel.open { display: flex; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
  .lang-switch { align-self: flex-start; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 0.6rem; }
  .nav-actions .btn { width: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: linear-gradient(90deg, var(--indigo), var(--blue)); color: #05060b; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(109, 94, 240, 0.5); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--indigo); }

input {
  font-family: 'Inter', sans-serif;
  background: #10111f;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
}
input:focus { border-color: var(--indigo); }
input::placeholder { color: #575a72; }
label { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.4rem; display: block; }
.error-text { color: #f87171; font-size: 0.85rem; }

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