:root {
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-muted: #edf2fb;
  --surface-elev: #f8fbff;
  --topbar-bg: rgba(244, 247, 252, 0.86);
  --footer-bg: #eaf0fb;
  --text: #101b32;
  --text-soft: #4b5f80;
  --text-card: #314a70;
  --line: #d3dff1;
  --primary: #0e56c8;
  --primary-strong: #0a4198;
  --accent-cyan: #00a6d6;
  --accent-magenta: #c7348c;
  --accent-cyan-soft: rgba(0, 166, 214, 0.12);
  --accent-magenta-soft: rgba(199, 52, 140, 0.1);
  --success: #0f8b5d;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 8px 22px rgba(16, 35, 70, 0.08);
  --shadow-md: 0 22px 46px rgba(9, 33, 73, 0.14);
  --container: min(1160px, 92vw);
  --glow-cyan: none;
  --glow-magenta: none;
  --glow-blue: 0 0 24px rgba(14, 86, 200, 0.2);
}

:root[data-theme="dark"] {
  --bg: #030b18;
  --surface: #091525;
  --surface-muted: #0e1e35;
  --surface-elev: #122242;
  --topbar-bg: rgba(3, 11, 24, 0.86);
  --footer-bg: #030d1c;
  --text: #eaf2ff;
  --text-soft: #8aa8cc;
  --text-card: #b0c8e4;
  --line: #1a3260;
  --primary: #3e8bff;
  --primary-strong: #2e6fda;
  --accent-cyan: #00e5ff;
  --accent-magenta: #f500e8;
  --accent-cyan-soft: rgba(0, 229, 255, 0.16);
  --accent-magenta-soft: rgba(245, 0, 232, 0.14);
  --success: #47d89c;
  --shadow-sm: 0 12px 32px rgba(0, 2, 10, 0.52);
  --shadow-md: 0 24px 56px rgba(0, 1, 8, 0.68);
  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.18);
  --glow-magenta: 0 0 40px rgba(245, 0, 232, 0.14);
  --glow-blue: 0 0 32px rgba(62, 139, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(880px 420px at 96% -3%, var(--accent-cyan-soft), transparent 62%),
    radial-gradient(760px 420px at -2% 0%, var(--accent-magenta-soft), transparent 68%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 94%, #ffffff 6%) 0%, var(--bg) 48%, color-mix(in srgb, var(--bg) 92%, #0a1e3a 8%) 100%),
    var(--bg);
  color: var(--text);
  line-height: 1.58;
  transition: background 0.24s ease, color 0.24s ease;
}

main {
  padding-bottom: 104px;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-sm);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.14;
}

.brand-text small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--text-soft);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  transition: width 0.16s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-switch {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  min-width: 88px;
}

.theme-switch:hover {
  color: var(--text);
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--surface);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  color: #fff;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent-cyan));
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--primary-strong), var(--primary));
}

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

.hero {
  padding: 84px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent-cyan) 54%, #ffffff 46%);
  background: color-mix(in srgb, var(--accent-cyan-soft) 75%, #ffffff 25%);
  color: color-mix(in srgb, var(--primary) 65%, #001f44 35%);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  font-size: 18px;
  color: var(--text-soft);
  max-width: 65ch;
}

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

.hero-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #ffffff 10%), color-mix(in srgb, var(--surface-elev) 84%, var(--surface-muted) 16%));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: var(--accent-magenta-soft);
  filter: blur(8px);
  pointer-events: none;
}

.metric-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  padding: 10px;
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.metric span {
  font-size: 12px;
  color: var(--text-soft);
}

.section {
  padding: 46px 0;
}

.section h1 {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 48px);
  line-height: 1.08;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.08;
}

.section-intro {
  margin: 0;
  color: color-mix(in srgb, var(--text-soft) 86%, var(--text) 14%);
  max-width: 74ch;
}

.grid {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 21px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 88%, #ffffff 12%), color-mix(in srgb, var(--surface-elev) 84%, var(--surface-muted) 16%));
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent-cyan) 75%, transparent 25%), color-mix(in srgb, var(--accent-magenta) 65%, transparent 35%));
  opacity: 0.32;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.2;
}

.card p {
  margin: 0;
  color: var(--text-card);
}

#capabilities .container {
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent 16%);
  border-radius: 22px;
  padding: 26px;
  background:
    radial-gradient(460px 180px at 98% -8%, color-mix(in srgb, var(--accent-cyan-soft) 65%, transparent 35%), transparent 70%),
    radial-gradient(380px 170px at 2% 0%, color-mix(in srgb, var(--accent-magenta-soft) 56%, transparent 44%), transparent 78%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 84%, var(--surface-elev) 16%), color-mix(in srgb, var(--surface-muted) 66%, var(--surface) 34%));
}

