/* ============================================================
   W9 Homepage — 8-Bit Voxel Arcade Styling
   For Cloudflare Pages — w9.se
   ============================================================ */

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

html { font-size: 16px; image-rendering: pixelated; image-rendering: -moz-crisp-edges; }

body {
  font-family: 'VT323', 'Press Start 2P', monospace;
  background-color: #160c13;
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: #fce126; text-decoration: none; transition: all 0.1s; }
a:hover { color: #ffffff; text-shadow: 0 0 8px #fce126; }

.app-container { min-height: 100vh; display: flex; flex-direction: column; }

.main-content { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

/* Network Bar */
.network-bar {
  background: #32305a;
  border-bottom: 4px solid #000000;
  box-shadow: 0 4px 0 #000000;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.network-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.network-bar-content a {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  color: #ffffff;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border: 2px solid transparent;
  transition: all 0.1s;
}

.network-bar-content a:hover,
.network-bar-content a.active {
  border: 2px solid #fce126;
  background: rgba(252, 225, 38, 0.1);
  color: #fce126;
}

/* Buttons */
.voxel-button {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  background: #fce126;
  color: #000000;
  border: 4px solid #000000;
  box-shadow: 4px 4px 0 #000000;
  padding: 1rem 1.5rem;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.1s;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.voxel-button:hover {
  box-shadow: 0 0 0 #000000;
  transform: translate(4px, 4px);
  background: #f6cd6b;
}

.voxel-button--secondary { background: #7f8aa8; color: #ffffff; }
.voxel-button--secondary:hover { background: #987b9e; }

/* Cards */
.voxel-card {
  background: #160c13;
  border: 4px solid #000000;
  box-shadow: 5px 5px 0 #000000;
  overflow: hidden;
  transition: all 0.1s;
}

.voxel-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #000000; }

.card-media {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid #000000;
}

.card-icon { font-size: 3rem; filter: drop-shadow(3px 3px 0 #000000); }

.card-body { padding: 1.5rem; }

.card-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #fce126;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border-bottom: 2px solid #7f8aa8;
  padding-bottom: 0.5rem;
}

.card-body p { font-size: 1.2rem; line-height: 1.5; margin-bottom: 1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Hero */
.hero-section {
  position: relative;
  text-align: center;
  padding: 5rem 2rem;
  background: #32305a;
  border: 4px solid #000000;
  box-shadow: 5px 5px 0 #000000;
  margin: 2rem auto;
  max-width: 1200px;
  overflow: hidden;
}

.pixel-stars {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 60px;
  background-image:
    radial-gradient(circle, #ffffff 1px, transparent 1px),
    radial-gradient(circle, #fce126 1px, transparent 1px),
    radial-gradient(circle, #ffffff 1px, transparent 1px);
  background-size: 40px 40px, 60px 60px, 80px 80px;
  background-position: 0 0, 20px 10px, 10px 20px;
  opacity: 0.3;
  animation: twinkle 3s infinite alternate;
}

@keyframes twinkle { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.6; } }

.pixel-skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(22, 12, 19, 0.3) 100%);
}

.hero-content { position: relative; z-index: 10; }

.hero-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 4rem;
  color: #ffffff;
  text-shadow: 6px 6px 0 #000000;
  margin-bottom: 1.5rem;
  letter-spacing: 0.2em;
}

.hero-subtitle {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  color: #fce126;
  text-shadow: 3px 3px 0 #000000;
  margin-bottom: 2rem;
}

.hero-description {
  font-size: 1.4rem;
  max-width: 800px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.hero-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.mission-section, .deployments-section {
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.5rem;
  color: #ffffff;
  text-shadow: 4px 4px 0 #000000;
  text-align: center;
  margin-bottom: 3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Deployment cards */
.deployment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.deployment-card {
  background: #160c13;
  border: 4px solid #000000;
  box-shadow: 5px 5px 0 #000000;
  padding: 2rem;
  transition: all 0.1s;
  text-decoration: none;
  display: block;
}

.deployment-card:hover { transform: translate(2px, 2px); box-shadow: 3px 3px 0 #000000; }

.deployment-card h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.9rem;
  color: #fce126;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.deployment-card p { font-size: 1.2rem; margin-bottom: 1.5rem; line-height: 1.5; }

/* Contributing */
.contributing-section { text-align: center; max-width: 900px; margin: 3rem auto; padding: 0 1rem; }
.contributing-content p { font-size: 1.3rem; margin-bottom: 1.5rem; line-height: 1.6; }
.contributing-actions { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }

/* ============================================================
   Sponsors — Redesigned with two tiers
   ============================================================ */

.sponsors-section {
  text-align: center;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 3rem 2rem;
  background: linear-gradient(180deg, #160c13 0%, #32305a 100%);
  border: 4px solid #000000;
  box-shadow: 5px 5px 0 #000000;
}

.sponsors-intro {
  font-size: 1.3rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.sponsor-tier-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #7f8aa8;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 2px solid #7f8aa8;
}

.sponsor-tier-title:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

/* Infrastructure Partners — horizontal cards */
.sponsors-grid--infrastructure {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto 2rem;
  max-width: 700px;
}

.sponsor-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: rgba(22, 12, 19, 0.6);
  border: 3px solid #7f8aa8;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.1s;
}

.sponsor-card:hover {
  border-color: #fce126;
  background: rgba(252, 225, 38, 0.05);
  transform: translateX(4px);
}

.sponsor-card-logo {
  flex-shrink: 0;
  width: 80px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(50, 48, 90, 0.5);
  border: 2px solid #7f8aa8;
}

.sponsor-card-logo img {
  max-width: 70px;
  max-height: 40px;
  object-fit: contain;
}

.sponsor-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.sponsor-card-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: #fce126;
  text-transform: uppercase;
}

.sponsor-card-desc {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: #987b9e;
  text-align: left;
}

/* Technology Partners — compact pills */
.sponsors-grid--technology {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin: 0 auto 2rem;
  max-width: 800px;
}

.sponsor-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  background: rgba(22, 12, 19, 0.4);
  border: 2px solid #32305a;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.1s;
  min-width: 120px;
}

.sponsor-pill:hover {
  border-color: #fce126;
  background: rgba(252, 225, 38, 0.05);
  transform: translateY(-2px);
}

.sponsor-pill-img {
  max-width: 80px;
  max-height: 36px;
  object-fit: contain;
  image-rendering: auto;
  filter: brightness(1.1);
}

.sponsor-pill-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: #ffffff;
  text-transform: uppercase;
}

.sponsor-cta {
  font-size: 1.2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid #7f8aa8;
}

.sponsor-cta a { margin-left: 0.5rem; }

/* Footer */
.voxel-footer {
  background: #32305a;
  border-top: 4px solid #000000;
  box-shadow: 0 -4px 0 #000000;
  padding: 3rem 2rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #fce126;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-section p { font-size: 1.2rem; line-height: 1.5; margin-bottom: 0.5rem; }
.footer-section a { display: block; font-size: 1.1rem; margin-bottom: 0.5rem; }
.contact-email a { display: inline; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 2px solid #7f8aa8;
  text-align: center;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-description { font-size: 1.1rem; }
  .section-title { font-size: 1.1rem; }
  .network-bar-content { flex-direction: column; gap: 0.5rem; align-items: center; }
  .footer-content { grid-template-columns: 1fr; }
  .sponsors-grid--technology { grid-template-columns: repeat(2, 1fr); padding: 1rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .sponsor-card { flex-direction: column; text-align: center; }
  .sponsor-card-info { align-items: center; }
  .sponsor-card-desc { text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem; }
  .voxel-button { font-size: 0.7rem; padding: 0.8rem 1rem; }
  .sponsors-grid--technology { grid-template-columns: 1fr; }
  .sponsor-tier-title { font-size: 0.6rem; }
}
