/* * CUSTOM CSS CONFIGURATION & THEME VARIABLES */
:root {
    /* Warna Brand (Tetap) */
    --primary-color: #2563eb;

    /* Variabel Default (Light Mode) */
    --body-bg: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --section-bg-alt: #f8fafc;
    /* Untuk section selang-seling */
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(37, 99, 235, 0.15);
    --input-bg: #ffffff;
    --input-border: #e2e8f0;
    --input-text: #0f172a;
    --input-placeholder: #cbd5e1;

    /* Footer Variables */
    --footer-bg: #0f172a;
    --footer-text: #94a3b8;
    --footer-title: #ffffff;
}

/* Konfigurasi Dark Mode */
[data-theme="dark"] {
    --body-bg: #0f172a;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --section-bg-alt: #1e293b;
    /* Warna latar alternatif lebih gelap */
    --card-bg: #1e293b;
    --border-color: #334155;
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(37, 99, 235, 0.3);
    --input-bg: #020617;
    /* Input lebih gelap dari card */
    --input-border: #334155;
    --input-text: #f1f5f9;
    --input-placeholder: #64748b;

    --footer-bg: #020617;
}

/* Smooth Transition untuk perubahan tema */
body,
.navbar,
.card,
.feature-card-grid,
.pricing-card,
.testimonial-card,
.form-control,
.demo-form-card {
    transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.4s ease;
}

/* --- SCROLLBAR HIDING (Clean Look) --- */
/* Menyembunyikan scrollbar untuk Chrome, Safari, dan Opera */
::-webkit-scrollbar {
    display: none;
}

/* Menyembunyikan scrollbar untuk IE, Edge, dan Firefox */
html,
body {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

html,
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* CRITICAL: Mencegah scroll horizontal */
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 80px;
}

body {
    font-family: "Inter", sans-serif;
    background-color: var(--body-bg);
    color: var(--text-main);
}

/* Prevent horizontal scroll on sections */
section,
footer,
header {
    max-width: 100vw;
    overflow-x: hidden;
}

/* --- NAVBAR STYLING --- */
.navbar {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px -5px var(--shadow-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-main);
}

.brand-blue {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--text-main) !important;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-action-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    margin-right: 1.5rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 1rem;
}

.theme-toggle-btn:hover {
    color: var(--primary-color);
    background-color: var(--bg-light);
    transform: rotate(15deg);
}

.btn-navbar-cta {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-navbar-cta:hover {
    background-color: #1d4ed8;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Custom Toggler Icon for Dark Mode Compatibility */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-icon-fa {
    font-size: 1.5rem;
    color: var(--text-main);
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 120px 0 80px 0;
    text-align: center;
}

.badge-soft-blue {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-pills-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-pill:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.check-icon {
    color: #10b981;
}

/* Buttons Standard */
.btn-custom-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-custom-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-custom-outline {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-custom-outline:hover {
    background-color: var(--section-bg-alt);
    border-color: var(--text-muted);
    transform: translateY(-4px);
    color: var(--text-main);
}

/* --- FEATURES SECTION --- */
.features-section {
    padding: 80px 0;
    background-color: var(--body-bg);
    overflow: hidden;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
}

.section-title {
    font-weight: 800;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon-circle {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1rem;
}

.feature-text h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.feature-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

/* CSS Art Dashboard */
.dashboard-wrapper {
    position: relative;
    z-index: 1;
}

.dashboard-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle,
        rgba(37, 99, 235, 0.15) 0%,
        rgba(255, 255, 255, 0) 70%
    );
    z-index: -1;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 20px 50px var(--shadow-color);
    border: 1px solid var(--border-color);
    padding: 20px;
    display: flex;
    gap: 20px;
}

.db-sidebar {
    width: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 10px;
}

.db-dot {
    width: 30px;
    height: 4px;
    background: var(--border-color);
    border-radius: 4px;
}

.db-dot.active {
    background: var(--primary-color);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.db-content {
    flex: 1;
}

.db-header-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red {
    background: #ff5f56;
}

.dot-yellow {
    background: #ffbd2e;
}

.dot-green {
    background: #27c93f;
}

.db-stats-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.db-stat-card {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    background: var(--card-bg);
    transition: transform 0.3s ease;
}

.db-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.db-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-bottom: 8px;
}

.db-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.db-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.db-chart-area {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    position: relative;
}

.chart-tooltip {
    position: absolute;
    top: 20px;
    left: 50%;
    background: #1e293b;
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
}

.chart-tooltip::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: #1e293b transparent transparent transparent;
}

.chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

.chart-line {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: rgba(37, 99, 235, 0.1);
}

.chart-point {
    fill: var(--card-bg);
    stroke: var(--primary-color);
    stroke-width: 2;
}

/* --- GRID FEATURES --- */
.grid-features-section {
    padding: 100px 0;
    background-color: var(--body-bg);
}

.feature-card-grid {
    background: var(--section-bg-alt);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid transparent;
}

.feature-card-grid:hover {
    background: var(--card-bg);
    box-shadow: 0 15px 30px -10px var(--shadow-hover);
    border-color: var(--border-color);
    transform: translateY(-8px);
}

.grid-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.grid-feature-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.grid-feature-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- TESTIMONIALS --- */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--body-bg);
}

