:root {
  --bg: #0f172a;
  --card: #ffffff;
  --card-muted: #f8fafc;
  --text: #0f172a;
  --text-soft: #52657f;
  --white: #ffffff;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --border: #e2e8f0;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.24);
  --surface: rgba(255, 255, 255, 0.96);
}

* { box-sizing: border-box; }
html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: #0b1220;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: transparent;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 4%, rgba(37, 99, 235, 0.38) 0, transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(14, 165, 233, 0.26) 0, transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(22, 163, 74, 0.16) 0, transparent 28%),
    linear-gradient(135deg, #0b1220 0%, #111827 46%, #0f172a 100%);
  background-repeat: no-repeat;
  background-size: cover;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }

.page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 52px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: #ffffff;
  font-weight: 800;
}

.brand-logo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.24);
}

.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand h1 { margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -0.4px; }
.brand p { margin: 3px 0 0; color: #cbd5e1; font-size: 14px; font-weight: 400; }

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.nav a {
  color: #eff6ff;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 26px rgba(2, 6, 23, 0.18);
  backdrop-filter: blur(12px);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(37, 99, 235, 0.96);
  border-color: rgba(191, 219, 254, 0.75);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.card,
.public-card,
.theme-card {
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 36%),
    rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.eyebrow,
.brand-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.button,
button[type='submit'],
.accept {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.button:hover,
button[type='submit']:hover,
.accept:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button:disabled,
.button[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.64;
  transform: none;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px;
  outline: none;
}

textarea { min-height: 140px; padding-top: 12px; resize: vertical; }
input:focus,
textarea:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin: 30px auto 0;
  color: #cbd5e1;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 10px;
}

.footer-nav a {
  color: #e2e8f0;
  font-weight: 800;
  text-decoration: none;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: #ffffff; text-decoration: underline; }
.footer-meta { color: #94a3b8; }

.legal-links {
  color: #cbd5e1;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}
.legal-links a { color: #bfdbfe; font-weight: 800; }
.legal-links a:hover { color: #ffffff; text-decoration: underline; }

@media (max-width: 860px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
}

@media (max-width: 620px) {
  .page { width: min(100% - 22px, 1160px); padding-top: 18px; }
  .brand-logo { width: 46px; height: 46px; flex-basis: 46px; }
  .nav a { padding: 9px 12px; font-size: 13px; }
}
