:root {
  --pink: #f31e7a;
  --pink-soft: #ff4d97;
  --orange: #fba41b;
  --orange-soft: #ffbe4d;
  --grad: linear-gradient(135deg, #f31e7a 0%, #fb5a3c 55%, #fba41b 100%);
  --grad-soft: linear-gradient(135deg, rgba(243, 30, 122, 0.16), rgba(251, 164, 27, 0.16));

  --bg: #08080a;
  --bg-2: #101014;
  --surface: #15151b;
  --surface-2: #1c1c24;
  --line: #26262f;
  --line-2: #353542;

  --text: #f3f4f6;
  --mute: #9aa0ae;
  --dim: #6b7280;

  --good: #3ddc84;
  --bad: #ff5c5c;

  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --glow: 0 0 40px rgba(243, 30, 122, 0.25);
}

* { box-sizing: border-box; }
html { height: 100%; color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
p { margin: 0; }
a { color: var(--pink-soft); text-decoration: none; }
a:hover { color: var(--orange-soft); }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 6px; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--dim); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { display: block; height: 30px; width: auto; }
.brand--sm img { height: 26px; }
.brand--lg img { height: 40px; }
.brand__mark { height: 30px; width: auto; flex: none; display: block; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav__links { display: flex; gap: 22px; margin-left: 20px; }
.site-nav__links a { color: var(--mute); font-weight: 600; font-size: 14px; }
.site-nav__links a:hover { color: var(--text); }
.site-nav__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 21px;
  border-radius: 10px;
  border: 0;
  background: none;
  color: var(--text);
  transition: transform 90ms ease, filter 140ms ease, background 140ms ease, border-color 140ms ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background-color: var(--pink);
  background-image: linear-gradient(100deg, #f31e7a 0%, #fb5a3c 58%, #fba41b 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(243, 30, 122, 0.22);
}
.btn--primary:hover { filter: brightness(1.08); color: #fff; }
.btn--ghost { border: 1px solid var(--line-2); padding: 10px 20px; background: var(--surface); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--dim); color: var(--text); }
.btn--quiet { color: var(--mute); padding: 11px 13px; }
.btn--quiet:hover { color: var(--text); }
.btn--block { width: 100%; }
.btn--lg { padding: 15px 29px; font-size: 15.5px; border-radius: 12px; }
.btn--lg.btn--ghost { padding: 14px 28px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -220px; left: 50%;
  width: 900px; height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(243, 30, 122, 0.18), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: -120px; right: -160px;
  width: 620px; height: 520px;
  background: radial-gradient(ellipse at center, rgba(251, 164, 27, 0.14), transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; max-width: 760px; margin: 0 auto; }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin-bottom: 20px; }
.hero__sub { color: var(--mute); font-size: clamp(16px, 2vw, 19px); max-width: 580px; margin: 0 auto 32px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { color: var(--dim); font-size: 13px; margin-top: 18px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--grad-soft);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 26px;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 10px var(--good); }

.section { padding: 72px 0; }
.section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(27px, 4vw, 38px); margin-bottom: 12px; }
.section__head p { color: var(--mute); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card__icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--pink-soft);
}
.card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.card p { color: var(--mute); font-size: 14.5px; }

.steps-grid { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { color: var(--mute); font-size: 14.5px; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  margin-top: 40px;
  color: var(--dim);
  font-size: 13.5px;
}
.site-foot__inner { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.site-foot__links { margin-left: auto; display: flex; gap: 20px; }
.site-foot a { color: var(--mute); }

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.auth-shell::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  width: 900px; height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(243, 30, 122, 0.16), transparent 62%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mute);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 20px;
}
.auth-back:hover { color: var(--text); }
.auth-back svg { flex: none; }

.auth-card__head { text-align: center; margin-bottom: 26px; }
.auth-card__head .brand { margin-bottom: 20px; }
.auth-card h1 { font-size: 24px; margin-bottom: 8px; }
.auth-card__head p { color: var(--mute); font-size: 14.5px; }
.auth-card__foot { margin-top: 22px; text-align: center; color: var(--mute); font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--mute); }
.field__hint { font-size: 12.5px; color: var(--dim); }
.field__row { display: flex; gap: 10px; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--dim); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(243, 30, 122, 0.18);
}
::placeholder { color: #5b606c; }

.notice {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid;
  display: none;
}
.notice.is-shown { display: block; }
.notice--error { background: rgba(255, 92, 92, 0.09); border-color: rgba(255, 92, 92, 0.4); color: #ffb3b3; }
.notice--ok { background: rgba(61, 220, 132, 0.09); border-color: rgba(61, 220, 132, 0.35); color: #a8f0c6; }
.notice--info { background: var(--grad-soft); border-color: var(--line-2); color: var(--text); }

.pw-meter { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.pw-meter__bar { height: 100%; width: 0; background: var(--grad); transition: width 200ms ease; }

@media (max-width: 720px) {
  .site-nav { padding: 12px 16px; gap: 12px; }
  .site-nav__links { display: none; }
  .wrap { padding: 0 18px; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 52px 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto; }
}
