
:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --fg: #0f172a;
  --fg-heading: #020617;
  --muted: #475569;
  --faint: #64748b;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(217, 119, 6, 0.4);
  --border-strong: rgba(217, 119, 6, 0.6);

  /* Gold & Amber Accent System */
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-dark: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.2);
  --accent-soft: rgba(217, 119, 6, 0.08);

  --header-bg: rgba(248, 250, 252, 0.85);

  /* Font Families */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Effects */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px -8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(217, 119, 6, 0.18);
}

/* Dynamic 6 Palette Color Themes (Light Mode Defaults & Dark Mode Overrides) */
[data-palette="gold"] {
  --accent: #d97706;
  --accent-light: #f59e0b;
  --accent-dark: #b45309;
  --accent-glow: rgba(217, 119, 6, 0.25);
  --accent-soft: rgba(217, 119, 6, 0.12);
  --border-hover: rgba(217, 119, 6, 0.4);
  --border-strong: rgba(217, 119, 6, 0.6);
  --shadow-glow: 0 0 40px rgba(217, 119, 6, 0.25);
}
[data-theme="dark"][data-palette="gold"],
[data-theme="dark"] {
  --accent: #f59e0b;
  --accent-light: #fde68a;
  --accent-dark: #b45309;
  --accent-glow: rgba(245, 158, 11, 0.25);
  --accent-soft: rgba(245, 158, 11, 0.12);
  --border-hover: rgba(245, 158, 11, 0.4);
  --border-strong: rgba(245, 158, 11, 0.6);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.25);
}

[data-palette="sapphire"] {
  --accent: #0284c7;
  --accent-light: #38bdf8;
  --accent-dark: #0369a1;
  --accent-glow: rgba(2, 132, 199, 0.25);
  --accent-soft: rgba(2, 132, 199, 0.12);
  --border-hover: rgba(2, 132, 199, 0.4);
  --border-strong: rgba(2, 132, 199, 0.6);
  --shadow-glow: 0 0 40px rgba(2, 132, 199, 0.25);
}
[data-theme="dark"][data-palette="sapphire"] {
  --accent: #38bdf8;
  --accent-light: #bae6fd;
  --accent-dark: #0284c7;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-soft: rgba(56, 189, 248, 0.12);
  --border-hover: rgba(56, 189, 248, 0.4);
  --border-strong: rgba(56, 189, 248, 0.6);
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.25);
}

[data-palette="jade"] {
  --accent: #0d9488;
  --accent-light: #2dd4bf;
  --accent-dark: #0f766e;
  --accent-glow: rgba(13, 148, 136, 0.25);
  --accent-soft: rgba(13, 148, 136, 0.12);
  --border-hover: rgba(13, 148, 136, 0.4);
  --border-strong: rgba(13, 148, 136, 0.6);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.25);
}
[data-theme="dark"][data-palette="jade"] {
  --accent: #2dd4bf;
  --accent-light: #99f6e4;
  --accent-dark: #0d9488;
  --accent-glow: rgba(45, 212, 191, 0.25);
  --accent-soft: rgba(45, 212, 191, 0.12);
  --border-hover: rgba(45, 212, 191, 0.4);
  --border-strong: rgba(45, 212, 191, 0.6);
  --shadow-glow: 0 0 40px rgba(45, 212, 191, 0.25);
}

[data-palette="iris"] {
  --accent: #4f46e5;
  --accent-light: #6366f1;
  --accent-dark: #3730a3;
  --accent-glow: rgba(79, 70, 229, 0.25);
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border-hover: rgba(79, 70, 229, 0.4);
  --border-strong: rgba(79, 70, 229, 0.6);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.25);
}
[data-theme="dark"][data-palette="iris"] {
  --accent: #818cf8;
  --accent-light: #c7d2fe;
  --accent-dark: #4f46e5;
  --accent-glow: rgba(129, 140, 248, 0.25);
  --accent-soft: rgba(129, 140, 248, 0.12);
  --border-hover: rgba(129, 140, 248, 0.4);
  --border-strong: rgba(129, 140, 248, 0.6);
  --shadow-glow: 0 0 40px rgba(129, 140, 248, 0.25);
}

