/*
Copyright 2026 by UHFS.
All rights reserved
*/
:root {
  --uhfs-bg: #f5f8fc;
  --uhfs-surface: #ffffff;
  --uhfs-surface-muted: #eef4fb;
  --uhfs-text: #1a2433;
  --uhfs-text-soft: #536173;
  --uhfs-border: rgba(19, 37, 63, 0.12);
  --uhfs-accent: #175cd3;
  --uhfs-accent-strong: #0f3f91;
  --uhfs-success-bg: #edf7ef;
  --uhfs-success-border: #8fd1a0;
  --uhfs-info-bg: #edf5ff;
  --uhfs-info-border: #8bb8ff;
  --uhfs-note-bg: #fff8e7;
  --uhfs-note-border: #f0c36d;
  --uhfs-warning-bg: #fff1f0;
  --uhfs-warning-border: #ff9b8f;
  --uhfs-shadow: 0 20px 50px rgba(11, 23, 40, 0.08);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --content-width: 1100px;
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--uhfs-text);
  background:
    radial-gradient(circle at top right, rgba(23, 92, 211, 0.10), transparent 32%),
    linear-gradient(180deg, #f9fbff 0%, var(--uhfs-bg) 100%);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--uhfs-accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--uhfs-accent-strong); }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 20px;
}

.hero-card {
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-xl);
  box-shadow: var(--uhfs-shadow);
  padding: 1rem;
}

.hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .35rem .35rem 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  padding: .55rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid var(--uhfs-border);
  box-shadow: 0 10px 30px rgba(11,23,40,.06);
  flex: 0 0 auto;
}

.brand-meta {
  min-width: 0;
}
.brand-company {
  display: inline-flex;
  align-items: center;
  padding: .2rem .7rem;
  border-radius: 999px;
  background: var(--uhfs-surface-muted);
  color: var(--uhfs-accent-strong);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: .35rem;
}
.brand-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.brand-subtitle {
  margin: .55rem 0 0;
  color: var(--uhfs-text-soft);
  max-width: 68ch;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(23,92,211,.08), rgba(23,92,211,.14));
  border: 1px solid rgba(23,92,211,.16);
  color: var(--uhfs-accent-strong);
  font-weight: 700;
}

.hero-badge::before {
  content: "";
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: currentColor;
  opacity: .75;
}

.content-card {
  background: var(--uhfs-surface);
  border: 1px solid var(--uhfs-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--uhfs-shadow);
  padding: clamp(1.25rem, 2vw, 2rem);
}

main {
  flex: 1 0 auto;
  padding-bottom: 2rem;
}

.content > :first-child { margin-top: 0; }
.content > :last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  color: #102038;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 1.4em 0 .6em;
}

h1 { font-size: clamp(1.8rem, 2.8vw, 2.6rem); }
h2 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(19, 37, 63, 0.08);
}
h3 { font-size: clamp(1.2rem, 1.5vw, 1.5rem); }
h4 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--uhfs-accent-strong); }

p {
  margin: 0 0 1rem;
  color: var(--uhfs-text);
  font-size: 1rem;
}

.lead {
  font-size: 1.12rem;
  color: var(--uhfs-text-soft);
}

ul, ol {
  margin: 0 0 1.2rem 1.25rem;
  padding: 0;
}
li + li { margin-top: .35rem; }
li::marker { color: var(--uhfs-accent); }

code, pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

pre {
  background: #0f1726;
  color: #e7eef8;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  overflow: auto;
  margin: 1rem 0 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0 1.35rem;
  border: 1px solid var(--uhfs-border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 640px;
}

thead th {
  background: #eff5fd;
  color: var(--uhfs-accent-strong);
  font-weight: 700;
  text-align: left;
}

th, td {
  padding: .95rem 1rem;
  border-bottom: 1px solid rgba(19, 37, 63, 0.08);
  vertical-align: top;
}

tbody tr:nth-child(even) { background: rgba(239,245,253,0.45); }
tbody tr:hover { background: rgba(23,92,211,0.05); }

.callout {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: .9rem;
  align-items: start;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1rem 1rem .95rem;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}

.callout-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: .15rem;
}
.callout h4 {
  margin: 0 0 .25rem;
  text-transform: none;
  letter-spacing: -0.01em;
  font-size: 1rem;
}
.callout p:last-child,
.callout ul:last-child { margin-bottom: 0; }

