/* ============================================
   LearnHub — Premium SaaS Design System
   Inspired by Linear, Stripe, Vercel, Framer
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg-0: #070B14;
    --bg-1: #0A1020;
    --bg-2: #111827;
    --bg-3: #172033;
    --surface: #1A2338;
    --surface-hover: #202B45;
    --surface-light: #253049;
    --border: rgba(255,255,255,.06);
    --border-hover: rgba(255,255,255,.12);
    --text-1: #FFFFFF;
    --text-2: #E2E8F0;
    --text-3: #CBD5E1;
    --text-4: #94A3B8;
    --primary: #6366F1;
    --primary-light: #818CF8;
    --accent: #22D3EE;
    --accent2: #06B6D4;
    --purple: #A855F7;
    --green: #34D399;
    --orange: #F59E0B;
    --red: #EF4444;
    --grad-primary: linear-gradient(135deg,#4F46E5,#6366F1 30%,#8B5CF6 70%,#A855F7);
    --grad-ai: linear-gradient(135deg,#00D4FF,#3B82F6 50%,#8B5CF6);
    --grad-accent: linear-gradient(135deg,#22D3EE,#06B6D4);
    --ease: cubic-bezier(.22,1,.36,1);
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 18px;
    --transition: .3s var(--ease);
}

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

body {
    background: var(--bg-0);
    font-family: 'Inter', sans-serif;
    color: var(--text-2);
    min-height: 100vh;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── Aurora Background ─── */
.aurora-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-bg .orb {
    position: absolute; border-radius: 50%; filter: blur(120px);
    animation: orbFloat 20s ease-in-out infinite alternate;
}
.aurora-bg .orb-1 { width: 600px; height: 600px; top: -20%; left: -10%; background: rgba(99,102,241,.12); animation-duration: 25s; }
.aurora-bg .orb-2 { width: 500px; height: 500px; top: 50%; right: -15%; background: rgba(168,85,247,.08); animation-duration: 30s; animation-delay: -5s; }
.aurora-bg .orb-3 { width: 400px; height: 400px; bottom: -10%; left: 30%; background: rgba(0,212,255,.06); animation-duration: 22s; animation-delay: -10s; }
@keyframes orbFloat {
    0% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-40px) scale(1.05); }
    66% { transform: translate(-20px,30px) scale(.95); }
    100% { transform: translate(10px,-10px) scale(1.02); }
}

/* ─── Navbar ─── */
.navbar {
    background: rgba(7,11,20,.8) !important;
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border) !important;
    z-index: 1050;
    padding: .5rem 0;
}
.navbar::after, .navbar::before { display: none !important; }
.navbar-collapse { border: none !important; }
.navbar-toggler { border: none !important; }
.navbar-brand {
    font-size: 1.25rem; font-weight: 800; letter-spacing: .5px;
    background: var(--grad-ai); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.navbar .nav-link {
    color: var(--text-3) !important; font-weight: 500; font-size: .88rem;
    padding: .5rem .85rem; border-radius: 8px; transition: var(--transition); position: relative;
}
.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--text-1) !important; background: rgba(255,255,255,.06);
}
.navbar .form-control {
    background: rgba(255,255,255,.05) !important; border: 1px solid var(--border) !important;
    color: var(--text-2); border-radius: 8px !important; padding: .5rem 1rem; font-size: .88rem;
    transition: var(--transition);
}
.navbar .form-control::placeholder { color: var(--text-4); }
.navbar .form-control:focus {
    background: rgba(255,255,255,.08) !important; border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15); outline: none;
}
.navbar .btn-download { border-radius: 8px; }

/* ─── Dropdown ─── */
.navbar .dropdown-menu {
    background: var(--surface) !important; border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important; padding: .5rem !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: dropIn .25s var(--ease);
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.navbar .dropdown-item {
    color: var(--text-3) !important; border-radius: 6px; padding: .35rem .8rem; font-size: .82rem; transition: var(--transition);
}
.navbar .dropdown-item:hover { background: rgba(99,102,241,.12) !important; color: var(--primary-light) !important; }
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: -1px; }
@media (max-width: 991px) { .dropdown-submenu > .dropdown-menu { position: static; margin-left: 1rem; } }

