.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 44vh;
  padding: 1rem 0 2rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero.compact {
  min-height: auto;
  padding-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2rem;
  margin-bottom: 1.15rem;
  padding: 0.42rem 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  animation: fadeInUp 0.8s ease both;
}

.pulse {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(240, 91, 102, 0.7);
  animation: pulse 1.6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
}

h1 {
  max-width: 780px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.04;
}

.hero.compact h1 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
}

h2 {
  font-size: 1.16rem;
  font-weight: 900;
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
}

.lede {
  max-width: 720px;
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.gradient-text {
  background: linear-gradient(
    135deg,
    #fff 0%,
    var(--primary) 50%,
    var(--secondary) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
}

.actions,
.row-actions,
.server-card-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  flex-wrap: wrap;
}

.actions {
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0.68rem 1.05rem;
  border: 0;
  border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 18%, transparent);
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.24),
    transparent
  );
  transform: translateX(-120%);
  transition: transform 420ms ease;
  pointer-events: none;
}

.button:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--primary) 24%, transparent);
}

.button:hover::after {
  transform: translateX(120%);
}

.button.small {
  min-height: 2.1rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

.button.icon-button {
  width: 2.55rem;
  height: 2.55rem;
  min-height: 2.55rem;
  padding: 0;
  border-radius: 0.6rem;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: none;
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.button.danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
  box-shadow: none;
}

.button.danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.button.disabled,
.button.disabled:hover {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

.custom-bot-coming-soon {
  display: grid;
  min-height: min(720px, calc(100vh - 180px));
  place-items: center;
  align-content: center;
  gap: 2rem;
  padding: 3rem 0;
  text-align: center;
}

.custom-bot-intro {
  display: grid;
  width: min(100%, 690px);
  max-width: 690px;
  margin-inline: auto;
  gap: 0.7rem;
  justify-items: center;
}

.custom-bot-intro h1 {
  --coming-color-start: #fffdf5;
  width: max-content;
  margin: 0 auto;
  max-width: none;
  padding-bottom: 0.12em;
  color: var(--coming-color-start);
  font-size: clamp(2.35rem, 7.4vw, 5.75rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  white-space: nowrap;
  overflow: visible;
  transform: translateZ(0);
}

.custom-bot-intro .lede {
  max-width: 590px;
  margin: 0;
}

.pendulum-clock {
  position: relative;
  width: clamp(200px, 26vw, 260px);
  margin-top: 2.25rem;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.45));
}

.pendulum-clock::before {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 26px;
  height: 18px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(160deg, #7a4f2a, #3a2415);
  content: "";
  transform: translateX(-50%);
}

.pendulum-head {
  position: relative;
  z-index: 2;
  aspect-ratio: 1;
  padding: 13px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7a4f2a, #4a2d16 60%, #2e1c0d);
  box-shadow:
    inset 0 2px 6px rgba(255, 220, 160, 0.35),
    inset 0 -5px 12px rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(0, 0, 0, 0.22);
}

.pendulum-face {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #f7ecd2, #e6d3a3 62%, #c9ab72);
  box-shadow:
    inset 0 0 0 2px rgba(90, 58, 34, 0.6),
    inset 0 6px 18px rgba(90, 58, 34, 0.35);
}

.pendulum-face::before {
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from -1deg,
    rgba(58, 36, 21, 0.9) 0 1.4deg,
    transparent 1.4deg 30deg
  );
  -webkit-mask: radial-gradient(circle, transparent 0 76%, #000 77%);
  mask: radial-gradient(circle, transparent 0 76%, #000 77%);
  content: "";
}

.pendulum-face::after {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.3) 0%, transparent 34%);
  content: "";
  pointer-events: none;
}

.pendulum-numeral {
  position: absolute;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 700;
  color: #3a2415;
  transform: translate(-50%, -50%);
}

.pendulum-numeral.n12 {
  top: 14%;
  left: 50%;
}

.pendulum-numeral.n3 {
  top: 50%;
  left: 86%;
}

.pendulum-numeral.n6 {
  top: 86%;
  left: 50%;
}

.pendulum-numeral.n9 {
  top: 50%;
  left: 14%;
}

.pendulum-hand {
  position: absolute;
  z-index: 2;
  bottom: 50%;
  left: 50%;
  border-radius: 999px 999px 4px 4px;
  background: #2b1a0e;
  box-shadow: 0 0 6px rgba(43, 26, 14, 0.5);
  transform-origin: 50% 100%;
}

.pendulum-minute {
  width: 5px;
  height: 36%;
  margin-left: -2.5px;
  animation: pendulum-spin 60s linear infinite;
}

.pendulum-hour {
  width: 8px;
  height: 25%;
  margin-left: -4px;
  animation: pendulum-spin 720s linear infinite;
}

@keyframes pendulum-spin {
  to {
    transform: rotate(360deg);
  }
}

.pendulum-center {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 2px solid #3a2415;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4d67e, #c49a3f 60%, #7a5a1e);
  transform: translate(-50%, -50%);
}

.pendulum-body {
  position: relative;
  z-index: 1;
  width: 62%;
  height: clamp(150px, 20vw, 200px);
  margin: -12px auto 0;
  padding: 10px;
  border-radius: 14px 14px 48px 48px / 14px 14px 64px 64px;
  background: linear-gradient(160deg, #6b4423, #3f2612 70%);
  box-shadow:
    inset 0 2px 5px rgba(255, 220, 160, 0.3),
    inset 0 -6px 14px rgba(0, 0, 0, 0.5);
}

.pendulum-window {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 8px 8px 36px 36px / 8px 8px 50px 50px;
  background: linear-gradient(#0b0b0d, #16161b);
  box-shadow:
    inset 0 0 0 2px rgba(233, 196, 106, 0.35),
    inset 0 8px 22px rgba(0, 0, 0, 0.8);
}

.pendulum-swing {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 0;
  height: 100%;
  transform-origin: top center;
  animation: pendulum-swing 2s ease-in-out infinite alternate;
}

@keyframes pendulum-swing {
  from {
    transform: rotate(11deg);
  }

  to {
    transform: rotate(-11deg);
  }
}

.pendulum-rod {
  position: absolute;
  top: 0;
  left: -2px;
  width: 4px;
  height: 76%;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a6a2f, #e9c46a 50%, #8a6a2f);
}

.pendulum-bob {
  position: absolute;
  bottom: 3%;
  left: 50%;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f4d67e, #c49a3f 55%, #7a5a1e);
  box-shadow:
    0 0 14px rgba(233, 196, 106, 0.35),
    inset 0 -3px 8px rgba(0, 0, 0, 0.45);
  transform: translateX(-50%);
}

.custom-bot-contact {
  width: min(620px, 100%);
  padding: 1rem 1.1rem;
  text-align: left;
}

.custom-bot-contact h2 {
  margin: 0.25rem 0 0.55rem;
}

.custom-bot-contact code {
  color: var(--primary);
}

.custom-bot-contact .actions {
  gap: 0.55rem;
  margin-top: 1rem;
}

.custom-bot-contact .button {
  min-height: 2.2rem;
  padding: 0.52rem 0.72rem;
  font-size: 0.82rem;
}

@media (prefers-reduced-motion: reduce) {
  .pendulum-swing,
  .pendulum-hand {
    animation: none;
  }
}

@media (max-width: 600px) {
  .custom-bot-coming-soon {
    min-height: auto;
    gap: 1.4rem;
    padding: 2rem 0;
  }

  .pendulum-clock {
    width: min(220px, 64vw);
    margin-top: 2rem;
  }

  .pendulum-body {
    height: 160px;
  }

  .panel.custom-bot-contact {
    width: 100%;
    padding: 0.9rem;
  }

  .custom-bot-contact .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .custom-bot-contact .button {
    width: 100%;
    white-space: normal;
  }
}

.magnetic {
  transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dashboard-open-form {
  position: relative;
  z-index: 5;
  display: inline-flex;
  margin: 0;
  pointer-events: auto;
}

.panel,
.server-card {
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.panel {
  padding: 1.25rem;
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 20%,
    rgba(255, 255, 255, 0.06) 44%,
    rgba(240, 91, 102, 0.08) 50%,
    transparent 76%
  );
  opacity: 0;
  transform: translate3d(-115%, 0, 0);
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 200ms ease;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glow-card:hover::before {
  opacity: 1;
  transform: translate3d(115%, 0, 0);
}

.server-card.glow-card::before,
.tournament-ad-card.glow-card::before,
.tournament-panel.glow-card::before,
.moderation-card.glow-card::before {
  display: none;
}

@media (hover: none) {
  .glow-card::before {
    display: none;
  }
}

.glow-card > * {
  position: relative;
  z-index: 1;
}

.hero-stage {
  width: min(100%, 410px);
  flex: 0 0 410px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.11),
      rgba(255, 255, 255, 0.045)
    ),
    rgba(16, 16, 16, 0.88);
  box-shadow: var(--shadow);
}

.stage-toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.stage-toolbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #ef4444;
}

.stage-toolbar span:nth-child(2) {
  background: #f59e0b;
}

.stage-toolbar span:nth-child(3) {
  background: #22c55e;
}

.stage-toolbar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}

.console-feed {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}

.feed-line {
  display: grid;
  grid-template-columns: auto 72px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.72rem;
  background: rgba(255, 255, 255, 0.045);
  animation: feedIn 600ms ease both;
  transition: border-color 0.2s ease;
}

.feed-line:hover {
  border-color: rgba(225, 29, 46, 0.3);
}

.feed-line:nth-child(2) {
  animation-delay: 160ms;
}

.feed-line:nth-child(3) {
  animation-delay: 320ms;
}

.feed-line span:last-child {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--primary);
}

