:root {
  --bg: #0d0b14;
  --bg-elevated: #17141f;
  --fg: #f3eee8;
  --fg-muted: #9a93a8;
  --border: #2a2434;
  --accent-pink: #ff3d6e;
  --accent-green: #8fff4a;
  --accent-blue: #4dc8ff;
  --accent: var(--accent-green);
  --max-width: 52rem;
  --radius: 14px;

  --font-display:
    ui-rounded,
    "SF Pro Rounded",
    "Hiragino Maru Gothic ProN",
    Quicksand,
    Comfortaa,
    Manjari,
    "Arial Rounded MT",
    "Arial Rounded MT Bold",
    Calibri,
    source-sans-pro,
    sans-serif;
  --font-sans:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    system-ui,
    sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background-color: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Animated colored glow layer (drifts slowly) */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(143, 255, 74, 0.10), transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 100%, rgba(255, 61, 110, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 100%, rgba(77, 200, 255, 0.08), transparent 60%);
  animation: drift 80s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-2%, 1.5%, 0) scale(1.05); }
}

/* SVG grain overlay — tiny inline noise filter */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

.site-header, main, .site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent-pink); }

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 700;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.site-brand:hover { transform: rotate(-1deg) scale(1.02); }

.site-brand img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}

.site-header nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-header nav a {
  color: var(--fg);
  position: relative;
  padding: 0.25rem 0;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.site-header nav a:hover { color: var(--accent-green); }
.site-header nav a:hover::after { transform: scaleX(1); }

/* Content panels */

.panel,
.hero,
main > article,
main > section:not(.hero) {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.panel::before,
.hero::before,
main > article::before,
main > section:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-pink) 0%,
    var(--accent-green) 50%,
    var(--accent-blue) 100%
  );
  opacity: 0.9;
}

/* Hero */

.hero {
  text-align: center;
  padding: 3.5rem 2.5rem 4rem;
}

.hero-logo {
  display: block;
  margin: 0 auto 1.5rem;
  width: 100%;
  max-width: 600px;
  height: auto;
  filter: drop-shadow(0 8px 40px rgba(143, 255, 74, 0.18));
}

.tagline {
  color: var(--fg-muted);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0 auto;
  max-width: 36rem;
}

.hero-body {
  margin-top: 2rem;
  font-size: 1.1rem;
}

/* Articles & lists (inner pages) */

article h1, main > h1 {
  font-size: 2.5rem;
  margin: 0 0 1.25rem;
}

article h1::after, main > h1::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  background: var(--accent-green);
  margin-top: 0.5rem;
  border-radius: 2px;
}

article p, main p { margin: 0 0 1rem; }

main ul { padding-left: 1.25rem; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Mobile */

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
  }
  .site-brand img { height: 48px; }
  .hero { padding: 2rem 1.25rem 2.5rem; }
  main > article, main > section:not(.hero) { padding: 2rem 1.25rem; }
  .hero-logo { max-width: 100%; }
  .tagline { font-size: 1.15rem; }
  article h1, main > h1 { font-size: 2rem; }
}
