@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@1,700&display=swap');

:root {
  --ci-shell-bg: #0a0a0f;
  --ci-shell-surface: #12121a;
  --ci-shell-text: #ffffff;
  --ci-shell-muted: rgba(255, 255, 255, 0.58);
  --ci-shell-subtle: rgba(255, 255, 255, 0.38);
  --ci-shell-border: rgba(255, 255, 255, 0.1);
  --ci-shell-accent: #5fa8ff;
  --ci-shell-header-height: 72px;
  --ci-shell-container: 1200px;
  --ci-shell-font-body: 'Inter', system-ui, sans-serif;
  --ci-shell-font-display: 'Playfair Display', Georgia, serif;
}

ci-global-header,
ci-global-footer {
  display: block;
  color: var(--ci-shell-text);
  font-family: var(--ci-shell-font-body);
  line-height: 1.5;
}

ci-global-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  min-height: var(--ci-shell-header-height);
  background: var(--ci-shell-bg);
}

ci-global-footer {
  background: var(--ci-shell-bg);
}

ci-global-header *,
ci-global-header *::before,
ci-global-header *::after,
ci-global-footer *,
ci-global-footer *::before,
ci-global-footer *::after {
  box-sizing: border-box;
}

.ci-shell-container {
  width: min(100%, var(--ci-shell-container));
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.ci-shell-header {
  min-height: var(--ci-shell-header-height);
  border-bottom: 1px solid var(--ci-shell-border);
  background: rgba(10, 10, 15, 0.96);
}

.ci-shell-header__inner {
  display: flex;
  min-height: var(--ci-shell-header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.ci-shell-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin: 0;
  color: var(--ci-shell-text);
  font-family: var(--ci-shell-font-display);
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.ci-shell-brand em {
  color: var(--ci-shell-muted);
  font-size: 18px;
  font-style: italic;
}

.ci-shell-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ci-shell-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.ci-shell-nav a::after {
  position: absolute;
  right: 0;
  bottom: 6px;
  left: 0;
  height: 1px;
  background: var(--ci-shell-accent);
  content: '';
  opacity: 0;
  transform: scaleX(0.5);
  transition: opacity 180ms ease, transform 180ms ease;
}

.ci-shell-nav a:hover,
.ci-shell-nav a:focus-visible,
.ci-shell-nav a.is-active {
  color: var(--ci-shell-text);
}

.ci-shell-nav a:hover::after,
.ci-shell-nav a:focus-visible::after,
.ci-shell-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.ci-shell-nav a:focus-visible,
.ci-shell-menu-button:focus-visible,
.ci-shell-footer a:focus-visible,
.ci-shell-brand:focus-visible {
  border-radius: 4px;
  outline: 2px solid var(--ci-shell-accent);
  outline-offset: 4px;
}

.ci-shell-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--ci-shell-text);
  cursor: pointer;
}

.ci-shell-menu-button > span[aria-hidden='true'] {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: opacity 180ms ease, transform 180ms ease;
}

.ci-shell-menu-button.is-open > span[aria-hidden='true']:nth-of-type(2) {
  transform: translateY(7px) rotate(45deg);
}

.ci-shell-menu-button.is-open > span[aria-hidden='true']:nth-of-type(3) {
  opacity: 0;
}

.ci-shell-menu-button.is-open > span[aria-hidden='true']:nth-of-type(4) {
  transform: translateY(-7px) rotate(-45deg);
}

.ci-shell-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ci-shell-footer {
  padding-block: clamp(52px, 8vw, 88px) 28px;
  border-top: 1px solid var(--ci-shell-border);
  background: var(--ci-shell-bg);
}

.ci-shell-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: clamp(40px, 6vw, 64px);
}

.ci-shell-footer__brand .ci-shell-brand {
  margin-bottom: 16px;
}

.ci-shell-footer__tagline,
.ci-shell-footer__support,
.ci-shell-footer__bottom p {
  margin: 0;
}

.ci-shell-footer__tagline {
  color: var(--ci-shell-muted);
  font-size: 15px;
}

.ci-shell-footer__support {
  margin-top: 6px;
  color: var(--ci-shell-subtle);
  font-size: 13px;
}

.ci-shell-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 34px;
}

.ci-shell-footer__nav a,
.ci-shell-footer__bottom a {
  color: var(--ci-shell-muted);
  text-decoration: none;
  transition: color 180ms ease;
}

.ci-shell-footer__nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}

.ci-shell-footer__nav a:hover,
.ci-shell-footer__bottom a:hover {
  color: var(--ci-shell-text);
}

.ci-shell-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-top: 28px;
  border-top: 1px solid var(--ci-shell-border);
}

.ci-shell-footer__bottom p {
  color: var(--ci-shell-subtle);
  font-size: 13px;
}

body.ci-page-home .hero {
  padding-top: var(--space-xl);
}

body.ci-page-dashboard {
  min-width: 320px;
  overflow-x: hidden;
  overflow-y: auto;
}

body.ci-page-dashboard #root {
  min-height: calc(100vh - var(--ci-shell-header-height));
  min-height: calc(100dvh - var(--ci-shell-header-height));
}

body.ci-page-dashboard #root > div > header {
  top: var(--ci-shell-header-height);
}

body.ci-page-dashboard #root > div > div.fixed {
  top: calc(var(--ci-shell-header-height) + 57px);
}

@media (min-width: 1024px) {
  body.ci-page-dashboard ci-global-header {
    position: relative;
  }
}

body.ci-shell-menu-open {
  overflow: hidden !important;
}

@media (max-width: 820px) {
  .ci-shell-menu-button {
    position: relative;
    z-index: 2;
    display: flex;
  }

  .ci-shell-nav {
    position: fixed;
    top: var(--ci-shell-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: grid;
    padding: 38px 24px;
    background: var(--ci-shell-bg);
    clip-path: inset(0 0 0 100%);
    opacity: 0;
    overflow-y: auto;
    pointer-events: none;
    transition: clip-path 240ms ease, opacity 240ms ease;
  }

  .ci-shell-nav.is-open {
    clip-path: inset(0);
    opacity: 1;
    pointer-events: auto;
  }

  .ci-shell-nav ul {
    width: min(100%, 520px);
    align-self: center;
    justify-self: center;
    flex-direction: column;
    gap: 0;
  }

  .ci-shell-nav li {
    width: 100%;
    border-bottom: 1px solid var(--ci-shell-border);
  }

  .ci-shell-nav a {
    width: 100%;
    min-height: 72px;
    justify-content: center;
    font-family: var(--ci-shell-font-display);
    font-size: 24px;
  }

  .ci-shell-nav a::after {
    display: none;
  }

  .ci-shell-footer__top {
    flex-direction: column;
  }

  .ci-shell-footer__nav {
    justify-content: flex-start;
  }
}

@media (max-width: 600px) {
  .ci-shell-container {
    padding-inline: 20px;
  }

  .ci-shell-brand {
    font-size: 19px;
  }

  .ci-shell-brand em {
    font-size: 16px;
  }

  .ci-shell-footer__top {
    gap: 32px;
  }

  .ci-shell-footer__nav {
    display: grid;
    gap: 2px;
  }

  .ci-shell-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  body.ci-page-home .hero {
    padding-top: var(--space-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ci-shell-nav,
  .ci-shell-nav a::after,
  .ci-shell-menu-button > span[aria-hidden='true'] {
    transition: none;
  }
}
