/* Palette aligned with Nox/UI/Theme/ThemeManager.swift — NoxTheme.Colors */
:root {
  --nox-primary: rgb(0, 190, 220); /* Cyan */
  --nox-primary-soft: rgba(0, 190, 220, 0.12);
  --nox-secondary: rgb(160, 80, 240); /* Purple */
  --nox-secondary-soft: rgba(160, 80, 240, 0.14);
  --nox-accent: rgb(0, 210, 150); /* Mint */
  --nox-accent-soft: rgba(0, 210, 150, 0.10);

  --bg-top: #ffffff;
  --bg-bottom: #edf0f5;
  --surface: #ffffff;
  --surface-elevated: #f8fafc;
  --text: #111827;
  --muted: rgba(75, 85, 99, 0.85);
  --border: rgba(0, 190, 220, 0.12);
  --card-shadow: 0 4px 24px rgba(0, 190, 220, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --radius-card: 22px;
  --radius-pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #000000;
    --bg-bottom: #121214;
    --surface: rgba(30, 30, 32, 0.85);
    --surface-elevated: #202023;
    --text: #f3f4f6;
    --muted: rgba(209, 213, 219, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Rounded",
    "SF Pro Text",
    system-ui,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--text);
  line-height: 1.65;
  position: relative;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
}

/* Prismatic ambient orbs reflecting Nox's neon layout */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

body::before {
  width: 320px;
  height: 320px;
  background: var(--nox-primary);
  opacity: 0.12;
  top: -100px;
  right: -50px;
}

body::after {
  width: 260px;
  height: 260px;
  background: var(--nox-secondary);
  opacity: 0.14;
  bottom: -60px;
  left: -60px;
}

@media (prefers-color-scheme: dark) {
  body::before {
    opacity: 0.18;
  }
  body::after {
    opacity: 0.16;
  }
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

a {
  color: var(--nox-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--nox-secondary);
  text-decoration: underline;
}

header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--nox-primary) 0%, var(--nox-secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  filter: brightness(1.1);
}

h1 {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
  color: var(--text);
}

.meta {
  font-size: 0.875rem;
  color: var(--muted);
}

h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2.2rem 0 0.75rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1.1rem;
  color: var(--muted);
}

p strong {
  color: var(--text);
}

ul {
  margin: 0 0 1.1rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

li {
  margin-bottom: 0.4rem;
}

.lang-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.lang-bar a {
  font-size: 0.8125rem;
  font-weight: 650;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    135deg,
    var(--nox-primary-soft) 0%,
    var(--nox-secondary-soft) 100%
  );
  border: 1px solid var(--border);
  color: var(--nox-primary);
  transition: all 0.2s ease;
}

.lang-bar a:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 190, 220, 0.22) 0%,
    rgba(160, 80, 240, 0.20) 100%
  );
  text-decoration: none;
  color: var(--nox-secondary);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .lang-bar a {
    color: rgb(130, 220, 255);
  }
  .lang-bar a:hover {
    color: rgb(210, 170, 255);
  }
}

.index-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.2rem;
  margin-top: 2rem;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease;
}

.index-card h2 {
  margin-top: 0;
  color: var(--text);
}

.lang-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.lang-list li {
  margin-bottom: 0.85rem;
}

.lang-list a {
  font-weight: 700;
  color: var(--nox-primary);
  font-size: 1.05rem;
}

.lang-list a:hover {
  color: var(--nox-secondary);
}

footer {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

footer a {
  font-weight: 600;
}
