:root {
  --bg-dark: #070911;
  --bg-card: #0e111a;
  --bg-card-hover: #131724;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.2);
  --accent-cyan: #38bdf8;
  --accent-green: #22c55e;
  --accent-purple: #a855f7;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --font-heading: 'Space Grotesk', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient glow */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.glow-top-left {
  top: -140px;
  left: -80px;
  width: 600px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
}

.glow-bottom-right {
  bottom: -150px;
  right: -50px;
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.14) 0%, transparent 70%);
}

.noise-grid {
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Archival Watermarks */
.watermark-ghost {
  position: fixed;
  right: -60px;
  bottom: 8%;
  width: 440px;
  height: 440px;
  background: url('/img/ghost-watermark.png') no-repeat center / contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

.watermark-wordmark {
  position: fixed;
  left: -40px;
  top: 15%;
  width: 480px;
  height: 240px;
  background: url('/img/ghostsaves-archive-watermark.png') no-repeat center / contain;
  opacity: 0.1;
  pointer-events: none;
  z-index: 1;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 2;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 9, 17, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-brand-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: contain;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover {
  color: #fff;
}

.nav-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #5865F2;
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-discord-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo-box {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.hero-ghost-logo {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.15));
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 6.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero-sub strong {
  color: #ffffff;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  background: #5865F2;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #4752c4;
  transform: translateY(-2px);
}

.btn-bolt {
  background: #0284c7;
}

.btn-bolt:hover {
  background: #0369a1;
}

.btn-slop {
  background: #22c55e;
  color: #041407;
}

.btn-slop:hover {
  background: #16a34a;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Projects Section */
.projects-section {
  padding-bottom: 5rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-cyan);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Project Cards */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 2.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.project--thunderbolt {
  border-color: rgba(56, 189, 248, 0.25);
}

.project--thunderbolt:hover {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 10px 35px rgba(56, 189, 248, 0.12);
}

.project--socialslop {
  border-color: rgba(34, 197, 94, 0.25);
}

.project--socialslop:hover {
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 10px 35px rgba(34, 197, 94, 0.12);
}

.project--archive {
  border-color: rgba(168, 85, 247, 0.2);
}

.project--archive:hover {
  border-color: rgba(168, 85, 247, 0.45);
}

/* Card Banners */
.card-banner-box {
  width: 100%;
  max-height: 220px;
  overflow: hidden;
  background: #020109;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.card-banner-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.card-banner-box--slop {
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  max-height: 200px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-banner-img--slop {
  width: auto;
  max-width: 90%;
  height: 130px;
  object-fit: contain;
}

/* Card Body */
.card-body {
  padding: 2.5rem 2.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  width: 100%;
}

.project-content {
  flex: 1;
}

.project-header-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a855f7;
}

.pill-dot--bolt {
  background: var(--accent-cyan);
}

.pill-dot--slop {
  background: var(--accent-green);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 620px;
}

.project-desc strong {
  color: #ffffff;
}

.feature-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.tag {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.project-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.project-aside {
  flex-shrink: 0;
  text-align: center;
}

.project-logo {
  width: 130px;
  height: 130px;
  border-radius: 24px;
  padding: 10px;
  object-fit: contain;
}

.project-logo--bolt {
  width: 175px;
  height: auto;
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.6));
}

.project-logo--slop {
  border-radius: 50%;
  padding: 0;
  border: 2px solid rgba(34, 197, 94, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Discord Block */
.discord-block {
  text-align: center;
  padding: 3.5rem 2rem;
  background: #0e111a;
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 20px;
  margin-bottom: 4rem;
}

.discord-block h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
}

.discord-block p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 1.8rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.2rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-link {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .card-body {
    flex-direction: column-reverse;
    text-align: center;
    padding: 1.75rem 1.25rem;
    gap: 1.5rem;
  }
  .card-banner-img {
    height: 150px;
  }
  .card-banner-img--slop {
    height: 90px;
  }
  .project-actions {
    justify-content: center;
  }
  .feature-tags {
    justify-content: center;
  }
  .main-nav .nav-item {
    display: none;
  }
}
