/* --- 1. DESIGN TOKENS (MONOCHROME OPS THEME) --- */
:root {
    /* Base Colors - Darker & Deeper */
    --bg-body: #08090B; 
    --bg-card: #111216;
    --bg-card-hover: #18191D;
    
    /* Borders - Subtle & Sharp */
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: rgba(255, 255, 255, 0.25);
    
    /* Text - High Contrast Monochrome */
    --text-primary: #FFFFFF;
    --text-secondary: #A3A3A3; 
    --text-tertiary: #525252;
    
    /* Accents - PURE WHITE GLOW instead of Green */
    --accent: #FFFFFF; 
    --accent-dim: rgba(255, 255, 255, 0.05);
    --accent-glow: 0 0 25px rgba(255, 255, 255, 0.1);
    
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    --ease-pro: cubic-bezier(0.22, 1, 0.36, 1); /* Snappy professional easing */
}

/* --- 2. RESET & STRUCTURE --- */
* { box-sizing: border-box; outline: none; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Latar belakang lebih dalam dengan subtle light spots */
    background-image: 
        radial-gradient(circle at 15% 25%, rgba(255,255,255,0.02) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(255,255,255,0.02) 0%, transparent 40%),
        linear-gradient(var(--border-subtle) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: center top;
}

/* Vignette yang lebih kuat untuk fokus */
body::after {
    content: '';
    position: fixed; inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(8, 9, 11, 0.8) 100%);
    pointer-events: none;
    z-index: -1;
}

a { text-decoration: none; color: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }

.wrapper { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; position: relative; }

/* --- 3. HEADER (Glass & Metal) --- */
header {
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; top: 0; z-index: 50;
    background: rgba(8, 9, 11, 0.7);
    backdrop-filter: blur(20px) saturate(0%); /* Saturate 0 for true monochrome glass */
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 60px;
}

.brand { 
    font-weight: 700; 
    font-size: 1.25rem; 
    color: var(--text-primary);
    display: flex; 
    align-items: center; 
    gap: 12px; 
    letter-spacing: -0.02em;
}

.brand span { 
    font-family: var(--font-mono);
    color: var(--text-primary); 
    font-size: 0.7rem; 
    background: rgba(255, 255, 255, 0.1); 
    padding: 4px 10px; 
    border-radius: 4px; 
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.status-indicator {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.7rem; color: var(--text-secondary);
    font-family: var(--font-mono);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px; border-radius: 30px;
    background: rgba(255,255,255,0.02);
    letter-spacing: 0.05em;
}

/* Status Dot jadi Putih */
.status-dot {
    width: 6px; height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 0.4; scale: 1; } 50% { opacity: 1; scale: 1.2; } }

/* --- 4. HERO SECTION (Metallic Text) --- */
.hero { margin-bottom: 56px; }
.hero h1 { 
    font-size: 3.5rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    letter-spacing: -0.04em;
    line-height: 1.1;
    /* Efek Teks Metalik Putih */
    background: linear-gradient(to bottom right, #FFFFFF 20%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p { color: var(--text-secondary); max-width: 640px; font-size: 1.125rem; line-height: 1.6; }

/* --- 5. CONTROLS (Glass Bar) --- */
.controls {
    display: flex;
    gap: 16px;
    margin-bottom: 72px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.search-container { flex: 1; position: relative; }

.search-input {
    width: 100%; height: 100%;
    background: transparent;
    border: none;
    padding: 16px 24px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-main);
}
.search-input::placeholder { color: var(--text-tertiary); transition: 0.3s; }
.search-input:focus::placeholder { opacity: 0.5; }

.filter-group {
    display: flex;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s var(--ease-pro);
    position: relative;
    overflow: hidden;
}
.filter-btn:hover { color: var(--text-primary); }
/* Active state jadi putih */
.filter-btn.active { 
    background: var(--text-primary); 
    color: var(--bg-body); 
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255,255,255,0.2);
}

/* --- 6. MODERN GRID & ALIVE CARDS --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
    margin-bottom: 120px;
}

.tool-card {
    /* Subtle gradient background for depth */
    background: linear-gradient(160deg, var(--bg-card), rgba(10, 10, 10, 0.5));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-pro);
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(0,0,0,0); /* Reset */
}

