:root {
  color-scheme: dark;
  --bg: #06070b;
  --panel: #111524;
  --panel2: #151b2d;
  --line: #273047;
  --text: #f5f7fb;
  --muted: #a7b0c4;
  --blue: #48a7ff;
  --mint: #33d69f;
  --violet: #9b6cff;
  --danger: #ff5e73;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(72, 167, 255, .12), transparent 320px),
    radial-gradient(circle at 80% 20%, rgba(51, 214, 159, .16), transparent 280px),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 5vw, 56px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(6, 7, 11, .88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 800;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand b { color: var(--muted); font-size: 15px; }

.brand i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 20px var(--mint);
}

.menu-button, .drawer__close {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.menu-button {
  width: 52px;
  height: 48px;
  display: grid;
  place-content: center;
  gap: 6px;
}

.menu-button span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
}

.shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 38px 0 34px;
}

.intro {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  align-items: center;
  gap: 30px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint);
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 116px);
  line-height: .9;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.45;
}

.quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.quick span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  background: rgba(17, 21, 36, .8);
  color: #dce6f9;
  font-weight: 700;
}

.auth-panel, .tools article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 36, .86);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.auth-panel { padding: 18px; }

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel2);
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: var(--text);
  border-color: var(--blue);
  background: rgba(72, 167, 255, .16);
}

.auth-form { display: none; }
.auth-form.active { display: grid; gap: 14px; }

label {
  display: grid;
  gap: 8px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #090c14;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.auth-form button {
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  color: #031018;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
}

.auth-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tools article { padding: 22px; }
.tools h2 { margin: 0 0 10px; font-size: 24px; }
.tools p { margin: 0; color: var(--muted); line-height: 1.5; }

.footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  width: min(390px, 92vw);
  transform: translateX(105%);
  transition: transform .22s ease;
  padding: 18px;
  background: #0b0f1a;
  border-left: 1px solid var(--line);
  overflow: auto;
}

.drawer.open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
}

.drawer__close { min-height: 38px; padding: 0 12px; }

.drawer a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #dce6f9;
  text-decoration: none;
  font-weight: 700;
}

.drawer__label {
  margin-top: 18px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0,0,0,.56);
}

@media (max-width: 820px) {
  .topbar { padding: 12px 16px; }
  .brand { font-size: 20px; }
  .brand img { width: 44px; height: 44px; }
  .shell { padding-top: 26px; }
  .intro {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .lead { font-size: 18px; }
  .tools { grid-template-columns: 1fr; }
}
