:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #607086;
  --line: #dce3ea;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --blue: #38bdf8;
  --green: #34d399;
  --amber: #b56b12;
  --red: #ef4444;
  --deep: #07111f;
  --brand-dark: #0f172a;
  --brand-light: #f8fafc;
  --header-bg: rgba(255, 255, 255, 0.96);
  --button-secondary-bg: #ffffff;
  --notice-bg: #fff7ed;
  --notice-fg: #6b3f12;
  --legal-note-bg: #fff3f2;
  --legal-note-fg: #7a271a;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  min-width: 0;
  padding: 16px 24px;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: clamp(42px, 8vw, 54px);
  max-width: min(240px, 100%);
  width: auto;
}

.brand-logo-dark {
  display: none;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--ink);
}

.altmido-language-switcher {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 750;
  gap: 8px;
  min-height: 40px;
  padding: 6px 8px;
}

.altmido-language-icon {
  color: var(--ink);
  display: inline-flex;
  height: 20px;
  width: 20px;
}

.altmido-language-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}

.altmido-language-switcher select {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  min-height: 26px;
  padding: 3px 6px;
}

.altmido-theme-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  padding: 0;
  width: 40px;
}

.altmido-theme-toggle svg {
  display: block;
  height: 20px;
  width: 20px;
}

.hero,
.section {
  margin: 0 auto;
  max-width: 1120px;
  padding: 64px 24px;
}

.hero {
  display: block;
  min-height: min(760px, calc(100vh - 65px));
  padding-bottom: 44px;
  padding-top: 58px;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(36px, 5.2vw, 58px);
  max-width: 850px;
}

h2 {
  font-size: 34px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--muted);
  font-size: 20px;
  margin-top: 22px;
  max-width: 720px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  min-width: 0;
}

.button {
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 7px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  min-width: 0;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--brand-light);
}

.button.secondary {
  background: var(--button-secondary-bg);
  color: var(--ink);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.card p {
  color: var(--muted);
  margin-top: 10px;
}

.notice {
  border-left: 4px solid var(--amber);
  background: var(--notice-bg);
  color: var(--notice-fg);
  margin-top: 28px;
  padding: 16px 18px;
}

.legal-note {
  border-left-color: var(--red);
  background: var(--legal-note-bg);
  color: var(--legal-note-fg);
}

.page-title {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.page-title .section {
  padding-bottom: 48px;
  padding-top: 48px;
}

.content {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 850px;
  padding: 48px 24px 72px;
}

.content ul {
  margin: 0;
  padding-left: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1120px;
  padding: 24px;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #f8fafc;
    --muted: #b7c4d5;
    --line: rgba(248, 250, 252, 0.14);
    --paper: #07111f;
    --soft: #0f172a;
    --brand-dark: #f8fafc;
    --brand-light: #07111f;
    --header-bg: rgba(7, 17, 31, 0.96);
    --button-secondary-bg: transparent;
    --notice-bg: rgba(181, 107, 18, 0.16);
    --notice-fg: #fed7aa;
    --legal-note-bg: rgba(239, 68, 68, 0.14);
    --legal-note-fg: #fecaca;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #b7c4d5;
  --line: rgba(248, 250, 252, 0.14);
  --paper: #07111f;
  --soft: #0f172a;
  --brand-dark: #f8fafc;
  --brand-light: #07111f;
  --header-bg: rgba(7, 17, 31, 0.96);
  --button-secondary-bg: transparent;
  --notice-bg: rgba(181, 107, 18, 0.16);
  --notice-fg: #fed7aa;
  --legal-note-bg: rgba(239, 68, 68, 0.14);
  --legal-note-fg: #fecaca;
}

:root[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-light {
    display: none;
  }

  :root:not([data-theme="light"]) .brand-logo-dark {
    display: block;
  }
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

:root[data-theme="light"] .brand-logo-light {
  display: block;
}

:root[data-theme="light"] .brand-logo-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .altmido-language-switcher,
  :root:not([data-theme="light"]) .altmido-language-switcher select,
  :root:not([data-theme="light"]) .altmido-theme-toggle {
    background: #0f172a;
    border-color: rgba(248, 250, 252, 0.18);
  }

  :root:not([data-theme="light"]) .button.primary {
    background: #f8fafc;
    color: #07111f;
  }

  :root:not([data-theme="light"]) .button.secondary {
    border-color: rgba(248, 250, 252, 0.5);
  }
}

:root[data-theme="dark"] .altmido-language-switcher,
:root[data-theme="dark"] .altmido-language-switcher select,
:root[data-theme="dark"] .altmido-theme-toggle {
  background: #0f172a;
  border-color: rgba(248, 250, 252, 0.18);
}

:root[data-theme="dark"] .button.primary {
  background: #f8fafc;
  color: #07111f;
}

:root[data-theme="dark"] .button.secondary {
  border-color: rgba(248, 250, 252, 0.5);
}

@media (max-width: 820px) {
  .hero {
    min-height: auto;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    justify-content: flex-start;
    margin-left: 0;
  }

  .altmido-language-switcher {
    align-self: flex-start;
  }
}

@media (max-width: 360px) {
  .nav,
  .hero,
  .section,
  .content,
  .footer-inner {
    padding-left: 18px;
    padding-right: 18px;
  }

  .nav-links {
    gap: 10px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }
}
