:root {
  /* Brand surfaces */
  --color-bg: #ffffff;
  --color-bg-subtle: #f1f5f9;
  --color-bg-inverse: #0a1620;
  --color-bg-brand: #0f2030;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-overlay: rgba(10, 22, 32, 0.55);

  /* Text */
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-inverse: #f8fafc;
  --color-text-link: #0f766e;

  /* Borders & focus */
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-focus: #0f766e;
  --color-focus-ring: rgba(15, 118, 110, 0.35);

  /* Accent */
  --color-accent: #2dd4bf;
  --color-accent-strong: #0f766e;
  --color-accent-soft: rgba(45, 212, 191, 0.12);

  /* States */
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;
  --color-info: #0284c7;
  --color-info-bg: #f0f9ff;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 32, 48, 0.14);

  /* Aliases for existing templates */
  --fh-navy: var(--color-bg-brand);
  --fh-navy-deep: var(--color-bg-inverse);
  --fh-teal: var(--color-accent);
  --fh-teal-dark: var(--color-accent-strong);
  --fh-teal-soft: var(--color-accent-soft);
  --navy: var(--color-bg-brand);
  --teal: var(--color-accent);
  --teal-dark: var(--color-accent-strong);
  --text: var(--color-text);
  --muted: var(--color-text-muted);
  --border: var(--color-border);
  --surface: var(--color-surface);
  --surface-alt: var(--color-bg-subtle);

  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", Menlo, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.35rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: 2.25rem;
  --fs-hero: clamp(2rem, 5vw, 3.25rem);
  --lh-tight: 1.2;
  --lh-body: 1.65;
  --measure: 68ch;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --container: 1120px;
  --header-h: 64px;
  --transition: 160ms ease;
}

/* Compact footer v6.5.5 */
.site-footer .footer-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem 1.5rem;
  padding: 1.5rem 0 0.75rem;
}
.site-footer .footer-grid-compact h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  color: var(--teal, #00F5C8);
}
.site-footer .footer-grid-compact ul { list-style: none; margin: 0; padding: 0; }
.site-footer .footer-grid-compact li { margin: 0.3rem 0; }
.site-footer .footer-grid-compact a { font-size: 0.9rem; opacity: 0.9; }
.site-footer .footer-bottom { padding: 0.75rem 0 1rem; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 0.75rem; font-size: 0.85rem; }
.rounded-section, .page-hero, .product-hero-brand { border-radius: 0 0 1rem 1rem; }
.card, .auth-card, .table-wrap { border-radius: 0.75rem; }
.hero-slider, .home-hero { border-radius: 0 0 1.25rem 1.25rem; overflow: hidden; }
.hero-slider .slide { min-height: 320px; max-height: 420px; }
@media (max-width: 700px) {
  .hero-slider .slide { min-height: 260px; }
}

/* Knowledge graph */
.kg-canvas-wrap {
  background: linear-gradient(160deg, #0A1325 0%, #122038 50%, #0d1b2a 100%);
  border: 1px solid rgba(0, 245, 200, 0.25);
  border-radius: 0.75rem;
  padding: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 245, 200, 0.08);
}
#kg-canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 420px;
  border-radius: 0.5rem;
  cursor: grab;
  background: transparent;
}
.kg-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.page-hero-media .btn-ghost { color: #fff; }

/* Certificate */
.cert-sheet {
  position: relative;
  overflow: hidden;
}
.cert-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #00F5C8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #00F5C8;
  text-transform: uppercase;
  background: rgba(0, 245, 200, 0.08);
}
.cert-signature-block {
  text-align: right;
  margin-top: 2rem;
  padding-right: 0.5rem;
}
.cert-signature-block img {
  max-height: 64px;
  margin-left: auto;
  display: block;
}

/* ===== Fox Height brand system v6.8.1 ===== */
:root {
  --fh-navy: #0A1325;
  --fh-navy-2: #122038;
  --fh-teal: #00F5C8;
  --fh-teal-dim: rgba(0, 245, 200, 0.12);
  --fh-text: #e8eef8;
  --fh-muted: #9ab0c8;
  --fh-radius: 0.75rem;
  --fh-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.page-hero-media {
  position: relative;
  overflow: hidden;
}
.page-hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--fh-teal), transparent);
}

.brand-card {
  background: linear-gradient(165deg, rgba(18, 32, 56, 0.95), rgba(10, 19, 37, 0.98));
  border: 1px solid rgba(0, 245, 200, 0.15);
  border-radius: var(--fh-radius);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.brand-card:hover {
  border-color: rgba(0, 245, 200, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--fh-shadow);
}

.brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--fh-muted);
}
.brand-strip strong { color: var(--fh-teal); font-weight: 600; }

.registry-block h2 {
  color: var(--fh-teal);
  font-size: 1.15rem;
  margin-top: 1.75rem;
}
.prose img.brand-inline {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: var(--fh-radius);
  margin: 1.25rem 0;
  border: 1px solid rgba(0, 245, 200, 0.12);
}

.site-footer {
  background: var(--fh-navy) !important;
  border-top: 1px solid rgba(0, 245, 200, 0.2);
}
.site-header {
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 245, 200, 0.1);
}

/* Home slider full-bleed top */
.home-slider-top {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 420px;
  max-height: 560px;
  overflow: hidden;
  border-radius: 0;
}
.home-slider-top .hero-slides { position: relative; min-height: 420px; }
.home-slider-top .hero-slide {
  display: none;
  min-height: 420px;
  padding: 4rem 0 5rem;
  align-items: center;
}
.home-slider-top .hero-slide.is-active { display: flex; }
.home-slider-top .hero-slide-inner { width: 100%; }
.home-slider-top .hero-nav {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 2;
}
.home-slider-top .hero-dots { display: flex; gap: 0.4rem; }
.home-slider-top .hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.35); cursor: pointer;
}
.home-slider-top .hero-dots button.is-active { background: #00F5C8; }
@media (max-width: 700px) {
  .home-slider-top, .home-slider-top .hero-slide, .home-slider-top .hero-slides { min-height: 360px; }
}
