/**
 * ==============================================================================
 * EDNOVATECHS - Corporate Design System & Style Guide
 * CV. EDUNOVA TECHNOLOGIES
 * Brand: EDNOVATECHS | Banjarbaru, Kalimantan Selatan
 * ==============================================================================
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
    /* --- Palette Resmi Edunova Corporate --- */
    --edn-navy: #0B192C;
    --edn-royal: #1E3E62;
    --edn-blue: #008DDA;
    --edn-blue-rgb: 0, 141, 218;
    --edn-cyan: #41C9E2;
    --edn-light: #EBF4F6;
    --edn-white: #FFFFFF;

    /* --- Neutral & Surface Tones --- */
    --edn-bg-main: #F8FAFC;
    --edn-bg-alt: #F1F5F9;
    --edn-text-dark: #0F172A;
    --edn-text-muted: #64748B;
    --edn-border: rgba(30, 62, 98, 0.12);
    --edn-border-light: rgba(255, 255, 255, 0.15);

    /* --- Dynamic Gradients --- */
    --edn-gradient-hero: linear-gradient(135deg, #0B192C 0%, #1E3E62 60%, #008DDA 100%);
    --edn-gradient-accent: linear-gradient(135deg, #008DDA 0%, #41C9E2 100%);
    --edn-gradient-subtle: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
    --edn-gradient-card: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.7) 100%);

    /* --- Elevation & Shadows --- */
    --edn-shadow-sm: 0 2px 8px rgba(11, 25, 44, 0.05);
    --edn-shadow-md: 0 8px 24px rgba(11, 25, 44, 0.08);
    --edn-shadow-lg: 0 16px 40px rgba(11, 25, 44, 0.12);
    --edn-shadow-glow: 0 8px 30px rgba(0, 141, 218, 0.25);

    /* --- Radii & Smooth Transitions --- */
    --edn-radius-sm: 8px;
    --edn-radius-md: 14px;
    --edn-radius-lg: 20px;
    --edn-radius-xl: 30px;
    --edn-radius-pill: 9999px;

    --edn-transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --edn-transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base Reset & Typography --- */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6, .heading-font {
    font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    color: var(--edn-navy);
    letter-spacing: -0.02em;
}

a {
    color: var(--edn-blue);
    text-decoration: none;
    transition: var(--edn-transition-fast);
}

a:hover {
    color: var(--edn-royal);
}

/* --- Premium Corporate Hero System & Section Transition --- */
.hero-corporate {
    position: relative;
    background: radial-gradient(circle at 82% 20%, rgba(0, 141, 218, 0.28) 0%, transparent 45%),
                radial-gradient(circle at 18% 78%, rgba(65, 201, 226, 0.16) 0%, transparent 40%),
                radial-gradient(circle at 50% 50%, rgba(30, 62, 98, 0.35) 0%, transparent 60%),
                linear-gradient(145deg, #07101E 0%, #0B192C 42%, #102A43 75%, #1E3E62 100%);
    color: var(--edn-white);
    padding: 100px 0 100px 0;
    overflow: hidden;
}

/* Subtle Tech Grid Pattern Overlay */
.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: -1px -1px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
}

/* Integrated Hero -> Next Section Transition (Gradient Fade Option C + Option A) */
.hero-transition-edge {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(to bottom, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.45) 55%, #F8FAFC 100%);
    pointer-events: none;
    z-index: 2;
}

/* Corporate Executive Presentation Card */
.corporate-executive-card {
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35), 0 0 1px rgba(255, 255, 255, 0.4);
    color: #FFFFFF;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.corporate-executive-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 141, 218, 0.2);
}

.corporate-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: linear-gradient(135deg, #008DDA 0%, #41C9E2 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.35rem;
    box-shadow: 0 8px 24px rgba(0, 141, 218, 0.4);
    flex-shrink: 0;
}

.corporate-quote {
    font-size: 0.88rem;
    color: #CBD5E1;
    line-height: 1.55;
    font-style: italic;
    border-left: 2.5px solid var(--edn-blue);
    padding-left: 14px;
    margin: 18px 0;
}

.corporate-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 0.78rem;
    color: #E2E8F0;
}

/* Secondary Button on Dark Hero */
.btn-edn-outline-light {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--edn-radius-pill);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(8px);
    transition: var(--edn-transition-smooth);
}

.btn-edn-outline-light:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* --- Glassmorphism UI --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--edn-border);
    box-shadow: var(--edn-shadow-md);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(11, 25, 44, 0.08);
    transition: var(--edn-transition-smooth);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--edn-shadow-md);
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* --- Modern Corporate Buttons --- */
.btn-edn-primary {
    background: var(--edn-gradient-accent);
    color: var(--edn-white) !important;
    border: none;
    border-radius: var(--edn-radius-pill);
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: var(--edn-shadow-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--edn-transition-smooth);
}

