/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --bg-primary: #0e1015;
  --bg-secondary: #13161c;
  --bg-tertiary: #1a1d26;
  --bg-card: #1e2130;
  --bg-hover: #252840;
  --accent: #5865F2;
  --accent-hover: #4752C4;
  --accent-glow: rgba(88, 101, 242, 0.3);
  --green: #57F287;
  --red: #ED4245;
  --yellow: #FEE75C;
  --pink: #EB459E;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B5C3;
  --text-muted: #6B7280;
  --border: rgba(255,255,255,0.06);
  --sidebar-width: 260px;
  --topbar-height: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-hover); border-radius: 3px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: rgba(255,255,255,0.15);
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 1.5rem;
  transition: all 0.2s;
}
.btn-save:hover { background: var(--accent-hover); }

.btn-danger { background: var(--red); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; transition: all 0.2s; }
.btn-danger:hover { opacity: 0.85; }
.btn-warning { background: var(--yellow); color: #111; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; transition: all 0.2s; }
.btn-warning:hover { opacity: 0.85; }
.btn-cancel { background: var(--bg-tertiary); color: var(--text-secondary); padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; transition: all 0.2s; }
.btn-cancel:hover { background: var(--bg-hover); }

.hidden { display: none !important; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(14,16,21,0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.nav-logo i { color: var(--accent); font-size: 1.4rem; }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-login:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* ============================================================
   HOME PAGE — HERO
   ============================================================ */
.home-page { overflow-x: hidden; }

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(var(--topbar-height) + 4rem) 6rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 4rem;
}

.hero-bg-blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  pointer-events: none;
}
.blur1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -100px; left: -100px;
}
.blur2 {
  width: 400px; height: 400px;
  background: var(--pink);
  bottom: 0; right: 200px;
}

.hero-content { flex: 1; max-width: 600px; position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(88,101,242,0.15);
  border: 1px solid rgba(88,101,242,0.3);
  color: #a5b4fc;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* MOCKUP */
.hero-image { flex: 0 0 auto; position: relative; }

.mockup-card {
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 0 80px rgba(88,101,242,0.15);
  overflow: hidden;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.mockup-header {
  background: var(--bg-secondary);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg-hover);
}
.mockup-dots span:nth-child(1) { background: #ED4245; }
.mockup-dots span:nth-child(2) { background: #FEE75C; }
.mockup-dots span:nth-child(3) { background: #57F287; }
.mockup-title { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

.mockup-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; }

.mockup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.mockup-row i { width: 16px; color: var(--text-muted); }
.mockup-row.active {
  background: rgba(88,101,242,0.2);
  color: #a5b4fc;
}
.mockup-row.active i { color: var(--accent); }

.mockup-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.mockup-toggle {
  width: 32px; height: 18px;
  background: var(--bg-hover);
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
}
.mockup-toggle::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform 0.2s;
}
.mockup-toggle.on {
  background: var(--accent);
}
.mockup-toggle.on::after {
  transform: translateX(14px);
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
  padding: 6rem 6rem;
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(88,101,242,0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   COMMANDS SECTION
   ============================================================ */