.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.capability-card {
  min-height: 156px;
}

.process-grid .card {
  min-height: 126px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.list li {
  margin-bottom: 6px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  background: color-mix(in srgb, var(--surface-muted) 86%, #ffffff 14%);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: 0;
}

.legal-block {
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-muted) 52%, #ffffff 48%));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.legal-hero {
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent 22%);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(520px 180px at 102% -10%, color-mix(in srgb, var(--accent-cyan-soft) 60%, transparent 40%), transparent 70%),
    radial-gradient(420px 180px at -4% 0%, color-mix(in srgb, var(--accent-magenta-soft) 56%, transparent 44%), transparent 76%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 86%, var(--surface-elev) 14%), color-mix(in srgb, var(--surface-muted) 68%, var(--surface) 32%));
}

.registry-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.registry-item {
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent 20%);
  border-radius: 14px;
  padding: 12px;
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-elev) 16%);
}

.registry-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.registry-item span {
  font-size: 13px;
  color: var(--text-card);
}

.authority-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.authority-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 90%, #ffffff 10%), color-mix(in srgb, var(--surface-elev) 82%, var(--surface-muted) 18%));
  box-shadow: var(--shadow-sm);
}

.authority-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.authority-mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--line) 80%, transparent 20%);
  background: color-mix(in srgb, var(--surface) 86%, var(--surface-elev) 14%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.authority-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.authority-card h3 {
  margin: 0;
  font-size: 17px;
}

.authority-card p {
  margin: 0;
  color: var(--text-card);
}

.authority-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.authority-links {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.authority-links a {
  font-size: 12px;
  font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--line) 75%, transparent 25%);
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-muted) 12%);
}

.authority-links a:hover {
  background: color-mix(in srgb, var(--accent-cyan-soft) 26%, var(--surface) 74%);
}

.legal-note {
  margin-top: 16px;
  border: 1px dashed color-mix(in srgb, var(--line) 78%, transparent 22%);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-soft);
}

.legal-block h2,
.legal-block h3 {
  margin-top: 0;
}

.small {
  font-size: 13px;
  color: var(--text-soft);
}

.footer {
  margin-top: 56px;
  border-top: 1px solid var(--line);
  background: var(--footer-bg);
}

.footer-grid {
  min-height: 124px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 14px;
}

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

.kicker {
  font-size: 12px;
  font-weight: 800;
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat-launcher {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent 30%);
  border-radius: 999px;
  padding: 9px 13px;
  font-weight: 800;
  font-size: 13px;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 90%, #0c1830 10%), color-mix(in srgb, var(--accent-cyan) 82%, #0d1932 18%));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.chat-launcher span {
  opacity: 0.9;
  margin-right: 6px;
}

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 64px;
  z-index: 90;
  width: min(390px, calc(100vw - 24px));
  height: min(560px, calc(100vh - 100px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.chat-panel[data-open="true"] {
  display: grid;
}

.chat-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--surface) 82%, var(--accent-cyan-soft) 18%), var(--surface));
}

.chat-head strong {
  display: block;
  font-size: 15px;
}

.chat-head small {
  color: var(--text-soft);
  font-size: 12px;
}

.chat-body {
  padding: 14px;
  overflow-y: auto;
  background: var(--surface);
}

.chat-msg {
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 92%;
  white-space: pre-wrap;
}

.chat-msg.bot {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--text);
}

.chat-msg.user {
  margin-left: auto;
  background: linear-gradient(120deg, var(--primary), var(--accent-magenta));
  color: #ffffff;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
}

.chat-form button {
  border: 0;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(120deg, var(--primary), var(--accent-cyan));
}

.chat-disclaimer {
  margin-top: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-wrap: wrap;
    padding: 10px 0 12px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .chat-launcher {
    right: 10px;
    bottom: 10px;
  }

  .chat-panel {
    right: 10px;
    bottom: 56px;
  }
}

