/* ═══════════════════════════════════════════
   ALULA FRONTEND — Static CSS
   Tidak perlu compile, langsung di-serve
   ═══════════════════════════════════════════ */

/* ── Dynamic Accent Color Variables Fallback ── */
:root {
    --color-primary-50: #fdf4ff;
    --color-primary-100: #fae8ff;
    --color-primary-200: #f5d0fe;
    --color-primary-300: #f0abfc;
    --color-primary-400: #e879f9;
    --color-primary-500: #702963;
    --color-primary-600: #5D3FD3;
    --color-primary-700: #4a32a8;
    --color-primary-800: #38267e;
    --color-primary-900: #261954;
    --color-primary-950: #1a0f3c;
}

html[data-accent="green"] {
    --color-primary-50: #f0fdf4;
    --color-primary-100: #dcfce7;
    --color-primary-200: #bbf7d0;
    --color-primary-300: #86efac;
    --color-primary-400: #4ade80;
    --color-primary-500: #22c55e;
    --color-primary-600: #16a34a;
    --color-primary-700: #15803d;
    --color-primary-800: #166534;
    --color-primary-900: #14532d;
    --color-primary-950: #052e16;
}

html[data-accent="amber"] {
    --color-primary-50: #fffbeb;
    --color-primary-100: #fef3c7;
    --color-primary-200: #fde68a;
    --color-primary-300: #fcd34d;
    --color-primary-400: #fbbf24;
    --color-primary-500: #f59e0b;
    --color-primary-600: #d97706;
    --color-primary-700: #b45309;
    --color-primary-800: #92400e;
    --color-primary-900: #78350f;
    --color-primary-950: #451a03;
}

html[data-accent="purple"] {
    --color-primary-50: #faf5ff;
    --color-primary-100: #f3e8ff;
    --color-primary-200: #e9d5ff;
    --color-primary-300: #d8b4fe;
    --color-primary-400: #c084fc;
    --color-primary-500: #a855f7;
    --color-primary-600: #9333ea;
    --color-primary-700: #7e22ce;
    --color-primary-800: #581c87;
    --color-primary-900: #3b0764;
    --color-primary-950: #2e0854;
}

html[data-accent="cyan"] {
    --color-primary-50: #ecfeff;
    --color-primary-100: #cffafe;
    --color-primary-200: #a5f3fc;
    --color-primary-300: #67e8f9;
    --color-primary-400: #22d3ee;
    --color-primary-500: #06b6d4;
    --color-primary-600: #0891b2;
    --color-primary-700: #0e7490;
    --color-primary-800: #155e75;
    --color-primary-900: #164e63;
    --color-primary-950: #083344;
}

html[data-accent="accent"], html[data-accent="teal"] {
    --color-primary-50: #f0fdfa;
    --color-primary-100: #ccfbf1;
    --color-primary-200: #99f6e4;
    --color-primary-300: #5eead4;
    --color-primary-400: #2dd4bf;
    --color-primary-500: #14b8a6;
    --color-primary-600: #0d9488;
    --color-primary-700: #0f766e;
    --color-primary-800: #115e59;
    --color-primary-900: #134e4a;
    --color-primary-950: #042f2e;
}

html[data-accent="blue"], html[data-accent="indigo"] {
    --color-primary-50: #eff6ff;
    --color-primary-100: #dbeafe;
    --color-primary-200: #bfdbfe;
    --color-primary-300: #93c5fd;
    --color-primary-400: #60a5fa;
    --color-primary-500: #3b82f6;
    --color-primary-600: #2563eb;
    --color-primary-700: #1d4ed8;
    --color-primary-800: #1e40af;
    --color-primary-900: #1e3a8a;
    --color-primary-950: #172554;
}

html[data-accent="rose"], html[data-accent="red"] {
    --color-primary-50: #fff1f2;
    --color-primary-100: #ffe4e6;
    --color-primary-200: #fecdd3;
    --color-primary-300: #fda4af;
    --color-primary-400: #fb7185;
    --color-primary-500: #f43f5e;
    --color-primary-600: #e11d48;
    --color-primary-700: #be123c;
    --color-primary-800: #9f1239;
    --color-primary-900: #881337;
    --color-primary-950: #4c0519;
}

