:root {
  --bg: #04040f;
  --bg-2: #08081a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 212, 255, 0.35);
  --text: #ececf1;
  --text-dim: #8a8a99;
  --cyan: #00d4ff;
  --purple: #7928ca;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Space Grotesk", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Background glow blobs */
.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  width: 480px; height: 480px;
  background: var(--cyan);
  top: -180px; left: -120px;
  opacity: 0.18;
}
.glow-b {
  width: 520px; height: 520px;
  background: var(--purple);
  bottom: -200px; right: -160px;
  opacity: 0.22;
}

/* Grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Layout */
.wrap {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
  padding: 96px 28px 64px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

@media (max-width: 600px) {
  .wrap { padding: 64px 20px 48px; gap: 36px; }
}

/* Hero */
.hero { display: flex; flex-direction: column; gap: 18px; }

.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  color: var(--text-dim);
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

h1 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.italic { font-style: italic; }

.sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 42ch;
}

/* Links list */
.links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  position: relative;
  overflow: hidden;
}

.link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(121, 40, 202, 0.06));
  opacity: 0;
  transition: opacity 180ms ease;
}

.link:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  transform: translateY(-1px);
}
.link:hover::before { opacity: 1; }

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

.icon {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 16px;
  flex-shrink: 0;
}

.body { flex: 1; min-width: 0; }

.name {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.url {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .url { display: none; }
}

.arrow {
  color: var(--text-dim);
  transition: transform 180ms ease, color 180ms ease;
  flex-shrink: 0;
}
.link:hover .arrow {
  color: var(--cyan);
  transform: translate(2px, -2px);
}

/* Footer */
.foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-dim);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mono { font-family: var(--mono); }
.sep { opacity: 0.4; }
