@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --accent: #f59e0b;
    --bg-dark: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.7);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-surface: linear-gradient(180deg, rgba(30, 41, 59, 0) 0%, rgba(30, 41, 59, 1) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 8rem 0;
}

h1,
h2,
h3 {
    font-weight: 700;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.student-card {
    background: rgba(37, 99, 235, 0.05);
}

.student-card-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary) !important;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    background: var(--primary-dark);
}

.btn-demo {
    background: var(--secondary);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.3);
}

.btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.4);
}

/* Final CTA Section */
.final-cta {
    text-align: center;
}

.cta-container {
    padding: 5rem;
    border-radius: 3rem;
    background: var(--gradient-primary);
}

.cta-container h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-container p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-white {
    background: white;
    color: var(--primary);
    transform: scale(1.1);
}

.btn-white:hover {
    background: #f8fafc;
    transform: scale(1.15) translateY(-2px);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Image Placeholders */
.placeholder-img {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #1e293b, #334155);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.placeholder-img::after {
    content: 'Tangkapan Layar Fitur';
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.student-card-mockup {
    width: 320px;
}

@media (max-width: 480px) {
    .student-card-mockup {
        width: 100%;
        max-width: 320px;
    }
}

/* Pricing Section Styles */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 450px));
    gap: 2.5rem;
    justify-content: center;
}

.pricing-card {
    padding: 3.5rem 2.5rem;
    border-radius: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.pricing-card.popular {
    border: 2px solid var(--primary);
    background: rgba(37, 99, 235, 0.08);
}

.badge-popular {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.price-container {
    margin: 2rem 0;
}

.price-original {
    color: var(--text-muted);
    text-decoration: line-through;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 0.25rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

.price-period {
    color: var(--text-muted);
    font-size: 1rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0 auto;
    display: grid;
    gap: 1.25rem;
}

.pricing-features li {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: var(--text-white);
    font-size: 0.95rem;
}

.pricing-features li i {
    color: var(--secondary);
    font-size: 1.2rem;
}

/* Floating WA Button */
.wa-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
    text-decoration: none;
}

.wa-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

/* Footer Enhancements */
.footer-security {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 1.5rem;
    opacity: 0.8;
}

.security-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Module Card Hover */
.modules .glass {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modules .glass:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 0.9);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Deep Dive Visuals */
.visual {
    position: relative;
}

.visual::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--primary);
    opacity: 0.1;
    filter: blur(40px);
    z-index: -1;
}

/* Lists */
ul li {
    position: relative;
    padding-left: 0.5rem;
}

@media (max-width: 991px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding-top: 4rem;
        /* Reduced from 6rem */
    }

    .hero-content {
        text-align: center;
        order: 2;
    }

    .hero-content h1 {
        font-size: 3rem !important;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        order: 1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .logo {
        position: relative;
        z-index: 1100;
    }

    .mobile-toggle {
        display: block !important;
        position: relative;
        z-index: 1100;
        width: 40px;
        height: 40px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.8rem !important;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        z-index: 1005;
        background: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(30px);
        border-left: none;
        box-shadow: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem !important;
        font-weight: 600;
    }

    .modules>.container>div {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 1.5rem !important;
    }

    .automated-docs>.container>div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .student-card-container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .deep-dive>.container>div {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .visual {
        order: 1 !important;
    }

    .content {
        order: 2 !important;
        text-align: center;
    }

    .content ul {
        text-align: left;
    }

    .roles>.container>div {
        grid-template-columns: 1fr !important;
    }

    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        max-width: 450px !important;
        margin-inline: auto !important;
    }

    section {
        padding: 6rem 0;
    }

    h2 {
        font-size: 2rem !important;
    }
}


/* FAQ Section Styles */
.faq-item:hover {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(30, 41, 59, 1);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-header:hover span:first-child {
    color: var(--primary);
}

.faq-header span:first-child {
    transition: color 0.3s ease;
}

@media (max-width: 768px) {
    .faq-header {
        padding: 1.5rem !important;
    }

    .faq-header span:first-child {
        font-size: 1rem !important;
    }

    .faq-content div {
        padding: 0 1.5rem 1.5rem !important;
    }
}

/* Partners (Mitra) Styles */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.mitra-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    width: 320px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Testimonials Styles (Carousel Style) */
.marquee-testi-container {
    width: 100%;
    overflow: hidden;
    padding: 3rem 0;
    position: relative;
}

.marquee-testi-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    animation: marqueeTesti 60s linear infinite;
}

.marquee-testi-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeTesti {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 1.25rem));
    }
}

.testi-card {
    flex: 0 0 450px;
    padding: 3rem;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    min-height: 320px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testi-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25);
}

.testi-header {
    margin-bottom: 2rem;
}

.testi-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
    filter: brightness(1.2);
}

.testi-content {
    flex-grow: 1;
}

.testi-quote {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    line-height: 1.4;
    margin-bottom: 2.5rem;
    position: relative;
}

.testi-quote::before {
    content: '"';
    position: absolute;
    left: -1.5rem;
    top: -0.5rem;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: serif;
}

.testi-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.author-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: white;
    margin-bottom: 0.3rem;
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

@media (max-width: 768px) {
    .testi-card {
        flex: 0 0 320px;
        padding: 2.5rem;
        min-height: auto;
    }

    .mitra-card {
        width: 260px;
    }

    .testi-quote {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .testi-card {
        flex: 0 0 280px;
        padding: 2rem;
    }

    .testi-quote {
        font-size: 1.1rem;
    }

    .mitra-card {
        width: 220px;
        padding: 1rem 1.5rem;
    }
}

.mitra-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
}

.mitra-logo {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mitra-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.mitra-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem !important;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .wa-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }

    .cta-container {
        padding: 3rem 1.5rem;
        border-radius: 2rem;
    }

    .cta-container h2 {
        font-size: 2rem !important;
    }

    .cta-btns {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
    }

    .cta-btns .btn {
        width: 100%;
        transform: none !important;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Modal Content */
.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 3.5rem 2.5rem 2.5rem;
    border-radius: 2rem;
    text-align: center;
    position: relative;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}