/* ── Complete Native Dinosaur Scrollbar Suppression ── */
html {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    display: none !important;
    background: transparent !important;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-corner,
::-webkit-resizer,
::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* ── Reset & Base ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Mulish', sans-serif; background: #FAFAFA; color: #111827; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
input, textarea, button, select { font-family: inherit; }

/* ── Typography ──────────────────────────── */
.uh { font-family: 'Urbanist', sans-serif !important; }
h1, h2, h3, h4, h5 { font-family: 'Urbanist', sans-serif; }

/* ── Navbar ──────────────────────────────── */
.fe-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 999;
    transition: background 0.35s ease, box-shadow 0.35s ease;
    background: transparent;
}
.fe-nav.is-scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.fe-nav-inner {
    max-width: 82rem; margin: 0 auto; padding: 0 1.5rem;
    height: 5rem; display: flex; align-items: center;
    justify-content: space-between; gap: 1rem;
}
.fe-nav-brand { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; }
.fe-nav-brand img { height: 2.25rem; width: auto; object-fit: contain; }
.fe-nav-brand-text {
    font-family: 'Urbanist', sans-serif;
    font-weight: 800; font-size: 1.375rem;
    letter-spacing: -0.02em; color: #fff;
    transition: color 0.3s; line-height: 1;
}
.fe-nav.is-scrolled .fe-nav-brand-text { color: #6d28d9; }

.fe-nav-links { display: none; align-items: center; gap: 2.25rem; }
@media (min-width: 768px) { .fe-nav-links { display: flex; } }

.fe-nav-link {
    font-size: 0.9375rem; font-weight: 500;
    color: rgba(255,255,255,0.85);
    padding: 0.25rem 0; transition: color 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.fe-nav-link:hover { color: #fff; }
.fe-nav-link.is-active { font-weight: 700; color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.fe-nav.is-scrolled .fe-nav-link { color: #4b5563; }
.fe-nav.is-scrolled .fe-nav-link:hover { color: #7c3aed; }
.fe-nav.is-scrolled .fe-nav-link.is-active { color: #7c3aed; border-bottom-color: #7c3aed; }

.fe-nav-actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.fe-nav-btn-ghost {
    font-weight: 700; font-size: 0.9375rem;
    color: rgba(255,255,255,0.9); transition: color 0.2s;
}
.fe-nav-btn-ghost:hover { color: #fff; }
.fe-nav.is-scrolled .fe-nav-btn-ghost { color: #374151; }
.fe-nav.is-scrolled .fe-nav-btn-ghost:hover { color: #7c3aed; }
.fe-nav-btn-solid {
    font-weight: 700; font-size: 0.875rem;
    padding: 0.625rem 1.75rem; border-radius: 9999px;
    background: #fff; color: #6d28d9;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.1);
    white-space: nowrap;
}
.fe-nav-btn-solid:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.fe-nav.is-scrolled .fe-nav-btn-solid { background: #7c3aed; color: #fff; }
@media (max-width: 767px) {
    .fe-nav.is-scrolled {
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    }
}

/* ── Hero ────────────────────────────────── */
.fe-hero-wrap { display: flex; flex-direction: column; height: 100vh; min-height: 700px; }
.fe-hero {
    position: relative; flex: 1;
    display: flex; align-items: center; justify-content: center; text-align: center;
    overflow: hidden;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
}
.fe-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fe-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(10,10,20,0.75), rgba(10,10,20,0.45), rgba(10,10,20,0.88));
}
.fe-hero-content {
    position: relative; z-index: 2;
    max-width: 54rem; padding: 0 1.5rem; margin: 5rem auto 0;
}

/* ── Marquee ─────────────────────────────── */
.fe-marquee-track { overflow: hidden; }
.fe-marquee-inner {
    display: flex; align-items: center; gap: 4rem;
    white-space: nowrap; min-width: max-content;
    animation: fe-marquee 30s linear infinite;
}
.fe-marquee-inner:hover { animation-play-state: paused; }
@keyframes fe-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Cards ───────────────────────────────── */
.soft-card {
    background: #fff; border-radius: 1.5rem;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.07);
    transition: box-shadow 0.3s, transform 0.3s;
}
.soft-card:hover {
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.13);
    transform: translateY(-4px);
}

/* ── Sections ────────────────────────────── */
.fe-section-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    padding: 0.375rem 1rem; border-radius: 9999px;
    background: #f3e8ff; color: #7c3aed; margin-bottom: 1.25rem;
}
.fe-tests-section { padding: 6rem 0; background: #FAFAFA; }
.fe-jobs-section {
    padding: 6rem 0; background: #fff;
    border-radius: 3rem 3rem 0 0;
    margin-top: -1.5rem;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.025);
}
.fe-cta {
    background: linear-gradient(135deg, var(--color-primary-800, #38267e) 0%, var(--color-primary-950, #1a0f3c) 100%) !important;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

/* ── Footer ──────────────────────────────── */
.fe-footer { background: #111827; color: #d1d5db; padding: 5rem 0 0; }
.fe-footer a:hover { color: #a78bfa; }

/* ── Buttons ─────────────────────────────── */
.btn-primary {
    display: inline-block;
    background: #9333ea; color: #fff;
    padding: 1rem 2.5rem; border-radius: 9999px;
    font-weight: 700; font-size: 1.0625rem;
    box-shadow: 0 10px 30px rgba(147,51,234,0.35);
    transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: #7e22ce; transform: translateY(-2px); color: #fff; }

/* ── Layout helpers ──────────────────────── */
.container { max-width: 82rem; margin: 0 auto; padding: 0 1.5rem; }
[x-cloak] { display: none !important; }

/* ── Form inputs ─────────────────────────── */
.fe-input {
    width: 100%; background: #f9fafb;
    border: 1.5px solid #f3f4f6; border-radius: 0.75rem;
    padding: 0.8125rem 1rem; font-size: 0.875rem; outline: none;
    font-family: 'Mulish', sans-serif;
    transition: border-color 0.2s;
}
.fe-input:focus { border-color: #7c3aed; }

/* ── Grid helpers ────────────────────────── */
.fe-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
@media (max-width: 480px) { .fe-grid-2 { grid-template-columns: 1fr; } }
.fe-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.fe-job-grid  { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }

/* ═══════════════════════════════════════════
   FRONTEND DARK MODE STYLES
   ═══════════════════════════════════════════ */
html.dark body {
    background: #0d0f14 !important;
    color: #e2e8f0 !important;
}

html.dark [style*="background:#FAFAFA"],
html.dark [style*="background: #FAFAFA"],
html.dark [style*="background:#fafafa"],
html.dark [style*="background: #fafafa"] {
    background: #0d0f14 !important;
}

html.dark [style*="background:#fff"],
html.dark [style*="background: #fff"],
html.dark [style*="background:#ffffff"],
html.dark [style*="background: #ffffff"] {
    background: #141721 !important;
}

html.dark [style*="color:#111827"],
html.dark [style*="color: #111827"],
html.dark [style*="color:#000"],
html.dark [style*="color: #000"] {
    color: #f1f5f9 !important;
}

html.dark [style*="color:#6b7280"],
html.dark [style*="color: #6b7280"],
html.dark [style*="color:#4b5563"],
html.dark [style*="color: #4b5563"] {
    color: #94a3b8 !important;
}

html.dark .fe-nav.is-scrolled {
    background: rgba(13, 15, 20, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 4px 24px rgba(0,0,0,0.6) !important;
}

html.dark .fe-nav.is-scrolled .fe-nav-brand-text {
    color: #a78bfa !important;
}

html.dark .fe-nav.is-scrolled .fe-nav-link {
    color: #cbd5e1 !important;
}

html.dark .fe-nav.is-scrolled .fe-nav-link:hover {
    color: #c4b5fd !important;
}

html.dark .fe-nav.is-scrolled .fe-nav-link.is-active {
    color: #a78bfa !important;
    border-bottom-color: #a78bfa !important;
}

html.dark .fe-nav.is-scrolled .fe-nav-btn-ghost {
    color: #e2e8f0 !important;
}

html.dark .fe-nav.is-scrolled .fe-nav-btn-ghost:hover {
    color: #c4b5fd !important;
}

html.dark .fe-nav.is-scrolled .fe-mobile-btn {
    color: #e2e8f0 !important;
}

html.dark .soft-card {
    background: #141721 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 40px -10px rgba(0,0,0,0.5) !important;
    color: #e2e8f0 !important;
}

html.dark .soft-card:hover {
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.7) !important;
    border-color: rgba(167, 139, 250, 0.3) !important;
}

html.dark .fe-tests-section {
    background: #0d0f14 !important;
}

html.dark .fe-jobs-section {
    background: #11131a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 -16px 40px rgba(0,0,0,0.4) !important;
}

html.dark .fe-section-badge {
    background: rgba(124, 58, 237, 0.25) !important;
    color: #c4b5fd !important;
    border: 1px solid rgba(124, 58, 237, 0.35) !important;
}

html.dark .fe-cta {
    background: linear-gradient(135deg, var(--color-primary-900, #261954) 0%, #0d0f14 100%) !important;
}

html.dark .fe-footer {
    background: #07080b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    color: #94a3b8 !important;
}

html.dark .fe-footer a:hover {
    color: #c4b5fd !important;
}

html.dark .fe-input {
    background: #171a23 !important;
    border-color: #2b3040 !important;
    color: #f1f5f9 !important;
}

html.dark .fe-input:focus {
    border-color: #8b5cf6 !important;
    background: #1a1e29 !important;
}

html.dark .fe-marquee-track > div[style*="linear-gradient(to right"] {
    background: linear-gradient(to right, #0d0f14, transparent) !important;
}

html.dark .fe-marquee-track > div[style*="linear-gradient(to left"] {
    background: linear-gradient(to left, #0d0f14, transparent) !important;
}

html.dark .bg-white {
    background-color: #141721 !important;
}

html.dark .bg-gray-50 {
    background-color: #0f1118 !important;
}

html.dark .bg-gray-100 {
    background-color: #1a1d28 !important;
}

html.dark .border-gray-100,
html.dark .border-gray-200,
html.dark .border-gray-50 {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark .text-gray-900,
html.dark .text-gray-800 {
    color: #f8fafc !important;
}

html.dark .text-gray-700,
html.dark .text-gray-600 {
    color: #cbd5e1 !important;
}

html.dark .text-gray-500,
html.dark .text-gray-400 {
    color: #94a3b8 !important;
}

/* Mobile drawer and dropdown menus in dark mode */
html.dark [style*="background:#ffffff !important"],
html.dark [style*="background: #ffffff !important"] {
    background: #141721 !important;
}

html.dark [style*="background:#ffffff;"],
html.dark [style*="background: #ffffff;"],
html.dark [style*="background:#fff;"],
html.dark [style*="background: #fff;"] {
    background: #141721 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Floating right theme toggle tab - Placed higher up near top bar */
#fe-dark-toggle-tab {
    position: fixed !important;
    right: 0 !important;
    top: 110px !important;
    transform: translateY(-50%) !important;
    z-index: 99999 !important;
}

/* Modals & Dialogs in dark mode */
html.dark [role="dialog"],
html.dark .modal-content,
html.dark [class*="max-w-lg"][class*="rounded-3xl"],
html.dark [class*="max-w-sm"][class*="rounded-2xl"] {
    background-color: #141721 !important;
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Form controls in dark mode */
html.dark input[type="text"],
html.dark input[type="email"],
html.dark input[type="password"],
html.dark input[type="number"],
html.dark input[type="tel"],
html.dark input[type="file"],
html.dark textarea,
html.dark select {
    background-color: #171a23 !important;
    border-color: #2b3040 !important;
    color: #f1f5f9 !important;
}

html.dark input::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}

/* Empty state containers in dark mode */
html.dark [style*="background:#f9fafb"],
html.dark [style*="background: #f9fafb"],
html.dark [style*="background:#f3f4f6"],
html.dark [style*="background: #f3f4f6"] {
    background: #141721 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}
