:root {
  --bg: #050c14;
  --bg2: #071220;
  --panel: #0a1a2e;
  --panel2: #0d2040;
  --border: #1a3a5c;
  --accent: #00b4ff;
  --accent2: #00ffc8;
  --accent3: #ff6b35;
  --text: #c8dff0;
  --text-dim: #5a7a99;
  --text-bright: #e8f4ff;
  --warn: #ffd700;
  --danger: #ff4444;
  --success: #00ffc8;
  --glow: 0 0 20px rgba(0,180,255,0.3);
  --glow2: 0 0 30px rgba(0,255,200,0.2);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.05) 2px, rgba(0,0,0,0.05) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0,180,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ===== LANDING PAGE ===== */
.page-landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px;
  position: relative;
  z-index: 1;
}

.logo-area {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInDown 0.8s ease;
}

.logo-area .callsign {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.logo-area h1 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 900;
  color: var(--text-bright);
  line-height: 1;
  letter-spacing: -2px;
}

.logo-area h1 span { color: var(--accent); text-shadow: var(--glow); }

.logo-area .tagline {
  font-size: 16px;
  color: var(--text-dim);
  margin-top: 16px;
  letter-spacing: 1px;
}

.radar {
  width: 180px; height: 180px;
  position: relative;
  margin: 0 auto 40px;
  animation: fadeIn 1s ease 0.3s both;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,180,255,0.2);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.radar-circle:nth-child(1) { width: 180px; height: 180px; }
.radar-circle:nth-child(2) { width: 120px; height: 120px; border-color: rgba(0,180,255,0.3); }
.radar-circle:nth-child(3) { width: 60px; height: 60px; border-color: rgba(0,180,255,0.5); }

.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 90px; height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--accent), transparent);
  animation: sweep 3s linear infinite;
  border-radius: 2px;
}

.radar-dot {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent2);
  animation: blink 3s ease-in-out infinite;
}

.radar-dot:nth-child(5) { top: 30%; left: 60%; animation-delay: 0.5s; }
.radar-dot:nth-child(6) { top: 65%; left: 35%; animation-delay: 1.2s; }
.radar-dot:nth-child(7) { top: 45%; left: 75%; animation-delay: 2s; }

.problem-strip {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent3);
  border-radius: 8px;
  padding: 24px 32px;
  max-width: 640px;
  width: 100%;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.problem-strip .label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--accent3);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.problem-strip p { font-size: 15px; line-height: 1.7; color: var(--text); }
.problem-strip p strong { color: var(--warn); }

.stat-row {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease 0.5s both;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
  flex: 1;
  min-width: 160px;
}

.stat-box .num {
  font-family: 'Orbitron', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  text-shadow: var(--glow);
}

.stat-box .desc { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; margin-top: 4px; }

.cta-btn {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 18px 48px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-transform: uppercase;
  animation: fadeInUp 0.8s ease 0.6s both;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: inline-block;
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0,180,255,0.1), transparent);
  transition: left 0.4s ease;
}

.cta-btn:hover { background: rgba(0,180,255,0.1); box-shadow: var(--glow); transform: translateY(-2px); }
.cta-btn:hover::before { left: 100%; }

/* ===== INNER PAGES ===== */
.page-inner {
  padding: 60px 20px 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-content-view {
  padding: 40px 20px 80px;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.back-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  text-decoration: none;
  display: inline-block;
}

.back-btn:hover { color: var(--accent); border-color: var(--accent); }

.nav-title {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 3px;
}

.section-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

.section-header .sub {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-bright);
}

/* ===== MAJOR CARDS ===== */
.major-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.major-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}

.major-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--card-color, var(--accent));
  opacity: 0.6;
  transition: opacity 0.2s;
}

.major-card:hover {
  border-color: var(--card-color, var(--accent));
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.4), 0 0 20px rgba(0,180,255,0.1);
}

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

.major-icon { font-size: 42px; margin-bottom: 20px; display: block; }

.major-card h3 {
  font-family: 'Orbitron', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.major-card p { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 20px; }

.course-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--card-color, var(--accent));
  letter-spacing: 2px;
}

/* ===== COURSE LIST ===== */
.course-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-decoration: none;
  color: inherit;
}

.course-item:hover {
  border-color: var(--accent);
  background: var(--panel2);
  transform: translateX(4px);
  box-shadow: -4px 0 20px rgba(0,180,255,0.1);
}

.course-item-left { display: flex; align-items: center; gap: 20px; }

.course-num {
  font-family: 'Orbitron', monospace;
  font-size: 11px;
  color: var(--text-dim);
  width: 24px;
  flex-shrink: 0;
}

