/* ═══════════════════════════════════════════════════════════
   SmartCodedBot - Premium Dark Theme
   Single accent: #06b6d4 (Cyan)
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #030712;
  --bg2: #0a0f1a;
  --glass: rgba(255,255,255,.03);
  --glass-border: rgba(255,255,255,.06);
  --cyan: #06b6d4;
  --cyan-dim: rgba(6,182,212,.12);
  --cyan-glow: rgba(6,182,212,.25);
  --green: #4ade80;
  --red: #fb7185;
  --text1: #f0f4f8;
  --text2: #94a3b8;
  --text3: #475569;
  --sg: 'Space Grotesk', sans-serif;
  --inter: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: .2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--inter);
  background: var(--bg);
  color: var(--text1);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

/* -- Particle Canvas -- */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* -- Nav -- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(3,7,18,.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sg);
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  text-decoration: none;
}
.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sg);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}
.logo-accent { color: var(--cyan); }
.nav-links { display: flex; gap: 2px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: var(--text1); background: var(--glass); text-decoration: none; }
.nav-link.active { color: var(--cyan); }
.nav-right { display: flex; align-items: center; gap: 12px; }

/* -- Buttons -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--cyan);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
}
.btn-primary:hover { opacity: .9; transform: translateY(-1px); text-decoration: none; }
.btn-primary.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-glow { box-shadow: 0 4px 20px rgba(6,182,212,.3); }
.btn-glow:hover { box-shadow: 0 6px 28px rgba(6,182,212,.4); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--glass);
  color: var(--text1);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--cyan-dim); background: var(--cyan-dim); text-decoration: none; }

/* -- Pages -- */
main {
  position: relative;
  z-index: 1;
  padding-top: 60px;
  min-height: calc(100vh - 60px);
}
.page { display: none; }
.page.active { display: block; animation: fadeIn .4s ease; }

/* -- Hero -- */
.hero { padding: 100px 20px 40px; text-align: center; }
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-title {
  font-family: var(--sg);
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.text-cyan { color: var(--cyan); }
.glow-text { text-shadow: 0 0 40px rgba(6,182,212,.3), 0 0 80px rgba(6,182,212,.1); }
.hero-sub {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* -- Section -- */
.section { max-width: 1100px; margin: 0 auto; padding: 32px 20px; }
.section-title {
  font-family: var(--sg);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
}
.section-title.center { text-align: center; }

/* -- Page Headers -- */
.page-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 20px 16px;
  text-align: center;
}
.page-title {
  font-family: var(--sg);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}
.page-sub { font-size: 16px; color: var(--text2); }

/* -- Terminal -- */
.terminal {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--glass-border);
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.terminal-dots span:nth-child(1) { background: #fb7185; }
.terminal-dots span:nth-child(2) { background: #fbbf24; }
.terminal-dots span:nth-child(3) { background: #4ade80; }
.terminal-title { font-family: var(--mono); font-size: 12px; color: var(--text3); }
.terminal-body { padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.8; }
.term-line { white-space: nowrap; overflow: hidden; }
.term-ok { color: var(--green); font-weight: 500; margin-right: 8px; }
.term-dim { color: var(--text3); }
.term-cyan { color: var(--cyan); }
.term-cursor { animation: blink 1s step-end infinite; }

/* -- Stats -- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all .3s ease;
}
.stat-card:hover { border-color: var(--cyan-dim); transform: translateY(-2px); }
.stat-num {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text2); }
.status-dot-live {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s infinite;
  display: inline-block;
}

/* -- About -- */
.about-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  gap: 32px;
}
.about-content { flex: 1; }
.about-text { font-size: 16px; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
.about-founder { display: flex; align-items: center; gap: 12px; }
.founder-avatar {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #0891b2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sg);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
}
.founder-name { font-weight: 600; font-size: 15px; }
.founder-role { font-size: 13px; color: var(--text3); }
.about-chains { width: 260px; flex-shrink: 0; }
.chains-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: 12px; }
.chain-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chain-tag {
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 600;
}

/* -- Features Grid -- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover { border-color: var(--cyan-glow); transform: translateY(-3px); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-family: var(--sg); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* -- Products Grid -- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.product-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s ease;
  display: block;
  text-decoration: none;
  color: var(--text1);
}
.product-card:hover { border-color: var(--cyan-glow); transform: translateY(-3px); text-decoration: none; }
.product-icon { font-size: 32px; margin-bottom: 12px; }
.product-card h3 { font-family: var(--sg); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.product-card p { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 14px; }
.product-link { font-size: 13px; color: var(--cyan); font-weight: 500; }

/* -- Agents Grid -- */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.agent-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  transition: all .3s ease;
}
.agent-card:hover { border-color: var(--cyan-glow); transform: translateY(-2px); }
.agent-status {
  position: absolute;
  top: 16px; right: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
}
.agent-status.active { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.agent-card h3 { font-family: var(--sg); font-size: 16px; font-weight: 600; margin-bottom: 8px; padding-right: 20px; }
.agent-card p { font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 12px; }
.agent-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--text3); }
.agent-chain { color: var(--cyan); font-weight: 500; }
.agent-uptime { color: var(--green); }
.agents-more {
  text-align: center;
  padding: 24px 0;
  font-size: 14px;
  color: var(--text3);
  font-weight: 500;
}

/* -- Services Grid -- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.service-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s ease;
}
.service-card:hover { border-color: var(--cyan-glow); transform: translateY(-2px); }
.service-card h3 { font-family: var(--sg); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.service-tags span {
  padding: 4px 12px;
  border-radius: 14px;
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 11px;
  font-weight: 600;
}

/* -- Timeline (Roadmap) -- */
.timeline { max-width: 700px; margin: 0 auto; position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--glass-border);
}
.timeline-item {
  position: relative;
  padding-left: 56px;
  padding-bottom: 40px;
}
.timeline-marker {
  position: absolute;
  left: 13px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--glass-border);
  border: 2px solid var(--bg);
}
.timeline-marker.done { background: var(--green); box-shadow: 0 0 8px var(--green); }
.timeline-marker.current { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: pulse 2s infinite; }
.timeline-content h3 {
  font-family: var(--sg);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline-badge {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255,.04);
  color: var(--text3);
}
.timeline-badge.done { background: rgba(74,222,128,.12); color: var(--green); }
.timeline-badge.current { background: var(--cyan-dim); color: var(--cyan); }
.timeline-content ul {
  list-style: none;
  padding: 0;
}
.timeline-content li {
  font-size: 14px;
  color: var(--text2);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}
