:root {
  color-scheme: dark;
  --bg: #020305;
  --stage: #05070b;
  --panel: rgba(13, 22, 35, .86);
  --panel-soft: rgba(12, 18, 27, .54);
  --field: rgba(4, 7, 12, .62);
  --hover: rgba(35, 40, 54, .42);
  --border: rgba(210, 230, 250, .14);
  --border-glow: rgba(210, 230, 250, .28);
  --text: #e6edf5;
  --text-secondary: #aab6c5;
  --text-muted: #67717f;
  --accent: #a9edf8;
  --accent-strong: #78c6dd;
  --accent-glow: rgba(120, 185, 220, .14);
  --on-accent: #051018;
  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 8px 32px rgba(0, 0, 0, .35), 0 0 20px rgba(110, 231, 255, .04);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 20%, rgba(120, 185, 220, .08), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--stage));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.watermark {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .055;
  background: url("/ui/darkSymbol.svg") center 44% / min(78vw, 760px) auto no-repeat;
  filter: invert(.85);
  pointer-events: none;
}

.topbar,
.welcome,
footer { position: relative; z-index: 1; }

.topbar {
  width: min(calc(100% - 40px), 1040px);
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.topbar img { width: 156px; height: auto; }

.state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  color: var(--text-secondary);
  background: var(--panel-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .78rem;
}

.state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.welcome {
  width: min(calc(100% - 40px), 780px);
  margin: 0 auto;
  padding: 72px 0 80px;
  text-align: center;
}

.intro { display: flex; flex-direction: column; align-items: center; }
.logo { width: 200px; height: 86px; margin-bottom: 8px; }

h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 13px; font-size: clamp(1.8rem, 4vw, 2.45rem); font-weight: 500; letter-spacing: -.025em; }
.intro > p { max-width: 610px; margin-bottom: 38px; color: var(--text-secondary); font-size: 1rem; }

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

.cards article {
  min-height: 190px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(230, 246, 255, .04);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cards article:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, var(--hover), var(--panel));
  border-color: var(--border-glow);
  box-shadow: var(--shadow);
}

.card-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-small);
  font: 600 .9rem/1 ui-monospace, "Cascadia Code", monospace;
  box-shadow: 0 0 18px var(--accent-glow);
}

h2 { margin-bottom: 7px; font-size: .95rem; font-weight: 600; }
.cards p { margin-bottom: 0; color: var(--text-muted); font-size: .83rem; line-height: 1.45; }

.notice {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  text-align: left;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.notice-mark {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--on-accent);
  background: linear-gradient(180deg, var(--accent), var(--accent-strong));
  border-radius: 50%;
  font: 700 .8rem/1 ui-monospace, monospace;
}

.notice strong { font-size: .87rem; font-weight: 600; }
.notice p { margin: 2px 0 0; color: var(--text-muted); font-size: .8rem; }

footer {
  width: min(calc(100% - 40px), 1040px);
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-size: .78rem;
}

nav { display: flex; gap: 22px; }
nav a { color: var(--text-secondary); text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--accent); }

@media (max-width: 680px) {
  .welcome { padding-top: 52px; }
  .cards { grid-template-columns: 1fr; }
  .cards article { min-height: 150px; }
  footer { padding: 22px 0; flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .cards article { transition: none; }
}
