:root {
  --bg-deep: #0f0f14;
  --bg-card: #252532;
  --bg-card-hover: #2e2e3d;
  --text-primary: #e8e8f0;
  --text-muted: #a0a0b8;
  --accent-cyan: #05d9e8;
  --accent-pink: #ff2a6d;
  --accent-purple: #b537f2;
  --accent-orange: #ff9e44;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glow-cyan: 0 0 14px rgba(5, 217, 232, 0.45);
  --glow-pink: 0 0 14px rgba(255, 42, 109, 0.45);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
}

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.site-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  height: 40px;
  width: auto;
  transition: filter 0.2s;
}

.site-logo:hover img {
  filter: drop-shadow(0 0 8px rgba(255, 42, 109, 0.6));
}

.nav-links {
  display: flex;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-cyan);
  text-shadow: var(--glow-cyan);
  border-bottom-color: var(--accent-pink);
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 56vh;
  margin: 0 -1.5rem 3rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #1a0a2e 0%,
    #2d1b4e 35%,
    #3d2060 55%,
    var(--bg-deep) 100%
  );
}

.hero-sun {
  position: absolute;
  bottom: -2%;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 85vw);
  opacity: 0.95;
  filter: drop-shadow(0 0 40px rgba(255, 42, 109, 0.45));
  pointer-events: none;
  z-index: 1;
}

.hero-grid {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48%;
  overflow: hidden;
  perspective: 140px;
  z-index: 2;
  pointer-events: none;
}

.hero-grid-plane {
  position: absolute;
  bottom: 0;
  left: -75%;
  width: 250%;
  height: 220%;
  transform: rotateX(72deg);
  transform-origin: center bottom;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 59px,
      rgba(5, 217, 232, 0.55) 59px,
      rgba(5, 217, 232, 0.55) 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent 39px,
      rgba(181, 55, 242, 0.4) 39px,
      rgba(181, 55, 242, 0.4) 40px
    );
  mask-image: linear-gradient(to top, black 15%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2.5rem 1.5rem 0;
  width: 100%;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-shadow:
    0 0 10px rgba(5, 217, 232, 0.8),
    0 0 30px rgba(255, 42, 109, 0.5),
    2px 2px 0 rgba(181, 55, 242, 0.4);
}

.hero-tagline {
  position: relative;
  z-index: 5;
  margin: 0;
  margin-top: auto;
  padding: 0.85rem 2rem;
  width: 100%;
  text-align: center;
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(15, 15, 20, 0.88);
  border-top: 1px solid rgba(5, 217, 232, 0.35);
  border-bottom: 1px solid rgba(255, 42, 109, 0.25);
  box-shadow:
    0 -8px 32px rgba(15, 15, 20, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
}

/* Section cards */

.section-cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.section-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, box-shadow 0.2s;
}

.section-card:hover {
  background: var(--bg-card-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(5, 217, 232, 0.08),
    0 4px 24px rgba(0, 0, 0, 0.4);
}

.section-card--reverse {
  grid-template-columns: 1.2fr 1fr;
}

.section-card--reverse .card-media {
  order: 2;
}

.section-card--reverse .card-body {
  order: 1;
}

.card-media {
  position: relative;
}

.card-illustration {
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(5, 217, 232, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.card-body h2 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(5, 217, 232, 0.3);
}

.card-body p {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
}

.card-highlight {
  color: var(--accent-cyan) !important;
  font-style: italic;
}

.neon-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.25rem;
  color: var(--accent-cyan);
  border: 1px solid rgba(5, 217, 232, 0.6);
  border-radius: 4px;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: box-shadow 0.2s, color 0.2s, border-color 0.2s;
}

.neon-button:hover {
  color: var(--accent-pink);
  border-color: var(--accent-pink);
  box-shadow: var(--glow-pink);
  text-shadow: none;
}

/* List & post pages */

.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.page-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(181, 55, 242, 0.4);
}

.page-intro {
  color: var(--text-muted);
}

.content-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.content-list-item a {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: inherit;
  transition: background 0.2s, box-shadow 0.2s;
}

.content-list-item a:hover {
  background: var(--bg-card-hover);
  box-shadow: 0 0 16px rgba(5, 217, 232, 0.1);
  text-shadow: none;
}

.list-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(5, 217, 232, 0.2);
  flex-shrink: 0;
}

.list-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.list-title {
  font-weight: 600;
  color: var(--text-primary);
}

.content-list time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.post {
  padding: 2rem 0;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.post-header h1 {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  text-shadow: 0 0 10px rgba(181, 55, 242, 0.35);
}

.post-header time {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.post-content {
  color: var(--text-primary);
}

.post-content h1,
.post-content h2,
.post-content h3 {
  color: var(--text-primary);
  margin-top: 2rem;
}

.post-content p,
.post-content li {
  color: var(--text-muted);
}

.post-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(5, 217, 232, 0.08);
  border: 1px solid rgba(5, 217, 232, 0.2);
  border-radius: 3px;
  color: var(--accent-cyan);
}

.post-content pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.post-content pre code {
  padding: 0;
  background: none;
  border: none;
}

.post-content img {
  margin: 1.5rem 0;
  border-radius: 6px;
  border: 1px solid rgba(5, 217, 232, 0.2);
}

/* Footer */

.site-footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-horizon {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  opacity: 0.7;
}

.footer-tag {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(160, 160, 184, 0.6);
}

/* Responsive */

@media (max-width: 768px) {
  .section-card,
  .section-card--reverse {
    grid-template-columns: 1fr;
  }

  .section-card--reverse .card-media,
  .section-card--reverse .card-body {
    order: unset;
  }

  .hero {
    min-height: 48vh;
  }

  .hero-sun {
    bottom: -4%;
    width: min(340px, 92vw);
  }

  .hero-tagline {
    letter-spacing: 0.1em;
    padding: 0.75rem 1rem;
  }

  .site-logo img {
    height: 34px;
  }
}