/* ─── Hero ─── */
.hero-new {
    background: linear-gradient(160deg,var(--bg-0) 0%,var(--bg-1) 30%,var(--bg-2) 60%,var(--bg-0) 100%);
    padding: 100px 0 80px; position: relative; overflow: hidden; z-index: 1;
}
.hero-new::before {
    content: ''; position: absolute; top: -200px; right: -100px; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
    border-radius: 50%; animation: pulseGlow 8s ease-in-out infinite alternate;
}
.hero-new::after {
    content: ''; position: absolute; bottom: -200px; left: -100px; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,.06) 0%, transparent 70%);
    border-radius: 50%; animation: pulseGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes pulseGlow { from { transform: scale(1); opacity: .5; } to { transform: scale(1.15); opacity: 1; } }

.hero-title {
    font-size: 3.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
    color: var(--text-1); margin-bottom: 1.2rem; animation: fadeUp .7s var(--ease) both;
}
.hero-title .accent { background: var(--grad-ai); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.1rem; color: var(--text-3); max-width: 480px; line-height: 1.7; animation: fadeUp .7s var(--ease) .1s both; }
.hero-search { margin-top: 2rem; animation: fadeUp .7s var(--ease) .2s both; }
.hero-search .input-group {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.3); border: 1px solid var(--border);
}
.hero-search .input-group:focus-within { border-color: var(--primary); box-shadow: 0 4px 25px rgba(0,0,0,.3), 0 0 0 3px rgba(99,102,241,.15); }
.hero-search .input-group-text { background: var(--surface) !important; border: none !important; color: var(--text-4); }
.hero-search .form-control { background: var(--surface) !important; border: none !important; color: var(--text-2); font-size: 1rem; padding: .9rem .5rem; }
.hero-search .form-control::placeholder { color: var(--text-4); }
.hero-search .form-control:focus { box-shadow: none; outline: none; }
.hero-search .btn {
    background: var(--grad-primary); color: #fff; border: none; padding: 0 2rem; font-weight: 700; font-size: 1rem; transition: var(--transition);
}
.hero-search .btn:hover { box-shadow: 0 0 30px rgba(99,102,241,.4); transform: scale(1.02); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Hero Stats */
.hero-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-stat-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 16px; text-align: center; transition: var(--transition);
}
.hero-stat-card:hover {
    border-color: var(--border-hover); box-shadow: 0 0 20px rgba(99,102,241,.15); transform: translateY(-3px);
}
.hero-stat-card i { font-size: 1.5rem; background: var(--grad-ai); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; display: block; }
.hero-stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text-1); line-height: 1; }
.hero-stat-label { display: block; font-size: .78rem; color: var(--text-4); margin-top: 4px; }
.min-vh-50 { min-height: 380px; }

/* ─── Section Titles ─── */
.section-title { font-weight: 700; font-size: 1.35rem; color: var(--text-1); position: relative; padding-bottom: 12px; margin-bottom: 24px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--grad-primary); border-radius: 2px; }
.section-title.text-center::after { left: 50%; transform: translateX(-50%); }
.section-title i { color: var(--primary-light); }