@media (max-width: 1120px) {
  .capability-grid,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .authority-grid,
  .registry-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-card,
  .card,
  .legal-block,
  .table-wrap {
    animation: rise 0.45s ease both;
  }

  .hero-card {
    animation-delay: 0.08s;
  }

  .card:nth-child(2) {
    animation-delay: 0.05s;
  }

  .card:nth-child(3) {
    animation-delay: 0.09s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ============================================================
   GALAXY UPGRADE — v2.0
   Deep-space aesthetics: animated orbs, glass morphism,
   neon gradient text, glow effects, noise texture overlay
   ============================================================ */

/* ---------- Animated floating orbs ---------- */

@keyframes float-a {
  0%   { transform: translate(0, 0) scale(1); }
  30%  { transform: translate(44px, -36px) scale(1.06); }
  65%  { transform: translate(-22px, 48px) scale(0.96); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-b {
  0%   { transform: translate(0, 0) scale(1); }
  40%  { transform: translate(-56px, 24px) scale(1.04); }
  72%  { transform: translate(32px, -44px) scale(0.97); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes float-c {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(28px, 50px) scale(1.03); }
  60%  { transform: translate(-36px, -28px) scale(0.98); }
  100% { transform: translate(0, 0) scale(1); }
}

.cosmic-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Orbs are invisible in light mode — the fixed bg just holds the DOM */
.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

[data-theme="dark"] .orb {
  opacity: 1;
}

.orb-1 {
  width: 680px;
  height: 680px;
  background: radial-gradient(circle at 40% 40%, rgba(0, 229, 255, 0.20), transparent 68%);
  top: -140px;
  right: -120px;
  animation: float-a 20s ease-in-out infinite;
}

.orb-2 {
  width: 780px;
  height: 780px;
  background: radial-gradient(circle at 55% 55%, rgba(245, 0, 232, 0.14), transparent 70%);
  bottom: 10%;
  left: -220px;
  animation: float-b 26s ease-in-out infinite;
}

.orb-3 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 50% 50%, rgba(62, 139, 255, 0.16), transparent 68%);
  top: 40%;
  right: 8%;
  animation: float-c 30s ease-in-out infinite;
}

.orb-4 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 229, 255, 0.10), transparent 70%);
  bottom: 5%;
  right: 30%;
  animation: float-a 24s ease-in-out infinite reverse;
}

/* Ensure all page content sits above the cosmic bg */
.topbar,
main,
.footer {
  position: relative;
  z-index: 1;
}

/* ---------- Noise texture overlay ---------- */

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  /* SVG fractal noise — no external asset needed */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

[data-theme="dark"] body::after {
  opacity: 0.028;
}

/* ---------- Topbar — glass treatment in dark mode ---------- */

[data-theme="dark"] .topbar {
  background: rgba(3, 11, 24, 0.78);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: rgba(0, 229, 255, 0.10);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.52);
}

/* ---------- Hero — dramatic scale + gradient headline ---------- */

.hero {
  padding: 110px 0 72px;
}

/* Gradient text on hero h1 in dark mode */
[data-theme="dark"] .hero h1 {
  background: linear-gradient(140deg, #eaf4ff 0%, var(--accent-cyan) 55%, var(--accent-magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 {
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 1.03;
}

/* ---------- Badge — glowing pill in dark mode ---------- */

[data-theme="dark"] .badge {
  background: rgba(0, 229, 255, 0.10);
  border-color: rgba(0, 229, 255, 0.36);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.14), inset 0 0 8px rgba(0, 229, 255, 0.06);
  letter-spacing: 0.08em;
}

/* ---------- Buttons — glow + sharper transitions ---------- */

