:root {
  --bg: #0b0820;
  --violet: #2a0f4f;
  --panel: #1e1440;
  --cyan: #00e5ff;
  --pink: #ff2e93;
  --yellow: #ffd23f;
  --text: #f4f1ff;
  --muted: #b9b0d6;
  --line: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(60rem 40rem at 50% -10rem, var(--violet), transparent 70%),
    radial-gradient(30rem 30rem at 100% 30rem, rgba(255, 46, 147, 0.08), transparent 70%),
    radial-gradient(30rem 30rem at 0 50rem, rgba(0, 229, 255, 0.06), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ff2ff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 14px;
  background: var(--panel);
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; gap: 20px; }
@media (max-width: 360px) {
  .site-nav { gap: 14px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}
.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { flex: 1; }

/* Hero */

.hero {
  text-align: center;
  padding-top: 48px;
  padding-bottom: 32px;
}
.hero-icon {
  width: 160px;
  height: 160px;
  margin: 0 auto 28px;
  border-radius: 36px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.55),
    -18px -10px 60px rgba(0, 229, 255, 0.28),
    18px 14px 60px rgba(255, 46, 147, 0.3);
}
.hero h1 {
  font-size: clamp(1.75rem, 9vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 900;
  margin: 0 0 16px;
}
.gradient {
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 34rem;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
  color: var(--text);
  font-weight: 700;
}
.pill { margin: 0; }
@media (max-width: 360px) {
  .pill { padding: 10px 16px; font-size: 0.92rem; white-space: nowrap; }
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.meta {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Screenshots */

.gallery {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 32px 16px 40px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li {
  flex: 0 0 auto;
  scroll-snap-align: center;
}
.gallery img {
  width: 236px;
  aspect-ratio: 1206 / 2622;
  object-fit: cover;
  border-radius: 34px;
  border: 6px solid #15102e;
  box-shadow: 0 0 0 1px var(--line), 0 24px 50px rgba(0, 0, 0, 0.5);
  background: var(--panel);
}
@media (max-width: 1040px) {
  .gallery { justify-content: flex-start; }
}

/* Features */

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -0.02em;
  margin: 32px 0 24px;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 auto 72px;
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.features li {
  position: relative;
  padding: 24px 24px 24px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(42, 15, 79, 0.55), rgba(30, 20, 64, 0.55));
  border: 1px solid var(--line);
  overflow: hidden;
}
.features li::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--cyan), var(--pink));
}
.features h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--yellow);
}
.features p { margin: 0; color: var(--muted); }
@media (max-width: 680px) {
  .features { grid-template-columns: 1fr; }
}

/* Prose pages */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 72px;
}
.prose h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 8px;
}
.prose h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 36px 0 8px;
}
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 8px; }
.updated { color: var(--muted); margin-top: 0; }
.callout {
  margin: 24px 0 8px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(30, 20, 64, 0.7);
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.callout p { margin: 0; }
.callout a { font-weight: 700; }

/* 404 */

.not-found {
  text-align: center;
  padding: 72px 16px 96px;
}
.not-found .code {
  display: inline-block;
  font-size: clamp(4.5rem, 18vw, 8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  margin: 0;
  color: transparent;
}
.not-found h1 { margin: 12px 0 8px; font-size: clamp(1.6rem, 5vw, 2.2rem); }
.not-found p { color: var(--muted); margin: 0 0 28px; }
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
  color: var(--bg);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: var(--bg); filter: brightness(1.1); }

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
