:root {
  color-scheme: light dark;
  --bg: #fbfbfd;
  --bg-subtle: #f2f2f6;
  --text: #14151a;
  --text-muted: #6b6f7a;
  --border: #e4e4ea;
  --accent: #4338ca;
  --accent-2: #7c6bff;
  --accent-soft: #eeecff;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0d;
    --bg-subtle: #17181f;
    --text: #f4f4f6;
    --text-muted: #93949f;
    --border: #24252e;
    --accent: #8b7dff;
    --accent-2: #5a4bff;
    --accent-soft: #1c1a2e;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

header.top { padding: 28px 0 0; position: relative; z-index: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 26px;
  height: auto;
  flex: none;
  display: block;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Homepage --- */

.hero-screen {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-screen::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -55%);
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 68%);
  pointer-events: none;
}

.hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-mark {
  width: 108px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 14px 28px color-mix(in srgb, var(--accent) 35%, transparent));
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  line-height: 1.08;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 30px;
  max-width: 34ch;
  font-weight: 450;
}

.notice {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.01em;
}

.notice .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  font-size: 0.84rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* --- Legal pages --- */

.legal main { padding: 44px 0 20px; }
.legal h1 { font-size: 1.6rem; margin: 0 0 6px; letter-spacing: -0.02em; font-weight: 800; }
.legal .updated { color: var(--text-muted); font-size: 0.86rem; margin: 0 0 32px; }
.legal h2 { font-size: 0.98rem; margin: 28px 0 8px; font-weight: 700; }
.legal p, .legal li { color: var(--text-muted); font-size: 0.95rem; }
.legal ul { margin: 8px 0; padding-left: 1.2rem; }
.legal li { margin: 5px 0; }
.legal .back { display: inline-block; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-muted); }
