/* Start page for niffeln.com, same look as the quiz and the hub: dark purple, aurora glow,
   notched "pixel" corners, lilac accent. Single theme, no scripts. */

@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/outfit.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(fonts/bricolage-grotesque.woff2) format("woff2"); }

:root {
  --bg: #0b0912; --panel: #161120; --raise: #241b35; --raise-hi: #302142;
  --ink: #f5f0ff; --muted: #ab9fc0; --line: #2d2440; --accent: #b98cff; --gold: #ffc94d;
  --font: "Outfit", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Bricolage Grotesque", "Outfit", system-ui, "Segoe UI", sans-serif;
  --notch: polygon(0 6px, 6px 6px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 6px), 0 calc(100% - 6px));
  --notch-s: polygon(0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font: 16px/1.55 var(--font); color: var(--ink);
  background: radial-gradient(900px 520px at 85% -8%, #2b1849 0%, transparent 70%), radial-gradient(700px 420px at -5% 12%, #171443 0%, transparent 70%), var(--bg);
  overflow-x: hidden; isolation: isolate;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px);
  background-size: 32px 32px; -webkit-mask-image: linear-gradient(#000, transparent 75%); mask-image: linear-gradient(#000, transparent 75%); }
.aurora { position: absolute; top: 0; left: 0; right: 0; height: 900px; overflow: hidden; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.38; animation: float 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 520px; height: 520px; background: #7b3fe4; top: -140px; right: -80px; }
.aurora i:nth-child(2) { width: 380px; height: 380px; background: #c2408f; top: 260px; left: -160px; opacity: 0.25; animation-duration: 22s; }
.aurora i:nth-child(3) { width: 300px; height: 300px; background: #d99a1c; top: 380px; right: 22%; opacity: 0.12; animation-duration: 26s; }
@keyframes float { to { transform: translate(60px, 80px) scale(1.15); } }

.wrap { max-width: 720px; margin: 0 auto; padding: 14vh 24px 56px; }
.logo-mark { width: 44px; height: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-bottom: 26px; }
.logo-mark i { background: var(--accent); }
.logo-mark i:nth-child(2n) { background: #7a4fd8; }
.logo-mark i:nth-child(3n) { background: var(--gold); }
.logo-mark i:nth-child(5n) { background: #3a2760; }
.eyebrow { display: flex; align-items: center; gap: 9px; font: 700 12px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 12px #ffc94d99; }
h1 { margin: 18px 0 14px; font: 800 clamp(48px, 9vw, 84px)/1 var(--display); letter-spacing: -0.035em; }
h1 span { background: linear-gradient(100deg, #e4d2ff, var(--accent) 45%, #ff8fd0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 38px; }

.cards { display: grid; gap: 14px; }
.card {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  color: var(--ink); text-decoration: none; background: var(--panel); clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--line);
  transition: transform 0.15s, background 0.15s;
}
.card:hover { background: var(--raise); transform: translateY(-2px); }
.card:active { transform: translateY(1px); }
.tile { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: var(--accent); background: var(--raise); clip-path: var(--notch-s); }
.card-body { display: grid; min-width: 0; }
.card-body strong { font: 700 19px/1.2 var(--display); }
.card-body small { color: var(--muted); font-size: 14px; }
.chev { margin-left: auto; font-size: 30px; line-height: 1; color: var(--accent); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }

@media (max-width: 480px) { .wrap { padding-top: 9vh; } .card { padding: 15px 16px; } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } .card { transition: none; } }
