:root {
  color-scheme: dark;
  --ink: #fffaf0;
  --muted: rgba(255, 250, 240, 0.76);
  --soft: rgba(255, 250, 240, 0.58);
  --glass: rgba(10, 12, 18, 0.32);
  --glass-strong: rgba(255, 255, 255, 0.16);
  --line: rgba(255, 255, 255, 0.28);
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #050507;
}

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

.scene {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 42%, rgba(0, 0, 0, 0.18)),
    url("./background.png") center center / cover no-repeat,
    linear-gradient(90deg, #207eb0 0 50%, #020204 50% 100%);
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 74% 28%, rgba(255, 255, 255, 0.12), transparent 15%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4));
}

.star-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 42px;
}

.glass {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    var(--glass);
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(24px) saturate(1.22);
  -webkit-backdrop-filter: blur(24px) saturate(1.22);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 8px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--soft);
  font-size: 14px;
}

.nav-links a {
  padding: 9px 11px;
  border-radius: 8px;
}

.nav-links a:hover,
.tile:hover {
  background-color: var(--glass-strong);
}

.hero {
  max-width: 720px;
  padding: 14vh 0 42px;
}

.eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 231, 187, 0.88);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7.2vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.summary {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
}

.dashboard {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 14px;
  align-items: stretch;
}

.tile {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.tile:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.48);
}

.tile.primary {
  min-height: 250px;
}

.label {
  color: rgba(255, 231, 187, 0.78);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tile strong {
  display: block;
  margin-top: 30px;
  font-size: 34px;
  letter-spacing: 0;
}

.tile p {
  margin: 12px 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.domain {
  display: block;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
}

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

@media (max-width: 680px) {
  .scene {
    background-position: center top;
  }

  .shell {
    width: min(100% - 28px, 1180px);
    padding-top: 16px;
  }

  .topbar {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .hero {
    padding: 12vh 0 30px;
  }

  h1 {
    font-size: clamp(40px, 13vw, 64px);
  }

  .summary {
    font-size: 16px;
  }

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

  .tile,
  .tile.primary {
    min-height: 190px;
  }
}
