/* landing.css - Cyber-Academia Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

:root {
  /* CYBER THEME PALETTE */
  --ev-bg: #050b1a;        /* Deep Space Navy */
  --ev-bg-card: #0f172a;   /* Darker Navy */
  --ev-bg-card-hover: #1e293b;

  --ev-text: #f8fafc;      /* White/Slate 50 */
  --ev-text-muted: #94a3b8; /* Slate 400 */
  --ev-text-dim: #64748b;  /* Slate 500 */

  /* NEON ACCENTS */
  --ev-neon-cyan: #18eddb;
  --ev-neon-purple: #9333ea;
  --ev-neon-pink: #ec4899;
  --ev-neon-green: #10b981;

  /* UI ELEMENTS */
  --ev-border: rgba(255, 255, 255, 0.1);
  --ev-border-glow: rgba(24, 237, 219, 0.5);

  --ev-radius-lg: 16px;
  --ev-radius-md: 8px;
  --ev-radius-sm: 4px;

  --ev-font-sans: 'Inter', system-ui, sans-serif;
  --ev-font-mono: 'Roboto Mono', monospace;

  --ev-shadow-neon: 0 0 10px rgba(24, 237, 219, 0.2), 0 0 20px rgba(24, 237, 219, 0.1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--ev-bg);
  color: var(--ev-text);
  font-family: var(--ev-font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }

a { text-decoration: none; color: inherit; transition: all 0.2s ease; }

.ev-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.text-cyan { color: var(--ev-neon-cyan); }
.text-purple { color: var(--ev-neon-purple); }
.text-center { text-align: center; }

/* ========== HEADER ========== */
.ev-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 11, 26, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ev-border);
}
.ev-nav { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.ev-logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 0.5rem; }
.ev-logo span { color: var(--ev-neon-cyan); }

