@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* Icon glyphs only. Text typography is owned by Inter below. */
@font-face {
  font-display: swap;
  font-family: "Galerie";
  font-style: normal;
  font-weight: normal;
  src: url("../fonts/galerie/Galerie.woff2") format("woff2"),
    url("../fonts/galerie/Galerie.woff") format("woff");
}

:root,
[theme-mode="dark"] {
  --font-family: "Inter", sans-serif !important;
  --font-heading: "Inter", sans-serif !important;
  --foreground: #fff !important;
  --background: #000 !important;
  --header-background: rgba(235, 235, 235, 0.76) !important;
  --gradient-card-background: rgba(255, 255, 255, 0.02) !important;
  --light-background: rgba(255, 255, 255, 0.07) !important;
  --light-secondary-background: rgba(255, 255, 255, 0.04) !important;
  --dark-background: #000 !important;
  --color-on-dark: #fff !important;
  --accent-color: #fff !important;
  --border: rgba(255, 255, 255, 0.16) !important;
  --border-on-dark: rgba(255, 255, 255, 0.16) !important;
  --light-text: rgba(255, 255, 255, 0.7) !important;
}

html,
body {
  background: #000 !important;
  color: #fff !important;
}

body {
  font-family: "Inter", sans-serif !important;
  position: relative;
}

body::before {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.055) 44%, transparent 78%),
    linear-gradient(104deg, transparent 0%, rgba(255, 255, 255, 0.11) 13%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 255, 255, 0.025) 58%, transparent 100%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04) 28%, transparent 48%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #010101 0%, #050505 42%, #0a0a0a 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

body:has(.af-ghost-wall)::before {
  display: none;
}

.g-load-transition__container,
#dynamic-navbar-root,
#dynamic-footer-root {
  position: relative;
  z-index: 1;
}

#dynamic-navbar-root {
  z-index: 20;
}

button,
input,
select,
textarea {
  font-family: "Inter", sans-serif !important;
}

body,
body :not([class^="icon-"]):not([class*=" icon-"]):not(i) {
  font-family: "Inter", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.g-core-header__title,
.g-post-header__title,
.g-home-slide__title,
.core-title-overlay .g-core-header__title {
  color: #fff !important;
  font-family: "Inter", sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
}

.g-main-container,
.g-core-content,
.g-post-content,
.g-core-grid,
.g-post-grid,
.g-post-grid__container,
.g-core-grid__container,
.g-newsletter,
footer.g-footer {
  background: transparent !important;
  color: #fff !important;
}

.g-core-header,
.g-post-header,
.g-home-slide,
.g-home-slider {
  background-color: transparent !important;
  color: #fff !important;
}

.g-core-header__main,
.g-post-header__main,
.g-post-header__metas,
.g-post-header__primary-tag,
.g-post-header__authors,
.g-post-header__author__name,
.g-post-header__time__item,
.g-post-header__tags,
.g-post-card,
.g-core-card,
.g-search-result,
.g-search-recent {
  color: #fff !important;
}

.g-core-content p,
.g-core-content li,
.g-core-content ol,
.g-core-content ul,
.g-post-content p,
.g-post-content li,
.g-post-content ol,
.g-post-content ul,
.g-core-header__excerpt,
.g-post-header__excerpt,
.g-newsletter__text,
.g-post-card__excerpt,
.g-core-card__excerpt,
.g-post-card__tag,
.g-core-card__tag,
.g-post-card__meta,
.g-core-card__meta,
.g-footer-copyright {
  color: rgba(255, 255, 255, 0.78) !important;
  font-family: "Inter", sans-serif !important;
}

.g-core-content strong,
.g-post-content strong,
.g-newsletter__title,
.g-post-card__title,
.g-core-card__title,
.g-search-result__title,
.g-search-recent__title {
  color: #fff !important;
}

.g-core-content a:not(.g-button),
.g-post-content a:not(.g-button),
.g-footer a,
.g-post-card a,
.g-core-card a,
.g-search-result a,
.g-search-recent a,
.g-menu-navigation a {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.65);
  text-underline-offset: 0.16em;
}