/* ─── Document Cards ─── */
.doc-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    overflow: hidden; transition: all .35s var(--ease); height: 100%;
}
.doc-card:hover {
    border-color: rgba(99,102,241,.3); box-shadow: 0 0 30px rgba(99,102,241,.12), 0 10px 40px rgba(0,0,0,.25);
    transform: translateY(-6px);
}
.doc-card .card-img-top { width: 100%; height: 175px; object-fit: cover; transition: transform .4s var(--ease); }
.doc-card:hover .card-img-top { transform: scale(1.05); }
.doc-card .card-body { padding: 1.2rem; }
.doc-card .card-title {
    font-weight: 600; font-size: .9rem; color: var(--text-1); line-height: 1.4;
    min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doc-card .card-title a { color: var(--text-1); transition: color .2s; }
.doc-card .card-title a:hover { color: var(--primary-light); }
.doc-card .card-text { color: var(--text-4); font-size: .82rem; min-height: 2.2em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card .category-badge { font-size: .72rem; color: var(--text-4); margin-bottom: .4rem; display: inline-block; }

/* ─── Top Downloaded cards ─── */
.card h6 a { color: var(--text-1) !important; text-decoration: none !important; }
.card h6 a:hover { color: var(--primary-light) !important; }

/* ─── Buttons ─── */
.btn-download {
    background: var(--grad-primary); color: #fff; font-weight: 600; border: none;
    border-radius: var(--radius-sm); padding: 6px 18px; font-size: .85rem; transition: var(--transition);
    box-shadow: 0 0 20px rgba(99,102,241,.25), 0 0 50px rgba(139,92,246,.15);
}
.btn-download:hover {
    box-shadow: 0 0 30px rgba(99,102,241,.35), 0 0 80px rgba(139,92,246,.2);
    transform: translateY(-2px) scale(1.03); color: #fff;
}
.btn-outline-accent {
    background: transparent; color: var(--accent); border: 1px solid rgba(34,211,238,.25);
    border-radius: var(--radius-sm); padding: 8px 20px; font-weight: 600; font-size: .85rem; transition: var(--transition);
}
.btn-outline-accent:hover { background: rgba(34,211,238,.08); border-color: var(--accent); box-shadow: 0 0 20px rgba(34,211,238,.15); color: var(--accent); }

/* ─── Rank Badge ─── */
.rank-badge { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .95rem; flex-shrink: 0; }
.rank-1 { background: var(--grad-ai); color: #fff; }
.rank-2 { background: var(--grad-primary); color: #fff; }
.rank-3 { background: linear-gradient(135deg,#F59E0B,#D97706); color: #fff; }
.rank-4, .rank-5 { background: var(--surface); color: var(--text-4); border: 1px solid var(--border); }

/* ─── Feature Cards ─── */
.feature-icon { width: 64px; height: 64px; border-radius: 16px; background: rgba(99,102,241,.1); border: 1px solid rgba(99,102,241,.15); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary-light); transition: var(--transition); }
.feature-icon:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 8px 25px rgba(99,102,241,.2); }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; transition: var(--transition); }
.feature-card:hover { border-color: rgba(99,102,241,.3); box-shadow: 0 0 30px rgba(99,102,241,.12); transform: translateY(-4px); }
.feature-card h5 { color: var(--text-1); font-weight: 600; margin-top: 1rem; }
.feature-card p { color: var(--text-4); font-size: .88rem; line-height: 1.6; }

/* ─── Sidebar ─── */
.sidebar .card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.sidebar .card-header { background: rgba(99,102,241,.06) !important; border-bottom: 1px solid var(--border); color: var(--text-1); font-size: .9rem; }
.sidebar .list-group-item { background: transparent; border-color: var(--border); color: var(--text-3); transition: var(--transition); border-left: 0; border-right: 0; }
.sidebar .list-group-item:hover { background: rgba(99,102,241,.06); color: var(--text-1); }
.sidebar .list-group-item.active { background: rgba(99,102,241,.1) !important; color: var(--primary-light) !important; }
.sidebar-toggle { color: var(--text-4) !important; }
.sidebar-toggle:hover { color: var(--primary-light) !important; }
.sub-list a { color: var(--text-4) !important; transition: var(--transition); }
.sub-list a:hover { color: var(--primary-light) !important; background: rgba(99,102,241,.06); }

/* ─── Scroll to Top ─── */
.scroll-top-btn {
    position: fixed; bottom: 30px; right: 30px; width: 46px; height: 46px; border-radius: 12px;
    background: var(--grad-primary); color: #fff; border: none; font-size: 1rem; cursor: pointer;
    box-shadow: 0 0 20px rgba(99,102,241,.3); transition: var(--transition); z-index: 999;
    display: none; align-items: center; justify-content: center;
}
.scroll-top-btn:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(99,102,241,.5); }
.scroll-top-btn.visible { display: flex; }

/* ─── Footer ─── */
.footer-section { background: var(--bg-1); border-top: 1px solid var(--border); padding: 50px 0 25px; margin-top: 40px; position: relative; z-index: 1; }
.footer-section h5 { font-weight: 600; font-size: .95rem; color: var(--text-1); }
.footer-section a { color: var(--text-4); font-size: .88rem; transition: var(--transition); }
.footer-section a:hover { color: var(--primary-light); }
.footer-section .footer-brand { font-size: 1.4rem; font-weight: 800; background: var(--grad-ai); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: .8rem; display: inline-block; }
.footer-section .footer-desc { font-size: .88rem; color: var(--text-4); line-height: 1.7; }
.footer-section .footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-4); transition: var(--transition); }
.footer-section .footer-social a:hover { background: rgba(99,102,241,.15); border-color: var(--primary); color: var(--primary-light); transform: translateY(-2px); }
.footer-section .footer-bottom { border-top: 1px solid var(--border); margin-top: 30px; padding-top: 20px; }

/* ─── Search Results ─── */
.search-result-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 12px; transition: var(--transition); }
.search-result-item:hover { border-color: rgba(99,102,241,.3); box-shadow: 0 0 20px rgba(99,102,241,.1); transform: translateY(-2px); }