.ev-nav-links { display: flex; gap: 2rem; align-items: center; }
.ev-nav-link { color: var(--ev-text-muted); font-size: 0.95rem; font-weight: 500; }
.ev-nav-link:hover { color: white; text-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: var(--ev-radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary {
  background: var(--ev-neon-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(24, 237, 219, 0.4);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 25px rgba(24, 237, 219, 0.6);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--ev-border);
  color: white;
}
.btn-secondary:hover {
  border-color: var(--ev-neon-purple);
  color: var(--ev-neon-purple);
  background: rgba(147, 51, 234, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--ev-text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover {
  color: white;
  border-color: var(--ev-border);
  background: rgba(255, 255, 255, 0.05);
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn-full { width: 100%; }

/* ========== HERO SECTION ========== */
.hero-section {
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-content { z-index: 2; }
.hero-headline {
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.25rem;
  color: var(--ev-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; }

/* Hero Visual - Split Screen */
.hero-visual {
  position: relative;
  perspective: 1000px;
}
.visual-card {
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  border: 1px solid var(--ev-border);
  transition: transform 0.5s ease;
}
.visual-hub {
  transform: rotateY(-5deg) translateX(-20px);
  z-index: 1;
  position: absolute;
  top: 40px;
  left: 0;
  width: 90%;
  border: 1px solid var(--ev-neon-cyan);
  box-shadow: 0 0 30px rgba(24, 237, 219, 0.15);
}
.visual-kid {
  transform: rotateY(5deg) translateX(20px);
  z-index: 2;
  position: relative;
  width: 90%;
  margin-left: auto;
  border: 1px solid var(--ev-neon-purple);
}
.hero-visual:hover .visual-hub,
.hero-visual.flipped .visual-hub { transform: rotateY(0) translateX(-10px) scale(1.05); z-index: 3; }

.hero-visual:hover .visual-kid,
.hero-visual.flipped .visual-kid { transform: rotateY(0) translateX(10px) scale(0.95); z-index: 1; }

.visual-img { width: 100%; display: block; }

/* ========== TICKER ========== */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--ev-border);
  border-bottom: 1px solid var(--ev-border);
  padding: 0.8rem 0;
  white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  animation: ticker 120s linear infinite;
}
.ticker-item {
  display: inline-block;
  padding: 0 2rem;
  color: var(--ev-text-muted);
  font-family: var(--ev-font-mono);
  font-size: 0.9rem;
}
.ticker-highlight { color: var(--ev-neon-green); font-weight: bold; }
@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

@keyframes pulse-cyan-glow {
  0% {
    box-shadow: 0 0 5px rgba(24, 237, 219, 0.2), inset 0 0 5px rgba(24, 237, 219, 0.1);
    border-color: rgba(24, 237, 219, 0.5);
    color: rgba(24, 237, 219, 0.8);
  }
  50% {
    box-shadow: 0 0 15px rgba(24, 237, 219, 0.6), inset 0 0 10px rgba(24, 237, 219, 0.3);
    border-color: rgba(24, 237, 219, 1);
    color: #fff;
  }
  100% {
    box-shadow: 0 0 5px rgba(24, 237, 219, 0.2), inset 0 0 5px rgba(24, 237, 219, 0.1);
    border-color: rgba(24, 237, 219, 0.5);
    color: rgba(24, 237, 219, 0.8);
  }
}

.btn-glow {
  animation: pulse-cyan-glow 2s infinite;
  color: var(--ev-neon-cyan);
  border-color: var(--ev-neon-cyan);
}

/* ========== SECTIONS ========== */
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(24, 237, 219, 0.1);
  color: var(--ev-neon-cyan);
  border: 1px solid rgba(24, 237, 219, 0.3);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

/* ========== CARDS (TROJAN HORSE) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius-lg);
  padding: 2rem;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--ev-neon-cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}
.feature-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--ev-border);
}

/* ========== FAKE TERMINAL (DEMO) ========== */
.demo-terminal {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  font-family: var(--ev-font-mono);
}
.terminal-header {
  background: #161b22;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #30363d;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-title { margin-left: auto; margin-right: auto; color: #8b949e; font-size: 0.8rem; }

.terminal-body {
  padding: 2rem;
  height: 400px;
  overflow-y: auto;
  color: #c9d1d9;
}
.term-line { margin-bottom: 1rem; display: flex; gap: 0.8rem; }
.term-prompt { color: var(--ev-neon-green); font-weight: bold; }
.term-user { color: #fff; }
.term-bot { color: var(--ev-neon-cyan); line-height: 1.5; }
.cursor {
  display: inline-block; width: 8px; height: 18px; background: var(--ev-neon-cyan);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* ========== TECH TREE (CURRICULUM) ========== */
.tech-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  gap: 2rem;
}
/* Vertical Line */
.tech-tree::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: linear-gradient(to bottom, var(--ev-neon-cyan), var(--ev-neon-purple));
  transform: translateX(-50%);
  z-index: 0;
}
.tree-node {
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-neon-cyan);
  padding: 1.5rem;
  border-radius: var(--ev-radius-lg);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 0 15px rgba(24, 237, 219, 0.1);
}
.tree-node h3 { color: var(--ev-neon-cyan); }
.tree-node.purple { border-color: var(--ev-neon-purple); }
.tree-node.purple h3 { color: var(--ev-neon-purple); }

.teacher-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255,255,255,0.03);
  padding: 2rem;
  border-radius: var(--ev-radius-lg);
  margin-top: 3rem;
  border: 1px solid var(--ev-border);
}
.teacher-img {
  width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--ev-neon-cyan);
}

/* ========== HALL OF HEROES (PLAYER CARDS) ========== */
.heroes-scroller {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1rem 0 2rem;
}
.player-card {
  width: 100%;
  background: var(--ev-bg-card);
  border-radius: var(--ev-radius-lg);
  overflow: hidden;
  border: 1px solid var(--ev-border);
  position: relative;
}
.player-card::before {
  content: '';
  position: absolute; top:0; left:0; right:0; height: 4px;
  background: linear-gradient(to right, var(--ev-neon-cyan), var(--ev-neon-purple));
}
.player-img-wrap {
  height: 160px;
  background: #1e293b;
  position: relative;
}
.player-photo { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.player-avatar {
  position: absolute;
  bottom: -20px; right: 20px;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--ev-bg-card);
  background: #000;
}
.player-info { padding: 1.5rem; }
.player-rank {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px;
  color: var(--ev-neon-purple); font-weight: bold;
}
.player-name { font-size: 1.2rem; font-weight: 700; margin: 0.2rem 0 0.5rem; }
.player-stat { display: flex; justify-content: space-between; font-size: 0.9rem; color: var(--ev-text-muted); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; margin-top: 0.5rem; }

/* ========== PRICING ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.price-card {
  background: var(--ev-bg-card);
  border: 1px solid var(--ev-border);
  padding: 2rem 1.5rem;
  border-radius: var(--ev-radius-lg);
  text-align: center;
  position: relative;
}
.price-card.featured {
  border-color: var(--ev-neon-cyan);
  background: rgba(24, 237, 219, 0.02);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(24, 237, 219, 0.1);
}
.badge-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--ev-neon-cyan); color: #000;
  padding: 0.3rem 1rem; border-radius: 20px; font-weight: 700; font-size: 0.8rem;
}
.price-amount { font-size: 3rem; font-weight: 800; color: white; margin: 1rem 0; }
.price-term { font-size: 1rem; color: var(--ev-text-muted); font-weight: 400; }
.price-features { list-style: none; padding: 0; margin: 2rem 0; text-align: left; }
.price-features li { padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--ev-text-dim); }
.price-features li::before { content: '✓'; color: var(--ev-neon-cyan); margin-right: 0.5rem; }
.price-features li.excluded::before { content: none; margin: 0; }

.scarcity-alert {
  color: #ef4444; font-weight: 600; font-size: 0.9rem; margin-bottom: 1rem; display: block;
}

/* ========== FOOTER / LEAD MAGNET ========== */
.footer-cta {
  background: linear-gradient(to right, #0f172a, #1e1b4b);
  padding: 4rem 2rem;
  border-radius: var(--ev-radius-lg);
  text-align: center;
  border: 1px solid var(--ev-border);
  margin-bottom: 4rem;
}
.input-group {
  display: flex; gap: 0.5rem; max-width: 500px; margin: 2rem auto 0;
}
.ev-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--ev-border);
  padding: 0.8rem 1rem;
  border-radius: var(--ev-radius-md);
  color: white;
  font-family: inherit;
}
.ev-input:focus { outline: none; border-color: var(--ev-neon-cyan); }

@media (max-width: 1024px) {
  .heroes-scroller { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .heroes-scroller { grid-template-columns: 1fr; }
  .hero-grid, .feature-grid, .pricing-grid, .teacher-profile { grid-template-columns: 1fr; flex-direction: column; }

  /* Mobile Nav Improvements */
  .ev-nav-links { display: flex; gap: 0.5rem; }
  .ev-nav-link, .ev-nav-links .btn-secondary { display: none; } /* Hide text links and Pricing button */
  .ev-logo span { display: none; } /* Hide logo text on mobile to ensure buttons fit */
  .ev-nav-links .btn-ghost { display: inline-flex !important; } /* Force Student Login visible */
  .ev-nav-links .btn { padding: 0.4rem 0.6rem; font-size: 0.8rem; } /* Smaller buttons */

  .hero-visual { display: none; } /* Hide complicated visual on mobile for simplicity, or stack it */
  h1 { font-size: 2.5rem; }
  .price-card.featured { transform: scale(1); }
}

/* MODAL */
.ev-modal-overlay {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 11, 26, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center; justify-content: center;
}
.ev-modal-overlay.active { display: flex; }

.ev-modal-content {
    background: var(--ev-bg-card);
    width: 90%; max-width: 640px; height: 90vh;
    border-radius: var(--ev-radius-lg);
    border: 1px solid var(--ev-border);
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}

.ev-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    background: rgba(0,0,0,0.5); border: 1px solid var(--ev-border);
    color: white; width: 32px; height: 32px;
    border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; z-index: 10;
}
.ev-modal-close:hover { background: var(--ev-neon-cyan); color: #000; }

.ev-modal-iframe {
    width: 100%; height: 100%; border: none;
    border-radius: var(--ev-radius-lg);
}
