@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-hover: #1e1e1e;
  --border: #2a2a2a;
  --border-light: #333333;
  --text-primary: #f0f0f0;
  --text-secondary: #888888;
  --text-muted: #555555;
  --accent: #00ff88;
  --accent-dim: rgba(0, 255, 136, 0.1);
  --accent-glow: rgba(0, 255, 136, 0.3);
  --danger: #ff4444;
  --warning: #ffaa00;
  --blue: #4488ff;
  --purple: #8844ff;
  --radius: 12px;
  --radius-lg: 20px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* GRID BACKGROUND */
.grid-bg {
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
p { color: var(--text-secondary); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 0.95rem;
  font-weight: 600; font-family: 'Inter', sans-serif; cursor: pointer;
  border: none; text-decoration: none; transition: all 0.2s ease;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--accent); color: #000;
}
.btn-primary:hover { background: #00dd77; transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--text-primary); border: 1px solid var(--border-light);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--text-muted); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #ee3333; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 14px; }
.btn-full { width: 100%; }

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.card:hover { border-color: var(--border-light); }

/* INPUTS */
.input-group { display: flex; flex-direction: column; gap: 6px; }
.input-group label { font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.input {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color 0.2s;
  width: 100%;
}
.input:focus { outline: none; border-color: var(--accent); }
.input::placeholder { color: var(--text-muted); }
select.input { cursor: pointer; }

/* NAV */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px; position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.8); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-size: 1.4rem; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; text-decoration: none; }
.nav-links { display: flex; gap: 12px; align-items: center; }

/* HAMBURGER BUTTON (MOBILE MENU - somente landing page) */
body.grid-bg .hamburger-btn {
  position: fixed; top: 16px; right: 16px; z-index: 1001;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: 10px; cursor: pointer;
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  transition: all 0.3s ease;
}
body.grid-bg .hamburger-btn:hover { border-color: var(--accent); background: var(--bg-hover); }
body.grid-bg .hamburger-btn span {
  width: 20px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: all 0.3s ease; display: block;
}
body.grid-bg .hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.grid-bg .hamburger-btn.active span:nth-child(2) {
  opacity: 0; transform: scaleX(0);
}
body.grid-bg .hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed; top: 0; right: 0; width: 280px; height: 100vh;
  background: var(--bg-secondary); border-left: 1px solid var(--border);
  z-index: 1000; display: none; flex-direction: column;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.4);
}
.mobile-menu.active {
  display: flex;
  animation: slideInRight 0.3s ease forwards;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px; border-bottom: 1px solid var(--border);
}
.mobile-menu-links {
  display: flex; flex-direction: column; padding: 20px; gap: 16px;
}
.mobile-menu-links a {
  color: var(--text-primary); text-decoration: none;
  font-weight: 500; padding: 12px 0;
  border-bottom: 1px solid var(--border); transition: color 0.2s;
}
.mobile-menu-links a:hover {
  color: var(--accent);
}
.close-btn {
  background: none; border: none; color: var(--text-primary);
  font-size: 1.2rem; cursor: pointer; padding: 4px;
}

/* MOBILE MENU OVERLAY */
.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6); z-index: 999;
  visibility: hidden; opacity: 0;
  backdrop-filter: blur(4px);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu-overlay.active {
  visibility: visible; opacity: 1;
}

@media (max-width: 768px) {
  body.grid-bg .hamburger-btn { display: flex; }
  .nav-links { display: none; }
}

/* BADGE */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px;
  border-radius: 100px; font-size: 0.8rem; font-weight: 600;
}
.badge-green { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-glow); }
.badge-blue { background: rgba(68, 136, 255, 0.1); color: var(--blue); border: 1px solid rgba(68, 136, 255, 0.3); }

/* PROGRESS BAR */
.progress-bar {
  height: 8px; background: var(--border); border-radius: 100px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: linear-gradient(90deg, var(--accent), #00cc66);
  border-radius: 100px; transition: width 0.6s ease;
}

/* TAGS */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
}
.tag-green { background: var(--accent-dim); color: var(--accent); }
.tag-red { background: rgba(255, 68, 68, 0.1); color: var(--danger); }
.tag-yellow { background: rgba(255, 170, 0, 0.1); color: var(--warning); }

/* ALERTS */
.alert {
  padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500;
  border-left: 3px solid;
}
.alert-success { background: rgba(0, 255, 136, 0.08); color: var(--accent); border-color: var(--accent); }
.alert-error { background: rgba(255, 68, 68, 0.08); color: var(--danger); border-color: var(--danger); }
.alert-info { background: rgba(68, 136, 255, 0.08); color: var(--blue); border-color: var(--blue); }

/* LOADER */
.loader { display: flex; align-items: center; justify-content: center; gap: 8px; }
.spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* DIVIDER */
.divider {
  display: flex; align-items: center; gap: 16px; color: var(--text-muted); font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }

/* UTILITY */
.text-accent { color: var(--accent); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.hidden { display: none !important; }
.font-mono { font-family: 'Courier New', monospace; }

/* GLOW EFFECT */
.glow { text-shadow: 0 0 20px var(--accent-glow); }
.glow-box { box-shadow: 0 0 30px var(--accent-glow); }

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.fade-in { animation: fadeIn 0.4s ease forwards; }
.pulse { animation: pulse 2s infinite; }

/* RESPONSIVE */
@media (max-width: 768px) {
  body.grid-bg .hamburger-btn { display: flex; }
  .nav-links { display: none; }
  .nav { padding: 16px 20px; }
  .hero {
    grid-template-columns: 1fr;
    padding: 140px 20px 80px;
    gap: 40px;
  }
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  .btn-lg {
    width: 100%;
    text-align: center;
  }
}