.g-core-content blockquote,
.g-post-content blockquote {
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  font-family: "Inter", sans-serif !important;
}

.g-core-content .kg-bookmark-container,
.g-core-content .kg-toggle-card,
.g-core-content .kg-product-card-container,
.g-post-content .kg-bookmark-container,
.g-post-content .kg-toggle-card,
.g-post-content .kg-product-card-container,
.g-post-card.no-image,
.g-post-card.in-related-post.no-image,
.g-post-card,
.g-core-card,
.g-search-tag,
.g-auth-form,
.g-member-plan,
.g-account-box {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

a.g-button,
button.g-button,
.button,
.btn,
.g-button,
.g-core-content .kg-btn,
.g-post-content .kg-btn,
.kg-btn,
.g-core-content .kg-header-card-button,
.g-post-content .kg-header-card-button,
.kg-header-card-button,
.g-core-content .kg-product-card-button,
.g-post-content .kg-product-card-button,
.kg-product-card-button,
.af-consulting-button,
.core-title-overlay__cta,
.main-menu-cta a,
.g-auth-form button,
.g-member-plan button,
.af-download-form .g-button,
input[type="submit"] {
  background: #fff !important;
  border: 1px solid #fff !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #000 !important;
  font-family: "Inter", sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  line-height: 1.2 !important;
  padding: 0.9rem 1.4rem !important;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease !important;
}

a.g-button:hover,
button.g-button:hover,
.button:hover,
.btn:hover,
.g-button:hover,
.g-core-content .kg-btn:hover,
.g-post-content .kg-btn:hover,
.kg-btn:hover,
.g-core-content .kg-header-card-button:hover,
.g-post-content .kg-header-card-button:hover,
.kg-header-card-button:hover,
.g-core-content .kg-product-card-button:hover,
.g-post-content .kg-product-card-button:hover,
.kg-product-card-button:hover,
.af-consulting-button:hover,
.af-consulting-button:focus-visible,
.core-title-overlay__cta:hover,
.main-menu-cta a:hover,
.g-auth-form button:hover,
.g-member-plan button:hover,
.af-download-form .g-button:hover,
input[type="submit"]:hover {
  background: transparent !important;
  border-color: #fff !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
}

.company-careers-tabs__list {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.3rem !important;
  justify-content: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
}

.company-careers-tabs__list::-webkit-scrollbar {
  display: none !important;
}

.g-core-content button.company-careers-tabs__tab,
.g-core-content button.company-careers-tabs__tab:hover,
.g-core-content button.company-careers-tabs__tab:focus-visible,
button.company-careers-tabs__tab,
button.company-careers-tabs__tab:hover,
button.company-careers-tabs__tab:focus-visible {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  flex: 1 1 0 !important;
  min-width: max-content !important;
  padding: 0.42rem 0.68rem !important;
  text-transform: uppercase !important;
  transform: none !important;
  white-space: nowrap !important;
}

.g-core-content button.company-careers-tabs__tab,
button.company-careers-tabs__tab {
  opacity: 0.72 !important;
}

.g-core-content button.company-careers-tabs__tab[aria-selected="true"],
button.company-careers-tabs__tab[aria-selected="true"] {
  opacity: 1 !important;
}

.company-careers-tabs__indicator {
  background: #fff !important;
}

body .af-code-hero__langs {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22) !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 0.3rem !important;
  justify-content: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scrollbar-width: none !important;
  white-space: nowrap !important;
}

body .af-code-hero__langs::-webkit-scrollbar {
  display: none !important;
}

.g-core-content button.af-code-hero__lang-btn,
.g-core-content button.af-code-hero__lang-btn:hover,
.g-core-content button.af-code-hero__lang-btn:focus-visible,
button.af-code-hero__lang-btn,
button.af-code-hero__lang-btn:hover,
button.af-code-hero__lang-btn:focus-visible {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #fff !important;
  flex: 1 1 0 !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em !important;
  min-width: max-content !important;
  opacity: 0.72 !important;
  padding: 0.42rem 0.68rem !important;
  text-transform: uppercase !important;
  transform: none !important;
  white-space: nowrap !important;
}

