html,
body {
    overflow-x: hidden;
    width: 100%;
}
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    color: #081427;
    background: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, .cta-title, .step-title, .nav-logo {
    font-family: 'Outfit', sans-serif;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: transparent;
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s, margin 0.3s, border-radius 0.3s;
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 12px 24px;
    border-radius: 16px;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: #081427;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-menu a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-menu a:hover svg {
    opacity: 1;
}

.nav-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 4px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #4281c8;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-menu a:hover {
    color: #4281c8;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a.active {
    color: #4281c8;
}

.nav-menu a.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-primary {
    background: #4281c8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #1b3652;
}

.btn-secondary {
    background: #ffffff;
    color: #6B7280;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    border: 1px solid #c8dce3;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    border-color: #4281c8;
    color: #4281c8;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #081427;
}

/* CTA Section */
.cta {
    padding: 60px 48px;
    background: url('../images/cta.avif') center center / cover no-repeat;
    text-align: center;
    position: relative;
    border-radius: 24px;
    margin: 0 48px 32px;
    isolation: isolate;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
    border-radius: 24px;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.cta-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    background: #ffffff;
    color: #4281c8;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
    margin-bottom: 12px;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-2px);
}

.cta-note {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.cta-note span {
    margin: 0 8px;
}

/* Footer */
.footer {
    padding: 60px 48px;
    background: #081427;
    color: #6B7280;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4281c8, #c8dce3, #4281c8);
    background-size: 200% 100%;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 48px;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo h3 {
    color: #fff;
    font-size: 20px;
    margin: 0;
    font-weight: 700;
}

.footer-brand .desc {
    font-size: 14px;
    color: #c8dce3;
    line-height: 1.6;
    margin: 0 0 8px 0;
    max-width: 280px;
}

.footer-copyright {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid #c8dce3;
    font-size: 13px;
    color: #6B7280;
}

.footer-copyright a {
    color: #c8dce3;
    text-decoration: none;
}

.footer-copyright a:hover {
    color: #fff;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-contact-wrapper {
    flex: 1;
    min-width: 250px;
}

.footer h4 {
    color: #fff;
    font-size: 16px;
    margin: 0 0 20px 0;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: #c8dce3;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #e2e8f0;
    margin-bottom: 16px;
}

.footer-contact svg {
    color: #4281c8;
    flex-shrink: 0;
}

/* Section common */
.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #081427;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: #6B7280;
    margin-bottom: 48px;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Zoom Modal */
.zoom-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.zoom-modal.active {
    display: flex;
}
.zoom-modal img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ffffff;
    color: #081427;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    border: 1px solid #c8dce3;
}

/* Template Preview Modal */
.template-preview-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.template-preview-modal.active {
    display: flex;
}
.template-preview-modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0,0,0,0.25);
    animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalSlideUp {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.template-preview-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.9);
    cursor: pointer;
    font-size: 20px;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.template-preview-modal-close:hover {
    background: #fff;
    color: #081427;
    transform: rotate(90deg);
}
.template-preview-modal-body {
    display: flex;
    min-height: 480px;
}
.template-preview-modal-image {
    flex: 0 0 45%;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}
