:root {
  color-scheme: only light;
  --bg-deep: #0b1324;
  --bg-deeper: #07101f;
  --panel: rgba(11, 19, 36, 0.65);
  --panel2: rgba(11, 19, 36, 0.85);
  --panel-strong: rgba(11, 19, 36, 0.85);
  --stroke: rgba(143, 233, 255, 0.2);
  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-strong: rgba(255, 255, 255, 0.55);
  --good: #1ccf9a;
  --warn: #ff9f43;
  --bad: #ff6c6c;
  --accent: #8fe9ff;
  --accent-strong: #1aa0ff;
  --shadow: 0 20px 50px rgba(5, 10, 20, 0.45);
  --radius: 18px;
  --radius2: 14px;
  --radius-strong: 20px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Sora", "Segoe UI", Arial, sans-serif;
  --display: "Chakra Petch", "Sora", sans-serif;
}

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

/* Canvas mist positioning */
canvas#mist, canvas#snow {
  display: block;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

#auditorBanner:empty {
  display: none;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 20% 10%, rgba(143, 233, 255, 0.18), transparent 60%),
    radial-gradient(1000px 600px at 80% 20%, rgba(79, 179, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-deeper) 70%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 80% 80%, rgba(95, 212, 255, 0.12), transparent 50%);
  pointer-events: none;
  z-index: -1;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes glowSweep {
  from { opacity: 0; transform: translateX(-8%); }
  to { opacity: 1; transform: translateX(0); }
}

a {
  color: inherit;
}

.nav {
  background: rgba(7, 12, 22, 0.7);
  border-bottom: 1px solid rgba(143, 233, 255, 0.18);
  backdrop-filter: blur(12px);
  animation: pageFadeIn 0.6s ease both;
}

.brand,
.nav-links a {
  color: white;
  font-family: var(--display);
  letter-spacing: 1px;
}

.nav-links a {
  opacity: 0.7;
}

.nav-links a:hover {
  opacity: 1;
}

.page-hero {
  background: transparent;
  padding: 64px 0 32px;
  animation: riseIn 0.7s ease both;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 32px;
  align-items: center;
}

.hero-logo {
  width: 220px;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 42px;
  font-family: var(--display);
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: white;
}

.page-hero p {
  color: var(--muted);
  max-width: 520px;
}

.badge {
  border: 1px solid rgba(143, 233, 255, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(143, 233, 255, 0.85);
  background: rgba(7, 12, 22, 0.6);
}

.hero-card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-strong);
  padding: 24px;
  box-shadow: 0 25px 60px rgba(5, 10, 20, 0.5);
  animation: riseIn 0.7s ease both;
  animation-delay: 0.05s;
}

.hero-card h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  letter-spacing: 1px;
  color: rgba(143, 233, 255, 0.9);
}

.hero-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: glowSweep 0.7s ease both;
}

.btn,
.button {
  border-radius: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  transition: all 0.2s ease;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
  text-align: center;
}

.btn,
.button.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0c1222;
  box-shadow: 0 16px 30px rgba(26, 160, 255, 0.35);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(143, 233, 255, 0.5), rgba(26, 160, 255, 0.6));
  border: 1px solid rgba(143, 233, 255, 0.4);
  color: #0c1222;
}

.btn:hover,
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.button.secondary,
.btn.button.secondary,
.btn.btn-secondary {
  background: rgba(143, 233, 255, 0.12);
  color: white;
  border: 1px solid rgba(143, 233, 255, 0.3);
  box-shadow: none;
}

.section {
  padding: 24px 0;
  animation: riseIn 0.7s ease both;
}

.card {
  background: rgba(8, 14, 26, 0.75);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(143, 233, 255, 0.2);
  box-shadow: 0 20px 40px rgba(4, 8, 18, 0.4);
  color: white;
  animation: riseIn 0.6s ease both;
}

.card:nth-of-type(2) { animation-delay: 0.04s; }
.card:nth-of-type(3) { animation-delay: 0.08s; }
.card:nth-of-type(4) { animation-delay: 0.12s; }
.card:nth-of-type(5) { animation-delay: 0.16s; }

.card h2,
.card h3 {
  color: rgba(143, 233, 255, 0.9);
  font-family: var(--display);
  letter-spacing: 1px;
}

.muted {
  color: var(--muted);
}

.label {
  color: rgba(255, 255, 255, 0.7);
}

.input {
  background: rgba(6, 12, 24, 0.6);
  border: 1px solid rgba(143, 233, 255, 0.2);
  color: white;
  border-radius: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.table-wrap {
  background: rgba(6, 12, 24, 0.55);
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(143, 233, 255, 0.15);
  overflow-x: auto;
}

.table th,
.table td {
  border-bottom: 1px solid rgba(143, 233, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

.table th {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer {
  margin-top: 40px;
  background: rgba(7, 12, 22, 0.6);
  border-top: 1px solid rgba(143, 233, 255, 0.15);
  animation: pageFadeIn 0.7s ease both;
}

.footer p,
.footer strong {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .btn,
  .button {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