.g-core-content button.af-code-hero__lang-btn[aria-selected="true"],
button.af-code-hero__lang-btn[aria-selected="true"] {
  opacity: 1 !important;
}

.af-code-hero__indicator {
  background: #fff !important;
}

body .g-core-content button#af-gpt2-hero-playback {
  background: #05070c !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: #fff !important;
  gap: 0.38rem !important;
  padding: 0.42rem 0.72rem !important;
  font-size: 0.76rem !important;
  min-height: 0 !important;
}

body .g-core-content button#af-gpt2-hero-playback:hover {
  background: #0b0f18 !important;
  color: #fff !important;
}

body .g-core-content button#af-gpt2-hero-playback .af-code-hero__playback-pause,
body .g-core-content button#af-gpt2-hero-playback .af-code-hero__playback-play {
  font-size: 0.95em !important;
}

body .af-code-hero,
body .af-code-hero__stage,
body .af-code-hero__pre,
body .af-code-hero__pre code,
body .af-code-hero__pre .highlight,
body .af-code-hero__pre pre,
body .af-code {
  background: #05070c !important;
  color: #eaf2ff !important;
}

body .af-code-hero__pre,
body .af-code-hero__pre code,
body .af-code-hero__pre pre,
body .af-code,
body .g-core-content .af-code-hero__pre code.af-code,
body .g-core-content .af-code-hero__pre code.af-code * {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
}

body .af-code-hero__stage,
body .af-code-hero__pre {
  border-color: rgba(255, 255, 255, 0.16) !important;
}

body .af-code .tok-c1,
body .af-code .tok-cp {
  color: #9aa9bd !important;
  font-style: italic;
}

body .af-code .tok-cpf {
  color: #f4b8ff !important;
}

body .af-code .tok-k {
  color: #ffcc66 !important;
  font-weight: 700;
}

body .af-code .tok-kt {
  color: #6ee7ff !important;
}

body .af-code .tok-nf {
  color: #b8f06a !important;
}

body .af-code .tok-s,
body .af-code .tok-s2 {
  color: #ffb86b !important;
}

body .af-code .tok-mf {
  color: #b8a7ff !important;
}

body .af-code-hero__line.is-callout-active {
  background: rgba(110, 231, 255, 0.18) !important;
  box-shadow: inset 3px 0 0 rgba(110, 231, 255, 0.86);
}

body .g-core-content .af-code-hero:has(#af-code-hero-langs) {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 76rem !important;
  width: 100% !important;
}

body .g-core-content .af-code-hero:has(#af-code-hero-langs) .af-code-hero__stage,
body .g-core-content .af-code-hero:has(#af-code-hero-langs) .af-code-hero__pre {
  width: 100% !important;
}

body .g-core-content p.af-code-hero__subtitle {
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 1.3rem !important;
  line-height: 1.6 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 58rem !important;
}

body .g-core-content .partner-program-card__logo {
  background: rgba(255, 255, 255, 0.94) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24) !important;
  min-height: 7rem !important;
  padding: 1.25rem !important;
}

body .g-core-content .partner-program-card__logo img {
  filter: none !important;
  max-height: 5rem !important;
  max-width: min(14rem, 100%) !important;
  object-fit: contain !important;
}

.g-auth-form__input,
.g-core-content input,
.g-core-content textarea,
.g-core-content select,
.g-post-content input,
.g-post-content textarea,
.g-post-content select {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
}

.g-header .g-header-button,
.g-header .g-header-button__icon,
.g-header .g-header-button__label {
  color: #000 !important;
}

.g-header {
  color: #000 !important;
  font-family: "Inter", sans-serif !important;
}

.g-header a,
.g-header span,
.g-logo span {
  color: #000 !important;
}

.g-header .header-github-link .g-header-button__icon {
  color: inherit !important;
}

