/* Hallmark · pre-emit critique: P5 H4 E4 S4 R5 V4 */
:root {
  color-scheme: light;
  --color-canvas: #f5f5f2;
  --color-paper: #ffffff;
  --color-ink: #0f1216;
  --color-muted: #68717c;
  --color-line: #d9dee3;
  --color-line-soft: #eceff2;
  --color-accent: #ed1c24;
  --color-accent-strong: #b9151d;
  --color-focus: #2f6fed;
  --color-success: #0f7654;
  --color-shadow: rgba(15, 18, 22, 0.16);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
}

[hidden] {
  display: none !important;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 62px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  width: 124px;
  height: auto;
  display: block;
}

.language-nav {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.language-nav button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 10px;
  background: color-mix(in srgb, var(--color-paper) 48%, transparent);
  color: var(--color-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.language-nav button[aria-pressed="true"] {
  border-color: var(--color-line);
  background: var(--color-paper);
  color: var(--color-ink);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 112px clamp(18px, 5vw, 72px) 58px;
  overflow: hidden;
}

.hero-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7vh;
  width: min(920px, 82vw);
  height: min(920px, 82vw);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--color-paper) 88%, transparent) 0 18%, transparent 19%),
    radial-gradient(circle, color-mix(in srgb, var(--color-accent) 12%, transparent) 0 30%, transparent 58%);
  filter: blur(0);
}

.light {
  position: absolute;
  width: 38vw;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  filter: blur(60px);
}

.light-one {
  top: 18%;
  left: -10%;
}

.light-two {
  right: -12%;
  bottom: 8%;
}

.device {
  position: absolute;
  left: 50%;
  bottom: 11vh;
  width: min(430px, 54vw);
  aspect-ratio: 1.62;
  transform: translateX(-50%);
  border-radius: 12px 12px 32px 32px;
  background:
    radial-gradient(circle at 50% 56%, var(--color-ink) 0 16%, #2b3541 17% 26%, transparent 27%),
    linear-gradient(180deg, var(--color-paper) 0%, #dce1e6 100%);
  box-shadow: 0 45px 95px var(--color-shadow);
}

.device::before {
  content: "";
  position: absolute;
  width: 42%;
  height: 16%;
  left: 29%;
  top: -16%;
  border-radius: 9px 9px 0 0;
  background: #e7ebef;
}

.device::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 20%;
  height: 6px;
  border-radius: 999px;
  background: var(--color-accent);
}

.device-secondary {
  width: min(320px, 42vw);
  bottom: 9vh;
  opacity: 0.26;
  transform: translateX(-102%) scale(0.82);
  filter: blur(1px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  justify-items: center;
  text-align: center;
  padding-bottom: min(34vh, 310px);
}

.hero-logo {
  width: clamp(150px, 20vw, 260px);
  height: auto;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(48px, 8.8vw, 118px);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.lede {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.5;
}

.hero-note {
  max-width: 540px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.5;
}

.primary-link,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  background: var(--color-ink);
  color: var(--color-paper);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.primary-link:hover,
button[type="submit"]:hover {
  background: var(--color-accent);
}

button:focus-visible,
a:focus-visible,
input:focus,
select:focus {
  outline: 3px solid color-mix(in srgb, var(--color-focus) 24%, transparent);
  outline-offset: 2px;
}

.register-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: min(86vh, 820px);
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-paper);
  box-shadow: 0 35px 95px var(--color-shadow);
}

.register-dialog::backdrop {
  background: color-mix(in srgb, var(--color-ink) 52%, transparent);
  backdrop-filter: blur(12px);
}

.modal-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(28px, 5vw, 48px);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-paper);
  color: var(--color-ink);
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.close-button:hover {
  background: var(--color-line-soft);
}

.modal-copy p {
  color: var(--color-muted);
  font-size: 17px;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 13px;
  align-self: start;
}

label {
  display: grid;
  gap: 7px;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 750;
}

input,
select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--color-paper);
  color: var(--color-ink);
  font: inherit;
}

.check-row {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  font-weight: 650;
  line-height: 1.4;
}

.check-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.form-note {
  min-height: 22px;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.form-note.is-success {
  color: var(--color-success);
}

.form-note.is-error {
  color: var(--color-accent-strong);
}

.success-shell {
  min-height: min(520px, 76vh);
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(34px, 7vw, 72px);
  text-align: center;
}

.success-shell h2 {
  max-width: 620px;
  margin-bottom: 4px;
}

.success-shell p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-success) 12%, var(--color-paper));
  color: var(--color-success);
  font-size: 34px;
  font-weight: 850;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
  }

  .brand img {
    width: 108px;
  }

  .language-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 100svh;
    align-items: start;
    padding-top: 126px;
  }

  .hero-copy {
    padding-bottom: 310px;
  }

  .hero-logo {
    width: 156px;
    margin-bottom: 24px;
  }

  .device {
    width: min(360px, 78vw);
    bottom: 7vh;
  }

  .device-secondary {
    display: none;
  }

  .modal-shell {
    grid-template-columns: 1fr;
    padding-top: 54px;
  }
}
