/* ============================================
   The Architect — Prometheus Protocol
   Landing Page Styles
   ============================================ */

:root {
  --blue: #00a8ff;
  --blue-dim: #00a8ff66;
  --blue-faint: #00a8ff22;
  --blue-ghost: #00a8ff11;
  --bg: #000000;
  --bg-card: #0a0a0f;
  --bg-section-alt: #040408;
  --text: #e0e0e0;
  --text-dim: #888;
  --font-mono: 'Courier New', 'Fira Code', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--blue-dim) #111;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

strong { color: #fff; }

/* ============ HERO SECTION ============ */
#hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

canvas#matrix {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.scanline {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px, rgba(0,168,255,0.015) 2px, rgba(0,168,255,0.015) 4px
  );
  z-index: 2; pointer-events: none;
}

.vignette {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.8) 100%);
  z-index: 3; pointer-events: none;
}

.flash {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--blue);
  z-index: 10; pointer-events: none;
  opacity: 0; transition: opacity 0.05s;
}
.flash.on { opacity: 0.3; }

.corner-tag {
  position: absolute; z-index: 4; font-size: 11px; color: #00a8ff44;
  letter-spacing: 2px; pointer-events: none;
}
.corner-tag.tl { top: 20px; left: 20px; }
.corner-tag.tr { top: 20px; right: 20px; }
.corner-tag.bl { bottom: 60px; left: 20px; }
.corner-tag.br { bottom: 60px; right: 20px; }

#overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}

.scene {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.8s ease;
}
.scene.active { opacity: 1; }

.glitch-text {
  font-size: clamp(36px, 8vw, 72px);
  font-weight: bold; color: var(--blue);
  text-shadow: 0 0 20px #00a8ff55, 0 0 60px #00a8ff22;
  letter-spacing: 8px; text-transform: uppercase;
  animation: glitch 3s infinite;
  text-align: center;
}

.subtitle {
  font-size: clamp(14px, 3vw, 24px);
  color: #00a8ff99; margin-top: 20px;
  letter-spacing: 6px; text-transform: uppercase;
  text-align: center;
}

.tag {
  font-size: clamp(12px, 2vw, 18px);
  color: var(--blue-dim); margin-top: 12px;
  letter-spacing: 4px; text-align: center;
}

.token-name {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: bold; color: var(--blue);
  text-shadow: 0 0 30px #00a8ff77, 0 0 80px #00a8ff33, 0 0 120px var(--blue-ghost);
  letter-spacing: 12px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.skill-item {
  font-size: clamp(16px, 3vw, 28px);
  color: #00a8ffcc; margin: 12px 0;
  letter-spacing: 3px; opacity: 0;
  transform: translateX(-30px);
}
.skill-item.show {
  opacity: 1; transform: translateX(0);
  transition: all 0.6s ease;
}

.bracket { color: var(--blue-dim); }

.stat-row { display: flex; gap: 60px; margin-top: 30px; }
.stat { text-align: center; opacity: 0; }
.stat.show { opacity: 1; transition: opacity 0.5s ease; }
.stat-value {
  font-size: clamp(28px, 5vw, 48px);
  color: var(--blue); font-weight: bold;
  text-shadow: 0 0 20px #00a8ff55;
}
.stat-label {
  font-size: 14px; color: var(--blue-dim);
  letter-spacing: 3px; margin-top: 4px; text-transform: uppercase;
}

.section-label {
  font-size: 20px; color: #00a8ff55; letter-spacing: 6px; margin-bottom: 30px;
}
.section-sublabel {
  font-size: 14px; color: #00a8ff44; letter-spacing: 4px; margin-top: 30px;
}

.final-cta {
  font-size: 16px; color: #00a8ff55; letter-spacing: 4px;
  margin-top: 30px; text-transform: uppercase;
}
.tagline {
  font-size: 13px; color: #00a8ff33; letter-spacing: 3px; margin-top: 20px;
}

.typing-line {
  font-size: clamp(12px, 1.8vw, 16px);
  color: #00a8ff77; letter-spacing: 2px;
  overflow: hidden; white-space: nowrap;
  border-right: 2px solid var(--blue);
  animation: typing 2s steps(40) forwards, blink-caret 0.5s step-end infinite;
  max-width: fit-content; margin: 4px auto;
}

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 20px; left: 50%;
  transform: translateX(-50%); z-index: 5;
  text-align: center; opacity: 0.4;
  animation: fade-bounce 2s ease-in-out infinite;
  pointer-events: none;
}
.scroll-text {
  font-size: 10px; letter-spacing: 4px; color: var(--blue-dim);
}
.scroll-arrow {
  font-size: 14px; color: var(--blue-dim); margin-top: 4px;
}

