/*
  Static three-column template with a Star Wars style center scroller.
  Replace placeholder SVG files in /assets with real logos.
*/

:root {
  --bg: #05070d;
  --panel: rgba(13, 18, 32, 0.82);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f8ff;
  --muted: #bbc4d8;
  --accent: #ffd54a;
  --crawl-duration: 42s;
  --footer-height: 104px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(
		to bottom,
		rgb(33 254 14),
		rgb(1 255 255)
	);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(#ffffff 0.8px, transparent 0.8px),
    radial-gradient(#ffffff 0.6px, transparent 0.6px);
  background-position: 0 0, 34px 48px;
  background-size: 90px 90px, 120px 120px;
  opacity: 0.32;
}

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 2.5fr) minmax(220px, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  height: calc(100vh - var(--footer-height));
  padding: clamp(1rem, 2vw, 2rem);
}

.column {
  min-width: 0;
  border: 1px solid var(--panel-border);
  --border-radius: 24px;
  --background: var(--panel);
  -- box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
}

.column-left,
.column-right {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}

.column-left {
  justify-content: space-between;
}

.column-right {
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(190px, 80%);
}

.brand img,
.sponsor-logos img {
  display: block;
  width: 100%;
  height: auto;
}

.static-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  --border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.static-card > * {
	color: black;
	
}

.static-card h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.static-card h4 a {
  color: black;
}

.static-card p {
  margin: 0;
  line-height: 1.55;
}

.column-center {
  overflow: hidden;
  
}

.crawl-scene {
  position: relative;
  height: 100%;
  overflow: hidden;
  perspective: 420px;
  transform-style: preserve-3d;
}

.crawl {
  position: absolute;
  left: 50%;
  bottom: -185%;
  width: min(760px, 100%);
  color: black;
  text-align: justify;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transform: translateX(-50%) rotateX(24deg);
  transform-origin: 50% 100%;
  animation: crawl-up var(--crawl-duration) linear infinite;
  will-change: transform, bottom;
}

.crawl.is-paused {
  animation-play-state: paused;
}

.crawl h1,
.crawl h2 {
  text-align: center;
}

.crawl h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.95;
}

.crawl h2 {
  margin: 0 0 3rem;
  font-size: clamp(1rem, 2.1vw, 1.6rem);
  line-height: 1.35;
}

.crawl p {
  margin: 0 0 2.25rem;
  font-size: clamp(1rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.7;
}

.crawl code {
  text-transform: none;
  color: #fff1a6;
}

.crawl-fade {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  pointer-events: none;
}

.crawl-fade-top {
  top: 0;
  height: 35%;
  background: linear-gradient(180deg, var(--bg), rgba(5, 7, 13, 0));
}

.crawl-fade-bottom {
  bottom: 0;
  height: 18%;
  background: linear-gradient(0deg, rgba(5, 7, 13, 0.95), rgba(5, 7, 13, 0));
}

@keyframes crawl-up {
  0% {
    bottom: -350%;
    transform: translateX(-50%) rotateX(24deg) translateZ(0);
  }

  100% {
    bottom: 125%;
    transform: translateX(-50%) rotateX(24deg) translateZ(-260px);
  }
}

.sponsor-bar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  height: var(--footer-height);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--panel-border);
  --background: rgba(3, 5, 10, 0.88);
  --backdrop-filter: blur(12px);
}

.sponsor-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.sponsor-logos img {
  width: clamp(92px, 10vw, 150px);
  max-height: 52px;
  object-fit: contain;
  padding: 0.55rem 0.8rem;
  --border-radius: 12px;
  --background: rgba(255, 255, 255, 0.92);
}

.crawl-toggle {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--footer-height) + 1rem);
  z-index: 3;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(18, 24, 40, 0.86);
  cursor: pointer;
}

.crawl-toggle:hover,
.crawl-toggle:focus-visible {
  outline: none;
  background: rgba(36, 48, 78, 0.92);
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - var(--footer-height));
  }

  .column-center {
    min-height: 70vh;
  }

  .sponsor-bar {
    min-height: var(--footer-height);
    height: auto;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .crawl {
    animation-play-state: paused;
  }
}
