* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-light: #818cf8;
  --bg: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-card2: #16213e;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #2d2d4e;
  --green: #22c55e;
  --yellow: #eab308;
  --red: #ef4444;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 6%;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.brand-icon { font-size: 1.6rem; }

.nav-actions {
  display: flex;
  gap: 0.8rem;
}

/* BUTTONS */
.btn {
  padding: 0.55rem 1.3rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary-light); color: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }

.btn-lg { padding: 0.8rem 1.8rem; font-size: 1rem; border-radius: 10px; }

/* HERO */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 6rem 6% 5rem;
  min-height: calc(100vh - 70px);
}

.hero-content { flex: 1; max-width: 560px; }

.hero-badge {
  display: inline-block;
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.3px;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  letter-spacing: -1px;
}

.highlight {
  background: linear-gradient(135deg, var(--primary-light), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* DASHBOARD MOCK */
.hero-visual { flex: 1; display: flex; justify-content: center; }

.dashboard-mock {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.mock-header {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
}

.mock-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.mock-dot.red { background: var(--red); }
.mock-dot.yellow { background: var(--yellow); }
.mock-dot.green { background: var(--green); }

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.mock-stat {
  background: var(--bg-card2);
  border-radius: 10px;
  padding: 0.9rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-label { font-size: 0.7rem; color: var(--text-muted); }
.stat-value { font-size: 1rem; font-weight: 700; }
.stat-up { font-size: 0.7rem; color: var(--green); }
.stat-warn { font-size: 0.7rem; color: var(--yellow); }

.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 0 4px;
}

.bar {
  flex: 1;
  background: rgba(79, 70, 229, 0.3);
  border-radius: 4px 4px 0 0;
  transition: background 0.2s;
}
.bar.active { background: var(--primary); }

/* FEATURES */
.features {
  padding: 5rem 6%;
  text-align: center;
  border-top: 1px solid var(--border);
}

.features h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
  letter-spacing: -0.5px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.feature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding: 3rem 5%;
    text-align: center;
    min-height: auto;
  }
  .hero-cta { justify-content: center; }
  .hero-visual { width: 100%; }
  .nav-actions .btn { font-size: 0.8rem; padding: 0.5rem 0.9rem; }
}