/* ─── Document Detail ─── */
.doc-detail-thumb { border-radius: var(--radius-lg); max-height: 400px; object-fit: cover; width: 100%; }
.download-source-btn { border-radius: var(--radius-sm); font-weight: 600; padding: 8px 24px; transition: var(--transition); }
.download-source-btn:hover { transform: translateY(-2px); }

/* ─── Pagination ─── */
.pagination .page-link { color: var(--text-3); background: var(--surface); border-color: var(--border); border-radius: var(--radius-sm) !important; margin: 0 3px; font-size: .88rem; transition: var(--transition); }
.pagination .page-link:hover { background: rgba(99,102,241,.1); border-color: var(--primary); color: var(--primary-light); }
.pagination .page-item.active .page-link { background: var(--grad-primary); border-color: var(--primary); box-shadow: 0 3px 12px rgba(99,102,241,.3); }

/* ─── Modal ─── */
.modal-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.modal-header { background: var(--grad-primary); color: #fff; border: none; padding: 1rem 1.5rem; }
.modal-header .btn-close { filter: brightness(0) invert(1); }
.modal-footer { border-top: 1px solid var(--border) !important; background: var(--surface); }

/* ─── About ─── */
.about-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }

/* ─── Scroll Related ─── */
.related-scroll { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.related-scroll::-webkit-scrollbar { height: 4px; }
.related-scroll::-webkit-scrollbar-thumb { background: rgba(99,102,241,.3); border-radius: 2px; }
.related-scroll::-webkit-scrollbar-track { background: transparent; }
.related-scroll .card { scroll-snap-align: start; transition: var(--transition); }
.related-scroll .card:hover { transform: translateY(-3px); }

/* ─── Animations ─── */
.fade-up { opacity: 0; transform: translateY(25px); animation: fadeUp .5s var(--ease) forwards; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .hero-new { padding: 60px 0 50px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: .95rem; }
    .doc-card .card-img-top { height: 150px; }
    .scroll-top-btn { bottom: 20px; right: 20px; }
}
@media (max-width: 576px) {
    .navbar-brand { font-size: 1.1rem; }
    .hero-title { font-size: 1.7rem; }
}

/* ─── Form Inputs ─── */
.form-control, input[type="text"], input[type="email"], textarea {
    background: var(--surface) !important; border: 1px solid var(--border) !important;
    color: var(--text-2) !important; border-radius: var(--radius-sm); padding: .75rem 1rem;
}
.form-control:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
    border-color: var(--primary) !important; box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important; outline: none !important;
}
input::placeholder, textarea::placeholder, .form-control::placeholder { color: var(--text-4) !important; opacity: 1; }

/* ─── Skeleton Loading ─── */
.skeleton { background: linear-gradient(90deg,var(--surface) 25%,var(--surface-hover) 50%,var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* ─── Featured Carousel ─── */
.featured-carousel-wrapper { overflow: hidden; }
.featured-carousel { transition: transform .5s var(--ease); }

/* ─── Title colors ─── */
.doc-card .card-title { color: var(--text-1) !important; }
.doc-card .card-title a { color: var(--text-1) !important; }
.doc-card .card-text { color: var(--text-3) !important; }
.card h6 a { color: var(--text-1) !important; text-decoration: none !important; }
.card h6 a:hover { color: var(--primary-light) !important; }
.category-badge { color: var(--text-3) !important; }

/* ─── Custom Dropdown ─── */
.dropdown-menu-dark-custom {
    background: var(--surface) !important; border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important; padding: .3rem !important;
    box-shadow: 0 15px 40px rgba(0,0,0,.4); min-width: auto; width: fit-content;
}
.dropdown-item-custom {
    color: var(--text-3); padding: .4rem .8rem; font-size: .82rem; border-radius: 6px;
    display: flex; align-items: center; transition: var(--transition); cursor: pointer; white-space: nowrap;
}
.dropdown-item-custom:hover { background: rgba(99,102,241,.12); color: var(--primary-light); }
.dropdown-item-custom i:first-child { color: var(--primary-light); font-size: .75rem; width: 16px; }
.dropdown-submenu-custom { position: relative; }
.submenu-custom {
    display: none; position: absolute; left: 100%; top: 0;
    background: var(--surface) !important; border: 1px solid var(--border) !important;
    border-radius: var(--radius-sm) !important; padding: .4rem !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.4); min-width: 160px; list-style: none; margin: 0; z-index: 1060;
}
.submenu-custom.show { display: block; animation: dropIn .2s var(--ease); }

/* ─── Splash Screen ─── */
.splash-screen {
    position: fixed; inset: 0; z-index: 9999;
    background: #0B1220;
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, transform .6s ease;
}
.splash-screen.hide {
    opacity: 0; transform: scale(1.05); pointer-events: none;
}
.splash-content {
    display: flex; align-items: center; gap: 28px; position: relative;
}

/* Splash book */
.splash-book { position: relative; width: 80px; height: 72px; }
.splash-book-svg { width: 80px; height: 72px; }
.splash-draw-left {
    animation: splashDraw .8s ease .3s forwards;
}
.splash-draw-right {
    animation: splashDraw .8s ease .5s forwards;
}
.splash-page {
    animation: splashReveal .5s ease 1.1s forwards;
}
.splash-page:nth-child(n+5) { animation-delay: 1.5s; }
.splash-page:nth-child(n+8) { animation-delay: 1.6s; }
.splash-book-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 120px; height: 120px;
    background: radial-gradient(circle, rgba(56,217,255,.25) 0%, transparent 70%);
    border-radius: 50%; opacity: 0;
    animation: splashGlow 1.5s ease-in-out 1.2s infinite alternate;
}

