:root {
  color-scheme: light;
  --bg: #f8f9fb;
  --text: #0d0f12;
  --muted: #5c6470;
  --card: #ffffff;
  --border: rgba(13, 15, 18, 0.08);
  --primary: #5865f2;
  --primary-dark: #4752c4;
  --shadow: 0 40px 80px rgba(15, 18, 25, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  padding: 56px 5vw 80px;
  position: relative;
  overflow: hidden;
}

.grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.16), transparent 70%);
  filter: blur(10px);
  animation: float 12s ease-in-out infinite;
}

.orb-one {
  top: -200px;
  left: -120px;
}

.orb-two {
  bottom: -240px;
  right: -180px;
  animation-delay: -4s;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.02em;
  max-width: 1180px;
  margin: 0 auto 48px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
}

.hero-lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hero-metrics div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(15, 18, 25, 0.08);
  display: grid;
  gap: 6px;
}

.hero-metrics strong {
  font-size: 15px;
}

.hero-metrics span {
  font-size: 14px;
  color: var(--muted);
}

.hero-card {
  margin-top: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, #ffffff, #f3f5ff);
  box-shadow: 0 26px 50px rgba(15, 18, 25, 0.1);
}

.hero-card-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.card {
  width: min(420px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 36px 34px;
  box-shadow: var(--shadow);
  position: relative;
  animation: lift 0.7s ease-out;
}

.panel {
  display: none;
  animation: fadeSlide 0.5s ease both;
}

.panel.active {
  display: block;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
}

h1 {
  font-size: 32px;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.6;
}

.footnote {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.discord-button {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  background: var(--primary);
  color: #111111;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 18px 36px rgba(88, 101, 242, 0.28);
}

.discord-button:hover {
  transform: translateY(-2px);
  background: var(--primary-dark);
}

.primary-button,
.secondary-button,
.ghost-button {
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button {
  background: var(--text);
  color: #fff;
  border: none;
}

.secondary-button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.ghost-button {
  background: transparent;
  border: none;
  color: var(--muted);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

input,
textarea {
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fafbfe;
  color: var(--text);
}

.hello {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.hello span {
  position: relative;
}

.hello span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, rgba(88, 101, 242, 0.45), transparent);
  z-index: -1;
  border-radius: 999px;
  animation: sweep 1.4s ease forwards;
}

.dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.dashboard-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: #f5f6fb;
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lift {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(24px);
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    gap: 8px;
  }

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

  .hero h1 {
    font-size: 32px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 32px 24px;
  }

  h1 {
    font-size: 28px;
  }
}
