
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Syne:wght@600;700;800&display=swap');

:root {
  --main: #000000;
  --secondary: #3B1154;
  --alternative: #B659FF;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(182, 89, 255, 0.22);
  --text: #f4ecff;
  --muted: rgba(244, 236, 255, 0.72);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(182, 89, 255, 0.18), transparent 28%),
    radial-gradient(circle at 85% 20%, rgba(59, 17, 84, 0.9), transparent 32%),
    linear-gradient(180deg, #080008 0%, var(--main) 55%, #050205 100%);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(182, 89, 255, 0.18);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(182, 89, 255, 0.35), 0 10px 30px rgba(182, 89, 255, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  padding: 11px 15px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--text);
  border-color: rgba(182, 89, 255, 0.34);
  background: rgba(182, 89, 255, 0.12);
}

.panel,
.feature,
.stat,
.card,
.mini-card,
.auth-card,
.list-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.lead {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--alternative), #8d41e5);
  color: #110416;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(182, 89, 255, 0.25);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
}

.panel h2,
.panel h3,
.card h3,
.auth-card h2,
.list-card h2 {
  margin: 0 0 12px;
  font-family: 'Syne', sans-serif;
}

.stat span,
.meta,
.small-copy,
.card p,
.mini-card p,
.auth-card p,
.list-card p {
  color: var(--muted);
}

.section {
  padding: 20px 0 56px;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-top: 0;
  margin-bottom: 12px;
  font-family: 'Syne', sans-serif;
  line-height: 0.95;
}

.card,
.mini-card,
.auth-card,
.list-card {
  padding: 22px;
}

.card {
  display: grid;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(182, 89, 255, 0.12);
  color: var(--alternative);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  border-radius: 14px;
  border: 1px solid rgba(182, 89, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(182, 89, 255, 0.5);
  outline-offset: 1px;
}

.hidden {
  display: none !important;
}

.form-error {
    min-height: 1.2em;
    margin: 0;
    color: #ffb5d6;
    font-size: 0.92rem;
}

.site-footer {
  padding: 28px 0 44px;
  color: var(--muted);
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(182, 89, 255, 0.18);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
}

.site-footer h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-family: 'Syne', sans-serif;
}

.site-footer p {
  margin: 0;
  line-height: 1.7;
}

.site-footer ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .site-header-inner,
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr; /* Two columns for medium screens */
  }

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  .card,
  .mini-card,
  .auth-card,
  .list-card {
    border-radius: 22px;
  }

  .brand {
    font-size: 1rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }
}

@media (max-width: 580px) {
  .site-footer-grid {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }
}