.timeline-content li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text3);
}

/* -- Contact Grid -- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: all .3s ease;
  display: block;
  color: var(--text1);
}
.contact-card:hover { border-color: var(--cyan-glow); transform: translateY(-3px); text-decoration: none; }
.contact-icon { font-size: 32px; margin-bottom: 12px; }
.contact-card h3 { font-family: var(--sg); font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.contact-card p { font-size: 13px; color: var(--cyan); }

/* -- Mobile Bottom Nav -- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 120;
  background: rgba(3,7,18,.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  padding: 6px 0 env(safe-area-inset-bottom, 8px);
  justify-content: space-around;
}
.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 16px;
  background: none;
  border: none;
  color: var(--text3);
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.mob-tab svg { width: 22px; height: 22px; stroke-width: 1.8; }
.mob-tab.active { color: var(--cyan); }
.mob-tab.active svg { stroke: var(--cyan); }
.mob-tab.active::before {
  content: '';
  position: absolute;
  top: -6px;
  width: 20px; height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--cyan);
}

/* -- Scroll to Top -- */
.scroll-top {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 80;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text2);
  font-size: 18px;
  cursor: pointer;
  transition: all .3s ease;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { border-color: var(--cyan); color: var(--cyan); }

/* -- Toast -- */
.toast-container {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  color: var(--text1);
  font-size: 14px;
  animation: toastIn .3s ease;
  max-width: 360px;
}

/* -- Footer -- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--glass-border);
  padding: 40px 20px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sg);
  font-size: 16px;
  font-weight: 600;
  color: var(--text1);
  margin-bottom: 16px;
}
.footer-links, .footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.footer-links a, .footer-social a { font-size: 13px; color: var(--text2); transition: var(--transition); }
.footer-links a:hover, .footer-social a:hover { color: var(--cyan); text-decoration: none; }
.footer-copy { font-size: 12px; color: var(--text3); margin-top: 16px; }

/* -- Reveal -- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* -- Animations -- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* -- Responsive -- */
@media (max-width: 1024px) {
  .features-grid, .products-grid, .agents-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .about-chains { display: none; }
}
@media (max-width: 768px) {
  .mobile-nav { display: flex; }
  .nav-links { display: none !important; }
  .nav-right .btn-primary { display: none; }
  main { padding-bottom: 72px; }
  .footer { padding-bottom: 80px; }
  .toast-container { bottom: 80px; }
  .scroll-top { bottom: 80px; }

  .hero { padding: 56px 16px 24px; }
  .hero-title { font-size: 32px; }
  .hero-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-badge { font-size: 11px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn-primary, .hero-actions .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }

  .section { padding: 20px 16px; }
  .section-title { font-size: 22px; }
  .page-header { padding: 32px 16px 12px; }
  .page-title { font-size: 28px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-num { font-size: 22px; }

  .features-grid, .products-grid, .agents-grid { grid-template-columns: 1fr; gap: 12px; }
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .feature-card, .product-card, .agent-card, .service-card, .contact-card {
    padding: 16px;
    border-radius: 12px;
  }
  .feature-card:hover, .product-card:hover, .agent-card:hover, .service-card:hover, .contact-card:hover {
    transform: none;
  }
  .feature-card:active, .product-card:active, .agent-card:active, .service-card:active, .contact-card:active {
    transform: scale(.98);
    background: rgba(255,255,255,.05);
  }

  .about-card { flex-direction: column; padding: 20px 16px; gap: 20px; }
  .about-chains { width: 100%; display: block; }

  .terminal { margin: 0 -4px; border-radius: 12px; }
  .terminal-body { font-size: 11px; padding: 12px; }

  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 44px; }
  .timeline-marker { left: 9px; }
  .timeline-content h3 { font-size: 16px; }

  .footer-links, .footer-social { gap: 14px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 28px; }
  .stat-card { padding: 12px 10px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 11px; }
  .contact-card { padding: 16px 12px; }
  .contact-icon { font-size: 24px; }
}
