:root {
  --bg: #050607;
  --panel: rgba(255,255,255,.075);
  --line: rgba(255,255,255,.14);
  --text: #f7fafc;
  --muted: #a9b3c2;
  --cyan: #00e5ff;
  --lime: #a3ff12;
  --hot: #ff2f8a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 80% 0, rgba(0,229,255,.16), transparent 28%),
    radial-gradient(circle at 10% 70%, rgba(163,255,18,.11), transparent 30%),
    linear-gradient(145deg, #050607, #111418 52%, #030405);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 44px;
  border-bottom: 1px solid var(--line);
  background: rgba(5,6,7,.74);
  backdrop-filter: blur(22px);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 900; }
.brand img { width: 40px; height: 40px; border-radius: 13px; }
nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  color: #020304;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  font-weight: 900;
  cursor: pointer;
}
.button.small { min-height: 34px; padding: 0 14px; }
.button.ghost { color: var(--text); background: rgba(255,255,255,.08); border: 1px solid var(--line); }
.button.disabled { opacity: .42; pointer-events: none; }

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 44px;
  align-items: center;
  padding: 64px 64px 80px;
}

.eyebrow { color: var(--cyan); text-transform: uppercase; font-size: 12px; font-weight: 900; }
h1 { font-size: clamp(42px, 6vw, 82px); line-height: .95; margin: 0 0 22px; max-width: 900px; }
h2 { font-size: clamp(30px, 4vw, 52px); margin: 0; }
h3 { margin: 0 0 10px; }
p { color: var(--muted); line-height: 1.6; }
.hero-copy p { max-width: 720px; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.app-preview, .glass-panel, .feature-grid article, .pricing article, .auth-card, .profile-card, .admin-table {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
  backdrop-filter: blur(24px);
}

.app-preview { min-height: 440px; padding: 24px; position: relative; overflow: hidden; }
.window-dots { display: flex; gap: 8px; margin-bottom: 34px; }
.window-dots i { width: 12px; height: 12px; border-radius: 999px; background: rgba(255,255,255,.25); }
.preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.preview-grid article { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: rgba(0,0,0,.18); }
.preview-grid span { display: block; color: var(--muted); margin-bottom: 8px; }
.score-ring { position: absolute; right: 32px; bottom: 32px; width: 150px; aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; font-size: 44px; font-weight: 900; background: radial-gradient(circle, #0a0d10 55%, transparent 56%), conic-gradient(var(--lime), var(--cyan), var(--hot), var(--lime)); }

.section { padding: 80px 64px; }
.section-head { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 28px; }
.section-head p { max-width: 560px; margin: 0; }
.feature-grid, .pricing, .account-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid article, .pricing article, .auth-card, .profile-card { padding: 24px; }
.feature-grid b { color: var(--lime); }
.split { display: grid; grid-template-columns: 1fr 420px; gap: 34px; align-items: start; }
.steps { display: grid; gap: 10px; }
.glass-panel { padding: 24px; }
.pricing .featured { background: linear-gradient(150deg, rgba(0,229,255,.18), rgba(163,255,18,.12)); }
.pricing strong { display: block; font-size: 34px; margin: 8px 0; }

input {
  width: 100%;
  height: 46px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 0 14px;
}

select {
  width: 100%;
  height: 46px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 0 14px;
}

.profile-card p { margin: 8px 0; }
.success { color: var(--lime); }
.danger { color: #ff8fbd; }
.admin-table { overflow: hidden; }
.admin-table > div { display: grid; grid-template-columns: .8fr 1fr 1.7fr 1fr .8fr; gap: 12px; padding: 16px 20px; border-top: 1px solid rgba(255,255,255,.1); }
.admin-table > div:first-child { border-top: 0; color: var(--muted); }
.admin-table button { border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: rgba(255,255,255,.08); }

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 34px 64px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.cookie {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5,6,7,.9);
  backdrop-filter: blur(18px);
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-shell {
  width: min(1120px, 100%);
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 34px 110px rgba(0,0,0,.44);
  backdrop-filter: blur(24px);
}

.auth-shell.compact { min-height: 520px; }

.auth-hero {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(150deg, rgba(0,229,255,.18), transparent 45%),
    linear-gradient(20deg, rgba(163,255,18,.12), transparent 55%);
}

.brand.big img { width: 58px; height: 58px; border-radius: 18px; }
.brand.big span { font-size: 22px; }
.auth-hero h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 34px; }

.auth-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.auth-points span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(0,0,0,.22);
  font-size: 13px;
  font-weight: 800;
}

.auth-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(0,0,0,.22);
}

.tab {
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.tab.active {
  color: #020304;
  background: linear-gradient(135deg, var(--cyan), var(--lime));
}

.auth-card.flat {
  display: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.auth-card.flat.active,
.auth-form.active { display: block; }

.notice {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(163,255,18,.35);
  border-radius: 14px;
  color: var(--text);
  background: rgba(163,255,18,.10);
}

.notice.danger {
  border-color: rgba(255,47,138,.42);
  background: rgba(255,47,138,.12);
}

.dashboard-hero { min-height: auto; }
.hero-card { padding: 24px; }

.inline-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 18px;
}

.inline-form input { margin: 0; }

.screenshot-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,.36);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.screenshot-gallery .main-shot {
  grid-column: 1 / -1;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.doc-links a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255,255,255,.08);
}

.admin-section { padding-top: 52px; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions form { margin: 0; }

.key-list p {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.events-table > div { grid-template-columns: 1.1fr .8fr .9fr 2fr .9fr; }

.legal-page {
  max-width: 940px;
  margin: 0 auto;
}

@media (max-width: 960px) {
  .site-header { padding: 0 18px; }
  nav { display: none; }
  .hero, .split { grid-template-columns: 1fr; padding: 42px 22px; }
  .section { padding: 52px 22px; }
  .feature-grid, .pricing, .account-grid { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .admin-table { overflow-x: auto; }
  .admin-table > div { min-width: 760px; }
  footer { padding: 28px 22px; }
  .cookie { align-items: start; flex-direction: column; }
  .auth-body { padding: 0; place-items: stretch; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border-radius: 0; }
  .auth-hero, .auth-panel { padding: 28px 22px; }
  .inline-form { grid-template-columns: 1fr; }
}