.course-info h4 {
  font-family: 'Orbitron', monospace;
  font-size: 14px;
  color: var(--text-bright);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.course-info p { font-size: 12px; color: var(--text-dim); }

.course-type {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.type-study { background: rgba(0,180,255,0.1); color: var(--accent); border: 1px solid rgba(0,180,255,0.2); }
.type-video { background: rgba(255,107,53,0.1); color: var(--accent3); border: 1px solid rgba(255,107,53,0.2); }

/* ===== CONTENT VIEW ===== */
.content-wrapper { max-width: 900px; margin: 0 auto; }

.content-header {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px 12px 0 0;
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.breadcrumb span { color: var(--accent); }

.content-header h2 {
  font-family: 'Orbitron', monospace;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 700;
  color: var(--text-bright);
}

.content-body {
  background: var(--panel);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 32px;
}

.study-section { margin-bottom: 36px; }

.study-section h3 {
  font-family: 'Orbitron', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,180,255,0.15);
  text-transform: uppercase;
}

.study-section p { font-size: 14px; line-height: 1.8; color: var(--text); margin-bottom: 12px; }

.key-terms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.term {
  background: rgba(0,180,255,0.05);
  border: 1px solid rgba(0,180,255,0.15);
  border-radius: 6px;
  padding: 10px 14px;
}

.term strong {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: var(--accent2);
  display: block;
  margin-bottom: 4px;
}

.term span { font-size: 12px; color: var(--text-dim); }

.formula-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 6px;
  padding: 16px 20px;
  margin: 12px 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: var(--accent2);
}

.tips-list { list-style: none; }

.tips-list li {
  font-size: 14px;
  color: var(--text);
  padding: 8px 0 8px 20px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.tips-list li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 8px;
  top: 10px;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-notes {
  background: rgba(255,107,53,0.05);
  border: 1px solid rgba(255,107,53,0.2);
  border-radius: 8px;
  padding: 20px 24px;
  margin-top: 16px;
}

.video-notes h4 {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent3);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.video-notes ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.video-notes li { font-size: 13px; color: var(--text); padding-left: 16px; position: relative; }
.video-notes li::before { content: '—'; position: absolute; left: 0; color: var(--accent3); }

.video-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.video-link-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: rgba(0,212,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.video-link-thumb {
  flex-shrink: 0;
  width: 160px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.video-link-thumb img { width: 100%; display: block; }

.video-link-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-link-title {
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.video-link-btn {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: #fff;
  background: #ff0000;
  border-radius: 4px;
  padding: 8px 14px;
  text-decoration: none;
  width: fit-content;
}

.video-link-btn:hover { background: #cc0000; }

/* ===== CHAT ===== */
.chat-section {
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}

.chat-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-label::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent2);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

.chat-messages {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg { display: flex; gap: 10px; }

.msg-avatar {
  width: 28px; height: 28px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  font-family: 'Share Tech Mono', monospace;
}

.msg.ai .msg-avatar { background: rgba(0,180,255,0.15); color: var(--accent); border: 1px solid rgba(0,180,255,0.3); }
.msg.user .msg-avatar { background: rgba(0,255,200,0.15); color: var(--accent2); border: 1px solid rgba(0,255,200,0.3); }

.msg-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  padding: 8px 12px;
  background: var(--panel);
  border-radius: 6px;
  flex: 1;
  border: 1px solid var(--border);
}

.msg.user { flex-direction: row-reverse; }
.msg.user .msg-text { background: rgba(0,255,200,0.05); border-color: rgba(0,255,200,0.15); }

.chat-input-row { display: flex; gap: 10px; }

.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus { border-color: var(--accent); }
.chat-input::placeholder { color: var(--text-dim); }

.chat-send {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  padding: 12px 20px;
  background: rgba(0,180,255,0.1);
  color: var(--accent);
  border: 1px solid rgba(0,180,255,0.3);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
  white-space: nowrap;
}

.chat-send:hover { background: rgba(0,180,255,0.2); box-shadow: var(--glow); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.thinking { display: flex; gap: 4px; align-items: center; padding: 8px 12px; }

.thinking span {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: thinking 1.2s ease-in-out infinite;
}

.thinking span:nth-child(2) { animation-delay: 0.2s; }
.thinking span:nth-child(3) { animation-delay: 0.4s; }

/* ===== ANIMATIONS ===== */
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thinking {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* ===== STATUS BAR ===== */
.status-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 100;
}

.status-item {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  animation: blink 2s ease-in-out infinite;
}

/* ===== VAUGHN LOGO ===== */
.vaughn-logo-wrap { margin-bottom: 24px; animation: fadeIn 1s ease; }

.vaughn-logo {
  width: 100px; height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(0,180,255,0.3);
  box-shadow: 0 0 24px rgba(0,180,255,0.2), 0 0 60px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
  transition: box-shadow 0.3s ease;
}

.vaughn-logo:hover { box-shadow: 0 0 32px rgba(0,180,255,0.5), 0 0 60px rgba(0,0,0,0.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .stat-row { gap: 12px; }
  .content-body { padding: 20px; }
  .content-header { padding: 20px; }
}
