:root {
  color: #172033;
  background: #f2f5f9;
  font-family: "Segoe UI Variable", "Microsoft YaHei UI", "PingFang SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(94, 140, 255, .13), transparent 34rem),
    radial-gradient(circle at 85% 92%, rgba(85, 206, 181, .10), transparent 30rem),
    #f3f6fa;
}

button, input { font: inherit; }

.shell {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 48px;
}

.hero {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 44px;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}

.hero-copy { min-width: 0; }

.language-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 7px;
  border: 1px solid #c8d2e3;
  border-radius: 12px;
  background: rgba(255, 255, 255, .8);
  cursor: pointer;
  transition: border-color .16s, background .16s;
}

.language-toggle:hover { border-color: #6688e8; background: #fff; }
.language-toggle:focus-visible, .drop-zone:focus-within { outline: 3px solid #4669d8; outline-offset: 3px; }
.language-flag { display: block; width: 28px; height: 20px; }
.language-flag [hidden] { display: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: white;
  font-size: 24px;
  font-weight: 650;
  background: linear-gradient(145deg, #527fff, #3156d8);
  box-shadow: 0 12px 30px rgba(50, 83, 201, .25), inset 0 1px rgba(255,255,255,.4);
}

.eyebrow {
  margin: 1px 0 7px;
  color: #66738b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.intro {
  max-width: 620px;
  margin: 10px 0 0;
  color: #68758c;
  font-size: 15px;
  line-height: 1.7;
}

.card {
  overflow: hidden;
  border: 1px solid rgba(138, 154, 182, .22);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 24px 70px rgba(37, 52, 82, .10), 0 2px 8px rgba(37, 52, 82, .04);
  backdrop-filter: blur(24px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px 24px;
  border-bottom: 1px solid #edf0f5;
  color: #8691a4;
  font-size: 12px;
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  line-height: 1.4;
}

.step b {
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #edf1f7;
  color: #718097;
  font-size: 11px;
}

.step.active { color: #315bd8; font-weight: 650; }
.step.active b { color: white; background: #3f68e4; }

form { padding: 30px; }
.field-group + .field-group { margin-top: 24px; }

label:not(.drop-zone) {
  display: block;
  margin-bottom: 9px;
  color: #26334b;
  font-size: 13px;
  font-weight: 650;
}

input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d8dee9;
  border-radius: 12px;
  outline: none;
  color: #17233a;
  background: #fbfcfe;
  font-family: "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 14px;
  letter-spacing: .035em;
  transition: border-color .16s, box-shadow .16s, background .16s;
}

input[type="text"]:focus {
  border-color: #6a8bf0;
  background: white;
  box-shadow: 0 0 0 4px rgba(70, 105, 225, .11);
}

.hint {
  margin: 7px 1px 0;
  color: #8994a8;
  font-size: 12px;
}

.drop-zone {
  display: flex;
  min-height: 142px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  border: 1px dashed #bdc7d8;
  border-radius: 16px;
  background: #f8fafd;
  text-align: center;
  transition: border-color .16s, background .16s, transform .16s;
}

.drop-zone:hover, .drop-zone.dragging {
  border-color: #6688e8;
  background: #f4f7ff;
  transform: translateY(-1px);
}

.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.drop-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
  border-radius: 11px;
  color: #466bd7;
  background: #e9efff;
  font-size: 18px;
  font-weight: 700;
}

.drop-title { max-width: 100%; overflow-wrap: anywhere; color: #29364d; font-size: 14px; font-weight: 650; }
.drop-meta { margin-top: 5px; color: #8a95a8; font-size: 12px; }

.status {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #775718;
  background: #fff8e8;
  font-size: 13px;
  line-height: 1.55;
}

.status.error { color: #9b3441; background: #fff0f2; }
.status.success { color: #176446; background: #eaf9f2; }

.primary {
  display: flex;
  width: 100%;
  height: 48px;
  margin-top: 22px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 13px;
  color: white;
  background: linear-gradient(180deg, #4d76e8, #365ed2);
  box-shadow: 0 10px 22px rgba(54, 91, 205, .20), inset 0 1px rgba(255,255,255,.25);
  font-size: 14px;
  font-weight: 650;
  transition: transform .15s, filter .15s, opacity .15s;
}

.primary:hover { filter: brightness(1.035); transform: translateY(-1px); }
.primary:active { transform: translateY(0); }
.primary:disabled { cursor: wait; opacity: .62; transform: none; }
.button-arrow { font-size: 17px; }

.privacy-note {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin: 20px 10px 0;
  color: #6f7c91;
}

.privacy-note .lock {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #2e765e;
  background: #e5f5ef;
  font-size: 13px;
  font-weight: 700;
}

.privacy-note strong { display: block; margin: 1px 0 3px; color: #45536a; font-size: 12px; }
.privacy-note p { margin: 0; font-size: 12px; line-height: 1.65; }

@media (max-width: 600px) {
  .shell { width: min(100% - 20px, 760px); padding: 30px 0; }
  .hero { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 13px; margin: 0 8px 22px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 14px; font-size: 20px; }
  .steps { padding: 15px 12px; }
  .step { gap: 5px; font-size: 10px; }
  .step b { flex-basis: 19px; width: 19px; height: 19px; }
  form { padding: 22px 18px; }
  .drop-zone { min-height: 128px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
