:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020c20;
  color: #f7f9ff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 20px;
  background:
    radial-gradient(circle at 78% 28%, rgba(45, 104, 255, .22), transparent 31%),
    radial-gradient(circle at 24% 72%, rgba(109, 71, 246, .14), transparent 32%),
    linear-gradient(135deg, #020c20 0%, #061633 52%, #020a18 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 22%, black 80%, transparent);
}

.site-shell { width: min(100%, 1290px); margin: 0 auto; position: relative; }

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 22px;
  border-radius: 28px;
  background: #f7f8fc;
  color: #07152f;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.brand { display: flex; align-items: center; }
.brand-logo {
  display: block;
  width: auto;
  height: 50px;
  object-fit: contain;
}
.nav-label { margin-left: auto; font-size: .78rem; font-weight: 800; letter-spacing: .15em; color: #536079; }
.online {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid #cad3e6;
  border-radius: 999px;
  font-weight: 800;
}
.online span { width: 9px; height: 9px; border-radius: 50%; background: #2875ff; box-shadow: 0 0 0 4px rgba(40,117,255,.13); }

.hero {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .75fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding: clamp(54px, 8vw, 105px) clamp(8px, 2vw, 28px);
}

.intro { max-width: 710px; }
.eyebrow, .panel-kicker { margin: 0 0 22px; color: #39d7ea; font-size: .78rem; font-weight: 900; letter-spacing: .18em; }
.intro h1 { margin: 0; font-size: clamp(3.35rem, 7.2vw, 6.8rem); line-height: .88; letter-spacing: -.065em; font-weight: 450; }
.lede { max-width: 670px; margin: 28px 0 26px; color: #cdd7eb; font-size: clamp(1.05rem, 2vw, 1.32rem); line-height: 1.55; }
.benefits { display: flex; flex-wrap: wrap; gap: 12px 25px; margin: 0; padding: 0; list-style: none; color: #dce6f8; }
.benefits li::before { content: "✓"; margin-right: 8px; color: #39d7ea; font-weight: 900; }

.control-panel {
  padding: 28px;
  border: 1px solid rgba(132, 164, 223, .26);
  border-radius: 30px;
  background: rgba(7, 20, 47, .88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .38);
  backdrop-filter: blur(18px);
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-kicker { margin-bottom: 6px; }
.panel-heading h2 { margin: 0; font-size: 2rem; letter-spacing: -.035em; }
.secure-badge { padding: 8px 12px; border-radius: 999px; background: rgba(46, 116, 255, .13); color: #8eb7ff; font-size: .78rem; font-weight: 800; }

.card { display: grid; gap: 9px; }
.card[hidden] { display: none; }
label { margin-top: 8px; color: #eaf0fc; font-size: .92rem; font-weight: 750; }
small { color: #8fa0bd; }
.quota { margin: 0 0 7px; color: #74dded; font-weight: 850; }

input {
  width: 100%;
  border: 1px solid #34486e;
  border-radius: 14px;
  padding: 14px 15px;
  background: rgba(2, 11, 28, .82);
  color: #ffffff;
  font: inherit;
}
input::placeholder { color: #6e7f9f; }
input:focus { outline: 2px solid #4384ff; outline-offset: 2px; border-color: transparent; }

button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  margin-top: 12px;
  background: linear-gradient(100deg, #1676ff, #5a63f8 65%, #7147f5);
  color: #ffffff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(31, 99, 255, .26);
}
button:hover { filter: brightness(1.08); transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .58; transform: none; }
button.secondary { background: #263653; box-shadow: none; color: #f2f6ff; }
#status { min-height: 23px; margin: 15px 2px 0; }
#status.success { color: #74dded; }
#status.error { color: #ff9baf; }

dialog {
  width: min(calc(100% - 32px), 470px);
  border: 1px solid #4b5f86;
  border-radius: 24px;
  padding: 25px;
  background: #07152e;
  color: #f6f8ff;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
dialog::backdrop { background: rgba(1, 6, 17, .82); backdrop-filter: blur(5px); }
.actions { display: flex; gap: 10px; }
.actions button { flex: 1; }

@media (max-width: 900px) {
  body { padding: 12px; }
  .topbar { min-height: 70px; border-radius: 22px; }
  .nav-label { display: none; }
  .online { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 55px 8px; }
  .intro h1 { font-size: clamp(3.4rem, 15vw, 5.6rem); }
  .control-panel { width: min(100%, 610px); }
}

@media (max-width: 520px) {
  .brand-logo { height: 41px; }
  .online { padding: 9px 11px; font-size: .78rem; }
  .hero { padding-top: 44px; }
  .intro h1 { font-size: 3.5rem; }
  .control-panel { padding: 20px; border-radius: 23px; }
}