/* ============ CONTENT SECTIONS ============ */
.content-section {
  padding: 100px 20px;
  position: relative;
}
.content-section.dark {
  background: var(--bg-section-alt);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 50px;
}
.bracket-tag {
  font-size: 12px;
  color: var(--blue-dim);
  letter-spacing: 4px;
  display: block;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--blue);
  letter-spacing: 2px;
  font-weight: bold;
  text-shadow: 0 0 30px #00a8ff22;
}

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.col p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.highlight-text {
  color: var(--blue) !important;
  font-size: 18px !important;
  line-height: 1.6 !important;
  margin-top: 20px;
  text-shadow: 0 0 20px #00a8ff22;
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.skill-card {
  background: rgba(0, 168, 255, 0.03);
  border: 1px solid rgba(0, 168, 255, 0.1);
  padding: 32px;
  position: relative;
  transition: border-color 0.3s, background 0.3s;
}
.skill-card:hover {
  border-color: rgba(0, 168, 255, 0.3);
  background: rgba(0, 168, 255, 0.05);
}
.skill-card::before {
  content: attr(data-num);
  position: absolute;
  top: 12px; right: 16px;
  font-size: 48px;
  color: rgba(0, 168, 255, 0.06);
  font-weight: bold;
  line-height: 1;
}
.skill-card h3 {
  font-size: 18px;
  color: var(--blue);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.skill-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.skill-price {
  font-size: 12px;
  color: var(--blue-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(0, 168, 255, 0.08);
  padding-top: 12px;
}

/* Roadmap */
.roadmap {
  position: relative;
  padding-left: 40px;
}
.roadmap::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}
.roadmap-item {
  position: relative;
  margin-bottom: 40px;
}
.roadmap-marker {
  position: absolute;
  left: -40px; top: 4px;
  width: 17px; height: 17px;
  border: 2px solid var(--blue-dim);
  background: var(--bg);
  border-radius: 0;
}
.roadmap-item.active .roadmap-marker {
  background: var(--blue);
  box-shadow: 0 0 12px #00a8ff55;
  border-color: var(--blue);
}
.roadmap-content h4 {
  font-size: 18px;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.roadmap-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}
.status-badge {
  font-size: 10px;
  letter-spacing: 2px;
  padding: 2px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}
.status-badge.live {
  color: var(--blue);
  border: 1px solid var(--blue-dim);
  background: rgba(0, 168, 255, 0.08);
}

/* Token info */
.token-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.token-detail {
  background: rgba(0, 168, 255, 0.03);
  border: 1px solid rgba(0, 168, 255, 0.08);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.token-label {
  font-size: 11px;
  color: var(--blue-dim);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.token-val {
  font-size: 16px;
  color: #fff;
}
.token-val.mono {
  font-size: 12px;
  color: var(--blue);
  word-break: break-all;
}

/* CTA buttons */
.cta-row {
  display: flex;
  gap: 16px;
  margin-top: 30px;
}
.cta-btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
}
.cta-btn.primary {
  background: var(--blue);
  color: #000;
  border: 1px solid var(--blue);
}
.cta-btn.primary:hover {
  background: transparent;
  color: var(--blue);
  box-shadow: 0 0 20px #00a8ff33;
  opacity: 1;
}
.cta-btn.secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue-dim);
}
.cta-btn.secondary:hover {
  border-color: var(--blue);
  box-shadow: 0 0 20px #00a8ff22;
  opacity: 1;
}

/* Footer */
footer {
  padding: 60px 20px 30px;
  border-top: 1px solid rgba(0, 168, 255, 0.08);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.footer-logo {
  font-size: 20px;
  color: var(--blue);
  letter-spacing: 4px;
  font-weight: bold;
}
.footer-sub {
  font-size: 11px;
  color: var(--blue-dim);
  letter-spacing: 3px;
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #444;
  letter-spacing: 1px;
  padding-top: 20px;
  border-top: 1px solid #111;
}

/* ============ ANIMATIONS ============ */
@keyframes glitch {
  0%, 90%, 100% { transform: translate(0); filter: none; }
  91% { transform: translate(-3px, 1px); filter: hue-rotate(90deg); }
  92% { transform: translate(3px, -1px); filter: hue-rotate(-90deg); }
  93% { transform: translate(0); filter: none; }
  96% { transform: translate(2px, 2px); filter: hue-rotate(45deg) brightness(1.5); }
  97% { transform: translate(-2px, -1px); filter: hue-rotate(-45deg); }
  98% { transform: translate(0); filter: none; }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; text-shadow: 0 0 30px #00a8ff77, 0 0 80px #00a8ff33; }
  50% { opacity: 0.9; text-shadow: 0 0 50px #00a8ffaa, 0 0 120px #00a8ff55, 0 0 200px #00a8ff22; }
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret { 50% { border-color: transparent; } }

@keyframes fade-bounce {
  0%, 100% { opacity: 0.2; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.6; transform: translateX(-50%) translateY(6px); }
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .two-col, .skills-grid, .token-info {
    grid-template-columns: 1fr;
  }
  .stat-row { gap: 30px; }
  .cta-row { flex-direction: column; }
  .cta-btn { text-align: center; }
  .footer-grid { flex-direction: column; gap: 20px; text-align: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .corner-tag { display: none; }
  .content-section { padding: 60px 16px; }
}
