:root {
  color-scheme: dark;

  /* Pop Noir tokens — mirror lib/theme/tokens.ts in the app. */
  --ink: #111217;
  --ink-2: #1A1B22;
  --bone: #F2EBDA;
  --bone-2: rgba(242, 235, 218, 0.86);
  --muted: rgba(242, 235, 218, 0.60);
  --line: rgba(242, 235, 218, 0.14);
  --surface: rgba(248, 241, 223, 0.04);

  --amber: #F2B84B;
  --violet: #7A5CFF;
  --crimson: #E24D5C;
  --mint: #22D3A5;

  font-family: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--bone);
  background:
    radial-gradient(900px 600px at 88% -10%, rgba(242, 184, 75, 0.22), transparent 62%),
    radial-gradient(720px 440px at 0% 110%, rgba(122, 92, 255, 0.20), transparent 58%),
    radial-gradient(420px 280px at 78% 80%, rgba(226, 77, 92, 0.10), transparent 60%),
    linear-gradient(180deg, #08080d 0%, var(--ink) 40%, var(--ink-2) 100%);
  background-attachment: fixed;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--amber);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(242, 184, 75, 0.35);
}
a:hover { color: #FFD27A; border-bottom-color: rgba(242, 184, 75, 0.85); }

.shell {
  width: min(100%, 1020px);
  margin: 0 auto;
  padding: 36px 22px 80px;
}

.hero,
.panel,
.tile {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.hero {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  position: relative;
}

/* Amber glow ring top-right */
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  right: -180px;
  top: -200px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 184, 75, 0.32) 0%, rgba(242, 184, 75, 0) 60%);
  pointer-events: none;
}

/* Violet glow ring bottom-left */
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(122, 92, 255, 0.32) 0%, rgba(122, 92, 255, 0) 65%);
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  padding: 8px 14px;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(242, 184, 75, 0.08);
  border: 1.5px solid rgba(242, 184, 75, 0.5);
  transform: rotate(-1.5deg);
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.02;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--bone);
}

h1 {
  max-width: 820px;
  margin-top: 22px;
  font-size: clamp(44px, 9vw, 96px);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.55);
}

h1 .accent { color: var(--amber); }
h1 .accent-2 { color: var(--violet); }

h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

h3 {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--amber);
}

p, li {
  color: var(--bone-2);
  font-size: 16px;
  line-height: 1.66;
  font-family: Inter, "Space Grotesk", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.lead {
  max-width: 760px;
  margin-top: 22px;
  font-size: 19px;
  color: var(--bone);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 500;
  line-height: 1.5;
  text-transform: none;
  letter-spacing: 0;
}

.meta {
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.7;
}
.meta strong { color: var(--bone); font-weight: 600; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 30px 0 0;
}

.nav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 999px;
  padding: 8px 16px;
  text-decoration: none;
  font-family: "Space Grotesk", Inter, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone);
  background: rgba(242, 235, 218, 0.04);
  border: 1px solid var(--line);
}
.nav a { border-bottom: 1px solid var(--line); }
.nav a:hover { background: rgba(242, 184, 75, 0.08); border-color: rgba(242, 184, 75, 0.4); color: var(--bone); border-bottom-color: rgba(242, 184, 75, 0.4); }

.button.primary {
  color: var(--ink);
  border: 0;
  background: var(--amber);
  font-weight: 800;
}
.button.primary:hover { background: #FFD27A; color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.panel {
  border-radius: 22px;
  padding: 26px 28px;
  margin-top: 18px;
}

.panel h2 + p,
.panel h2 + ul,
.panel h2 + ol { margin-top: 10px; }

.tile {
  border-radius: 18px;
  padding: 22px;
}
.tile strong {
  display: block;
  margin-bottom: 8px;
  color: var(--amber);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tile em {
  color: var(--violet);
  font-style: normal;
  font-weight: 600;
}

ul, ol {
  margin: 10px 0 0 22px;
  padding: 0;
  color: var(--bone-2);
  font-family: Inter, system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}
li + li { margin-top: 4px; }
li strong { color: var(--bone); font-weight: 700; }

.footer {
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.footer a { color: var(--muted); border-bottom-color: transparent; }
.footer a:hover { color: var(--amber); }

code {
  border-radius: 6px;
  padding: 2px 7px;
  background: rgba(242, 184, 75, 0.10);
  color: var(--amber);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 13px;
  border: 1px solid rgba(242, 184, 75, 0.25);
}

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .hero,
  .panel { border-radius: 20px; }
  .hero { padding: 28px 22px; }
}
