:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #091725;
  --panel: rgba(10, 22, 39, 0.82);
  --panel-solid: #0f1d31;
  --panel-light: #ffffff;
  --text: #e8eef8;
  --text-dark: #0f172a;
  --muted: #9bb0c9;
  --line: rgba(139, 162, 192, 0.2);
  --line-light: #dbe3ef;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --success: #22c55e;
  --danger: #ef4444;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #07111f 0%, #0a1526 100%);
}

body.is-modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(34px);
  opacity: 0.42;
}

.hero::before {
  top: 60px;
  left: -100px;
  width: 360px;
  height: 360px;
  background: rgba(37, 99, 235, 0.26);
}

.hero::after {
  top: 140px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: rgba(14, 165, 233, 0.14);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), transparent 90%);
}

.hero__inner,
.section,
.footer__inner {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand img,
.footer__logo {
  display: block;
  height: 42px;
}

.hero__nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.hero__nav a:hover {
  color: #fff;
}

.hero__entry-actions,
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 380px);
  gap: 36px;
  padding: 48px 0 82px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #93c5fd;
}

.eyebrow--dark {
  color: var(--primary);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.06;
}

.summary {
  max-width: 720px;
  margin-bottom: 22px;
  color: rgba(232, 238, 248, 0.84);
  font-size: 18px;
  line-height: 1.9;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero__chips span {
  padding: 10px 14px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 29, 49, 0.74);
  font-size: 13px;
}

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

.metric,
.info-card,
.signal-board,
.card {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.metric {
  padding: 18px 16px;
  background: rgba(10, 22, 39, 0.84);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  color: #fff;
}

.metric span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.hero__panel {
  display: grid;
  gap: 16px;
}

.info-card {
  padding: 22px;
  background: rgba(9, 23, 37, 0.86);
}

.info-card__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
}

.info-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 24px;
  color: #fff;
}

.info-card p,
.signal-board__row span {
  color: var(--muted);
  line-height: 1.8;
}

.signal-board {
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(17, 34, 58, 0.96), rgba(8, 18, 33, 0.92));
}

.signal-board__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.signal-board__row + .signal-board__row {
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.signal-board__row b {
  color: #fff;
  font-size: 15px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.button--primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.button--ghost {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
}

.button--register {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(127, 29, 29, 0.2);
}

.button--register:hover {
  background: rgba(127, 29, 29, 0.32);
}

.button--block {
  width: 100%;
  margin-top: 18px;
}

.section {
  padding: 78px 0;
}

.section__head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section__head h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.section__head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.9;
}

.section__head--light h2,
.section__head--light p {
  color: #fff;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 24px;
  background: rgba(12, 24, 42, 0.74);
}

.card--feature {
  background: linear-gradient(180deg, rgba(17, 34, 58, 0.94), rgba(8, 18, 33, 0.94));
}

.card--dark {
  background: rgba(255, 255, 255, 0.06);
}

.card h3 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 22px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.85;
}

.section--dark {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(6, 12, 24, 0.96), rgba(8, 18, 33, 0.98));
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: #0c1728;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.modal__intro {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.modal-form + .modal-form,
.reset-box {
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.field span,
.field label span {
  color: #dbe7f4;
  font-size: 14px;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  outline: none;
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
}

.field input::placeholder {
  color: #94a3b8;
}

.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active {
  -webkit-text-fill-color: #f8fafc;
  caret-color: #f8fafc;
  box-shadow: 0 0 0 1000px #0f172a inset;
  transition: background-color 9999s ease-in-out 0s;
}

.field--inline {
  grid-template-columns: minmax(0, 1fr) 146px;
  align-items: end;
}

.reset-box {
  padding-top: 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.reset-box__head h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.reset-box__head p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  min-width: 260px;
  max-width: min(420px, calc(100% - 36px));
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(12, 23, 40, 0.96);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.32);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.32);
}

.footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(5, 10, 19, 0.96);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero__content,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

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

  .hero__nav {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero__topbar {
    flex-wrap: wrap;
  }

  .hero__entry-actions {
    width: 100%;
  }

  .hero__entry-actions .button {
    flex: 1 1 0;
  }

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

@media (max-width: 640px) {
  .hero__inner,
  .section,
  .footer__inner {
    width: min(100% - 24px, 1180px);
  }

  .hero__content {
    padding: 34px 0 60px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal__dialog {
    padding: 22px 18px;
  }
}
