:root {
  --bg: #0b1220;
  --bg2: #111a2e;
  --card: #151f35;
  --border: #24304d;
  --text: #e8edf7;
  --muted: #8b9bb8;
  --accent: #3b82f6;
  --accent2: #2563eb;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

a { color: #93c5fd; text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11, 18, 32, 0.85);
  border-bottom: 1px solid var(--border);
}

.topbar-inner,
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.topbar-inner {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

nav { display: flex; gap: 18px; margin-left: auto; }
nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
nav a:hover, nav a.active { color: var(--text); }

.hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.12), transparent 30%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 620px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent2);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover { text-decoration: none; border-color: #41527a; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.card h3 { margin-bottom: 12px; font-size: 16px; }

.metric {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.metric:last-child { border-bottom: none; }
.metric span:last-child { color: var(--muted); font-family: var(--mono); }

.section { padding: 48px 0; }
.section-title { font-size: 28px; margin-bottom: 10px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.feature h4 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14px; }

code, pre {
  font-family: var(--mono);
  font-size: 13px;
}

pre {
  background: #0a1020;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  overflow-x: auto;
  color: #cbd5e1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}

th { color: var(--muted); font-weight: 600; }

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 8px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.error-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.error-box {
  max-width: 560px;
  width: 100%;
}

.error-code {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.lang-switch {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.lang-switch a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--text);
  background: rgba(59, 130, 246, 0.15);
  text-decoration: none;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  max-width: 920px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-banner p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.cookie-banner code {
  color: #bfdbfe;
  font-size: 12px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-actions .btn {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

@media (max-width: 860px) {
  .hero-grid, .grid-3 { grid-template-columns: 1fr; }
  nav { display: none; }
  .lang-switch { margin-left: auto; border-left: none; padding-left: 0; }
}
