/* ===========================================
   MALHAR HUB v4.0 — QUANTUM 3D EXPERIENCE
   Ultra-high animations, glassmorphism, 3D
   =========================================== */

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

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

:root {
    --bg-primary: #050505;
    --bg-secondary: #0a0a0f;
    --surface: rgba(255,255,255,0.03);
    --surface-hover: rgba(255,255,255,0.06);
    --glass: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.08);
    --glass-strong: rgba(255,255,255,0.1);

    --text-primary: #ffffff;
    --text-secondary: rgba(255,255,255,0.6);
    --text-muted: rgba(255,255,255,0.35);

    --accent-1: #667eea;
    --accent-2: #764ba2;
    --accent-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --glow-primary: rgba(102, 126, 234, 0.3);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 100px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    cursor: none;
}

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

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---------- PRELOADER ---------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    text-align: center;
}

.preloader-orbit {
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    position: relative;
    margin: 0 auto 30px;
    animation: preloaderSpin 2s linear infinite;
}

.preloader-planet {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px var(--glow-primary), 0 0 40px var(--glow-primary);
}

@keyframes preloaderSpin {
    to { transform: rotate(360deg); }
}

.preloader-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.3em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.preloader-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.1em;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.4s var(--transition-spring), height 0.4s var(--transition-spring), border-color 0.3s ease, background 0.3s ease;
}

body.cursor-hover .cursor-dot {
    width: 0;
    height: 0;
}

body.cursor-hover .cursor-ring {
    width: 60px;
    height: 60px;
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.08);
}

/* ---------- THREE.JS CANVAS ---------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ---------- FLOATING ORBS ---------- */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 1;
    animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15), transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12), transparent 70%);
    bottom: 10%;
    right: -5%;
    animation-delay: -7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.1), transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -40px) scale(1.1); }
    50% { transform: translate(-30px, 60px) scale(0.9); }
    75% { transform: translate(40px, 20px) scale(1.05); }
}

/* ---------- NAVIGATION ---------- */
.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 5, 5, 0.5);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: all 0.5s var(--transition-smooth);
    transform: translateY(-100%);
    opacity: 0;
}

.nav-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.nav-bar.scrolled {
    padding: 14px 40px;
    background: rgba(5, 5, 5, 0.85);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: white;
}

.logo-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    cursor: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.nav-btn:hover {
    background: var(--glass-strong);
    color: var(--text-primary);
    transform: scale(1.05);
}

/* ---------- PROFILE DROPDOWN ---------- */
.profile-dropdown {
    position: fixed;
    top: 80px;
    right: 40px;
    z-index: 1001;
    width: 220px;
    background: rgba(20, 20, 30, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 14px;
    display: none;
    transform-origin: top right;
    animation: dropdownIn 0.3s var(--transition-spring);
}

.profile-dropdown.show {
    display: block;
}

@keyframes dropdownIn {
    from { opacity: 0; transform: scale(0.9) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.dropdown-btn {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.dropdown-btn:last-child { margin-bottom: 0; }
.dropdown-btn.primary { background: var(--accent-gradient); color: white; }
.dropdown-btn.primary:hover { filter: brightness(1.2); transform: scale(1.02); }
.dropdown-btn.secondary { background: var(--glass-strong); color: var(--text-primary); }
.dropdown-btn.secondary:hover { background: rgba(255,255,255,0.15); }

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    padding: 120px 40px 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(20px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #43e97b;
    animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 28px;
}

.title-line {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    opacity: 0;
    transform: translateY(60px) rotateX(15deg);
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 550px;
    margin: 0 auto 44px;
    opacity: 0;
    transform: translateY(30px);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--transition-spring), box-shadow 0.3s ease;
    cursor: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 10px 40px var(--glow-primary);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    cursor: none;
}

.btn-ghost:hover {
    border-color: rgba(255,255,255,0.2);
    color: var(--text-primary);
    background: var(--glass);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 4px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.08);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-1), transparent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.3; }
}

/* ---------- SEARCH SECTION ---------- */
.search-section {
    position: relative;
    z-index: 2;
    padding: 60px 0 20px;
}

.section-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.search-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--text-muted);
    z-index: 2;
    transition: color 0.3s ease;
}

#search {
    width: 100%;
    padding: 18px 24px 18px 58px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    z-index: 1;
}

#search::placeholder {
    color: var(--text-muted);
}

#search:focus {
    background: rgba(255,255,255,0.08);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1), 0 10px 40px rgba(0,0,0,0.3);
}

#search:focus ~ .search-glow {
    opacity: 1;
}

