/* =========================================================
   1. GLOBAL VARIABLES & SYNTHWAVE THEME
   ========================================================= */
:root {
  --bg-deep: #070312;
  --bg-card: rgba(16, 8, 36, 0.85);
  --cyan: #00f0ff;
  --magenta: #ff007f;
  --gold: #fde047;
  --green: #00ff66;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Outrun / Synthwave Grid Background */
.retro-grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 30%, rgba(255, 0, 127, 0.15) 0%, transparent 60%),
    linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-position: center bottom;
}

.retro-grid-bg::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--magenta);
  box-shadow: 0 0 20px 5px rgba(255, 0, 127, 0.6);
  opacity: 0.3;
}

/* =========================================================
   2. NAVIGATION & HEADER
   ========================================================= */
header {
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(180deg, rgba(7, 3, 18, 0.95) 0%, transparent 100%);
  position: fixed;
  top: 0;
  z-index: 100;
}

.nav-brand {
  font-family: monospace, sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}
.nav-brand span { color: var(--magenta); }

.nav-cta {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  background: rgba(0, 240, 255, 0.1);
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-family: monospace, sans-serif;
  font-weight: 900;
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

/* =========================================================
   3. HERO SECTION
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 40px;
}

.hero-logo-container {
  max-width: 450px;
  width: 100%;
  margin-bottom: 30px;
  animation: float 4s ease-in-out infinite;
}

.hero-logo {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 30px rgba(255, 0, 127, 0.4));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero-headline {
  font-family: monospace, sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  padding: 16px 32px;
  border-radius: 12px;
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, var(--magenta) 0%, #be185d 100%);
  color: #fff;
  font-family: monospace, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  letter-spacing: 1px;
  box-shadow: 0 6px 0 #701a75, 0 0 20px rgba(255, 0, 127, 0.5);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #701a75, 0 0 10px rgba(255, 0, 127, 0.4);
}

/* =========================================================
   4. FEATURES & UPDATES SECTIONS
   ========================================================= */
.features, .updates {
  padding: 80px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.updates {
  padding-top: 20px;
}

.section-header {
  text-align: center;
  font-family: monospace, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 50px;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1.5px solid rgba(0, 240, 255, 0.3);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--magenta);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 0, 127, 0.2);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-family: monospace, sans-serif;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--gold);
  margin-bottom: 15px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Terminal Box for Bug Updates / Changelog */
.terminal-box {
  background: #090514;
  border: 1px solid var(--magenta);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 0, 127, 0.2);
  max-width: 800px;
  margin: 0 auto;
}

.terminal-header {
  background: #1a0b2e;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 0, 127, 0.3);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
  margin-left: 10px;
  font-family: monospace, sans-serif;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.terminal-body {
  padding: 20px;
  font-family: monospace, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  max-height: 400px;
  overflow-y: auto;
}

.update-entry {
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px dashed rgba(0, 240, 255, 0.2);
}
.update-entry:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.update-date {
  color: var(--cyan);
  font-weight: bold;
  margin-right: 10px;
}
.update-text {
  color: var(--text-main);
}

/* =========================================================
   5. FOOTER & MODAL TRIGGERS
   ========================================================= */
footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(7, 3, 18, 0.95);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-links {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.modal-trigger {
  background: none;
  border: none;
  color: var(--cyan);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-trigger:hover {
  color: var(--magenta);
}

/* =========================================================
   6. MODAL STYLES
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 2, 14, 0.85);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background: linear-gradient(160deg, #1b0a38 0%, #090514 100%);
  border: 2px solid var(--cyan);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 240, 255, 0.3);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.is-active .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1.5px solid rgba(0, 240, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-family: monospace, sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--cyan);
  text-transform: uppercase;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--magenta);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.modal-close:hover {
  transform: scale(1.1);
  color: #fff;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.modal-body p { margin-bottom: 15px; }
.modal-body h3, .modal-body h4, .modal-body strong { color: var(--gold); }

/* =========================================================
   7. RESPONSIVENESS
   ========================================================= */
@media (max-width: 768px) {
  header { padding: 15px 20px; }
  .hero-headline { font-size: 1.8rem; }
  .hero-logo-container { max-width: 320px; }
  .features, .updates { padding: 50px 15px; }
  .section-header { font-size: 1.6rem; }
}