/* CONFIGURATION VARIABLES */
:root {
  --color-bg-dark: #06060b;
  --color-bg-mid: #0c0c14;
  --color-accent-red: #e83a3a;
  --color-accent-red-dark: #c92020;
  --color-accent-amber: #f0c030;
  --color-text-primary: #eaeaf0;
  --color-text-secondary: #a0a0b0;
  --color-text-muted: #777790;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-glow-red: rgba(232, 58, 58, 0.3);
  --color-glow-amber: rgba(240, 192, 48, 0.2);
  --duration-scanline: 8s;
  --duration-pulse: 2s;
  --duration-fade: 0.6s;
  --timing-stagger: 0.2s;
}

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-mid) 50%, #08080f 100%);
  color: var(--color-text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* PRELANDER MAIN */
.prelander {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ATMOSPHERE EFFECTS */
.atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.glow {
  position: absolute;
  pointer-events: none;
}

.glow-red {
  top: -50%;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(232, 58, 58, 0.08) 0%, transparent 70%);
  animation: pulse-glow 8s ease-in-out infinite;
}

.glow-amber {
  top: -30%;
  right: -15%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse at center, rgba(240, 192, 48, 0.05) 0%, transparent 70%);
  animation: pulse-glow 10s ease-in-out infinite reverse;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0px, transparent 1px, transparent 60px, rgba(255, 255, 255, 0.012) 61px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0px, transparent 1px, transparent 60px, rgba(255, 255, 255, 0.012) 61px);
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 58, 58, 0.3), transparent);
  animation: scan var(--duration-scanline) linear infinite;
  top: 0;
}

@keyframes scan {
  0% { top: 0; }
  100% { top: 100%; }
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.4;
  mask-image: linear-gradient(90deg, transparent, black);
  z-index: 2;
}

/* CORNER BRACKETS */
.corner-bracket {
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: rgba(232, 58, 58, 0.2);
  border-style: solid;
  z-index: 10;
}

.corner-bracket-tl {
  top: 20px;
  left: 20px;
  border-width: 2px 0 0 2px;
}

.corner-bracket-tr {
  top: 20px;
  right: 20px;
  border-width: 2px 2px 0 0;
}

.corner-bracket-bl {
  bottom: 20px;
  left: 20px;
  border-width: 0 0 2px 2px;
}

.corner-bracket-br {
  bottom: 20px;
  right: 20px;
  border-width: 0 2px 2px 0;
}

/* TOP BAR */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  border-bottom: 1px solid var(--color-border);
  z-index: 10;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent-red);
  border-radius: 50%;
  animation: pulse-dot var(--duration-pulse) ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

.status-text,
.source-text {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* SIDE LABELS */
.side-label {
  position: absolute;
  top: 50%;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
  transform-origin: center;
  white-space: nowrap;
  z-index: 10;
}

.side-label-left {
  left: 30px;
  transform: translateY(-50%) rotate(-90deg);
}

.side-label-right {
  right: 30px;
  transform: translateY(-50%) rotate(90deg);
}

/* MAIN CONTENT */
.content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 80px 20px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.logo-container {
  margin-bottom: 40px;
  animation: fade-in-down 1s ease 0.3s both;
}

.logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(232, 58, 58, 0.3));
}

.headline {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 24px;
  animation: fade-in-down 1s ease 0.5s both;
  font-family: system-ui, -apple-system, sans-serif;
}

.headline .highlight {
  color: var(--color-accent-red);
  position: relative;
  display: inline-block;
}

.body-copy {
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  animation: fade-in-down 1s ease 0.7s both;
}

/* CTA BUTTON */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 50px;
  background: linear-gradient(135deg, var(--color-accent-red) 0%, var(--color-accent-red-dark) 100%);
  color: white;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 5px;
  border: none;
  box-shadow: 0 4px 30px rgba(232, 58, 58, 0.3);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  animation: fade-in-up 1s ease 0.9s both;
  font-family: system-ui, -apple-system, sans-serif;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 4s ease-in-out infinite;
  z-index: 1;
}

@keyframes shine {
  0% { left: -100%; }
  20%, 100% { left: 200%; }
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 40px rgba(232, 58, 58, 0.5);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button:hover .arrow {
  transform: translateX(4px);
}

.cta-button .arrow {
  font-size: 24px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
  display: inline-block;
}

/* ANIMATIONS */
@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* BOTTOM BAR */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  border-top: 1px solid var(--color-border);
  z-index: 10;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.3));
}

.platforms,
.trust-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-badges {
  gap: 20px;
}

.platform-pill {
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  background: transparent;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.check-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.6);
  flex-shrink: 0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1023px) {
  .side-label {
    display: none;
  }

  .hero-image {
    width: 60%;
    opacity: 0.25;
  }

  .headline {
    font-size: clamp(28px, 5vw, 48px);
  }

  .top-bar,
  .bottom-bar {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  .hero-image {
    display: none;
  }

  .source-text {
    display: none;
  }

  .logo {
    max-width: 180px;
  }

  .logo-container {
    margin-bottom: 30px;
  }

  .headline {
    font-size: clamp(24px, 6vw, 38px);
    letter-spacing: 1px;
    margin-bottom: 20px;
  }

  .body-copy {
    font-size: 14px;
    margin-bottom: 32px;
  }

  .cta-button {
    padding: 16px 40px;
    font-size: 16px;
    letter-spacing: 3px;
    width: calc(100% - 40px);
    max-width: 400px;
  }

  .content {
    padding: 70px 15px;
  }

  .bottom-bar {
    flex-direction: column;
    height: auto;
    padding: 15px 20px;
    gap: 12px;
  }

  .platforms,
  .trust-badges {
    justify-content: center;
  }

  .corner-bracket {
    width: 25px;
    height: 25px;
  }

  .corner-bracket-tl,
  .corner-bracket-tr {
    top: 10px;
  }

  .corner-bracket-bl,
  .corner-bracket-br {
    bottom: 10px;
  }

  .corner-bracket-tl,
  .corner-bracket-bl {
    left: 10px;
  }

  .corner-bracket-tr,
  .corner-bracket-br {
    right: 10px;
  }
}

@media (max-width: 390px) {
  .status-text,
  .platform-pill,
  .badge {
    font-size: 10px;
  }

  .content {
    padding: 70px 15px 70px;
  }
}