/* SaaS-Grade Polish for Niel SciCount */
:root {
    /* App Colors matching Mobile but enhanced for web */
    --primary: #0059bb;
    --primary-hover: #004a99;
    --primary-light: rgba(0, 89, 187, 0.1);

    --secondary: #006a61;
    --accent-red: #dc2626;
    --accent-orange: #d97706;

    --bg-color: #f8fafc;
    --surface: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --outline: #e2e8f0;
    --outline-light: rgba(255, 255, 255, 0.5);

    /* Modern SaaS Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Modern Diffused Shadows */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-premium: 0 20px 40px -10px rgba(0, 89, 187, 0.15), 0 10px 20px -5px rgba(0, 89, 187, 0.1);
    --shadow-glow: 0 0 40px rgba(0, 89, 187, 0.15);
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Base Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Premium Header (Glassmorphism) */
header {
    position: sticky;
    top: 24px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0 24px;
    pointer-events: none; /* Let clicks pass through empty space */
}



.header-content {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    padding: 0 32px;
    max-width: 1152px;
    margin: 0 auto;
    pointer-events: auto; /* Re-enable clicks for navbar */
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo span {
    color: var(--text-primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a:not(.btn-primary) {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

nav a:not(.btn-primary):hover {
    color: var(--primary);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: #ffffff !important;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 89, 187, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 89, 187, 0.35);
}

/* Background Gradients */
.hero-bg-gradient {
    position: absolute;
    top: -20%;
    left: 10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(0, 89, 187, 0.08) 0%, rgba(255, 255, 255, 0) 60%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: pulseGlow 8s infinite ease-in-out;
}



/* Main Layout */
main {
    padding-top: 120px;
    padding-bottom: 100px;
    position: relative;
}

/* Responsive Two-Column Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    margin-bottom: 120px;
    min-height: 75vh;
}

.hero-text-container {
    flex: 1.1;
    max-width: 600px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 89, 187, 0.1);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -1.5px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-secondary {
    background-color: var(--surface);
    color: var(--text-primary) !important;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--outline);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--bg-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Ultra-Premium Smartphone Mockup */
.hero-mockup-container {
    flex: 0.9;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    perspective: 1000px;
    margin-top: 60px;
    /* Ditambahkan agar lebih jauh dari navbar */
}

.device-mockup {
    width: 330px;
    height: 680px;
    background-color: #0f172a;
    border-radius: 54px;
    position: relative;
    padding: 12px;
    box-shadow: var(--shadow-premium), 0 0 0 1px #334155, 0 0 0 4px #e2e8f0;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}



/* Glossy Bezel Reflection */
.device-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 54px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 30%);
    pointer-events: none;
    z-index: 20;
}

/* Dynamic Island */
.device-mockup::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background-color: #000000;
    border-radius: 20px;
    z-index: 30;
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
}

.device-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    border-radius: 42px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Glow behind mockup */
.mockup-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0.15;
    z-index: 1;
    transform: translateZ(-50px);
}

/* Inner Mockup UI */
.mockup-header {
    padding: 60px 24px 20px;
    background-color: var(--surface);
    border-bottom: 1px solid var(--outline);
}

.mockup-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.mockup-sub {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    flex: 1;
    background: var(--bg-color);
}

.mockup-banner {
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    border-radius: 16px;
    padding: 20px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 89, 187, 0.2);
}

.mockup-banner h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.mockup-banner p {
    font-size: 0.8rem;
    opacity: 0.9;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mockup-card {
    background-color: var(--surface);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--outline);
    box-shadow: var(--shadow-sm);
}

.mockup-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mockup-card-sub {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.mockup-ai-bar {
    margin-top: 24px;
    background: var(--surface);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 4px 12px rgba(0, 89, 187, 0.05);
}


/* Categories Grid */
.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-bottom: 120px;
}

.card {
    background-color: var(--surface);
    border-radius: var(--radius-2xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--outline-light);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    display: block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}



.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.card:hover::before {
    opacity: 1;
}

.icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.bg-math {
    background-color: var(--primary-light);
    color: var(--primary);
}

.bg-physics {
    background-color: rgba(0, 106, 97, 0.1);
    color: var(--secondary);
}

.bg-chem {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--accent-red);
}

.bg-acc {
    background-color: rgba(217, 119, 6, 0.1);
    color: var(--accent-orange);
}



.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

/* AI Promo Section (Glassmorphism + Glow) */
.ai-section {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(255, 255, 255, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 80px 40px;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--outline-light);
    text-align: center;
    margin-bottom: 120px;
    position: relative;
    overflow: hidden;
}



.ai-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.ai-icon-large {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, var(--primary-light), rgba(59, 130, 246, 0.2));
    color: var(--primary);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    box-shadow: inset 0 0 0 1px rgba(0, 89, 187, 0.1);
}

.ai-section h2 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.ai-section p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 500;
}

/* Footer */
footer {
    border-top: 1px solid var(--outline);
    padding: 80px 24px 40px;
    background-color: var(--surface);
}

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

.footer-brand {
    max-width: 320px;
}

.footer-brand .logo {
    margin-bottom: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-links-col h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.footer-links-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: all 0.2s;
    font-weight: 500;
}

.footer-links-col a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    padding-top: 40px;
    border-top: 1px solid var(--outline);
    font-weight: 500;
}

/* Legal Document Pages specific */
.legal-page-header {
    margin-bottom: 48px;
    border-bottom: 1px solid var(--outline);
    padding-bottom: 32px;
}

.legal-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 80px;
}

.legal-content h3 {
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.legal-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 1.5rem;
}

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
        gap: 80px;
    }

    .hero-text-container {
        margin: 0 auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-mockup-container {
        justify-content: center;
    }
}

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

    nav {
        display: none;
    }

    .footer-links {
        flex-direction: column;
        gap: 40px;
    }

    .ai-section {
        padding: 48px 24px;
    }

    .ai-section h2 {
        font-size: 2rem;
    }

    .legal-content h3 {
        font-size: 1.5rem;
    }
}

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

    .hero-sub {
        font-size: 1rem;
    }

    .hero-mockup-container {
        transform: scale(0.85);
        transform-origin: top center;
    }
}