.g-header:before {
  background-color: rgba(235, 235, 235, 0.76) !important;
}

.g-drawer__content {
  background: #070707 !important;
  color: #fff !important;
}

.in-consulting .g-drawer__content {
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.12) 20%, rgba(255, 255, 255, 0.055) 44%, transparent 78%),
    linear-gradient(104deg, transparent 0%, rgba(255, 255, 255, 0.11) 13%, rgba(255, 255, 255, 0.06) 24%, rgba(255, 255, 255, 0.025) 58%, transparent 100%),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04) 28%, transparent 48%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0, rgba(255, 255, 255, 0.01) 1px, transparent 1px, transparent 3px),
    linear-gradient(180deg, #010101 0%, #050505 42%, #0a0a0a 100%) !important;
  color: #fff !important;
}

.in-consulting .g-drawer__content a,
.in-consulting .g-drawer__content span,
.in-consulting .g-drawer__content p,
.in-consulting .g-drawer__content b,
.in-consulting .g-drawer__content strong,
.in-consulting .g-drawer__content .app-menu-title,
.in-consulting .g-drawer__content .app-menu-description,
.in-consulting .g-drawer__content .g-header-button,
.in-consulting .g-drawer__content .g-header-button__icon,
.in-consulting .g-drawer__content .g-header-button__label {
  color: #fff !important;
}

.g-drawer__content a,
.g-drawer__content span,
.g-drawer__content p,
.g-drawer__content h1,
.g-drawer__content h2,
.g-drawer__content h3,
.g-drawer__content h4 {
  color: #fff !important;
}

.g-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.g-footer .af-footer-shell {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
  padding: clamp(3rem, 7vw, 5rem) 0 2rem;
}

.g-footer .af-footer-brand {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.g-footer .af-footer-brand .g-logo img {
  height: 2.1rem;
  width: auto;
}

.g-footer .af-footer-tagline {
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0;
  max-width: 18rem;
}

.g-footer .footer-brand-social {
  gap: 0.9rem;
  justify-content: flex-start;
}

.g-footer .footer-brand-social li {
  height: auto;
  margin: 0;
}

.g-footer .footer-brand-social a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  height: 2.25rem;
  justify-content: center;
  text-decoration: none !important;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
  width: 2.25rem;
}

.g-footer .footer-brand-social a::after {
  display: none !important;
}

.g-footer .footer-brand-social a:hover,
.g-footer .footer-brand-social a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
}

.g-footer .af-footer-nav {
  align-items: start;
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  justify-content: stretch;
  padding: 0;
}

.g-footer .af-footer-group h2 {
  color: #fff !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  line-height: 1.2 !important;
  margin: 0 0 0.85rem !important;
  text-transform: uppercase;
}

.g-footer .af-footer-group ul {
  display: grid;
  gap: 0.62rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.g-footer .af-footer-group li {
  margin: 0;
}

.g-footer .af-footer-group a {
  color: rgba(255, 255, 255, 0.76) !important;
  font-size: 0.93rem;
  line-height: 1.35;
  text-decoration: none !important;
}

.g-footer .af-footer-group a::after {
  background-color: currentColor;
  bottom: -0.18em;
  content: "";
  height: 1px;
  left: 0;
  opacity: 0.9;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms ease;
  width: 100%;
}

.g-footer .af-footer-group a {
  position: relative;
}

.g-footer .af-footer-group a:hover,
.g-footer .af-footer-group a:focus-visible {
  color: #fff !important;
}

.g-footer .af-footer-group a:hover::after,
.g-footer .af-footer-group a:focus-visible::after {
  transform: scaleX(1);
}

.g-footer .af-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0 2rem;
}

.g-footer .af-footer-bottom p {
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 62rem) {
  .g-footer .af-footer-shell {
    grid-template-columns: 1fr;
  }

  .g-footer .af-footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 40rem) {
  .g-footer .af-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  a.g-button,
  button.g-button,
  .g-core-content .kg-btn,
  .g-post-content .kg-btn {
    transition: none !important;
  }
}