.testimonial-card {
    background: var(--section-bg-alt);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.stars {
    color: #fbbf24;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.quote-icon-large {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--border-color);
    opacity: 0.5;
}

.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.user-info h6 {
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-main);
    font-size: 1rem;
}

.user-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* --- PRICING --- */

/* --- FAQ --- */
.faq-section {
    padding: 100px 0;
    background-color: var(--section-bg-alt);
}

.accordion-custom .accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    border-radius: 12px !important;
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
}

.accordion-custom .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-custom .accordion-button {
    background-color: transparent;
    color: var(--text-main);
    font-weight: 600;
    padding: 1.25rem;
    box-shadow: none;
    font-size: 1rem;
}

.accordion-custom .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0, 0, 0, 0.1);
}

.accordion-custom .accordion-body {
    padding: 0 1.25rem 1.25rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232563eb'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* --- CONTACT --- */
.contact-section {
    padding: 100px 0;
    background-color: var(--body-bg);
}

.contact-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon-box {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item-title {
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    display: block;
}

.contact-item-desc {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.demo-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px -5px var(--shadow-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Updated Form Control for Visibility in Dark Mode */
.form-control {
    background-color: var(--input-bg);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    font-size: 0.95rem;
    color: var(--input-text);
    transition: all 0.3s ease;
}

.form-control::placeholder {
    color: var(--input-placeholder);
    opacity: 1;
    /* Override browser defaults */
}

.form-control:focus {
    background-color: var(--input-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    color: var(--input-text);
}

.btn-submit-demo {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 10px;
    border: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.btn-submit-demo:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

/* --- FOOTER (DARK THEME) --- */
.footer {
    padding: 80px 0 30px 0;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9rem;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1.5rem;
    display: inline-block;
    text-decoration: none;
}

.footer-description {
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 320px;
    color: #cbd5e1;
}

.footer-heading {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--footer-title);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-row i {
    color: var(--primary-color);
    margin-top: 4px;
    font-size: 1.1rem;
}

.footer-contact-row span {
    color: var(--footer-text);
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: #94a3b8;
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .navbar-collapse {
        background: var(--card-bg);
        padding: 1.5rem;
        border-radius: 10px;
        margin-top: 10px;
        box-shadow: 0 4px 6px -1px var(--shadow-color);
        text-align: center;
    }

    .navbar-nav {
        align-items: center;
        margin-bottom: 1rem;
    }

    .nav-actions {
        margin-top: 0;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .nav-action-link {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .features-section .row {
        flex-direction: column-reverse;
    }

    .dashboard-wrapper {
        margin-top: 3rem;
        transform: scale(0.9);
    }

    .footer {
        padding: 60px 0 30px 0;
    }

    .footer .row > div {
        margin-bottom: 3rem;
    }

    .footer-heading {
        margin-bottom: 1.2rem;
    }

    .footer-bottom {
        margin-top: 1rem;
    }

    .contact-info-list {
        margin-top: 0;
        margin-bottom: 3rem;
    }

    .contact-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .feature-pills-container {
        flex-direction: column;
        gap: 0.8rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .pricing-card {
        margin-bottom: 1.5rem;
    }

    /* Add spacing on mobile */
}