[data-theme="dark"] .btn-primary {
  background: linear-gradient(115deg, var(--primary), var(--accent-cyan) 180%);
  box-shadow: var(--glow-blue), 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease;
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.32), 0 6px 32px rgba(0, 229, 255, 0.32);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-secondary {
  background: rgba(9, 21, 37, 0.64);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(0, 229, 255, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .btn-secondary:hover {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.14);
}

/* ---------- Hero card — glass morphism ---------- */

[data-theme="dark"] .hero-card {
  background: rgba(9, 21, 37, 0.58);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border-color: rgba(0, 229, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 1, 8, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .hero-card::before {
  background: radial-gradient(circle at 40% 40%, rgba(245, 0, 232, 0.24), transparent 68%);
  filter: blur(32px);
  width: 220px;
  height: 220px;
}

/* ---------- Metrics — subtle neon tint ---------- */

[data-theme="dark"] .metric {
  background: rgba(0, 229, 255, 0.05);
  border-color: rgba(0, 229, 255, 0.13);
}

[data-theme="dark"] .metric strong {
  background: linear-gradient(120deg, #eaf4ff, var(--accent-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Kicker line ---------- */

[data-theme="dark"] .kicker {
  color: var(--accent-cyan);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  letter-spacing: 0.08em;
}

/* ---------- Cards — glass morphism + hover glow ---------- */

[data-theme="dark"] .card {
  background: rgba(9, 21, 37, 0.56);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: rgba(26, 50, 96, 0.9);
  box-shadow: 0 12px 40px rgba(0, 4, 14, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

[data-theme="dark"] .card:hover {
  border-color: rgba(0, 229, 255, 0.26);
  box-shadow: 0 16px 52px rgba(0, 4, 14, 0.64), var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* Brighter gradient top accent on cards */
[data-theme="dark"] .card::before {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
  opacity: 0.55;
  height: 1px;
}

/* ---------- Capabilities section wrapper ---------- */

[data-theme="dark"] #capabilities .container {
  background:
    radial-gradient(520px 220px at 98% -6%, rgba(0, 229, 255, 0.08), transparent 70%),
    radial-gradient(460px 200px at 2% 0%, rgba(245, 0, 232, 0.06), transparent 78%),
    rgba(6, 16, 32, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0, 229, 255, 0.10);
  box-shadow: 0 0 80px rgba(0, 229, 255, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ---------- Section headings ---------- */

[data-theme="dark"] .section h2 {
  background: linear-gradient(130deg, #e8f3ff 0%, #b8d8ff 70%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* ---------- Legal / authority cards ---------- */

[data-theme="dark"] .authority-card {
  background: rgba(9, 21, 37, 0.60);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(26, 50, 96, 0.9);
  box-shadow: 0 12px 36px rgba(0, 4, 14, 0.48);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

[data-theme="dark"] .authority-card:hover {
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow: 0 16px 44px rgba(0, 4, 14, 0.60), var(--glow-cyan);
}

[data-theme="dark"] .legal-hero,
[data-theme="dark"] .legal-block {
  background:
    radial-gradient(480px 160px at 100% -5%, rgba(0, 229, 255, 0.07), transparent 70%),
    radial-gradient(380px 160px at 0% 0%, rgba(245, 0, 232, 0.06), transparent 78%),
    rgba(9, 21, 37, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(0, 229, 255, 0.10);
}

/* ---------- Footer ---------- */

[data-theme="dark"] .footer {
  border-top-color: rgba(0, 229, 255, 0.08);
  background: linear-gradient(0deg, rgba(0, 229, 255, 0.03) 0%, var(--footer-bg) 28%);
}

/* ---------- Chat widget ---------- */

[data-theme="dark"] .chat-launcher {
  box-shadow: 0 4px 24px rgba(0, 229, 255, 0.20), var(--shadow-md);
  border-color: rgba(0, 229, 255, 0.22);
}

[data-theme="dark"] .chat-panel {
  background: rgba(9, 21, 37, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(0, 229, 255, 0.14);
  box-shadow: 0 24px 64px rgba(0, 1, 8, 0.80), var(--glow-cyan);
}

/* ---------- Lang switch — active state neon ---------- */

[data-theme="dark"] .lang-switch {
  background: rgba(9, 21, 37, 0.64);
  border-color: rgba(0, 229, 255, 0.16);
}

[data-theme="dark"] .lang-switch button[aria-pressed="true"] {
  background: linear-gradient(90deg, var(--primary), var(--accent-cyan));
  box-shadow: 0 2px 12px rgba(0, 229, 255, 0.28);
}

/* ---------- Table ---------- */

[data-theme="dark"] .table-wrap {
  border-color: rgba(0, 229, 255, 0.10);
  background: rgba(9, 21, 37, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] th {
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent-cyan);
  border-bottom-color: rgba(0, 229, 255, 0.10);
}

[data-theme="dark"] td {
  border-bottom-color: rgba(26, 50, 96, 0.8);
}

/* ---------- Scrollbar styling for dark mode ---------- */

[data-theme="dark"] ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--surface-muted);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.24);
  border-radius: 999px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.42);
}

/* ---------- Focus rings — neon outline for accessibility ---------- */

[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

  /* ============================================================
     COMPLIANCE FOOTER STRIP
     Romanian legal requirements: CUI + ONRC J-number + GDPR notice
     Legea 365/2002 · OUG 34/2014 · GDPR
     ============================================================ */

  .footer-compliance {
    border-top: 1px solid var(--line);
    padding: 9px 0 10px;
    background: var(--footer-bg);
  }

  .compliance-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-size: 11px;
    color: var(--text-soft);
    opacity: 0.82;
  }

  .compliance-entity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .compliance-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    border-radius: 3px;
    vertical-align: middle;
    opacity: 0.85;
  }

  .compliance-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, currentColor 30%, transparent 70%);
    text-underline-offset: 2px;
  }

  .compliance-link:hover {
    color: var(--primary);
    text-decoration-color: var(--primary);
    opacity: 1;
  }

  .compliance-sep {
    color: var(--line);
    user-select: none;
    flex-shrink: 0;
  }

  [data-theme="dark"] .footer-compliance {
    border-top-color: rgba(0, 229, 255, 0.07);
  }

  [data-theme="dark"] .compliance-link:hover {
    color: var(--accent-cyan);
  }

  @media (max-width: 640px) {
    .compliance-sep--wide {
      display: none;
    }

    .compliance-row > span:last-child {
      width: 100%;
    }
  }
