@font-face {
  font-family: "Manrope Fallback";
  font-style: normal;
  font-weight: 500;
  src: local("Arial");
  ascent-override: 94.58%;
  descent-override: 27.82%;
  line-gap-override: 0%;
  size-adjust: 112.34%;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Fallback";
  font-style: normal;
  font-weight: 600;
  src: local("Arial Bold");
  ascent-override: 100.89%;
  descent-override: 29.67%;
  line-gap-override: 0%;
  size-adjust: 105.31%;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope Fallback";
  font-style: normal;
  font-weight: 700;
  src: local("Arial Bold");
  ascent-override: 99.37%;
  descent-override: 29.23%;
  line-gap-override: 0%;
  size-adjust: 106.92%;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #1d0901;
  --muted: #4f4b49;
  --brand: #e96d00;
  --brand-bright: #ff5b16;
  --brand-hover: #fff0e6;
  --page: #ffffff;
  --card: #f7f7f7;
  --surface: #ffffff;
  --surface-soft: #fff9f5;
  --border: #e8e5e3;
  --card-border: rgba(29, 9, 1, 0.06);
  --shadow: rgba(40, 15, 3, 0.12);
  --success: #0d9568;
  --success-bg: #edf3e9;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #ffffff;
  --muted: #d5d7da;
  --brand: #ff6e2b;
  --brand-bright: #ff6e2b;
  --brand-hover: rgba(255, 110, 43, 0.16);
  --page: #000000;
  --card: #1a1a1a;
  --surface: #1a1a1a;
  --surface-soft: rgba(100, 50, 5, 0.5);
  --border: rgba(255, 255, 255, 0.2);
  --card-border: rgba(255, 255, 255, 0.12);
  --shadow: rgba(0, 0, 0, 0.5);
  --success: #76ddb7;
  --success-bg: #183c30;
  color-scheme: dark;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-selector-button {
  background: #000000;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  background: var(--page);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 220ms ease, color 220ms ease;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page-wrapper {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 16px 64px 32px;
}

.page-header {
  position: relative;
  z-index: 20;
  display: flex;
  height: 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.atlas-logo-link {
  display: inline-flex;
  border-radius: 8px;
}

.atlas-logo-link:focus-visible,
.theme-toggle:focus-visible,
.language-selector-button:focus-visible,
.language-option:focus-visible,
.card-link:focus-visible,
.footer-link:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  width: 44px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--brand);
  border-radius: 12px;
  background: var(--surface);
  color: var(--brand);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.theme-icon {
  display: grid;
  place-items: center;
}

.theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-icon-moon {
  display: grid;
}

.language-selector {
  position: relative;
}

.language-selector-button {
  display: flex;
  min-width: 84px;
  height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 7px;
  border: 1px solid #e96d00;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 20px;
}

.current-language-flag,
.language-option-flag {
  width: 18px;
  height: 14px;
  flex: 0 0 18px;
  border-radius: 2px;
  object-fit: cover;
}

.language-selector-arrow {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.language-selector-button[aria-expanded="true"] .language-selector-arrow {
  transform: translateY(2px) rotate(225deg);
}

.language-options {
  position: absolute;
  top: 46px;
  right: 0;
  width: min(260px, calc(100vw - 32px));
  max-height: min(500px, calc(100vh - 76px));
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 16px 50px var(--shadow);
}

.language-option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

.language-option-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.language-option:hover,
.language-option.selected {
  background: var(--card);
  color: var(--brand);
}

.language-abbreviation {
  color: #807a77;
  font-size: 12px;
  font-weight: 700;
}

.resources-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.page-introduction {
  min-width: 0;
  padding-top: 7px;
}

.page-introduction h1 {
  max-width: 410px;
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-introduction p {
  max-width: 410px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

.resource-card {
  display: flex;
  min-width: 0;
  min-height: 248px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(29, 9, 1, 0.02);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.resource-card:hover,
.resource-card:focus-within {
  border-color: rgba(233, 109, 0, 0.28);
  box-shadow: 0 16px 32px var(--shadow);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.card-brand {
  display: block;
  width: 112px;
  height: 40px;
  flex: 0 0 112px;
  object-fit: contain;
  object-position: left center;
}

.card-brand-main {
  width: 120px;
  height: 40px;
  flex-basis: 120px;
}

.card-brand-dashboard {
  width: 112px;
  height: 30px;
}

.card-brand-wide {
  width: 112px;
  height: 32px;
}

html[data-theme="dark"] .card-brand-wide {
  filter: invert(1);
}

.service-status {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.service-status[data-testing-status] {
  background: #ff5b16;
  color: #fff;
}

.service-status-pending {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ff5b16;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  white-space: nowrap;
}

.card-description {
  margin-top: 20px;
}

.card-description h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.card-description p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.card-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: auto;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: transparent;
  color: var(--brand-bright);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.card-link > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.card-link:hover {
  border-color: var(--brand);
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.external-link-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease;
}

.card-link:hover .external-link-icon {
  transform: translate(1px, -1px);
}

.community-strip {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 32px;
  padding: 24px 28px;
  border: 1px solid rgba(233, 109, 0, 0.18);
  border-radius: 24px;
  background: var(--surface-soft);
}

.community-copy {
  max-width: 760px;
}

.community-kicker {
  margin: 0 0 3px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.community-copy h2 {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
}

.community-copy > p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 22px;
}

.community-link {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ff5b16, #ffa51f);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(233, 109, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.community-link:hover {
  box-shadow: 0 12px 24px rgba(233, 109, 0, 0.28);
  transform: translateY(-2px);
}

.community-link:focus-visible,
.footer-utility a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.page-footer {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.footer-channels {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-channels h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer-link {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 9px;
  background: var(--card);
  transition: background-color 180ms ease, transform 180ms ease;
}

.footer-link img {
  width: 22px;
  height: 22px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-link:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.footer-link:hover img {
  opacity: 0.78;
  transform: scale(1.04);
}

html[data-theme="dark"] .footer-link img {
  filter: invert(1);
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-utility {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-utility a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.footer-utility a:hover {
  color: var(--brand);
}

.footer-tagline {
  text-align: right;
}

@media (max-width: 1099px) {
  .page-wrapper {
    padding-right: 32px;
    padding-left: 32px;
  }

  .resources-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 64px;
  }

  .page-introduction {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    align-items: end;
    gap: 32px;
    margin-bottom: 16px;
    padding-top: 2px;
  }

  .page-introduction h1 {
    max-width: 520px;
    font-size: 40px;
    line-height: 1.12;
  }

  .page-introduction p {
    max-width: 520px;
    margin-top: 0;
  }

  .resource-card {
    min-height: 236px;
  }

  .webinars-card {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    justify-self: center;
  }

  .card-link {
    max-width: 100%;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 15px;
  }

  .page-footer {
    margin-top: 16px;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
  }

  .footer-tagline {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .page-wrapper {
    padding-right: 24px;
    padding-left: 24px;
  }

  .resources-layout {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 56px;
  }

  .page-introduction {
    display: block;
    grid-column: auto;
    margin-bottom: 16px;
  }

  .page-introduction h1 {
    max-width: 520px;
    font-size: 34px;
    line-height: 1.14;
  }

  .page-introduction p {
    max-width: 560px;
    margin-top: 16px;
  }

  .webinars-card {
    grid-column: auto;
    width: 100%;
  }

  .service-status,
  .service-status-pending {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 14px;
    line-height: 20px;
  }
}

@media (max-width: 599px) {
  .page-wrapper {
    padding: 16px 16px 32px;
  }

  .resources-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 48px;
  }

  .page-introduction {
    margin-bottom: 16px;
    padding-top: 0;
  }

  .page-introduction h1 {
    max-width: 328px;
    font-size: 24px;
    letter-spacing: -0.025em;
    line-height: 32px;
  }

  .page-introduction p {
    max-width: 328px;
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
  }

  .resource-card {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
  }

  .card-link {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    margin-top: 24px;
  }

  .card-description {
    margin-top: 18px;
  }

  .community-strip {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    margin-top: 28px;
    padding: 20px;
    border-radius: 20px;
  }

  .community-link {
    justify-content: center;
  }

  .page-footer {
    margin-top: 28px;
  }

  .footer-channels {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-channels h2 {
    font-size: 20px;
    line-height: 29px;
  }

  .footer-links {
    max-width: 100%;
    justify-content: flex-start;
    gap: 12px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-top: 26px;
  }

  .footer-utility {
    justify-content: flex-start;
  }

  .footer-tagline {
    text-align: left;
  }

  [data-atlas-support-host="v1"],
  [data-atlas-cabinet-support-host="v1"] {
    right: 8px !important;
    bottom: 8px !important;
    transform: scale(0.8);
    transform-origin: right bottom;
  }
}

@media (max-width: 350px) {
  .card-link {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 14px;
  }

  .card-brand-main,
  .card-brand-wide {
    width: 100px;
    flex-basis: 100px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.language-options[hidden] { display: none; }