/* Efek "Hidup" saat Hover - White Glow */
.tool-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.4);
    background: var(--bg-card-hover);
    /* Kombinasi shadow luar dalam untuk efek glowing */
    box-shadow: 
        0 20px 40px -15px rgba(0,0,0,0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.03),
        0 0 30px rgba(255, 255, 255, 0.05); 
}

.tool-card:hover .tool-name { 
    text-shadow: 0 0 10px rgba(255,255,255,0.3); /* Teks sedikit bersinar */
}
.tool-card:hover .icon-action { opacity: 1; transform: translateX(0) scale(1.1); color: var(--text-primary); }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tool-name { 
    font-size: 1.2rem; 
    font-weight: 600; 
    color: var(--text-primary); 
    transition: all 0.3s;
    letter-spacing: -0.01em;
}

.tool-cat { 
    font-size: 0.65rem; 
    color: var(--text-primary);
    background: rgba(255,255,255,0.08);
    font-family: var(--font-mono);
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 6px 10px; 
    border-radius: 6px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    font-weight: 600;
}

.tool-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    flex-grow: 1;
}

.tool-footer {
    margin-top: auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
}

.icon-action {
    color: var(--text-secondary);
    opacity: 0.6;
    transform: translateX(-4px);
    transition: all 0.4s var(--ease-pro);
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
}
.tool-card:hover .icon-action {
        filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

/* --- 7. FOOTER --- */
footer { 
    border-top: 1px solid var(--border-subtle); 
    padding: 60px 0; 
    margin-top: auto; 
    text-align: center;
    background: rgba(0,0,0,0.2);
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.85rem; 
    color: var(--text-tertiary); 
    font-family: var(--font-mono);
}
.wa-link { 
    color: var(--text-secondary); 
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s;
}
.wa-link:hover { color: var(--text-primary); }
.wa-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px;
    background: var(--text-primary); transition: 0.4s var(--ease-pro);
}
.wa-link:hover::after { width: 100%; }

/* --- 8. SECURITY MODAL (Monochrome) --- */
#legal-modal {
    position: fixed; inset: 0;
    background: rgba(8, 9, 11, 0.95);
    backdrop-filter: blur(16px) saturate(0%);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    transition: opacity 0.4s ease;
}
.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    width: 100%; max-width: 500px;
    padding: 48px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    text-align: left;
    position: relative;
    overflow: hidden;
}
/* Garis accent putih di atas modal */
.legal-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, #FFFFFF, transparent);
}

.legal-title { 
    font-size: 1.3rem; 
    font-weight: 700; 
    margin-bottom: 24px; 
    color: var(--text-primary); 
    display: flex; align-items: center; gap: 16px;
}
/* Icon kunci ganti jadi batang putih */
.legal-title::before {
    content: ''; width: 3px; height: 24px; background: #FFFFFF;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}
.legal-text { 
    font-size: 1rem; 
    color: var(--text-secondary); 
    line-height: 1.7; 
    margin-bottom: 40px; 
    background: rgba(255,255,255,0.02);
    padding: 20px;
    border-radius: 12px;
}
.btn-enter {
    width: 100%; 
    background: var(--text-primary); 
    color: var(--bg-body);
    padding: 18px; 
    border-radius: 14px; 
    font-weight: 700; 
    border: none; 
    cursor: pointer;
    transition: all 0.3s var(--ease-pro);
    font-family: var(--font-main);
    letter-spacing: -0.01em;
    font-size: 1rem;
}
.btn-enter:hover { 
    background: #FFFFFF;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    transform: scale(0.99); 
}

/* Animation */
@keyframes fadeInUp { 
    from { opacity: 0; transform: translateY(30px) scale(0.95); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

@media (max-width: 768px) {
    .controls { flex-direction: column; gap: 12px; padding: 8px; background: transparent; border: none; backdrop-filter: none; }
    .search-input { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; }
    .filter-group { width: 100%; background: var(--bg-card); }
    .filter-btn { flex: 1; text-align: center; padding: 14px; }
    .footer-content { flex-direction: column; gap: 24px; }
    .hero h1 { font-size: 2.5rem; }
}