.template-preview-modal-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66,129,200,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.template-preview-modal-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 520px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    position: relative;
    z-index: 1;
}
.template-preview-modal-info {
    flex: 1;
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-y: auto;
}
.template-preview-modal-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #081427;
    margin-bottom: 12px;
    line-height: 1.2;
}
.template-preview-modal-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4281c8, #c8dce3);
    border-radius: 2px;
    margin-bottom: 16px;
}
.template-preview-modal-info p {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.7;
    margin-bottom: 24px;
    flex: 1;
}
.preview-confirm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #4281c8 0%, #3b71c2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 16px rgba(66, 129, 200, 0.3);
    width: 100%;
}
.preview-confirm-btn:hover {
    background: linear-gradient(135deg, #1b3652 0%, #243b5a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(66, 129, 200, 0.4);
}
.preview-confirm-btn:active {
    transform: translateY(0);
}
.preview-confirm-btn svg {
    transition: transform 0.2s;
}
.preview-confirm-btn:hover svg {
    transform: translateX(3px);
}

/* Template Card shared styles */
.template-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card-outline {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
    fill: none;
}

.card-outline rect {
    stroke: #4281c8;
    stroke-width: 4;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

.template-card:hover .card-outline rect {
    stroke-dashoffset: 0;
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-btn {
    width: auto;
    height: 32px;
    background: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: #4281c8;
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 14px;
    transition: transform 0.3s ease, background 0.3s ease;
    transform: translateY(20px);
}

.template-card:hover .template-btn {
    transform: translateY(0);
}

.template-btn:hover {
    background: #c8dce3;
}

.template-zoom-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: scale(0.8);
    opacity: 0;
    z-index: 6;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.template-card:hover .template-zoom-btn {
    transform: scale(1);
    opacity: 1;
}

.template-zoom-btn:hover {
    background: #ffffff;
    color: #4281c8;
}



/* Responsive shared */
@media (max-width: 768px) {
    .navbar.scrolled {
        margin: 8px 12px;
        border-radius: 14px;
    }
    .footer {
        padding: 24px 16px;
    }
    .footer-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px 12px;
        align-items: start;
    }
    .footer-container .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: -10px;
    }
    .footer-logo {
        margin-bottom: 8px;
    }
    .footer-brand .desc {
        max-width: 100%;
        font-size: 13px;
        margin-bottom: 0;
    }
    .footer-container .footer-links {
        min-width: 0;
    }
    .footer-container .footer-contact-wrapper {
        min-width: 0;
    }
    .footer h4 {
        margin-bottom: 12px;
        font-size: 15px;
    }
    .footer-links ul {
        gap: 8px;
    }
    .footer-links a {
        font-size: 13px;
    }
    .footer-contact {
        margin-bottom: 8px;
        font-size: 13px;
    }
    .footer-copyright {
        margin-top: 24px;
        padding-top: 16px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
        grid-column: 1 / -1;
    }
    .footer-github-links {
        justify-content: center;
    }
    .cta {
        padding: 24px 16px;
        margin: 0 8px 48px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .cta::before {
        border-radius: 12px;
    }
    .cta-title {
        font-size: 15px;
    }
    .cta-subtitle {
        font-size: 11px;
        margin-bottom: 12px;
        padding: 0 8px;
    }
    .cta-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .cta-note {
        font-size: 10px;
    }

    .template-preview-modal {
        padding: 16px;
        align-items: center;
        justify-content: center;
    }
    .template-preview-modal-content {
        max-height: min(92vh, 720px);
        border-radius: 20px;
        overflow-y: auto;
        animation: modalSlideUpMobile 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    @keyframes modalSlideUpMobile {
        0% { opacity: 0; transform: translateY(20px) scale(0.98); }
        100% { opacity: 1; transform: translateY(0) scale(1); }
    }
    .template-preview-modal-body {
        flex-direction: column;
        min-height: auto;
    }
    .template-preview-modal-image {
        flex: none;
        padding: 24px;
        min-height: 240px;
        background: linear-gradient(180deg, #f0f4f8 0%, #e2e8f0 100%);
    }
    .template-preview-modal-image img {
        max-height: 280px;
    }
    .template-preview-modal-info {
        padding: 24px 20px 32px;
        max-height: 45vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .template-preview-modal-info h3 {
        font-size: 22px;
    }
}

@media (max-width: 1024px) {
    .navbar {
        padding: 0 24px;
        justify-content: space-between;
    }
    .navbar:has(.nav-menu.active) {
        background: rgba(255,255,255,0.98) !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    }
    .nav-logo {
        justify-content: flex-start;
    }
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        gap: 16px;
        border-radius: 0 0 20px 20px;
    }
    .nav-menu.active {
        display: flex;
    }
    .section-title {
        font-size: 28px;
    }
}

/* Advertisement Layout Containers */
.ads-container {
    max-width: 900px; /* Diubah dari 1200px agar tidak terlalu besar di desktop */
    width: 100%;
    margin: 32px auto;
    padding: 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ads-container-inner {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #fafafa;
    border: 1px dashed #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    box-sizing: border-box;
}

.ads-label {
    font-size: 10px;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    user-select: none;
}

@media (max-width: 768px) {
    .ads-container {
        padding: 0 16px;
        margin: 20px auto;
    }
}

/* Margin helpers to prevent ads from being covered by template waves */
.ads-margin-top-wave {
    margin-top: 100px;
}

.ads-margin-bottom-wave {
    margin-bottom: 100px;
}

@media (max-width: 768px) {
    .ads-margin-top-wave {
        margin-top: 60px;
    }
    .ads-margin-bottom-wave {
        margin-bottom: 60px;
    }
}

