:root {
  color-scheme: dark;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --brand-primary: #0b84ff;
  --brand-dark: #0a2540;
  --brand-light: #e6f2ff;
  --text-secondary: #c2ccd8;
  --surface: #ffffff;
  --border: #587087;
  --success: #5ee0a0;
  --warning: #ffcf70;
  --error: #ff8f87;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--brand-dark);
  color: var(--brand-light);
  font-size: 16px;
  line-height: 1.5;
}

.page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
  padding: 36px clamp(24px, 7vw, 104px) 28px;
}

header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  padding: 8px;
  border-radius: 8px;
}

.brand img {
  display: block;
  width: 184px;
  height: auto;
  filter: brightness(0) invert(1);
}

.brand:focus-visible,
.language-switch button:focus-visible {
  outline: 3px solid var(--brand-light);
  outline-offset: 4px;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #c2ccd8;
  font-size: 14px;
}

.availability::before {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--success);
  content: "";
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.language-switch button {
  min-width: 40px;
  min-height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--brand-light);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.language-switch button:hover:not(:disabled) {
  background: #21415f;
}

.language-switch button[aria-pressed="true"] {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
}

.language-switch button:active:not(:disabled) {
  background: var(--brand-primary);
  color: var(--surface);
  transform: translateY(1px);
}

.language-switch button:disabled {
  color: #aab6c2;
  cursor: not-allowed;
  opacity: 0.6;
}

main {
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 80px 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--brand-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(40px, 8vw, 88px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

h1 span {
  display: block;
}

h1 .headline-main {
  color: var(--brand-light);
}

h1 span:last-child {
  color: var(--brand-primary);
}

.intro {
  max-width: 480px;
  margin: 28px 20px 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.domain {
  margin-top: 42px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #102e4b;
  color: var(--brand-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

footer {
  color: #aab6c2;
  font-size: 14px;
}

footer p {
  margin: 0;
}

@media (max-width: 560px) {
  .page {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  header {
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .availability {
    font-size: 12px;
  }

  main {
    padding: 56px 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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