:root {
  --bg: #05070b;
  --panel: rgba(12, 16, 22, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f7fb;
  --muted: rgba(232, 238, 246, 0.68);
  --gold: #d7ad5f;
  --accent: #8cb8ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

@keyframes siteAuroraShift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(0, -18px, 0) scale(1.06);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
}

@keyframes siteGridFloat {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -10px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes sitePanelGlow {
  0%,
  100% {
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  }
  50% {
    box-shadow: 0 34px 95px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  }
}

@keyframes siteAccentFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    linear-gradient(180deg, #040507 0%, #080a10 60%, #090b12 100%);
}

.bg::before,
.bg::after {
  content: '';
  position: absolute;
  inset: -12%;
  pointer-events: none;
}

.bg::before {
  background:
    radial-gradient(circle at 18% 18%, rgba(215, 173, 95, 0.16), transparent 22%),
    radial-gradient(circle at 80% 12%, rgba(140, 184, 255, 0.18), transparent 24%),
    radial-gradient(circle at 52% 78%, rgba(255, 255, 255, 0.05), transparent 28%);
  filter: blur(16px);
  animation: siteAuroraShift 18s ease-in-out infinite;
}

.bg::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent 92%);
  opacity: 0.24;
  animation: siteGridFloat 20s ease-in-out infinite;
}

a {
  text-decoration: none;
}

.topbar,
.panel,
.demo-panel {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  animation: sitePanelGlow 14s ease-in-out infinite;
}

