:root {
  --bg: #08090d;
  --bg-soft: #121420;
  --surface: rgba(18, 20, 32, 0.75);
  --line: rgba(168, 123, 255, 0.32);
  --text: #f5f7ff;
  --muted: #b2bad3;
  --accent: #8c57ff;
  --accent-2: #5f7cff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(700px 340px at 18% 10%, rgba(140, 87, 255, 0.35), transparent),
    radial-gradient(600px 260px at 88% 0%, rgba(95, 124, 255, 0.28), transparent),
    linear-gradient(165deg, var(--bg), var(--bg-soft));
}

.ambient {
  position: fixed;
  width: 380px;
  height: 380px;
  filter: blur(70px);
  opacity: 0.34;
  pointer-events: none;
}

.ambient-left {
  background: #914cff;
  top: 80px;
  left: -120px;
}

.ambient-right {
  background: #4b7dff;
  top: -120px;
  right: -80px;
}

.topbar {
  width: min(1180px, calc(100vw - 36px));
  margin: 18px auto 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(10, 12, 19, 0.76);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
}

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

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #8f4dff, #5d7fff);
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a,
.admin-link {
  color: #d8def4;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.admin-link {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(168, 123, 255, 0.35);
  background: rgba(20, 16, 34, 0.76);
}

main {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 28px;
}

.hero {
  margin-top: 28px;
  border: 1px solid rgba(172, 134, 255, 0.28);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(18, 20, 34, 0.9), rgba(10, 11, 18, 0.85));
  padding: clamp(26px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 8px;
  color: #c8adff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero-text {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.btn-ghost {
  color: #efe9ff;
  border: 1px solid rgba(170, 131, 255, 0.4);
  background: rgba(24, 21, 38, 0.78);
}

.grid-section {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid rgba(161, 128, 255, 0.24);
  border-radius: 18px;
  background: var(--surface);
  padding: 18px;
}

.card h2 {
  margin: 0;
  font-size: 19px;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.panel {
  margin-top: 14px;
  border: 1px solid rgba(156, 120, 252, 0.22);
  border-radius: 18px;
  background: rgba(15, 16, 25, 0.72);
  padding: 20px;
}

.panel h2 {
  margin: 0 0 10px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.muted {
  color: var(--muted);
}

.footer {
  width: min(1180px, calc(100vw - 36px));
  margin: 0 auto 20px;
  display: flex;
  justify-content: space-between;
  color: #a3adcc;
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }

  .grid-section {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
  }
}