[data-palette="copper"] {
  --accent: #ea580c;
  --accent-light: #fb923c;
  --accent-dark: #c2410c;
  --accent-glow: rgba(234, 88, 12, 0.25);
  --accent-soft: rgba(234, 88, 12, 0.12);
  --border-hover: rgba(234, 88, 12, 0.4);
  --border-strong: rgba(234, 88, 12, 0.6);
  --shadow-glow: 0 0 40px rgba(234, 88, 12, 0.25);
}
[data-theme="dark"][data-palette="copper"] {
  --accent: #fb923c;
  --accent-light: #ffedd5;
  --accent-dark: #ea580c;
  --accent-glow: rgba(251, 146, 60, 0.25);
  --accent-soft: rgba(251, 146, 60, 0.12);
  --border-hover: rgba(251, 146, 60, 0.4);
  --border-strong: rgba(251, 146, 60, 0.6);
  --shadow-glow: 0 0 40px rgba(251, 146, 60, 0.25);
}

[data-palette="platinum"] {
  --accent: #475569;
  --accent-light: #94a3b8;
  --accent-dark: #1e293b;
  --accent-glow: rgba(71, 85, 105, 0.25);
  --accent-soft: rgba(71, 85, 105, 0.12);
  --border-hover: rgba(71, 85, 105, 0.4);
  --border-strong: rgba(71, 85, 105, 0.6);
  --shadow-glow: 0 0 40px rgba(71, 85, 105, 0.25);
}

[data-theme="dark"][data-palette="platinum"] {
  --accent: #cbd5e1;
  --accent-light: #ffffff;
  --accent-dark: #64748b;
  --accent-glow: rgba(203, 213, 225, 0.25);
  --accent-soft: rgba(203, 213, 225, 0.12);
  --border-hover: rgba(203, 213, 225, 0.4);
  --border-strong: rgba(203, 213, 225, 0.6);
  --shadow-glow: 0 0 40px rgba(203, 213, 225, 0.25);
}


/* Dark Theme Base Overrides */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070913;
  --bg-subtle: #0d1222;
  --bg-card: rgba(15, 22, 41, 0.75);
  --bg-card-hover: rgba(23, 33, 61, 0.85);
  --fg: #f8fafc;
  --fg-heading: #ffffff;
  --muted: #94a3b8;
  --faint: #64748b;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(245, 158, 11, 0.4);
  --border-strong: rgba(245, 158, 11, 0.6);

  --header-bg: rgba(7, 9, 19, 0.75);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px -8px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 60px -12px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 40px rgba(245, 158, 11, 0.25);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dynamic Ambient Glow Backgrounds */
body::before {
  content: "";
  position: fixed;
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(245, 158, 11, 0) 70%);
  pointer-events: none;
  z-index: -2;
  filter: blur(60px);
  animation: pulse-glow 12s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  bottom: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  max-width: 600px;
  max-height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -2;
  filter: blur(80px);
}

@keyframes pulse-glow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
  100% { transform: scale(1.15) translate(-30px, 40px); opacity: 1; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Container Structure */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
}

.brand-svg-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
  filter: drop-shadow(0 4px 10px var(--accent-glow));
  transition: transform 0.3s ease;
}

.logo-lockup:hover .brand-svg-icon {
  transform: scale(1.08) rotate(2deg);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--fg-heading);
  letter-spacing: -0.015em;
}

.logo-hq {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-glow);
  font-weight: 500;
  text-transform: uppercase;
  margin-left: 0.35rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-link:hover {
  color: var(--fg-heading);
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--fg);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* Hero Section */
.hero-section {
  padding: 5rem 0 3.5rem;
  position: relative;
  text-align: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--fg-heading);
  letter-spacing: -0.03em;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

.hero-title .accent-gradient {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

/* Palette Switcher Bar Styles */
.palette-switcher-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 auto 1rem;
  flex-wrap: wrap;
}

.palette-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.4rem 0.8rem;
  border-radius: 99px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
}

.palette-btn:hover {
  border-color: var(--border-hover);
  color: var(--fg-heading);
}

.palette-btn.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
}

.palette-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* Emblem Switcher Toolbar */
.emblem-switcher-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  max-width: 580px;
  margin: 0 auto 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}

.emblem-option-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.22, 0.68, 0.24, 1);
}

.emblem-option-btn:hover {
  color: var(--fg-heading);
  background: rgba(255, 255, 255, 0.05);
}

