/* =========================================================
   LPPM UNTIKA — ROYAL KNOWLEDGE THEME
   Deep Violet · Emerald Teal · Amber Gold
========================================================= */

:root {
    /* Background - Deep Purple */
    --bg-0: #08050f;
    --bg-1: #0d0819;
    --bg-2: #130d24;
    --bg-3: #1a1130;
    --bg-4: #221640;

    /* Primary - Violet */
    --primary: #7c3aed;
    --primary-deep: #5b21b6;
    --primary-hi: #a78bfa;

    /* Secondary - Teal */
    --teal: #14b8a6;
    --teal-deep: #0d9488;
    --teal-hi: #5eead4;

    /* Accent - Gold */
    --gold: #fbbf24;
    --gold-deep: #f59e0b;
    --gold-hi: #fde68a;

    /* Text */
    --text: #ede9fe;
    --text-dim: #b4a9d6;
    --text-mute: #7c6fa8;

    /* Gradients */
    --grad-brand: linear-gradient(135deg, #5b21b6 0%, #7c3aed 55%, #14b8a6 100%);
    --grad-gold: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #fde68a 100%);
    --grad-text: linear-gradient(120deg, #a78bfa 0%, #7c3aed 40%, #fbbf24 100%);
    --grad-teal: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --grad-mesh:
        radial-gradient(ellipse 70% 50% at 15% 10%, rgba(91,33,182,0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 85% 20%, rgba(20,184,166,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 60% 90%, rgba(251,191,36,0.10) 0%, transparent 60%);

    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0,0,0,0.40);
    --shadow-md: 0 12px 40px rgba(0,0,0,0.55);
    --shadow-lg: 0 24px 70px rgba(0,0,0,0.70);
    --glow-violet: 0 0 40px rgba(124,58,237,0.45);
    --glow-teal: 0 0 40px rgba(20,184,166,0.40);
    --glow-gold: 0 0 40px rgba(251,191,36,0.40);
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--grad-mesh);
    pointer-events: none;
    z-index: 0;
    animation: auroraShift 20s ease-in-out infinite alternate;
}
@keyframes auroraShift {
    0%   { transform: translate(0,0) scale(1); opacity: 1; }
    50%  { transform: translate(-1%, 1%) scale(1.02); opacity: 0.9; }
    100% { transform: translate(1%, -1%) scale(1); opacity: 1; }
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: min(1240px, 92%);
    margin: auto;
    position: relative;
    z-index: 2;
}

/* Scrollbar */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #5b21b6, #14b8a6);
    border-radius: 5px;
    border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #7c3aed, #22d3ee); }

/* Text Utilities */
.text-gradient {
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #a78bfa;
    display: inline-block;
}
@supports not (background-clip: text) {
    .text-gradient { -webkit-text-fill-color: currentColor; color: #7c3aed; background: none; }
}
.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }
.text-violet { color: var(--primary-hi); }
.text-dim { color: var(--text-dim); }

/* Section */
section { padding: 100px 0; position: relative; z-index: 2; }

.section-divider {
    height: 1px;
    width: min(1240px, 92%);
    margin: 0 auto;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(124,58,237,0.35) 25%,
        rgba(251,191,36,0.30) 50%,
        rgba(20,184,166,0.35) 75%,
        transparent 100%);
    position: relative;
}
.section-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(251,191,36,0.5);
}

.section-head { text-align: center; max-width: 820px; margin: 0 auto 60px; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(124,58,237,0.30);
    background: rgba(124,58,237,0.08);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-hi);
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}
.section-label.gold {
    border-color: rgba(251,191,36,0.32);
    background: rgba(251,191,36,0.08);
    color: var(--gold);
}
.section-label.teal {
    border-color: rgba(20,184,166,0.35);
    background: rgba(20,184,166,0.08);
    color: var(--teal-hi);
}
.section-label .dot {
    width: 6px; height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary), 0 0 16px rgba(124,58,237,0.6);
    animation: pulseDot 2s ease-in-out infinite;
}
.section-label.gold .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(251,191,36,0.6); }
.section-label.teal .dot { background: var(--teal); box-shadow: 0 0 8px var(--teal), 0 0 16px rgba(20,184,166,0.6); }
@keyframes pulseDot {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}

.section-title {
    font-family: 'Alata', sans-serif;
    font-size: clamp(30px, 4.2vw, 50px);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 16px;
}
.section-desc {
    color: var(--text-dim);
    font-size: 16px;
    line-height: 1.75;
    max-width: 660px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: all .35s cubic-bezier(0.34,1.56,0.64,1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.1px;
}
.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.2) 50%, transparent 100%);
    transform: translateX(-100%);
    transition: transform .6s ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn-primary {
    background: var(--grad-brand);
    color: #fff;
    box-shadow: 0 8px 24px rgba(124,58,237,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(124,58,237,0.55), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-gold {
    background: var(--grad-gold);
    color: #1a1204;
    box-shadow: 0 8px 24px rgba(251,191,36,0.45), inset 0 1px 0 rgba(255,255,255,0.4);
    font-weight: 700;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 44px rgba(251,191,36,0.60), inset 0 1px 0 rgba(255,255,255,0.5);
}
.btn-teal {
    background: var(--grad-teal);
    color: #fff;
    box-shadow: 0 8px 24px rgba(20,184,166,0.45);
}
.btn-teal:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(20,184,166,0.60); }
.btn-outline {
    background: rgba(255,255,255,0.04);
    color: var(--text);
    border: 1px solid rgba(167,139,250,0.35);
    backdrop-filter: blur(12px);
}
.btn-outline:hover {
    background: rgba(124,58,237,0.10);
    border-color: rgba(167,139,250,0.60);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(124,58,237,0.25);
}

/* Alert */
.alert {
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.alert-success { background: rgba(16,185,129,0.08); color: #6ee7b7; border-left: 3px solid #10b981; }
.alert-error   { background: rgba(239,68,68,0.08); color: #fca5a5; border-left: 3px solid #ef4444; }

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity .9s cubic-bezier(0.4,0,0.2,1), transform .9s cubic-bezier(0.4,0,0.2,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Back to top */
#lpBackToTop {
    position: fixed;
    bottom: 30px; left: 30px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(13,8,25,0.9);
    border: 1px solid rgba(167,139,250,0.40);
    color: var(--primary-hi);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.85);
    transition: all .4s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.55);
}
#lpBackToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
#lpBackToTop:hover {
    background: var(--grad-brand);
    color: #fff;
    border-color: transparent;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 40px rgba(124,58,237,0.60);
}