@charset "UTF-8";

/* ==========================================================================
   SPHIRA.ID - PREMIUM SAAS STYLESHEET
   ========================================================================== */

/* --- 1. VARIABEL WARNA & TEMA --- */
:root {
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #475569;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --accent-glow: rgba(37, 99, 235, 0.2);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --success: #22c55e;
}

/* --- 2. RESET & FONDASI --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

html { 
    scroll-behavior: smooth; 
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
    background-color: var(--bg-light);
    position: relative;
}

/* --- 3. PRELOADER --- */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: #020617; z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader-text { 
    font-family: 'JetBrains Mono', monospace; 
    color: var(--accent); 
    letter-spacing: 2px; 
    animation: pulse 1.5s infinite;
}

@keyframes pulse { 
    0%, 100% { opacity: 0.5; } 
    50% { opacity: 1; text-shadow: 0 0 15px var(--accent); } 
}

/* --- 4. BACKGROUND ANIMASI (EFEK CAHAYA BERGERAK) --- */
.animated-background {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -3;
    background: linear-gradient(120deg, #f8fafc, #e0f2fe, #eff6ff, #f0f9ff);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    opacity: 0.6;
    animation: floatOrb 20s infinite alternate ease-in-out;
}
.orb-1 { width: 50vw; height: 50vw; background: #bfdbfe; top: -10%; left: -10%; }
.orb-2 { width: 40vw; height: 40vw; background: #bae6fd; bottom: -10%; right: -5%; animation-delay: -5s; }
.orb-3 { width: 30vw; height: 30vw; background: #93c5fd; top: 40%; left: 40%; animation-delay: -10s; opacity: 0.4; }

.grid-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background-image: radial-gradient(rgba(37, 99, 235, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

@keyframes gradientMove { 
    0% { background-position: 0% 50%; } 
    50% { background-position: 100% 50%; } 
    100% { background-position: 0% 50%; } 
}

@keyframes floatOrb { 
    0% { transform: translate(0, 0) scale(1); } 
    100% { transform: translate(5%, 10%) scale(1.1); } 
}

/* --- 5. GARIS BERCERITA (STORYLINE) --- */
#story-line {
    position: absolute;
    top: 0; left: 50px; width: 3px; height: 100%;
    background: linear-gradient(to bottom, var(--accent) 0%, #93c5fd 50%, transparent 100%);
    z-index: 0;
    transform-origin: top;
    transform: scaleY(0);
}

/* --- 6. NAVIGASI --- */
nav { 
    position: fixed; width: 100%; padding: 20px 8%; display: flex; 
    justify-content: space-between; align-items: center; z-index: 1000; 
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); background: transparent; 
}

nav.scrolled { 
    background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); 
    padding: 15px 8%; border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.brand-container { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.6rem; letter-spacing: -1px; color: var(--accent); }

/* Tombol Global */
.btn-login { 
    text-decoration: none; color: white; font-size: 0.85rem; font-weight: 800; 
    background: var(--accent); padding: 12px 28px; border-radius: 50px; 
    box-shadow: 0 10px 20px var(--accent-glow); transition: 0.3s; 
}
.btn-login:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(37, 99, 235, 0.3); }

.btn-buy {
    display: inline-block; text-decoration: none; color: white; font-size: 0.95rem; font-weight: 800; 
    background: var(--accent); padding: 14px 32px; border-radius: 50px; 
    box-shadow: 0 10px 20px var(--accent-glow); transition: 0.3s; margin-top: 15px;
}
.btn-buy:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(37, 99, 235, 0.4); background: #1e40af; }

/* --- 7. SECTION & TYPOGRAPHY --- */
.section { 
    min-height: 100vh; display: flex; flex-direction: column; justify-content: center; 
    padding: 120px 8%; position: relative; z-index: 1; 
}

.hero { align-items: center; text-align: center; }
.hero-tag { 
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; font-weight: 700; 
    color: var(--accent); letter-spacing: 3px; margin-bottom: 25px; 
    background: white; padding: 10px 24px; border-radius: 50px; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.05); border: 1px solid var(--accent-light);
}
.hero h1 { font-size: 5.5rem; font-weight: 800; line-height: 1.05; margin-bottom: 30px; letter-spacing: -3px; color: var(--text-main); max-width: 1000px;}
.hero p { font-size: 1.3rem; color: var(--text-muted); max-width: 700px; line-height: 1.6; }

.story-number { font-family: 'JetBrains Mono', monospace; font-size: 5rem; font-weight: 800; color: var(--accent-light); line-height: 1; margin-bottom: -25px; z-index: -1; position: relative; opacity: 0.6;}
.story-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; color: var(--text-main); }
.story-desc { font-size: 1.25rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 30px; }

/* --- 8. TATA LETAK GAMBAR & KARTU (SPLIT LAYOUT) --- */
.split-layout { display: flex; align-items: center; gap: 60px; }
.split-layout.reverse { flex-direction: row-reverse; }

.story-content { flex: 1; opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.story-content.visible { opacity: 1; transform: translateY(0); }

.feature-box { 
    background: var(--card-bg); backdrop-filter: blur(10px);
    border: 1px solid var(--card-border); padding: 25px; border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); margin-bottom: 15px; transition: 0.4s;
}
.feature-box:hover { border-color: var(--accent); transform: translateX(10px); box-shadow: 0 20px 40px var(--accent-glow); background: white;}
.feature-box h4 { font-size: 1.2rem; color: var(--accent); margin-bottom: 8px; font-weight: 800;}
.feature-box p { font-size: 1rem; color: var(--text-muted); line-height: 1.5; margin: 0;}

/* Gambar Melayang 3D */
.story-visual { flex: 1; display: flex; justify-content: center; perspective: 1200px; opacity: 0; transform: scale(0.9) translateY(40px); transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.story-visual.visible { opacity: 1; transform: scale(1) translateY(0); }

.floating-display {
    width: 100%; max-width: 650px; height: auto; border-radius: 20px;
    box-shadow: 0 40px 80px rgba(37, 99, 235, 0.15), 0 0 0 1px rgba(255,255,255,0.8) inset;
    border: 10px solid white;
    background-color: white;
    animation: floatDisplay 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.tilt-right { transform: rotateY(-10deg) rotateX(5deg); }
.tilt-left { transform: rotateY(10deg) rotateX(5deg); }

@keyframes floatDisplay {
    0% { transform: translateY(0px) rotateY(var(--ry, 0)) rotateX(var(--rx, 0)); }
    50% { transform: translateY(-20px) rotateY(var(--ry, 0)) rotateX(var(--rx, 0)); }
    100% { transform: translateY(0px) rotateY(var(--ry, 0)) rotateX(var(--rx, 0)); }
}

/* --- 9. FAQ SECTION --- */
.faq-wrapper { 
    max-width: 900px; margin: 0 auto; background: var(--card-bg); backdrop-filter: blur(20px);
    padding: 50px; border-radius: 24px; box-shadow: 0 20px 50px rgba(0,0,0,0.05); 
    border: 1px solid var(--card-border); opacity: 0; transform: translateY(40px); transition: 1s; 
}
.faq-wrapper.visible { opacity: 1; transform: translateY(0); }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.05); padding: 25px 0; cursor: pointer; }
.faq-item:last-child { border-bottom: none; }
.faq-question { font-size: 1.2rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; color: var(--text-main); }
.faq-question span { 
    font-family: 'JetBrains Mono', monospace; color: var(--accent); font-size: 1.5rem; 
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1); background: white; width: 40px; height: 40px; 
    display: flex; justify-content: center; align-items: center; border-radius: 50%; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.faq-item.active .faq-question span { transform: rotate(135deg); background: var(--accent); color: white;}
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.6s cubic-bezier(0.16, 1, 0.3, 1); color: var(--text-muted); }
.faq-item.active .faq-answer { max-height: 500px; }
.faq-answer p { font-size: 1.05rem; line-height: 1.6; padding-top: 20px;}

/* --- 10. DOMAIN CHECKER (CTA) --- */
.cta-section { text-align: center; padding: 150px 8%; }
.checker-box { 
    display: flex; max-width: 650px; margin: 40px auto 0; background: white; 
    border-radius: 50px; padding: 8px; box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1); 
    border: 1px solid var(--accent-light); transition: 0.3s; 
}
.checker-box:focus-within { box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2), 0 0 0 4px var(--accent-light); border-color: var(--accent); }
.checker-box input { 
    flex: 1; border: none; outline: none; padding: 20px 30px; font-size: 1.2rem; 
    background: transparent; font-family: 'JetBrains Mono', monospace; color: var(--text-main); 
}
.checker-box button { 
    background: var(--accent); color: white; border: none; padding: 0 40px; 
    border-radius: 40px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.3s; 
}
.checker-box button:hover { background: #1e40af; transform: scale(1.02); }

/* --- 11. FOOTER --- */
footer { 
    padding: 60px 8%; text-align: center; color: var(--text-muted); 
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; background: transparent; 
}

/* --- 12. RESPONSIVE DESIGN (MOBILE) --- */
@media (max-width: 900px) {
    .split-layout { flex-direction: column !important; text-align: center; gap: 40px; }
    h1 { font-size: 3.5rem; }
    .story-title { font-size: 2.5rem; }
    .floating-display { max-width: 100%; border-width: 4px; transform: none !important; animation: none;} 
    #story-line { left: 20px; }
    .checker-box { flex-direction: column; border-radius: 20px; padding: 15px;}
    .checker-box button { padding: 20px; width: 100%; margin-top: 10px; border-radius: 12px;}
}