:root {
  --ink: #f3f6fb;
  --muted: #c5d2e4;
  --line: #2a4064;
  --input: #6d86ad;
  --bg: #070b14;
  --panel: #12243f;
  --panel-strong: #13254a;
  --field: #0b1220;
  --blue: #3b82f6;
  --blue-bright: #60a5fa;
  --blue-press: #60a5fa;
  --on-blue: #05070d;
  --error: #ffb4bc;
  --wrap: 68rem;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

p {
  text-wrap: pretty;
}

a {
  color: var(--blue);
  text-underline-offset: 0.16em;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: #3b82f6;
  color: #05070d;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 0.9rem;
  background: var(--blue);
  color: var(--on-blue);
  border-radius: 6px;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 7, 13, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

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

.logo-link:hover {
  opacity: 0.88;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(100%, calc(100vw - 8.5rem));
}

@media (max-width: 399px) {
  .logo {
    height: 32px;
  }
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.lang button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.lang button:hover {
  color: var(--ink);
}

.lang button[aria-pressed="true"] {
  background: var(--blue);
  color: var(--on-blue);
}

.lang-sep {
  color: var(--muted);
  font-weight: 500;
  user-select: none;
}

.hero,
.section {
  scroll-margin-top: 5rem;
}

.hero {
  padding: 5rem 0 4.25rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
}

.lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.55;
}

.hero .button {
  margin-top: 2rem;
}

.section {
  padding: 4.5rem 0;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 600;
}

.section .lede {
  margin-top: 0.85rem;
  margin-bottom: 2.25rem;
}

.cards {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 1.4rem 1.3rem 1.55rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 12px;
}

.card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.results-card {
  padding: clamp(2rem, 5vw, 3.75rem) clamp(1.35rem, 4vw, 3.5rem);
  background: var(--panel-strong);
  border: 1px solid #34507a;
  border-top: 4px solid var(--blue);
  border-radius: 12px;
}

.results-card h2 {
  margin: 0;
}

.results-figure {
  margin: 0.85rem 0 1.15rem;
  color: var(--blue-bright);
  font-size: clamp(2.6rem, 12vw, 5.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.results-line {
  max-width: 40rem;
  font-size: 1.2rem;
  line-height: 1.5;
}

.form-note {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

form {
  max-width: 36rem;
}

.field {
  margin-bottom: 1.1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--input);
  border-radius: 8px;
  background: var(--field);
  color: var(--ink);
  caret-color: var(--ink);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.4;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

input:focus-visible,
textarea:focus-visible {
  border-color: var(--blue);
}

input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  caret-color: var(--ink);
  box-shadow: 0 0 0 1000px var(--field) inset;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  margin-top: 0.4rem;
  color: var(--error);
  font-size: 0.95rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--on-blue);
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

a.button,
a.button:hover,
button.button,
button.button:hover {
  color: var(--on-blue);
}

.button:hover {
  background: var(--blue-press);
}

.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

#submit {
  width: 100%;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.form-status:focus {
  outline: none;
}

.form-status:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.form-status.success {
  color: var(--blue-bright);
}

.form-status.error {
  color: var(--error);
}

.form-status.activation {
  color: var(--ink);
}

.noscript {
  max-width: 36rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
}

@media (min-width: 800px) {
  .logo {
    height: 40px;
  }

  .wrap {
    width: min(100% - 4rem, var(--wrap));
  }

  .hero {
    padding: 7.25rem 0 5.5rem;
  }

  .section {
    padding: 6rem 0;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  #submit {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
