:root {
  color-scheme: dark;
  --page: #030505;
  --ink: #070a0a;
  --surface: #0b0e0f;
  --surface-raised: #101414;
  --text: #f1f2ef;
  --silver: #c9cecb;
  --muted: #929b97;
  --dim: #69716e;
  --rule: rgba(213, 219, 215, 0.18);
  --rule-strong: rgba(224, 229, 226, 0.34);
  --emerald: #4ce398;
  --emerald-soft: rgba(76, 227, 152, 0.1);
  --emerald-line: rgba(76, 227, 152, 0.5);
  --font-ui: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --shadow-raised: 18px 30px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 84% 20%, rgba(76, 227, 152, 0.045), transparent 30rem),
    var(--page);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  width: min(1440px, 100%);
  min-height: 96px;
  gap: 30px;
  margin: 0 auto;
  padding: 0 42px;
  border-bottom: 1px solid var(--rule-strong);
}

.site-brand {
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: 178px;
  height: auto;
  mix-blend-mode: screen;
}

.header-edition {
  padding-left: 28px;
  color: var(--silver);
  border-left: 1px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-left: auto;
  color: var(--silver);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a,
.about a,
.return-link {
  transition: color 160ms ease;
}

.site-header nav a:hover,
.about a:hover,
.return-link:hover {
  color: var(--emerald);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 20px;
  padding: 0 22px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover {
  border-color: var(--emerald-line);
  transform: translateY(-1px);
}

.button-primary {
  color: var(--emerald);
  border-color: var(--emerald-line);
}

.button-primary:hover {
  color: #041009;
  background: var(--emerald);
  box-shadow: 8px 12px 28px rgba(0, 0, 0, 0.32);
}

.button-primary span {
  font-size: 22px;
  line-height: 0;
}

.button-quiet {
  margin-left: 12px;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(620px, 1.22fr);
  align-items: stretch;
  width: min(1440px, 100%);
  min-height: 720px;
  margin: 0 auto;
  border-bottom: 1px solid var(--rule-strong);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 58px 86px 42px;
  border-right: 1px solid var(--rule-strong);
}

.hero-kicker,
.auth-kicker {
  color: var(--emerald);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 610px;
  margin: 24px 0 0;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(54px, 6vw, 92px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 500px;
  margin: 30px 0 36px;
  color: var(--silver);
  font-size: 19px;
  line-height: 1.6;
}

.hero-copy .button {
  align-self: flex-start;
  min-width: 186px;
}

.hero-copy small {
  display: block;
  max-width: 410px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.55;
}

.hero-preview {
  align-self: center;
  margin: 42px;
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}

.preview-topline,
.preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-topline {
  min-height: 76px;
  gap: 14px;
  padding: 0 24px;
  color: var(--silver);
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.035em;
}

.preview-topline img {
  width: 48px;
  margin-right: 2px;
  mix-blend-mode: screen;
}

.preview-topline span {
  margin-right: auto;
}

.preview-topline i {
  color: var(--emerald);
  font-family: var(--font-ui);
  font-size: 10px;
  font-style: normal;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-heading {
  padding: 24px 24px 16px;
}

.preview-heading span {
  font-family: var(--font-display);
  font-size: 25px;
}

.preview-heading small,
.preview-match small,
.preview-note {
  color: var(--muted);
}

.preview-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin: 0 24px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.preview-match > div > strong,
.preview-match > div > small {
  display: block;
}

.preview-match > div > strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
}

.preview-match > div > small {
  margin-top: 7px;
  font-size: 11px;
}

.preview-match > b {
  color: var(--dim);
  font-size: 9px;
  font-weight: 600;
  text-align: center;
}

.right {
  text-align: right;
}

.preview-probability {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(150px, auto) 1fr auto;
  align-items: end;
  gap: 18px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.preview-winner {
  display: grid;
  gap: 5px;
}

.preview-winner small {
  color: var(--emerald);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-winner strong {
  font-size: 14px;
}

.preview-signal {
  position: relative;
  height: 1px;
  margin-bottom: 9px;
  background: var(--rule-strong);
}

.preview-signal i {
  position: absolute;
  top: -4px;
  right: 34%;
  width: 9px;
  height: 9px;
  background: var(--emerald);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: 4px 5px 12px rgba(0, 0, 0, 0.4);
}

.preview-probability > strong {
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 400;
}

.preview-note {
  margin: 0;
  padding: 18px 24px 22px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.55;
}

.proof {
  max-width: 1280px;
  margin: 0 auto;
  padding: 104px 42px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 54px;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(45px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.section-heading p {
  max-width: 590px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.proof-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.proof-rail article {
  min-height: 248px;
  padding: 36px 34px;
}

.proof-rail article + article {
  border-left: 1px solid var(--rule);
}

.proof-rail span {
  color: var(--emerald);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proof-rail h3 {
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}

.proof-rail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.about {
  display: flex;
  justify-content: space-between;
  max-width: 1280px;
  gap: 34px;
  margin: 0 auto;
  padding: 42px 42px 70px;
  color: var(--muted);
  border-top: 1px solid var(--rule-strong);
}

.about p {
  max-width: 700px;
  margin: 0;
  line-height: 1.6;
}

.about a {
  color: var(--text);
  white-space: nowrap;
}

.auth-body {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 30px;
}

.auth-shell {
  width: min(510px, 100%);
}

.auth-shell > .site-brand {
  display: block;
  width: 188px;
  margin: 0 auto 34px;
}

.auth-shell > .site-brand img {
  width: 188px;
}

.auth-card {
  padding: 42px 44px 38px;
  background: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  box-shadow: var(--shadow-raised);
}

.auth-card h1 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.auth-card > p {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

form {
  display: grid;
  gap: 19px;
  margin-top: 30px;
}

label {
  display: grid;
  gap: 9px;
  color: var(--silver);
  font-size: 12px;
  font-weight: 650;
}

input {
  min-height: 50px;
  padding: 0 14px;
  color: var(--text);
  background: var(--page);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  outline: none;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:focus {
  border-color: var(--emerald);
  box-shadow: 5px 7px 18px rgba(0, 0, 0, 0.36);
}

form .button {
  width: 100%;
  margin-top: 8px;
}

.form-message {
  min-height: 20px;
  margin: 0 !important;
  color: #ff9f98 !important;
  font-size: 13px;
}

.auth-boundary {
  display: block;
  margin-top: 26px;
  padding-top: 20px;
  color: var(--dim);
  border-top: 1px solid var(--rule);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.return-link {
  display: block;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 82px;
    padding: 0 24px;
  }

  .header-edition {
    display: none;
  }

  .site-header nav {
    display: none;
  }

  .button-quiet {
    margin-left: auto;
  }

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

  .hero-copy {
    padding: 74px 24px 64px;
    border-right: 0;
    border-bottom: 1px solid var(--rule-strong);
  }

  .hero-preview {
    margin: 42px 24px 64px;
  }

  .proof {
    padding: 76px 24px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about {
    flex-direction: column;
    padding: 36px 24px 52px;
  }
}

@media (max-width: 620px) {
  .site-brand img {
    width: 142px;
  }

  .button-quiet {
    min-height: 43px;
    padding: 0 14px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 66px);
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-preview {
    border-radius: 6px;
  }

  .preview-topline,
  .preview-heading {
    padding-right: 16px;
    padding-left: 16px;
  }

  .preview-match {
    grid-template-columns: 1fr 20px 1fr;
    gap: 8px;
    margin: 0 16px;
  }

  .preview-probability {
    grid-template-columns: minmax(110px, auto) 1fr auto;
    gap: 10px;
  }

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

  .proof-rail article + article {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .proof-rail article {
    min-height: 0;
    padding: 30px 2px;
  }

  .auth-body {
    padding: 22px;
  }

  .auth-card {
    padding: 34px 24px 30px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