.feed-dot.ok {
  background: var(--accent);
}

.feed-dot.hot {
  background: var(--secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.stats-grid .metric {
  margin: 0;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.stats-grid .metric span {
  font-size: 0.74rem;
}

.stats-grid .metric strong {
  margin-top: 0;
  font-size: 1.1rem;
}

@media (max-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pagination-info {
  color: var(--muted);
  font-size: 0.82rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pagination-controls .button.small {
  min-width: 2.1rem;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
}

.pagination-ellipsis {
  padding: 0 0.2rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .pagination {
    justify-content: center;
  }
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-panel {
  min-height: 190px;
  transition: border-color 160ms ease;
}

.feature-panel:hover {
  border-color: rgba(225, 29, 46, 0.34);
}

.profile-entry-button {
  gap: 0.55rem;
  border-color: rgba(225, 29, 46, 0.28);
  background: linear-gradient(
    135deg,
    rgba(225, 29, 46, 0.14),
    rgba(240, 91, 102, 0.08)
  );
}

.profile-entry-button span {
  padding-left: 0.55rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: start;
  margin-bottom: 2rem;
}

.profile-preview-card {
  display: grid;
  gap: 1rem;
}

.profile-preview-card h2 {
  margin: 0;
}

.profile-preview-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.profile-preview-image,
.profile-preview-empty {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.045);
}

.profile-preview-image {
  display: block;
  object-fit: cover;
}

.profile-preview-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 3rem;
}

.profile-facts {
  display: grid;
  gap: 0.6rem;
}

.profile-facts span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.profile-facts strong {
  color: var(--ink);
}

@media (max-width: 760px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

.feature-icon,
.server-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  background: linear-gradient(
    135deg,
    rgba(225, 29, 46, 0.28),
    rgba(235, 69, 158, 0.22)
  );
  color: #fff;
  font-weight: 900;
}

.feature-icon {
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  animation: softBounce 4s ease-in-out infinite;
}

.server-icon-shell {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
}

/* Discord-style circular server icons on the server list. */
.server-icon.server-icon-img,
.server-icon-img {
  border-radius: 50%;
  object-fit: cover;
}

.feature-panel h3 {
  margin-bottom: 0.35rem;
}

.feature-panel p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.landing-section {
  max-width: 720px;
  margin: 5rem auto 1.5rem;
  text-align: center;
}

.landing-section h2,
.workflow-section h2,
.landing-cta h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.75rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.section-lede {
  color: var(--muted);
  line-height: 1.75;
}

.feature-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid rgba(225, 29, 46, 0.22);
  border-radius: 0.8rem;
  color: var(--accent);
  background: rgba(225, 29, 46, 0.08);
}

.workflow-section {
  display: grid;
  gap: 1.5rem;
  margin-top: 5rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-grid li > span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.workflow-grid strong,
.workflow-grid p {
  display: block;
  margin-top: 0.65rem;
}

.workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.landing-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 5rem;
  background: linear-gradient(
    135deg,
    rgba(225, 29, 46, 0.1),
    rgba(20, 18, 4, 0.88)
  );
}

@media (max-width: 760px) {
  .workflow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-grid li:last-child {
    grid-column: 1 / -1;
  }

  .landing-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid li:last-child {
    grid-column: auto;
  }
}
