/* --- 1. SETTING DASAR & VARIABEL --- */
:root {
    --indigo-600: #4f46e5;
    --indigo-700: #4338ca;
    --indigo-50: #eef2ff;
    --indigo-100: #e0e7ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-600: #475569;
    --slate-900: #0f172a;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--white);
    color: var(--slate-900);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.max-w-7xl {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* --- 2. NAVIGASI (FIXED & RESPONSIVE) --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    z-index: 9999;
    border-bottom: 1px solid var(--slate-100);
    height: 65px;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--slate-900);
    flex-shrink: 0;
}

.logo span {
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: -1px;
}

.logo-box {
    background: var(--indigo-600);
    padding: 5px;
    border-radius: 8px;
    display: flex;
}

.nav-links {
    display: none; /* Mobile hidden */
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.auth-btns {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* --- 3. TOMBOL & BADGE --- */
.btn {
    padding: 0.6rem 0.9rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary { background: var(--indigo-600); color: white; }
.btn-outline { border: 1.5px solid var(--slate-200); color: var(--slate-900); }

.badge-promo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--indigo-100);
    color: var(--indigo-600);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.7rem;
    margin-bottom: 1.5rem;
}

/* --- 4. HERO SECTION --- */
.hero {
    padding: 110px 0 50px;
    background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 0.95rem;
    color: var(--slate-600);
    margin-bottom: 2rem;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 1rem;
}

/* --- 5. KATEGORI & PRODUK --- */
.grid-category {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 2rem;
}

.card-cat {
    padding: 2rem 1rem;
    border-radius: 1.5rem;
    text-align: center;
    background: var(--indigo-50);
    transition: var(--transition);
    border: 1.5px solid transparent;
}

.card-cat:hover {
    transform: translateY(-5px);
    border-color: var(--indigo-100);
    background: var(--white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.card-cat span { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.card-cat p { font-weight: 800; font-size: 0.9rem; }

/* --- 6. WORKFLOW (ALUR) --- */
.workflow {
    background: var(--slate-900);
    color: white;
    padding: 60px 1.5rem;
    border-radius: 2.5rem;
    margin: 40px 0;
}

.grid-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.step-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
}

/* --- 7. BREAKPOINTS (TABLET & DESKTOP) --- */

@media (max-width: 360px) {
    .logo span { display: none; } /* Hanya icon di HP sangat kecil */
    .hero h1 { font-size: 1.75rem; }
}

@media (min-width: 768px) {
    nav { height: 75px; }
    .nav-links { display: flex; }
    .logo span { font-size: 1.25rem; }
    .btn { font-size: 0.85rem; padding: 0.75rem 1.5rem; }
    
    .hero { padding: 160px 0 100px; text-align: left; }
    .hero h1 { font-size: 3.5rem; }
    .hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
    .btn-group { flex-direction: row; padding: 0; }
    
    .grid-category { grid-template-columns: repeat(4, 1fr); gap: 20px; }
    .grid-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-steps { grid-template-columns: repeat(4, 1fr); }
    .workflow { padding: 100px 0; border-radius: 4rem; }
    .max-w-7xl { padding: 0 2rem; }
}