/* Splash particles */
.splash-particles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.splash-particles span {
    position: absolute; width: 4px; height: 4px;
    background: #38D9FF; border-radius: 50%; opacity: 0;
}
.splash-particles span:nth-child(1) { left: 20%; bottom: 50%; animation: sParticle 2s ease 1.8s infinite; --dx:-20px; --dy:-80px; }
.splash-particles span:nth-child(2) { left: 40%; bottom: 55%; animation: sParticle 2.2s ease 2s infinite; --dx:15px; --dy:-90px; }
.splash-particles span:nth-child(3) { left: 60%; bottom: 45%; animation: sParticle 1.8s ease 2.2s infinite; --dx:30px; --dy:-70px; }
.splash-particles span:nth-child(4) { left: 30%; bottom: 60%; animation: sParticle 2.4s ease 1.9s infinite; --dx:-10px; --dy:-100px; }
.splash-particles span:nth-child(5) { left: 50%; bottom: 48%; animation: sParticle 2s ease 2.4s infinite; --dx:25px; --dy:-85px; }
.splash-particles span:nth-child(6) { left: 35%; bottom: 52%; animation: sParticle 2.1s ease 2.1s infinite; --dx:-30px; --dy:-75px; }
.splash-particles span:nth-child(7) { left: 55%; bottom: 58%; animation: sParticle 1.9s ease 2.3s infinite; --dx:10px; --dy:-95px; }
.splash-particles span:nth-child(8) { left: 25%; bottom: 42%; animation: sParticle 2.3s ease 2.5s infinite; --dx:20px; --dy:-80px; }

/* Splash text */
.splash-text-wrap { position: relative; overflow: hidden; }
.splash-text {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 64px; font-weight: 800; letter-spacing: -1px;
    background: linear-gradient(135deg, #FFFFFF 0%, #E0E7FF 40%, #4F7DFF 80%, #38D9FF 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    opacity: 0; transform: translateX(-30px);
    animation: splashTextIn .8s cubic-bezier(.22,1,.36,1) 2.2s forwards;
}
.splash-sweep {
    position: absolute; top: 0; left: -120px; width: 80px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(56,217,255,.2), transparent);
    transform: skewX(-20deg); opacity: 0;
    animation: splashSweep 1.2s ease 3.2s forwards;
}

@keyframes splashDraw { to { stroke-dashoffset: 0; } }
@keyframes splashReveal { to { opacity: 1; } }
@keyframes splashGlow { from { opacity: .3; transform: translate(-50%,-50%) scale(1); } to { opacity: .8; transform: translate(-50%,-50%) scale(1.2); } }
@keyframes splashTextIn { to { opacity: 1; transform: translateX(0); } }
@keyframes splashSweep { from { left: -120px; opacity: 0; } 20% { opacity: 1; } to { left: 250px; opacity: 0; } }
@keyframes sParticle {
    0% { opacity: 0; transform: translate(0,0) scale(0); }
    15% { opacity: .8; transform: scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* ─── Noise Overlay ─── */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.02'/%3E%3C/svg%3E");
    background-repeat: repeat; opacity: .4;
}