.callout-note {
  background: var(--uhfs-note-bg);
  border-color: var(--uhfs-note-border);
}
.callout-warning {
  background: var(--uhfs-warning-bg);
  border-color: var(--uhfs-warning-border);
}
.callout-info {
  background: var(--uhfs-info-bg);
  border-color: var(--uhfs-info-border);
}
.callout-success {
  background: var(--uhfs-success-bg);
  border-color: var(--uhfs-success-border);
}

.footer {
  padding: 0 0 2rem;
}
.footer-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--uhfs-border);
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(14px);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--uhfs-text-soft);
  font-size: .95rem;
}

.footer small { display: block; }
.footer strong { color: var(--uhfs-text); }

@media (max-width: 840px) {
  .hero-topbar,
  .footer-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge { white-space: normal; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 1rem), var(--content-width)); }
  .hero { padding-top: 12px; }
  .brand { align-items: flex-start; }
  .brand-logo { width: 56px; height: 56px; border-radius: 16px; }
  .content-card, .hero-card { border-radius: 20px; }
  .callout {
    grid-template-columns: 1fr;
    gap: .65rem;
  }
}

/* Landing page additions */
.brand {
  color: inherit;
  text-decoration: none;
}

.landing-hero-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem;
  border: 1px solid var(--uhfs-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 30px rgba(11, 23, 40, .05);
}

.language-switch a,
.language-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: .86rem;
  text-decoration: none;
}

.language-switch a {
  color: var(--uhfs-text-soft);
}

.language-switch a:hover {
  color: var(--uhfs-accent-strong);
  background: rgba(23, 92, 211, .08);
}

.language-current {
  color: #fff;
  background: var(--uhfs-accent);
}

.hero-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
  padding: clamp(1rem, 2.5vw, 2rem) .35rem .35rem;
}

.hero-copy {
  max-width: 780px;
}

.hero-copy h2 {
  border: 0;
  padding: 0;
  margin-top: .2rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -0.055em;
}

.hero-copy p:not(.eyebrow) {
  color: var(--uhfs-text-soft);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  max-width: 72ch;
}

.eyebrow {
  margin: 0 0 .55rem;
  color: var(--uhfs-accent-strong);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.45rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .8rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--uhfs-accent);
  box-shadow: 0 16px 34px rgba(23, 92, 211, .22);
}

.button-primary:hover {
  color: #fff;
  background: var(--uhfs-accent-strong);
}

.button-secondary {
  color: var(--uhfs-accent-strong);
  background: #fff;
  border-color: rgba(23, 92, 211, .22);
}

.button-secondary:hover {
  background: rgba(23, 92, 211, .08);
}

.access-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(1.1rem, 2vw, 1.5rem);
  border: 1px solid rgba(23, 92, 211, .18);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(237, 245, 255, .94), rgba(255, 255, 255, .88));
}

.access-panel-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .8rem;
  border-radius: 999px;
  color: #fff;
  background: var(--uhfs-accent);
  font-weight: 900;
  font-family: Georgia, serif;
}

.access-panel h3 {
  margin: 0 0 .55rem;
  color: #102038;
}

.access-panel p {
  color: var(--uhfs-text-soft);
}

.access-panel p:last-child {
  margin-bottom: 0;
}

.landing-content {
  margin-top: .25rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin-top: 0;
}

.documentation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(23, 92, 211, .18);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(23, 92, 211, .10), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.documentation-card:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 92, 211, .36);
  box-shadow: 0 18px 42px rgba(11, 23, 40, .10);
}

.documentation-card-badge {
  display: inline-flex;
  width: fit-content;
  padding: .25rem .7rem;
  border-radius: 999px;
  color: var(--uhfs-accent-strong);
  background: var(--uhfs-surface-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.documentation-card h3 {
  margin: .75rem 0 .45rem;
}

.documentation-card p {
  max-width: 78ch;
  color: var(--uhfs-text-soft);
}

.documentation-card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: var(--uhfs-accent);
  font-size: 1.5rem;
  line-height: 1;
}

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

  .language-switch {
    align-self: flex-end;
  }
}

@media (max-width: 640px) {
  .brand {
    gap: .75rem;
  }

  .hero-topbar {
    gap: .85rem;
  }

  .hero-body {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .documentation-card {
    grid-template-columns: 1fr;
  }

  .documentation-card-arrow {
    width: 2.65rem;
    height: 2.65rem;
  }
}