.btn-edn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 141, 218, 0.4);
    color: var(--edn-white) !important;
}

.btn-edn-outline {
    background: transparent;
    color: var(--edn-navy) !important;
    border: 1.5px solid var(--edn-royal);
    border-radius: var(--edn-radius-pill);
    padding: 11px 26px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--edn-transition-smooth);
}

.btn-edn-outline:hover {
    background: var(--edn-royal);
    color: var(--edn-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--edn-shadow-sm);
}

.btn-edn-white {
    background: var(--edn-white);
    color: var(--edn-navy) !important;
    border: none;
    border-radius: var(--edn-radius-pill);
    padding: 12px 28px;
    font-weight: 600;
    box-shadow: var(--edn-shadow-md);
    transition: var(--edn-transition-smooth);
}

.btn-edn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--edn-shadow-lg);
}

/* --- Floating Cards & Subtle Animation --- */
.floating-element {
    animation: floatingAnimation 4s ease-in-out infinite;
}

.floating-element-delayed {
    animation: floatingAnimation 5s ease-in-out infinite 1.5s;
}

@keyframes floatingAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.pulse-badge {
    position: relative;
}

.pulse-badge::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
    top: 50%;
    transform: translateY(-50%);
    left: -14px;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --- Card Styles --- */
.edn-card {
    background: var(--edn-white);
    border: 1px solid var(--edn-border);
    border-radius: var(--edn-radius-lg);
    padding: 28px;
    box-shadow: var(--edn-shadow-sm);
    transition: var(--edn-transition-smooth);
}

.edn-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--edn-shadow-lg);
    border-color: rgba(0, 141, 218, 0.3);
}

.edn-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: var(--edn-radius-pill);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 141, 218, 0.1);
    color: var(--edn-blue);
    border: 1px solid rgba(0, 141, 218, 0.2);
}

/* --- Diagnostic / Health Status Pill --- */
.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-pill.success {
    background: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}

.status-pill.warning {
    background: #FEF9C3;
    color: #854D0E;
    border: 1px solid #FEF08A;
}

.status-pill.danger {
    background: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

/* --- Responsive Media Queries --- */
@media (max-width: 991.98px) {
    .hero-corporate {
        padding: 80px 0 80px 0;
    }
    .corporate-executive-card {
        margin-top: 10px;
        padding: 26px 20px;
    }
}

@media (max-width: 575.98px) {
    .hero-corporate {
        padding: 60px 0 60px 0;
    }
    .hero-transition-edge {
        height: 40px;
    }
    .corporate-avatar {
        width: 48px;
        height: 48px;
        font-size: 1.15rem;
    }
}

/* ==============================================================================
 * PRODUCT SHOWCASE SYSTEM (Corporate Modular & Reduced Motion Compliant)
 * ============================================================================== */
.product-card {
    background: var(--edn-white);
    border: 1px solid var(--edn-border);
    border-radius: var(--edn-radius-lg);
    box-shadow: var(--edn-shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(11, 25, 44, 0.12);
    border-color: rgba(0, 141, 218, 0.35);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%);
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.03);
}

.product-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #07101E 0%, #1E3E62 100%);
    color: rgba(255, 255, 255, 0.7);
    padding: 20px;
    text-align: center;
}

.product-stars-gold {
    color: #F59E0B;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.product-price-crossed {
    text-decoration: line-through;
    color: #94A3B8;
    font-size: 0.88rem;
    font-weight: 500;
}

.product-price-actual {
    font-size: 0.95rem;
    font-weight: 700;
    color: #059669;
}

.product-badge-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--edn-blue);
    background: rgba(0, 141, 218, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0, 141, 218, 0.18);
    display: inline-block;
}

.product-badge-saas {
    font-size: 0.75rem;
    font-weight: 600;
    color: #0284C7;
    background: #E0F2FE;
    border: 1px solid #BAE6FD;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-gallery-thumb {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.product-gallery-thumb:hover {
    transform: translateY(-3px);
    border-color: var(--edn-blue);
    box-shadow: var(--edn-shadow-md);
}

.feature-item-card {
    background: var(--edn-white);
    border: 1px solid var(--edn-border);
    border-radius: var(--edn-radius-md);
    padding: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 141, 218, 0.3);
}

/* Reduced Motion strictly respected */
@media (prefers-reduced-motion: reduce) {
    .product-card,
    .product-card:hover,
    .product-img-wrap img,
    .product-card:hover .product-img-wrap img,
    .product-gallery-thumb,
    .product-gallery-thumb:hover,
    .feature-item-card,
    .feature-item-card:hover {
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

