/* Global Cyberpunk Dark Theme Styles */
:root {
  --bg: #070b14;
  --bg-2: #0b1222;
  --bg-3: #0f1a30;
  --surface: rgba(15, 26, 48, 0.65);
  --surface-2: rgba(11, 18, 34, 0.8);
  --text: #e6f1ff;
  --muted: #9bb0c9;
  --muted-2: #7f93b2;
  --line: rgba(120, 140, 180, 0.2);
  --line-strong: rgba(120, 140, 180, 0.3);

  --neon-cyan: #00ffd5;
  --neon-teal: #19e3b1;
  --neon-pink: #ff00ff;
  --neon-purple: #7755ff;
  --neon-blue: #39a0ff;
  --warning: #ff5e5e;
  --success: #4ade80;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --shadow-neon: 0 0 20px rgba(0, 255, 213, 0.2), 0 0 40px rgba(0, 255, 213, 0.1);
  --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, rgba(0,255,213,0.06), transparent 60%),
              radial-gradient(1000px 700px at 90% 10%, rgba(119,85,255,0.08), transparent 60%),
              linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Matrix background canvas overlay */
.matrix-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  pointer-events: none;
}

/* Custom neon cursor (decorative) */
.cursor {
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,255,213,0.7);
  box-shadow: 0 0 10px rgba(0,255,213,0.6), 0 0 20px rgba(0,255,213,0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 1000;
}

/* Top Navigation */
.nav-container {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(130%) blur(10px);
  background: linear-gradient(180deg, rgba(9, 14, 26, 0.9), rgba(9, 14, 26, 0.6));
  border-bottom: 1px solid var(--line);
}
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4vw;
}
.nav-logo .logo-link {
  letter-spacing: 2px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  position: relative;
}
.nav-logo .logo-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  height: 2px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0.6;
}

.nav-menu { display: flex; align-items: center; gap: 24px; }
.nav-links, .nav-auth { display: flex; gap: 16px; list-style: none; padding: 0; margin: 0; }
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2s ease;
}
.nav-link:hover { color: var(--text); background: rgba(0, 255, 213, 0.08); box-shadow: var(--shadow-neon); }

.dropdown { position: relative; }
.dropdown-trigger { cursor: default; }
.dropdown-content {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  padding: 10px;
  display: none;
}
.dropdown:hover .dropdown-content { display: grid; gap: 6px; }
.dropdown-content a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  background: transparent;
}
.dropdown-content a:hover { background: rgba(0, 255, 213, 0.08); }

.mobile-menu-btn { display: none; }
.mobile-menu { display: none; }

/* Footer */
.footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: linear-gradient(0deg, rgba(7,11,20,0.95), rgba(7,11,20,0.6));
}
.footer-content {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 0;
}
.footer-brand { font-weight: 700; color: var(--muted); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-link {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.footer-link:hover { color: var(--text); background: rgba(0,255,213,0.08); }
.footer-bottom { border-top: 1px dashed var(--line); padding: 18px 0 26px; color: var(--muted-2); font-size: 14px; }
.footer-tagline { color: var(--neon-teal); }

/* Utilities */
.section-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: 0.4px;
}

.btn-primary, .btn-secondary, .cta-button, .pricing-btn, .featured-tool-btn, .search-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: linear-gradient(180deg, rgba(0,255,213,0.16), rgba(0,255,213,0.06));
  box-shadow: inset 0 0 0 1px rgba(0,255,213,0.15), 0 6px 16px rgba(0,0,0,0.5);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary:hover, .cta-button.primary:hover, .pricing-btn:hover, .featured-tool-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-neon), 0 10px 24px rgba(0,0,0,0.6);
}
.btn-secondary, .cta-button.secondary {
  background: linear-gradient(180deg, rgba(119,85,255,0.18), rgba(119,85,255,0.06));
  border-color: rgba(119,85,255,0.35);
}

/* Forms */
.search-input, .filter-select {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.search-input::placeholder { color: var(--muted-2); }
.filter-select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px); background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 32px; }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(2,6,12,0.65); backdrop-filter: blur(4px); z-index: 100; }
.modal-content { width: min(720px, 92%); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); overflow: hidden; }
.modal-header, .modal-footer { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-footer { border-top: 1px solid var(--line); border-bottom: none; display: flex; justify-content: flex-end; gap: 10px; }
.modal-body { padding: 18px; }
.modal-close { background: transparent; border: none; color: var(--muted); font-size: 28px; line-height: 1; cursor: pointer; }

/* Toasts */
.toast-container { position: fixed; right: 18px; bottom: 18px; display: grid; gap: 10px; z-index: 200; }
.toast { background: var(--surface); color: var(--text); padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-deep); }

/* Responsive */
@media (max-width: 960px) {
  .desktop-menu { display: none; }
  .mobile-menu-btn { display: inline-flex; background: transparent; color: var(--text); border: 1px solid var(--line-strong); padding: 8px 12px; border-radius: 10px; }
  .mobile-menu { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--surface-2); border-top: 1px solid var(--line-strong); }
  .mobile-menu-content { display: grid; padding: 10px; }
  .mobile-nav-link { color: var(--text); text-decoration: none; padding: 10px 12px; border-radius: 10px; }
  .mobile-nav-link:hover { background: rgba(0,255,213,0.08); }
}
