/* SmartCodedBot — Full Redesign (NeoGlass / Cyber)
   Keep class names stable so all pages keep working.
*/

:root {
  --bg: #06060a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.66);

  --a: #22d3ee;   /* cyan */
  --b: #3b82f6;   /* blue */
  --c: #a78bfa;   /* violet */
  --d: #34d399;   /* emerald */

  --shadow: rgba(0, 0, 0, 0.55);
  --glow: rgba(34, 211, 238, 0.22);
  --glow2: rgba(59, 130, 246, 0.18);
  --glow3: rgba(167, 139, 250, 0.16);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Animated background container (#bg) used by app.js */
#bg {
  background:
    radial-gradient(1200px 700px at 20% 15%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(1000px 650px at 80% 70%, rgba(59, 130, 246, 0.14), transparent 60%),
    radial-gradient(900px 600px at 50% 90%, rgba(167, 139, 250, 0.10), transparent 60%);
  animation: bgPulse 14s ease-in-out infinite;
  filter: saturate(1.15);
}

@keyframes bgPulse {
  0%, 100% { opacity: 1; transform: translate3d(0,0,0); }
  50% { opacity: 0.70; transform: translate3d(0,-2px,0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}

@keyframes gradientShift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(-10px, 8px, 0) scale(1.02); opacity: 0.7; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.95; }
  50% { opacity: 0.55; }
}

/* Links */
a { color: inherit; text-decoration: none; }

/* Global overrides (so pages with old purple Tailwind classes still match new theme) */
#nav { border-bottom: 1px solid rgba(255,255,255,0.10) !important; background: rgba(6,6,10,0.78) !important; }
#menu { border-bottom: 1px solid rgba(255,255,255,0.10) !important; background: rgba(6,6,10,0.88) !important; }

/* Navigation */
.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.35rem 0;
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--a), var(--b), var(--c));
  transition: width 220ms ease;
  border-radius: 999px;
}

.nav-link:hover { color: rgba(255, 255, 255, 0.95); }
.nav-link:hover::after { width: 100%; }

/* Mobile menu */
.mobile-menu-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.mobile-menu-link:hover {
  transform: translateX(6px);
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(135deg, rgba(34,211,238,0.08), rgba(59,130,246,0.06));
}

/* Headings */
.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(34,211,238,0.95), rgba(167,139,250,0.92));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .section-title { font-size: 3.4rem; }
}

/* Cards */
.stat-card,
.agent-card,
.feature-card,
.skill-category {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 60px var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.stat-card { padding: 1.35rem; }
.agent-card { padding: 1.9rem; }
.feature-card { padding: 1.6rem; }
.skill-category { padding: 1.4rem; }

.stat-card:hover,
.agent-card:hover,
.feature-card:hover,
.skill-category:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow: 0 22px 90px rgba(0,0,0,0.65), 0 0 0 1px rgba(34,211,238,0.10) inset;
}

.agent-card:hover { transform: translateY(-6px) translateX(6px); }

.capability-badge {
  display: inline-block;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 650;
  color: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(167,139,250,0.06));
}

/* CTA buttons */
.cta-btn,
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  border: 1px solid rgba(255,255,255,0.12);
}

.cta-primary {
  background: linear-gradient(135deg, rgba(34,211,238,0.95), rgba(59,130,246,0.95));
  color: #041018;
  box-shadow: 0 14px 60px rgba(34,211,238,0.18);
}

.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 80px rgba(34,211,238,0.24);
}

.cta-secondary {
  background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: rgba(255,255,255,0.92);
}

.cta-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(59,130,246,0.30);
  background: linear-gradient(135deg, rgba(59,130,246,0.10), rgba(167,139,250,0.06));
}

/* Social handles */
.social-handle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.03));
  color: rgba(255,255,255,0.88);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.social-handle:hover {
  transform: translateY(-5px);
  border-color: rgba(34,211,238,0.28);
  box-shadow: 0 18px 70px rgba(0,0,0,0.60), 0 0 40px rgba(34,211,238,0.10);
}

/* Comparison table */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.comparison-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 900;
  color: rgba(255,255,255,0.88);
  background: linear-gradient(135deg, rgba(34,211,238,0.10), rgba(59,130,246,0.08));
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.comparison-table td {
  padding: 1rem;
  color: rgba(255,255,255,0.76);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table .highlight {
  background: linear-gradient(135deg, rgba(34,211,238,0.12), rgba(167,139,250,0.07));
  color: rgba(255,255,255,0.90);
  font-weight: 800;
}

.comparison-table tbody tr:hover {
  background: rgba(34, 211, 238, 0.05);
}

/* Footer links */
.footer-link {
  color: rgba(255,255,255,0.70);
  transition: color 160ms ease;
}

.footer-link:hover { color: rgba(34, 211, 238, 0.95); }

/* Mobile footer (fixed) */
.mobile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: block;
}

.mobile-footer-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 10px 10px 12px;
  background: rgba(8, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(255,255,255,0.10);
}

.footer-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 14px;
  color: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  transition: transform 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-nav-item:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.20);
  color: rgba(255,255,255,0.92);
}

.footer-nav-item span { font-size: 11px; font-weight: 750; }

.desktop-footer { display: none; }

@media (min-width: 768px) {
  .mobile-footer { display: none; }
  .desktop-footer { display: block; }
  body { padding-bottom: 0; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 80;
}

.modal-overlay.active { display: flex; animation: modalFade 180ms ease-out; }

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

.modal-container {
  width: 100%;
  max-width: 540px;
}

.modal-content {
  position: relative;
  padding: 26px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(12,12,18,0.86), rgba(12,12,18,0.72));
  box-shadow: 0 26px 120px rgba(0,0,0,0.75), 0 0 0 1px rgba(34,211,238,0.08) inset;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.86);
  border-radius: 12px;
  padding: 10px;
  transition: transform 160ms ease, background 160ms ease;
}

.modal-close:hover { transform: rotate(8deg) scale(1.03); background: rgba(34,211,238,0.10); }

.demo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.88);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.demo-link:hover {
  transform: translateY(-2px);
  border-color: rgba(34,211,238,0.22);
  background: rgba(34,211,238,0.08);
}

/* Terminal demo (minimal; terminal-demo.js handles most) */
.terminal-container {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(10,10,14,0.82), rgba(10,10,14,0.60));
  box-shadow: 0 24px 120px rgba(0,0,0,0.70);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-body {
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  color: rgba(255,255,255,0.88);
}

/* Small utility */
.particle { filter: drop-shadow(0 0 10px rgba(34,211,238,0.18)); }