.topbar {
  width: min(1180px, calc(100% - 28px));
  margin: 18px auto 0;
  border-radius: 24px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-topbar {
  gap: 16px;
}

.home-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.home-nav a {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.home-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.eyebrow,
.pill {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.76);
}

.brand {
  margin-top: 12px;
  font-weight: 800;
  font-size: 1.8rem;
}

main {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.home-hero {
  min-height: calc(100vh - 120px);
}

.hero-copy,
.hero-card,
.card,
.block,
.demo-panel {
  border-radius: 32px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-copy::before,
.hero-card::before,
.card::before,
.demo-panel::before {
  content: '';
  position: absolute;
  inset: -35% auto auto -20%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(140, 184, 255, 0.13), transparent 68%);
  filter: blur(16px);
  opacity: 0.75;
  pointer-events: none;
  animation: siteAuroraShift 16s ease-in-out infinite;
}

.obsidian-card::before,
.theme-obsidian .demo-panel::before {
  background: radial-gradient(circle, rgba(215, 173, 95, 0.16), transparent 68%);
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin: 20px 0;
}

.hero-copy h1 span {
  display: block;
  background: linear-gradient(90deg, #fff, #a9bbff 50%, #ffcf8e);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: siteAccentFlow 12s ease infinite;
}

.hero-copy p,
.block p,
.card p,
li {
  color: var(--muted);
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.btn.primary {
  background: linear-gradient(135deg, #fff, #dfe8ff 55%, #ffcf8e);
  background-size: 220% 220%;
  color: #091018;
  animation: siteAccentFlow 11s ease infinite;
}

.btn.ghost {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.btn.small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.92rem;
}

.btn.accent {
  background: linear-gradient(135deg, #8cb8ff, #bfd2ff);
  background-size: 220% 220%;
  color: #091018;
  animation: siteAccentFlow 12s ease infinite;
}

.btn.gold {
  background: linear-gradient(135deg, #f6d8a4, #c9993d);
  background-size: 220% 220%;
  color: #151005;
  animation: siteAccentFlow 13s ease infinite;
}

.hero-card img,
.card img {
  width: 100%;
  display: block;
  border-radius: 22px;
  background: #0d121b;
}

.hero-panel-preview {
  padding: 20px;
}

.mini-window {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(18, 24, 35, 0.95), rgba(9, 12, 18, 0.98));
  overflow: hidden;
  transform: perspective(1400px) rotateX(5deg) rotateY(-5deg);
  transition: transform 0.35s ease;
}

.hero-panel-preview:hover .mini-window {
  transform: perspective(1400px) rotateX(2deg) rotateY(-2deg) translateY(-4px);
}

.mini-top {
  display: flex;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.mini-shell {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 420px;
}

.mini-shell aside {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.mini-logo {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #121d2c, #202f4b);
  background-size: 220% 220%;
  font-weight: 800;
  margin-bottom: 18px;
  animation: siteAccentFlow 14s ease infinite;
}

.mini-nav-item {
  padding: 12px 14px;
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mini-nav-item:hover,
.mini-nav-item.active {
  color: #fff;
  background: rgba(140, 184, 255, 0.15);
  border: 1px solid rgba(140, 184, 255, 0.2);
  transform: translateX(2px);
}

.mini-shell section {
  padding: 18px;
}

.mini-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mini-stat,
.mini-card,
.stat-card,
.line-item,
.server-item,
.billing-item,
.node-item {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.mini-stat:hover,
.mini-card:hover,
.stat-card:hover,
.line-item:hover,
.server-item:hover,
.billing-item:hover,
.node-item:hover {
  transform: translateY(-3px);
  border-color: rgba(140, 184, 255, 0.18);
  background: rgba(255, 255, 255, 0.045);
}

.theme-obsidian .line-item:hover,
.theme-obsidian .server-item:hover,
.theme-obsidian .billing-item:hover,
.theme-obsidian .node-item:hover,
.obsidian-card:hover {
  border-color: rgba(215, 173, 95, 0.22);
}

.mini-stat,
.mini-card {
  border-radius: 18px;
}

.mini-stat {
  padding: 18px;
}

.mini-stat strong {
  display: block;
  font-size: 1.45rem;
}

.mini-stat span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.mini-card {
  min-height: 112px;
}

.mini-card.large {
  grid-column: 1 / -1;
  min-height: 164px;
}

.section {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 18px 0 0;
}

.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card h3,
.block h3 {
  font-size: 1.45rem;
  margin: 18px 0 10px;
}

.card-link {
  display: flex;
  flex-direction: column;
  transition: transform 0.24s ease;
}

.card-link:hover {
  transform: translateY(-5px);
}

.card-link .card-actions {
  margin-top: auto;
  padding-top: 6px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.block ul {
  padding-left: 18px;
  margin: 18px 0 0;
}

.obsidian-card {
  background: linear-gradient(180deg, rgba(18, 16, 12, 0.92), rgba(12, 12, 11, 0.92));
}

.demo-body {
  background: #07090e;
}

.demo-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.demo-sidebar {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 11, 17, 0.88);
  position: sticky;
  top: 0;
  height: 100vh;
}

.theme-obsidian .demo-sidebar {
  background: rgba(14, 12, 9, 0.94);
}

.theme-minecraft .demo-sidebar {
  background: rgba(10, 14, 20, 0.94);
}

.demo-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.demo-logo-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, #111c2d, #223454);
  background-size: 220% 220%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: siteAccentFlow 13s ease infinite;
}

.theme-obsidian .demo-logo-badge {
  background: linear-gradient(135deg, #23190d, #4c3110);
  background-size: 220% 220%;
}

.theme-minecraft .demo-logo-badge {
  background: linear-gradient(135deg, #102038, #1f5fb0);
  background-size: 220% 220%;
}

.demo-logo-copy strong {
  display: block;
  font-size: 1rem;
}

.demo-logo-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-nav {
  display: grid;
  gap: 10px;
}

.demo-nav button,
.demo-action,
.demo-top-links a,
.subtabs button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: #dfe7f4;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.demo-nav button:hover,
.demo-nav button.active,
.demo-action:hover,
.demo-top-links a:hover,
.subtabs button:hover,
.subtabs button.active {
  transform: translateX(2px);
  background: rgba(140, 184, 255, 0.14);
  border-color: rgba(140, 184, 255, 0.25);
  color: #fff;
}

.theme-obsidian .demo-nav button:hover,
.theme-obsidian .demo-nav button.active,
.theme-obsidian .demo-action:hover,
.theme-obsidian .demo-top-links a:hover,
.theme-obsidian .subtabs button:hover,
.theme-obsidian .subtabs button.active {
  background: rgba(215, 173, 95, 0.15);
  border-color: rgba(215, 173, 95, 0.28);
}

.demo-side-footer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 10px;
}

.demo-main {
  padding: 26px;
}

.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.demo-top h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.demo-top p {
  margin: 8px 0 0;
  color: var(--muted);
}

.demo-top-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-obsidian .demo-panel {
  background: rgba(18, 15, 11, 0.92);
}

.theme-minecraft .demo-panel {
  background: rgba(13, 18, 27, 0.92);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  border-radius: 22px;
  padding: 18px;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.8rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 16px;
}

.stack,
.line-list,
.server-list,
.user-table,
.node-grid,
.billing-grid,
.server-controls {
  display: grid;
  gap: 12px;
}

.line-item,
.server-item,
.billing-item,
.node-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 18px;
}

.line-item .meta,
.server-item .meta,
.node-item .meta,
.billing-item .meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.chip {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chip.green {
  background: rgba(65, 191, 118, 0.14);
  color: #9bf0b8;
}

.chip.blue {
  background: rgba(140, 184, 255, 0.14);
  color: #bdd5ff;
}

.chip.gold {
  background: rgba(215, 173, 95, 0.15);
  color: #f0d196;
}

.chip.red {
  background: rgba(238, 103, 103, 0.16);
  color: #ffb1b1;
}

.console {
  min-height: 280px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, #0a0f15, #06080d);
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #cfe2ff;
  line-height: 1.7;
  overflow: auto;
  box-shadow: inset 0 0 0 1px rgba(140, 184, 255, 0.03), 0 20px 40px rgba(0, 0, 0, 0.24);
}

.theme-obsidian .console {
  color: #f2dbb3;
  background: linear-gradient(180deg, #120f0a, #080706);
  box-shadow: inset 0 0 0 1px rgba(215, 173, 95, 0.04), 0 20px 40px rgba(0, 0, 0, 0.24);
}

.control-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.control-bar button {
  appearance: none;
  border: none;
  border-radius: 14px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #091018;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.control-bar button:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
}

.control-bar .start {
  background: #9bf0b8;
}

.control-bar .restart {
  background: #bdd5ff;
}

.control-bar .stop {
  background: #ffb1b1;
}

.subtabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.58);
}

.table td {
  color: #ecf2fd;
}

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

.empty {
  display: none;
}

.theme-switch-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.home-demo-note {
  margin-top: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .hero,
  .grid.three,
  .two-col,
  .stats-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .mini-shell aside {
    display: none;
  }

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

  .demo-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .home-hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-copy,
  .hero-card,
  .card,
  .block,
  .demo-panel {
    padding: 20px;
  }

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

  .demo-main {
    padding: 18px;
  }

  .demo-top h1 {
    font-size: 1.65rem;
  }
}
