/* ==========================================================================
   CSS PROJECT: PROGRAM KEGIATANKU (MOBILE APP & WEB DASHBOARD)
   Vibe: Modern, SaaS, FinTech, Indigo & Purple
   ========================================================================== */

   :root {
    /* TEMA LIGHT - Nuansa Indigo & Purple */
    --bg: #f4f7fb;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --accent: #4f46e5; /* Indigo 600 */
    --accent2: #9333ea; /* Purple 600 */
    --border: rgba(99, 102, 241, 0.15);
    --shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
    --glow: 0 0 50px rgba(79, 70, 229, 0.15);
  }
  
  .dark-mode {
    /* TEMA DARK - Nuansa Indigo & Purple */
    --bg: #0b0f19;
    --card: #141b2d;
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #818cf8; /* Indigo 400 */
    --accent2: #c084fc; /* Purple 400 */
    --border: rgba(129, 140, 248, 0.15);
    --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
    --glow: 0 0 60px rgba(129, 140, 248, 0.2);
  }
  
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; -webkit-font-smoothing: antialiased; line-height: 1.6; transition: background 0.3s, color 0.3s; }
  
  /* TOPBAR */
  .topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 14px 32px; background: rgba(255,255,255,0.8); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 12px rgba(0,0,0,0.06); }
  .dark-mode .topbar { background: rgba(11, 15, 25, 0.85); }
  .topbar-brand { display: flex; align-items: center; gap: 12px; }
  .topbar-logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; color: white; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35); }
  .topbar-title { font-weight: 700; font-size: 16px; }
  .topbar-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
  .topbar-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; border: 1px solid var(--border); background: var(--card); transition: all 0.2s; }
  .nav-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(79, 70, 229, 0.05); }
  .nav-link.primary { background: var(--accent); color: white; border-color: var(--accent); }
  .nav-link.primary:hover { opacity: 0.88; }
  .theme-btn { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); cursor: pointer; font-size: 16px; line-height: 1; transition: 0.2s; }
  .theme-btn:hover { border-color: var(--accent); }
  
  /* HERO */
  .hero { position: relative; overflow: hidden; padding: 72px 32px 56px; text-align: center; background: linear-gradient(160deg, rgba(79, 70, 229, 0.06) 0%, rgba(147, 51, 234, 0.04) 60%, transparent 100%); transition: background 0.3s; }
  .dark-mode .hero { background: linear-gradient(160deg, rgba(129, 140, 248, 0.06) 0%, rgba(192, 132, 252, 0.04) 60%, transparent 100%); }
  .hero-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; transition: background 0.3s;}
  .blob1 { width: 500px; height: 500px; top: -150px; left: -100px; background: rgba(79, 70, 229, 0.07); }
  .blob2 { width: 400px; height: 400px; bottom: -100px; right: -80px; background: rgba(147, 51, 234, 0.07); }
  .dark-mode .blob1 { background: rgba(129, 140, 248, 0.07); }
  .dark-mode .blob2 { background: rgba(192, 132, 252, 0.07); }
  .hero-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 16px; border-radius: 999px; background: rgba(79, 70, 229, 0.1); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; border: 1px solid rgba(79, 70, 229, 0.2); margin-bottom: 20px; }
  .hero-badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.5s ease-in-out infinite; }
  @keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
  .hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 16px; }
  .hero h1 span { background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .hero-desc { max-width: 620px; margin: 0 auto 28px; color: var(--muted); font-size: 16px; line-height: 1.7; }
  .hero-pills { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .pill-tag { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card); border: 1px solid var(--border); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
  
  /* LAYOUT & CARDS */
  .page-body { max-width: 1080px; margin: 0 auto; padding: 0 24px 60px; }
  .two-col { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
  @media(max-width:900px){ .two-col { grid-template-columns: 1fr; } }
  
  .card { background: var(--card); border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s, background 0.3s; }
  .card:hover { transform: translateY(-4px); box-shadow: var(--glow); }
  .card-body { padding: 28px; }
  .card-head { padding: 20px 28px 0; display: flex; align-items: center; gap: 10px; }
  .card-head-icon { font-size: 22px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: rgba(79, 70, 229, 0.1); border-radius: 8px; color: var(--accent); }
  .card-head h3 { font-size: 16px; font-weight: 700; }
  
  /* STATS */
  .stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
  .stat-chip { padding: 16px; border-radius: 14px; text-align: center; background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(147, 51, 234, 0.05)); border: 1px solid rgba(79, 70, 229, 0.12); }
  .stat-val { font-size: 24px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
  .stat-label { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
  
  /* FEATURES */
  .feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
  .feature-list li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: 12px; background: rgba(79, 70, 229, 0.04); border: 1px solid rgba(79, 70, 229, 0.1); font-size: 14px; color: var(--text); transition: 0.2s; }
  .feature-list li:hover { background: rgba(79, 70, 229, 0.08); }
  .feat-dot { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--accent),var(--accent2)); display:flex;align-items:center;justify-content:center; font-size:12px; color:white; flex-shrink:0; margin-top:1px; }
  
  /* WORKFLOW */
  .workflow { display: flex; flex-direction: column; gap: 0; }
  .workflow-step { display: flex; gap: 16px; position: relative; padding-bottom: 20px; }
  .workflow-step:last-child { padding-bottom: 0; }
  .wf-left { display: flex; flex-direction: column; align-items: center; }
  .wf-num { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: white; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3); }
  .wf-line { width: 2px; flex: 1; background: linear-gradient(to bottom, var(--accent), transparent); margin-top: 6px; min-height: 20px; opacity: 0.3; }
  .workflow-step:last-child .wf-line { display: none; }
  .wf-content { padding-top: 5px; flex: 1; }
  .wf-content p { font-size: 14px; color: var(--muted); }
  
  /* IMAGES */
  .img-box { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: rgba(0,0,0,0.03); }
  .img-box img { width: 100%; display: block; height: auto; }
  .img-caption { padding: 10px 14px; font-size: 12px; color: var(--muted); background: var(--card); border-top: 1px solid var(--border); text-align: center; }
  
  /* NOTES & INFO */
  .notes-list { display: flex; flex-direction: column; gap: 10px; }
  .note-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: rgba(147, 51, 234, 0.05); border: 1px solid rgba(147, 51, 234, 0.12); font-size: 14px; }
  .note-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
  
  .info-block { margin-bottom: 20px; }
  .info-block-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--accent); margin-bottom: 10px; }
  .info-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 13px; border: 1px solid var(--border); background: rgba(0,0,0,0.02); margin-bottom: 6px; transition: 0.2s; }
  .info-item:hover { border-color: var(--accent); background: rgba(79, 70, 229, 0.04); }
  .info-item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
  
  .future-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 8px; background: linear-gradient(90deg, rgba(79, 70, 229, 0.06), transparent); border-left: 3px solid var(--accent); }
  
  .resource-link { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border-radius: 14px; text-decoration: none; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: white; font-weight: 700; font-size: 14px; transition: 0.25s; box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3); }
  .resource-link:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4); }
  
  .page-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); margin-top: 40px; }

  body, .topbar, .project-card, .nav-link, .tag-chip, .sys-arch-box, .arch-icon, .hl-item {
      transition: background-color 0.5s ease, background 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease, transform 0.3s ease !important;
  }