:root {
  --bg: #050b18;
  --bg-alt: #0a1428;
  --card: #0f1c38;
  --border: rgba(148, 176, 224, 0.14);
  --border-strong: rgba(148, 176, 224, 0.28);
  --text: #e8ecf6;
  --muted: #93a2c0;
  --muted-2: #6b7a9a;
  --accent: #4c8dff;
  --accent-soft: rgba(76, 141, 255, 0.14);
  --accent-dark: #2f6fed;
  --white: #ffffff;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 11, 24, 0.85);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo span { color: var(--accent); }

.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-nav {
  display: flex;
  gap: 26px;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 4px;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lang-switch a {
  color: var(--muted-2);
  padding: 4px 6px;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease;
}

.lang-switch a:hover { color: var(--text); background: var(--accent-soft); }

.lang-switch a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-switch .sep { color: var(--border-strong); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(760px 420px at 15% -10%, rgba(76, 141, 255, 0.22), transparent 60%),
    radial-gradient(600px 400px at 100% 0%, rgba(47, 111, 237, 0.16), transparent 55%),
    var(--bg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  border: 1px solid rgba(76, 141, 255, 0.35);
  color: #a9c6ff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(76, 141, 255, 0.25);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  max-width: 18ch;
}

.hero-sub {
  max-width: 620px;
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #04101f;
}

.btn-primary:hover { background: #6ba0ff; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--muted);
  max-width: 640px;
  font-size: 1.02rem;
  margin: 0 0 44px;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Status / CTA panel */
.status-panel {
  background: linear-gradient(160deg, var(--card) 0%, #0b1830 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.status-panel-text { max-width: 560px; }

.status-panel h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.status-panel p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 52px 0 22px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.footer-brand p {
  max-width: 340px;
  font-size: 0.86rem;
  margin: 10px 0 0;
  color: var(--muted-2);
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 220px;
}

.footer-langs a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 9px;
}

.footer-langs a.active,
.footer-langs a:hover {
  color: var(--accent);
  border-color: rgba(76, 141, 255, 0.4);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted-2);
}

/* Legal pages */
.legal-main {
  padding: 56px 0 100px;
  max-width: 760px;
}

.legal-main h1 {
  font-size: 2rem;
  color: var(--text);
  margin: 0 0 8px;
}

.legal-main .legal-lead {
  color: var(--muted);
  margin: 0 0 40px;
}

.legal-main h2 {
  font-size: 1.15rem;
  color: var(--text);
  margin: 42px 0 12px;
}

.legal-main h3 {
  font-size: 1rem;
  color: var(--accent);
  margin: 24px 0 8px;
}

.legal-main p, .legal-main li {
  color: var(--muted);
  font-size: 0.97rem;
}

.legal-main strong { color: var(--text); }

.legal-main ul { padding-left: 20px; }

.legal-main a.inline-link {
  color: var(--accent);
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: #0b1730;
  border-top: 1px solid var(--border-strong);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.4);
}

.cookie-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cookie-text strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.cookie-text p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 560px;
}

.cookie-text a { color: var(--accent); text-decoration: underline; }

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

/* Language picker (root page) */
.picker-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(760px 420px at 15% -10%, rgba(76, 141, 255, 0.22), transparent 60%),
    radial-gradient(600px 400px at 100% 0%, rgba(47, 111, 237, 0.16), transparent 55%),
    var(--bg);
}

.picker-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.picker-logo {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 10px;
}

.picker-logo span { color: var(--accent); }

.picker-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 32px;
}

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

.picker-grid a {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.picker-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .hero { padding: 72px 0 64px; }
  .header-right { gap: 14px; }
  .header-nav { display: none; }
  .status-panel { padding: 30px; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions { justify-content: stretch; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
