:root {
  --nav-height: 68px;
  --container-width: 1120px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.8);
  --bg-page: #081631;
  --bg-elevated: #13213c;
  --bg-soft: #1f3257;
  --bg-highlight: #294170;
  --accent: #607bb0;
  --accent-soft: #e2ecff;
  --border-subtle: #1f3257;
  --border-strong: #294170;
  --text-main: #ffffff;
  --text-muted: #b1bacc;
  --text-soft: #e2ecff;
  --text-on-accent: #081631;
  --number-positive: #17eba3;
  --number-negative: #b92121;
  --danger: #b92121;
  --focus-ring: 0 0 0 1px rgba(226, 236, 255, 0.9),
    0 0 0 4px rgba(96, 123, 176, 0.6);
}

* {
  box-sizing: border-box;
}

body.theme-dark {
  margin: 0;
  min-height: 100vh;
  font-family: "Proxima Nova", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at top left, #294170 0, #081631 45%, #020818 100%);
  color: var(--text-main);
  line-height: 1.6;
}

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

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #7f98d1);
  color: var(--text-on-accent);
  box-shadow: 0 12px 28px rgba(96, 123, 176, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 38px rgba(96, 123, 176, 0.75);
}

.btn-ghost {
  background: rgba(19, 33, 60, 0.9);
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(31, 50, 87, 0.95);
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(31, 50, 87, 0.9);
  color: var(--accent-soft);
  border: 1px solid rgba(96, 123, 176, 0.6);
}

.card {
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(226, 236, 255, 0.08), rgba(19, 33, 60, 0.98));
  border: 1px solid rgba(177, 186, 204, 0.4);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem;
  color: var(--text-muted);
}

.card h3 {
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.card-soft {
  border-radius: var(--radius-lg);
  background: rgba(19, 33, 60, 0.95);
  border: 1px solid rgba(31, 50, 87, 0.85);
  padding: 1.4rem 1.6rem;
  color: var(--text-muted);
}

.metric-positive {
  color: var(--number-positive);
}

.metric-negative {
  color: var(--number-negative);
}

.metric-neutral {
  color: var(--text-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--nav-height);
  background: var(--bg-elevated);
  border-bottom: 1px solid rgba(96, 123, 176, 0.35);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(2, 8, 24, 0.55);
}

.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.nav-links a {
  padding: 0.25rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-soft);
  border-color: var(--accent);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-link {
  color: var(--text-muted);
  font-weight: 600;
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--border-subtle);
  background: rgba(19, 33, 60, 0.95);
  color: var(--text-soft);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-lg);
  font-size: 1.1rem;
  cursor: pointer;
}

.section {
  padding: 4.5rem 0;
}

.section-soft {
  background: radial-gradient(circle at top, rgba(41, 65, 112, 0.45), rgba(8, 22, 49, 1));
}

footer {
  padding: 3rem 0;
  border-top: 1px solid rgba(96, 123, 176, 0.35);
  background: rgba(8, 22, 49, 0.96);
  color: var(--text-muted);
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.9rem;
  text-align: center;
}

.footer-links a {
  color: var(--text-muted);
  margin: 0 0.3rem;
}

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

@media (max-width: 960px) {
  .nav-bar {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 1rem;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    background: rgba(8, 22, 49, 0.96);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-strong);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-toggle {
    display: inline-flex;
    margin-left: auto;
  }
}