.emblem-option-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-glow);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.emblem-btn-icon {
  font-size: 1rem;
}

/* Live Emblem Preview Box */
.hero-emblem-container {
  width: 140px;
  height: 140px;
  margin: 0 auto 2.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(16px);
  transition: all 0.4s ease;
}

.hero-emblem-container::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 38px;
  background: linear-gradient(135deg, var(--accent-light), transparent 50%, var(--accent));
  z-index: -1;
  opacity: 0.5;
}

.hero-emblem-svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 6px 14px var(--accent-glow));
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Products Section */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 600;
  color: var(--fg-heading);
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  max-width: 600px;
  margin: 0.75rem auto 0;
  font-size: 1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.25rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.22, 0.68, 0.24, 1);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  background: var(--bg-card-hover);
}

.product-card:hover::before {
  opacity: 1;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-app-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.product-title-area {
  flex: 1;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--fg-heading);
  line-height: 1.2;
}

.product-tagline {
  font-size: 0.825rem;
  font-family: var(--font-mono);
  color: var(--accent);
  margin-top: 0.2rem;
}

.product-description {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex: 1;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.feature-pill {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--fg);
  font-weight: 500;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.card-cta:hover {
  background: var(--accent);
  color: #070913;
}

.card-cta .arrow {
  transition: transform 0.3s ease;
}

.card-cta:hover .arrow {
  transform: translateX(4px);
}

/* Institutional Compliance & Governance Section */
.compliance-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  margin-bottom: 5rem;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.compliance-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.compliance-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.25rem;
}

.compliance-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-heading);
}

.compliance-text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer Section */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand-col {
  max-width: 320px;
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--fg-heading);
  margin-bottom: 0.5rem;
}

.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links-col {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.footer-link-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-group-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.footer-item-link {
  font-size: 0.875rem;
  color: var(--muted);
}

.footer-item-link:hover {
  color: var(--fg-heading);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
  color: var(--faint);
}

/* Document Pages (Privacy, Terms, 404) */
.doc-main {
  padding: 4rem 0 6rem;
  max-width: 52rem;
  margin: 0 auto;
}

.doc-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 2rem;
}

.doc-back-link:hover {
  transform: translateX(-4px);
}

.doc-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  color: var(--fg-heading);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.doc-callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
  color: var(--fg);
}

.doc-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
  list-style-type: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem 1.5rem;
}

.doc-toc a {
  font-size: 0.9rem;
  color: var(--muted);
}

.doc-toc a:hover {
  color: var(--accent);
}

.doc-content h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--fg-heading);
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.doc-content h3 {
  font-size: 1.25rem;
  color: var(--fg-heading);
  margin: 1.75rem 0 0.75rem;
}

.doc-content p, .doc-content li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.doc-content ul, .doc-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.doc-content dl {
  margin-bottom: 1.75rem;
}

.doc-content dt {
  font-weight: 700;
  color: var(--fg-heading);
  margin-top: 1rem;
  font-size: 1.05rem;
}

.doc-content dd {
  color: var(--muted);
  margin-left: 0;
  margin-bottom: 1rem;
}

/* Animations & Entrance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeInUp 0.7s cubic-bezier(0.22, 0.68, 0.24, 1) forwards;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 2rem;
  }
  
  .emblem-switcher-bar {
    flex-direction: column;
    width: 100%;
  }

  .emblem-option-btn {
    width: 100%;
  }

  .nav-links {
    display: none; /* Mobile menu support */
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links-col {
    gap: 2rem;
  }
}

/* 404 -------------------------------------------------------------------- */
/* These live here rather than inline on 404.html: the CSP is `style-src
   'self'`, which blocks both a <style> block and every style="" attribute.
   Inline, the canvas loses its fixed positioning and lays out at its
   attribute size — a viewport-sized block that shoves the header down. */

#fx {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  #fx {
    display: none;
  }
}

.notfound-wrapper {
  position: relative;
  z-index: 1;
}

.notfound-main {
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.notfound-title {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
}

.notfound-text {
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.notfound-cta {
  width: auto;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.85rem 2rem;
}

/* Also CSP-driven: these replace style="" attributes that never applied. */
.footer-links-inline {
  display: flex;
  gap: 1.5rem;
}

.hero-description-spaced {
  margin-top: 1.5rem;
}