.search-glow {
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-pill);
    background: var(--accent-gradient);
    opacity: 0;
    z-index: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: none;
    transition: all 0.3s var(--transition-smooth);
}

.filter-chip:hover {
    background: var(--glass-strong);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

.filter-chip.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px var(--glow-primary);
}

.filter-chip i {
    font-size: 0.9rem;
}

/* ---------- CARDS SECTION ---------- */
.cards-section {
    position: relative;
    z-index: 2;
    padding: 40px 0 100px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ---------- HUB CARD ---------- */
.hub-card {
    position: relative;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    cursor: none;
    transform-style: flat;
    transition: transform 0.3s ease-out, box-shadow 0.3s ease;
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    isolation: isolate;
}

.hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.hub-card.card-featured {
    grid-column: span 2;
}

/* Card Background (Gradient) */
.card-bg {
    position: absolute;
    inset: 0;
    background: var(--card-gradient);
    opacity: 0.12;
    transition: opacity 0.5s ease;
}

.hub-card:hover .card-bg {
    opacity: 0.2;
}

/* Glassmorphism Layer */
.hub-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all 0.4s ease;
    z-index: 1;
}

.hub-card:hover::before {
    border-color: rgba(255,255,255,0.12);
    background: rgba(15, 15, 25, 0.5);
}

/* Shine Effect */
.card-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
        600px circle at var(--shine-x, 50%) var(--shine-y, 50%),
        rgba(255,255,255,0.06),
        transparent 40%
    );
}

.hub-card:hover .card-shine {
    opacity: 1;
}

/* Border Glow */
.card-border-glow {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hub-card:hover .card-border-glow {
    opacity: 1;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 0 30px -5px var(--glow-primary);
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 4;
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--glass-strong);
    font-size: 1.4rem;
    color: var(--text-primary);
    transition: all 0.4s var(--transition-spring);
}

.hub-card:hover .card-icon {
    transform: scale(1.1) rotateZ(-5deg);
    background: rgba(255,255,255,0.15);
}

/* Status Badges */
.card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.card-status.online {
    background: rgba(67, 233, 123, 0.12);
    color: #43e97b;
}

.card-status.soon {
    background: rgba(254, 225, 64, 0.12);
    color: #fee140;
}

.card-status.maintenance {
    background: rgba(255, 107, 107, 0.12);
    color: #ff6b6b;
}

.card-status i { font-size: 8px; }

.hub-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.hub-card:hover h3 {
    transform: translateX(4px);
}

.hub-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 24px;
}

.card-tag {
    font-size: 0.75rem;
    padding: 5px 14px;
    background: var(--glass);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card-arrow {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    transition: all 0.4s var(--transition-spring);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.hub-card:hover .card-arrow {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateX(4px) scale(1.1);
    box-shadow: 0 4px 20px var(--glow-primary);
}

.hub-card:hover .card-arrow i {
    animation: arrowSlide 0.6s ease forwards;
}

@keyframes arrowSlide {
    0% { transform: translateX(0); }
    50% { transform: translateX(8px); opacity: 0; }
    51% { transform: translateX(-8px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ---------- PAGE TRANSITION ---------- */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    pointer-events: none;
}

.transition-slice {
    flex: 1;
    background: var(--bg-primary);
    transform: scaleY(0);
    transform-origin: bottom;
}

/* ---------- FOOTER ---------- */
.footer {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-brand i {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
}

.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-version {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ---------- BACK BUTTON (Subpages) ---------- */
.back-btn-top {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(15, 15, 25, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    cursor: none;
    transition: all 0.3s ease;
}

.back-btn-top:hover {
    background: rgba(30, 30, 50, 0.9);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.15);
    transform: translateX(-4px);
}

/* ---------- SUBPAGE HERO ---------- */
.subpage-hero {
    position: relative;
    z-index: 2;
    padding: 140px 40px 60px;
    text-align: center;
}

.subpage-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subpage-hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ---------- SUBPAGE CARDS ---------- */
.subpage-grid {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 40px 100px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hub-card.card-featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 24px 60px;
    }

    .title-line {
        font-size: clamp(3rem, 12vw, 5rem);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        gap: 24px;
    }

    .section-container {
        padding: 0 20px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hub-card.card-featured {
        grid-column: span 1;
    }

    .nav-bar {
        padding: 16px 20px;
    }

    .cursor-dot, .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }

    .hub-card, .btn-primary, .btn-ghost, .filter-chip, .nav-btn, .back-btn-top {
        cursor: pointer;
    }

    .subpage-hero {
        padding: 120px 20px 40px;
    }

    .subpage-grid {
        padding: 30px 20px 80px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .card-content {
        padding: 24px;
    }
}
