:root {
  --fa-color-bg: #f5f7fb;
  --fa-color-surface: rgba(255, 255, 255, 0.92);
  --fa-color-surface-strong: #ffffff;
  --fa-color-text: #0f172a;
  --fa-color-muted: #4b5563;
  --fa-color-border: rgba(148, 163, 184, 0.24);
  --fa-color-primary: #2563eb;
  --fa-color-primary-strong: #1d4ed8;
  --fa-color-accent: #4f46e5;
  --fa-font-body: "Manrope", "Segoe UI", sans-serif;
  --fa-font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --fa-radius-md: 1rem;
  --fa-radius-lg: 1.5rem;
  --fa-radius-xl: 2rem;
  --fa-shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.08);
  --fa-shadow-md: 0 20px 48px rgba(15, 23, 42, 0.12);
  --fa-shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.16);
  --fa-shell-header-bg: rgba(255, 255, 255, 0.82);
  --fa-shell-footer-bg: #020617;
  --fa-shell-footer-text: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fa-font-body);
}

.fa-shell-container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.fa-shell-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  border-bottom: 1px solid var(--fa-color-border);
  background: var(--fa-shell-header-bg);
  backdrop-filter: blur(16px);
}

.fa-shell-header.is-compact {
  box-shadow: var(--fa-shadow-sm);
}

.fa-shell-header__row {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fa-shell-brand {
  display: inline-flex;
  align-items: center;
}

.fa-shell-brand__logo,
.fa-shell-footer__logo {
  width: auto;
  height: 56px;
  object-fit: contain;
}

.fa-shell-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.fa-shell-nav__link,
.fa-shell-mobile-menu__link {
  color: var(--fa-color-muted);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fa-shell-nav__link.is-active,
.fa-shell-mobile-menu__link.is-active,
.fa-shell-nav__link:hover,
.fa-shell-mobile-menu__link:hover {
  color: var(--fa-color-primary);
}

.fa-shell-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fa-shell-icon-button,
.fa-shell-lang-switch {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--fa-color-border);
  background: var(--fa-color-surface);
  color: var(--fa-color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
}

.fa-shell-theme-icon {
  width: 18px;
  height: 18px;
}

.fa-shell-theme-icon--light {
  display: none;
}

html.dark .fa-shell-theme-icon--light {
  display: block;
}

html.dark .fa-shell-theme-icon--dark {
  display: none;
}

.fa-shell-cta {
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid var(--fa-color-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
}

.fa-shell-cta--secondary {
  background: var(--fa-color-surface);
  color: var(--fa-color-text);
}

.fa-shell-cta--primary {
  background: var(--fa-color-primary);
  border-color: var(--fa-color-primary);
  color: #ffffff;
  box-shadow: var(--fa-shadow-sm);
}

.fa-shell-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--fa-color-border);
  background: var(--fa-color-surface);
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.fa-shell-mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.fa-shell-mobile-menu {
  display: none;
  border-top: 1px solid var(--fa-color-border);
  background: var(--fa-color-surface-strong);
  padding: 1rem;
}

.fa-shell-mobile-menu.is-open {
  display: block;
}

.fa-shell-mobile-menu__link {
  display: block;
  padding: 0.75rem 0;
}

.fa-shell-mobile-menu__actions {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--fa-color-border);
}

.fa-shell-mobile-menu__meta,
.fa-shell-mobile-menu__primary,
.fa-shell-mobile-menu__lang {
  text-decoration: none;
  font-weight: 800;
}

.fa-shell-mobile-menu__meta,
.fa-shell-mobile-menu__lang {
  color: var(--fa-color-muted);
}

.fa-shell-mobile-menu__primary {
  color: var(--fa-color-primary);
}

.fa-shell-footer {
  margin-top: 4rem;
  padding: 3.5rem 0 2rem;
  background: var(--fa-shell-footer-bg);
  color: var(--fa-shell-footer-text);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fa-shell-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
  gap: 2rem;
}

.fa-shell-footer__brand {
  display: grid;
  gap: 0.75rem;
}

.fa-shell-footer__brand strong,
.fa-shell-footer__column h4 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a5f3fc;
}

.fa-shell-footer__brand p,
.fa-shell-footer__column a,
.fa-shell-footer__links a {
  color: var(--fa-shell-footer-text);
  text-decoration: none;
}

.fa-shell-footer__column {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.fa-shell-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fa-shell-footer__status,
.fa-shell-footer__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fa-shell-footer__pill {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

html.dark .fa-shell-header,
html.dark .fa-shell-mobile-menu {
  background: rgba(2, 6, 23, 0.92);
}

html.dark .fa-shell-nav__link,
html.dark .fa-shell-mobile-menu__link,
html.dark .fa-shell-mobile-menu__meta,
html.dark .fa-shell-mobile-menu__lang {
  color: #cbd5e1;
}

html.dark .fa-shell-icon-button,
html.dark .fa-shell-lang-switch,
html.dark .fa-shell-mobile-toggle,
html.dark .fa-shell-cta--secondary {
  background: rgba(15, 23, 42, 0.8);
  color: #f8fafc;
}

@media (max-width: 992px) {
  .fa-shell-nav,
  .fa-shell-cta--secondary,
  .fa-shell-lang-switch {
    display: none;
  }

  .fa-shell-mobile-toggle {
    display: inline-flex;
  }

  .fa-shell-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .fa-shell-container {
    width: min(100% - 1.25rem, 1120px);
  }

  .fa-shell-brand__logo,
  .fa-shell-footer__logo {
    height: 44px;
  }

  .fa-shell-actions .fa-shell-cta--primary {
    display: none;
  }

  .fa-shell-footer__grid,
  .fa-shell-footer__bottom {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }
}
