/* ============================================================
   Cyber Scouts — Landing Page Stylesheet
   ============================================================ */

/* ---------- Reset & Variables ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #06080f;
  --bg-2: #0b0f1a;
  --bg-3: #101627;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.08);

  --cyan: #00d4ff;
  --cyan-dim: rgba(0, 212, 255, 0.15);
  --cyan-glow: rgba(0, 212, 255, 0.35);
  --purple: #7c3aed;
  --purple-dim: rgba(124, 58, 237, 0.2);
  --orange: #f97316;
  --steam-blue: #1b9bdb;

  --text: #e8eaf6;
  --text-2: #9ba4c0;
  --text-3: #5c6484;

  --radius: 16px;
  --radius-sm: 10px;
  --trans: 0.22s cubic-bezier(0.4, 0, 0.2, 1);

  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ---------- Typography ---------- */
h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 800;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, #7b5cf5 60%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans);
  border: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #6366f1 100%);
  color: #fff;
  box-shadow: 0 0 24px var(--cyan-glow);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px var(--cyan-glow);
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-steam {
  background: linear-gradient(135deg, #1b9bdb, #1a5276);
  color: #fff;
  box-shadow: 0 0 24px rgba(27, 155, 219, 0.4);
}
.btn-steam:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 40px rgba(27, 155, 219, 0.6);
}

.btn-download {
  width: 100%;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}
.btn-download:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}
.btn-download--featured {
  background: linear-gradient(135deg, var(--cyan) 0%, #6366f1 100%);
  border: none;
  color: #fff;
}
.btn-download--featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cyan-glow);
  color: #fff;
}

/* ---------- Section Labels ---------- */
.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 60px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(6, 8, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--cyan);
  font-size: 1.3em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--trans);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-cta {
  margin-left: 8px;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 8, 15, 0.3) 0%, rgba(6, 8, 15, 0.2) 40%, rgba(6, 8, 15, 0.9) 85%, #06080f 100%);
}

.stars-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 70%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at 10% 80%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 90% 60%, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 140px 24px 80px;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.25);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.7);
  }
}

.hero-title {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.title-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 12px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-3);
  max-width: 540px;
  margin-bottom: 40px;
  line-height: 1.7;
  animation: fadeUp 0.6s 0.25s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  animation: fadeUp 0.6s 0.4s ease both;
}

.stat {
  text-align: center;
  padding: 0 28px;
}
.stat:first-child {
  padding-left: 0;
}

.stat-value {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s 1s ease both;
}

.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================================
   FEATURES
   ============================================================ */
#features {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--trans);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cyan-dim), transparent);
  opacity: 0;
  transition: opacity var(--trans);
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  background: var(--surface-2);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(0, 212, 255, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card--highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
  border-color: rgba(124, 58, 237, 0.2);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
  line-height: 1;
  filter: drop-shadow(0 0 12px var(--cyan-dim));
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.65;
}

.feature-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 212, 255, 0.2);
}

/* ============================================================
   SCREENSHOTS
   ============================================================ */
#screenshots {
  background: var(--bg-2);
  overflow: hidden;
}

#screenshots .container {
  margin-bottom: 48px;
}

.screenshots-track {
  display: flex;
  gap: 20px;
  padding: 0 calc((100vw - 1160px) / 2);
  padding-left: max(24px, calc((100vw - 1160px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 16px;
}
.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 auto;
  width: 680px;
  scroll-snap-align: start;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--trans);
  cursor: pointer;
}

.screenshot-item:hover {
  transform: scale(1.02);
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
}

.screenshot-item img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform var(--trans);
}

.screenshot-item:hover img {
  transform: scale(1.03);
}

.screenshot-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 20px 16px;
  background: linear-gradient(to top, rgba(6, 8, 15, 0.9), transparent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
}

/* ============================================================
   ROADMAP
   ============================================================ */
#roadmap {
  background: var(--bg);
}

.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 16px;
  padding-left: 40px;
}

.roadmap-item {
  position: relative;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.roadmap-item:last-child {
  border-bottom: none;
}

.roadmap-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 36px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 2px solid var(--border);
  transition: all var(--trans);
}

.roadmap-done::before {
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}

.roadmap-wip::before {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
  animation: pulseOrange 2s ease infinite;
}

@keyframes pulseOrange {
  0%,
  100% {
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.7);
  }
}

.roadmap-status {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.status-done {
  color: var(--cyan);
}
.status-wip {
  color: var(--orange);
}
.status-planned {
  color: var(--text-3);
}

.roadmap-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.roadmap-item p {
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 600px;
}

/* ============================================================
   STEAM CTA
   ============================================================ */
#steam {
  background: var(--bg-2);
}

.steam-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(27, 155, 219, 0.08) 0%, rgba(26, 82, 118, 0.12) 100%);
  border: 1px solid rgba(27, 155, 219, 0.2);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  overflow: hidden;
}

.steam-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 155, 219, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.steam-content {
  position: relative;
  z-index: 1;
}

.steam-icon {
  color: var(--steam-blue);
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 16px rgba(27, 155, 219, 0.5));
}

.steam-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.steam-card p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 420px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.steam-note {
  font-size: 0.8rem !important;
  color: var(--text-3) !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* ============================================================
   DOWNLOAD
   ============================================================ */
#download {
  background: var(--bg);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  text-align: center;
  position: relative;
  transition: all var(--trans);
}

.download-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-4px);
}

.download-card--featured {
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(99, 102, 241, 0.08) 100%);
  border-color: rgba(0, 212, 255, 0.2);
}

.download-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: linear-gradient(135deg, var(--cyan), #6366f1);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}

.os-icon {
  width: 76px;
  height: 76px;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-2);
  border: 1px solid var(--border);
  transition: all var(--trans);
}

.download-card:hover .os-icon {
  color: var(--cyan);
  border-color: rgba(0, 212, 255, 0.3);
  background: var(--cyan-dim);
}

.download-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.download-card > p {
  font-size: 0.85rem;
  color: var(--text-3);
}

.download-meta {
  display: block;
  margin-top: 10px;
  font-size: 0.75rem;
  color: var(--text-3);
  font-family: 'Space Mono', monospace;
}

.download-hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-3);
}

.download-hint a {
  color: var(--cyan);
  transition: opacity var(--trans);
}
.download-hint a:hover {
  opacity: 0.7;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-brand-name {
  font-weight: 700;
}

.footer-copy {
  color: var(--text-3);
  font-size: 0.8rem;
  margin-left: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.footer-links a:hover {
  color: var(--cyan);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .feature-card--highlight {
    grid-column: span 2;
  }
  .download-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto 32px;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 620px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .feature-card--highlight {
    grid-column: span 1;
  }
  .hero-title {
    font-size: clamp(3.5rem, 18vw, 7rem);
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    justify-content: center;
  }
  .steam-card {
    padding: 40px 24px;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .stat-sep {
    display: none;
  }
  section {
    padding: 72px 0;
  }
  .screenshot-item {
    width: 85vw;
  }
  .screenshot-item img {
    height: 240px;
  }
}
