:root {
  --night: #140a2e;
  --night-2: #1f1147;
  --ink: #f7f1ff;
  --muted: #b9a8dc;
  --pink: #ff4f8b;
  --sun: #ffd23f;
  --teal: #0ff1e8;
  --violet: #8a2be2;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.12);
  --radius: 18px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 17px/1.6 "Avenir Next", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { max-width: 100%; display: block; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 10, 46, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: .04em; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo span { font-style: italic; }
.logo b { color: var(--pink); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: 6px 12px; border-radius: 999px; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--card); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #1a0b3d 0%, #4a1665 38%, #c2307a 62%, #ff8a5b 78%, #ffb35c 100%);
  min-height: 560px;
  display: flex; align-items: flex-start;
}
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 400px; }
.hero .wrap { position: relative; padding: 72px 0 320px; }
.kicker { text-transform: uppercase; letter-spacing: .3em; font-size: 13px; color: var(--sun); margin: 0 0 12px; }
.hero h1 {
  margin: 0; font-size: clamp(48px, 10vw, 112px); line-height: .9; font-weight: 900; font-style: italic;
  letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff 0%, #ffe0f0 45%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(255, 79, 139, .35);
}
.hero p.lead { max-width: 560px; font-size: 19px; color: #ffe9f4; margin: 20px 0 28px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  background: var(--pink); color: #fff; box-shadow: 0 8px 24px rgba(255, 79, 139, .4);
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; border: 1px solid rgba(255,255,255,.5); box-shadow: none; margin-left: 8px; }

/* ---------- sections ---------- */
section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; line-height: 1.15; }
section .sub { color: var(--muted); margin: 0 0 32px; max-width: 640px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .tag { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; color: var(--sun); margin-bottom: 10px; }
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--sun), var(--teal));
}

.band { background: var(--night-2); border-block: 1px solid var(--line); }

.split { display: grid; gap: 40px; grid-template-columns: 1.1fr .9fr; align-items: center; }
.split ul { padding-left: 20px; color: var(--muted); }
.split li { margin-bottom: 8px; }
.split li b { color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat strong { display: block; font-size: 34px; line-height: 1.1; color: var(--teal); }
.stat span { color: var(--muted); font-size: 14px; }

.quote {
  font-size: clamp(22px, 3vw, 30px); font-style: italic; line-height: 1.35;
  border-left: 4px solid var(--pink); padding-left: 20px; margin: 0;
}
.quote cite { display: block; font-size: 15px; color: var(--muted); font-style: normal; margin-top: 10px; }

/* ---------- page header ---------- */
.page-head {
  padding: 72px 0 48px;
  background: radial-gradient(1200px 400px at 70% 0%, rgba(255,79,139,.35), transparent 60%),
              radial-gradient(800px 300px at 10% 20%, rgba(15,241,232,.18), transparent 60%);
  border-bottom: 1px solid var(--line);
}
.page-head h1 { margin: 0 0 12px; font-size: clamp(36px, 6vw, 60px); font-style: italic; line-height: 1.05; }
.page-head p { margin: 0; color: var(--muted); max-width: 640px; }

.district { display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.district:last-child { border-bottom: 0; }
.district .num { font-size: 56px; font-weight: 900; font-style: italic; color: transparent; -webkit-text-stroke: 1.5px var(--pink); line-height: 1; }
.district h3 { margin: 0 0 6px; font-size: 24px; }
.district p { margin: 0 0 10px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }

.prose { max-width: 720px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 40px; }

/* ---------- 404 ---------- */
.lost { min-height: calc(100vh - 64px - 120px); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.lost .code { font-size: clamp(96px, 22vw, 200px); font-weight: 900; font-style: italic; line-height: 1;
  background: linear-gradient(180deg, var(--sun), var(--pink) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; display: inline-block; padding-right: .08em; }
.lost h1 { margin: 8px 0 12px; font-size: 28px; }
.lost p { color: var(--muted); margin: 0 auto 28px; max-width: 460px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { min-height: 520px; }
  .hero .wrap { padding: 48px 0 260px; }
  .hero-art { height: 300px; }
  .btn.ghost { margin: 10px 0 0; }
  .split { grid-template-columns: 1fr; }
  .district { grid-template-columns: 1fr; gap: 6px; }
  .district .num { font-size: 40px; }
  section { padding: 52px 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .sun { animation: glow 6s ease-in-out infinite alternate; }
  @keyframes glow { from { opacity: .92; } to { opacity: 1; } }
}
