/* ============================================
   TanpaTinta Landing Page - style.css
   Tema: Cerah, Colorful, Premium
   ============================================ */

/* Reset & Variables */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --primary-light: #A5B4FC;
    --secondary: #0EA5E9;
    --accent: #F59E0B;
    --pink: #EC4899;
    --teal: #14B8A6;
    --orange: #F97316;
    --green: #10B981;
    --purple: #8B5CF6;
    --dark: #1E1B4B;
    --text: #1E293B;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --success: #10B981;
    --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #F0FDF4 50%, #FFF7ED 100%);
    --gradient-primary: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --gradient-teal: linear-gradient(135deg, #0EA5E9 0%, #14B8A6 100%);
    --gradient-warm: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-color: 0 10px 40px rgba(99, 102, 241, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--white);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.navbar.scrolled {
    box-shadow: var(--shadow-md);
}
.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links .btn-outline:hover { color: #FFFFFF !important; }

/* ============================================
   Buttons
   ============================================ */
.nav-btn {
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    display: inline-block;
}
.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}
.btn-outline:hover {
    background: var(--primary);
    color: #FFFFFF;
}
.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.nav-links .btn-primary {
    color: #FFFFFF !important;
}
.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    border-radius: 10px;
}
.btn-white {
    background: white;
    color: var(--primary);
    font-weight: 700;
    border: 2px solid var(--gray-200);
}
.btn-white:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section - CERAH & COLORFUL
   ============================================ */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding: 4rem 2rem 1.5rem;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99,102,241,0.08) 0%, transparent 70%);
    border-radius: 50%;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(236,72,153,0.06) 0%, transparent 70%);
    border-radius: 50%;
}
.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 0.6rem;
}
.hero-content h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}
.hero-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}
.hero-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Inline stats in hero */
.hero-stats {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.hero-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
    background: white;
    border: 1px solid var(--gray-200);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.hero-stat strong {
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

/* ============================================
   Login Card - CERAH
   ============================================ */
.login-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}
.login-card h3 {
    color: var(--dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}
.login-card .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
}
.form-group {
    margin-bottom: 0.9rem;
}
.form-group label {
    display: block;
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}
.form-input {
    width: 100%;
    padding: 0.7rem 0.875rem;
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.9rem;
    transition: all 0.3s;
    outline: none;
}
.form-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.form-input::placeholder { color: var(--text-muted); }
.login-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 0.25rem;
}
.login-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.3);
}
.login-divider {
    display: flex;
    align-items: center;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}
.login-divider span { padding: 0 0.75rem; }
.register-btn {
    display: block;
    width: 100%;
    padding: 0.7rem;
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(14,165,233,0.08));
    border: 2px solid var(--green);
    color: var(--green);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}
.register-btn:hover {
    background: var(--green);
    color: white;
    transform: translateY(-1px);
}

/* ============================================
   Stats Section - COLORFUL CARDS
   ============================================ */
.stats-section {
    padding: 1.5rem 2rem;
    background: white;
}
.stats-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}
.stat-card {
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}
.stat-card:nth-child(1)::before { background: var(--gradient-primary); }
.stat-card:nth-child(2)::before { background: var(--gradient-teal); }
.stat-card:nth-child(3)::before { background: var(--gradient-warm); }
.stat-card:nth-child(4)::before { background: linear-gradient(135deg, #EC4899, #F43F5E); }
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}
.stat-icon {
    width: 32px;
    height: 32px;
    margin: 0 auto 0.3rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.stat-icon.purple { background: #EEF2FF; }
.stat-icon.blue { background: #F0F9FF; }
.stat-icon.green { background: #F0FDF4; }
.stat-icon.amber { background: #FFF7ED; }
.stat-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

/* ============================================
   Courses Section
   ============================================ */
.courses-section {
    padding: 2.5rem 2rem;
    background: var(--gray-100);
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.section-tag {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: white;
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    border: 1px solid var(--gray-200);
}
.section-header h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.3rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 0.88rem;
}
.courses-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.course-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}
.course-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}
.course-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.course-card:nth-child(1) .course-icon { background: #EEF2FF; }
.course-card:nth-child(2) .course-icon { background: #FFF7ED; }
.course-card:nth-child(3) .course-icon { background: #F0FDF4; }
.course-card:nth-child(4) .course-icon { background: #FDF2F8; }
.course-card:nth-child(5) .course-icon { background: #F0F9FF; }
.course-card:nth-child(6) .course-icon { background: #FEFCE8; }
.course-card:nth-child(7) .course-icon { background: #FFF1F2; }
.course-card:nth-child(8) .course-icon { background: #F5F3FF; }
.course-info h4 {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.1rem;
}
.course-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.course-badge {
    margin-left: auto;
    padding: 0.3rem 0.65rem;
    background: var(--gray-100);
    color: var(--primary);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

/* ============================================
   CTA Section - COLORFUL GRADIENT
   ============================================ */
.cta-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 40%, #EC4899 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.cta-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta-container h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}
.cta-container p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.btn-cta-primary {
    padding: 0.85rem 2rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: inline-block;
}
.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.btn-cta-outline {
    padding: 0.85rem 2rem;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 1.5rem 2rem;
    background: var(--dark);
    text-align: center;
}
.footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}
.footer a { color: var(--primary-light); text-decoration: none; }
.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--primary-light); }

/* ============================================
   Mobile Menu
   ============================================ */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 4px 0;
    transition: all 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* ============================================
   Login Message
   ============================================ */
.login-message {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: center;
}
.login-message.error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #DC2626;
}
.login-message.success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #16A34A;
}
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .stats-container { grid-template-columns: repeat(2, 1fr); }
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .navbar { padding: 0.6rem 1rem; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.25rem;
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease;
        border-radius: 0 0 14px 14px;
    }
    .hero { padding: 5rem 1.25rem 2.5rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.9rem; }
    .login-card { padding: 1.5rem; }
    .stats-container { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-card { padding: 1.5rem 1rem; }
    .stat-number { font-size: 1.6rem; }
    .section-header h2 { font-size: 1.6rem; }
    .cta-container h2 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
    .hero-badges { flex-direction: column; align-items: flex-start; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .nav-btn { width: 100%; text-align: center; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons a { width: 100%; text-align: center; }
    .stat-number { font-size: 1.4rem; }
}

/* ============================================
   Floating Contact Button
   ============================================ */
.float-contact-wrap {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 999;
}
.float-label {
    background: white;
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: nudge 2s ease-in-out infinite;
    white-space: nowrap;
}
@keyframes nudge {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-5px); opacity: 0.8; }
}
.float-contact {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}
.float-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.5);
}

/* Decorative shapes */
.particles { display: none; }
