/* =========================================================
   BROPRO LEARNING HUB — UNIFIED ECOSYSTEM THEME
   A page-scoped visual layer shared with the main Hub identity.
   ========================================================= */

:root {
    color-scheme: light;
    --hub-emerald: #059669;
    --hub-emerald-bright: #10b981;
    --hub-amber: #d97706;
    --hub-amber-bright: #f59e0b;
    --hub-canvas: #f8fafc;
    --hub-surface: #ffffff;
    --hub-surface-raised: #f1f5f4;
    --hub-border: rgba(15, 23, 42, 0.1);
    --hub-border-strong: rgba(5, 150, 105, 0.28);
    --hub-text: #08110f;
    --hub-text-soft: #40514d;
    --hub-text-muted: #64748b;
    --hub-glass: rgba(255, 255, 255, 0.82);
    --hub-shadow: 0 22px 55px -36px rgba(15, 23, 42, 0.38);
    --primary-hue: 160;
    --primary: var(--hub-emerald);
    --primary-dark: #047857;
    --primary-light: rgba(5, 150, 105, 0.1);
    --secondary: var(--hub-amber);
    --accent: var(--hub-amber-bright);
    --primary-color: var(--hub-emerald);
    --bg-primary: var(--hub-canvas);
    --bg-secondary: #eef4f2;
    --bg-tertiary: #e5eeeb;
    --text-primary: var(--hub-text);
    --text-secondary: var(--hub-text-soft);
    --text-tertiary: var(--hub-text-muted);
    --border-color: var(--hub-border);
    --shadow-color: rgba(15, 23, 42, 0.12);
    --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 55%, #d97706 145%);
    --gradient-secondary: linear-gradient(135deg, #d97706 0%, #f59e0b 58%, #10b981 150%);
    --gradient-accent: linear-gradient(135deg, #0f766e, #14b8a6);
    --gradient-hero: linear-gradient(120deg, #059669 0%, #10b981 48%, #f59e0b 100%);
    --math-gradient: linear-gradient(135deg, #d97706, #f59e0b);
    --science-gradient: linear-gradient(135deg, #047857, #10b981);
    --geography-gradient: linear-gradient(135deg, #0f766e, #2dd4bf);
    --history-gradient: linear-gradient(135deg, #92400e, #d97706);
    --languages-gradient: linear-gradient(135deg, #be123c, #fb7185);
    --hindi-gradient: linear-gradient(135deg, #ea580c, #16a34a);
    --gk-gradient: linear-gradient(135deg, #0f766e, #f59e0b);
    --cs-gradient: linear-gradient(135deg, #0f766e, #059669);
    --leaderboard-gradient: linear-gradient(135deg, #ca8a04, #f59e0b);
    --board-prep-gradient: linear-gradient(135deg, #059669, #d97706);
}

[data-theme="dark"] {
    color-scheme: dark;
    --hub-emerald: #10b981;
    --hub-emerald-bright: #34d399;
    --hub-amber: #f59e0b;
    --hub-amber-bright: #fbbf24;
    --hub-canvas: #06090c;
    --hub-surface: #0b1216;
    --hub-surface-raised: #111b20;
    --hub-border: rgba(255, 255, 255, 0.085);
    --hub-border-strong: rgba(16, 185, 129, 0.32);
    --hub-text: #f8fafc;
    --hub-text-soft: #b7c4d6;
    --hub-text-muted: #8190a5;
    --hub-glass: rgba(7, 13, 16, 0.86);
    --hub-shadow: 0 26px 65px -38px rgba(0, 0, 0, 0.92);
    --primary: var(--hub-emerald);
    --primary-dark: #059669;
    --primary-light: rgba(16, 185, 129, 0.13);
    --secondary: var(--hub-amber);
    --accent: var(--hub-amber-bright);
    --primary-color: var(--hub-emerald);
    --bg-primary: var(--hub-canvas);
    --bg-secondary: #0a1115;
    --bg-tertiary: #111b20;
    --text-primary: var(--hub-text);
    --text-secondary: var(--hub-text-soft);
    --text-tertiary: var(--hub-text-muted);
    --border-color: var(--hub-border);
    --shadow-color: rgba(0, 0, 0, 0.55);
}

html {
    background: var(--hub-canvas);
    accent-color: var(--hub-emerald);
}

body[data-auth-theme="learn"] {
    min-height: 100dvh;
    background:
        radial-gradient(900px 520px at 72% 4%, rgba(16, 185, 129, 0.1), transparent 68%),
        radial-gradient(760px 500px at 10% 24%, rgba(245, 158, 11, 0.07), transparent 72%),
        var(--hub-canvas);
    color: var(--hub-text);
}

body[data-auth-theme="learn"] ::selection {
    color: #ffffff;
    background: rgba(5, 150, 105, 0.78);
}

body[data-auth-theme="learn"] :focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.34);
    outline-offset: 3px;
}

/* Atmospheric background — the same emerald/amber light used by the Hub. */
.background-animation {
    z-index: -1;
    opacity: 1;
}

.floating-shape {
    filter: blur(110px);
    opacity: 0.16;
    animation-duration: 28s;
}

.shape-1 {
    width: min(720px, 68vw);
    height: min(720px, 68vw);
    top: -260px;
    right: 5%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.9), transparent 68%);
}

.shape-2 {
    width: min(620px, 60vw);
    height: min(620px, 60vw);
    left: -260px;
    bottom: 14%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.66), transparent 68%);
}

.shape-3 {
    width: min(520px, 52vw);
    height: min(520px, 52vw);
    right: -160px;
    bottom: -140px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.72), transparent 70%);
}

[data-theme="light"] .floating-shape {
    opacity: 0.11;
}

/* Navigation */
.navbar {
    padding: 0.7rem 1.5rem;
    background: var(--hub-glass);
    border-bottom: 1px solid var(--hub-border);
    box-shadow: 0 12px 34px -28px rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(24px) saturate(145%);
    backdrop-filter: blur(24px) saturate(145%);
}

.navbar.scrolled {
    padding-block: 0.52rem;
    background: color-mix(in srgb, var(--hub-glass) 94%, var(--hub-canvas) 6%);
    box-shadow: 0 18px 42px -28px rgba(0, 0, 0, 0.82);
}

[data-theme="dark"] .navbar {
    background: rgba(6, 9, 12, 0.86);
}

.nav-container {
    max-width: 1500px;
}

.logo-3d-container {
    width: 48px;
    height: 48px;
}

.logo-avatar-wrapper {
    width: 42px;
    height: 42px;
    background: var(--hub-surface);
}

.logo-glow-ring {
    inset: -3px;
    background: conic-gradient(from 20deg, #059669, #34d399, #fbbf24, #d97706, #059669);
    filter: blur(2px);
    opacity: 0.64;
    animation-duration: 9s;
}

.logo-inner-ring {
    inset: -1px;
    background: conic-gradient(from 180deg, rgba(16, 185, 129, 0.92), rgba(245, 158, 11, 0.9), rgba(16, 185, 129, 0.92));
    animation-duration: 7s;
}

.logo-text-main,
.menu-brand-text {
    background: linear-gradient(100deg, #f59e0b 0 42%, #10b981 58% 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-badge-pro,
.menu-pro-badge {
    color: var(--hub-emerald-bright);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: none;
}

.nav-links {
    gap: 1.6rem;
}

.nav-link {
    color: var(--hub-text-soft);
    font-weight: 600;
}

.nav-links .nav-link[href="/"] {
    color: var(--hub-emerald-bright) !important;
}

.nav-link::after {
    background: linear-gradient(90deg, var(--hub-emerald), var(--hub-amber));
}

.nav-link:hover {
    color: var(--hub-text);
}

.auth-btn,
.theme-toggle,
.sound-toggle,
.mobile-menu-btn {
    min-width: 42px;
    min-height: 42px;
    border: 1px solid var(--hub-border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--hub-text);
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

[data-theme="light"] .auth-btn,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .sound-toggle,
[data-theme="light"] .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.74);
}

.auth-btn {
    padding: 0.55rem 1rem;
    border-color: rgba(16, 185, 129, 0.28);
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.18), rgba(245, 158, 11, 0.1));
}

.auth-btn:hover,
.theme-toggle:hover,
.sound-toggle:hover,
.mobile-menu-btn:hover {
    border-color: rgba(16, 185, 129, 0.48);
    background: rgba(16, 185, 129, 0.11);
    box-shadow: 0 12px 24px -18px rgba(16, 185, 129, 0.8);
}

/* Hero */
.hero {
    width: min(1500px, 100%);
    min-height: min(820px, 88dvh);
    padding: 126px clamp(1.25rem, 4vw, 3rem) 4.5rem;
    gap: clamp(2rem, 6vw, 6rem);
}

.hero-content {
    max-width: 710px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    color: var(--hub-amber-bright);
    background: rgba(245, 158, 11, 0.09);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ============================================
   PREMIUM GLOWING HERO BADGE
   Fluid Rotating Aurora Border + Breathing Ambient Aura
   ============================================ */
.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.52rem 1.45rem;
    font-size: 0.94rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    color: #fde047;
    border-radius: var(--radius-full);
    position: relative;
    z-index: 1;
    cursor: default;
    user-select: none;
    background: transparent;
    border: none;
    margin-bottom: var(--spacing-lg, 1.5rem);
    animation: heroBadgeGlowPulse 4s ease-in-out infinite;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Fluid Multi-Color Aurora Border Glow */
.hero-badge::before {
    content: '';
    position: absolute;
    top: -2.5px;
    left: -2.5px;
    right: -2.5px;
    bottom: -2.5px;
    background: linear-gradient(
        90deg,
        #f59e0b 0%,
        #10b981 20%,
        #06b6d4 40%,
        #6366f1 60%,
        #ec4899 80%,
        #f59e0b 100%
    );
    background-size: 300% 100%;
    border-radius: var(--radius-full);
    z-index: -2;
    animation: heroBadgeGlowRotate 4s linear infinite;
    filter: blur(5px);
    opacity: 0.92;
    will-change: background-position;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Inner Core Surface (Deep obsidian glass protecting crystal-clear readability) */
.hero-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.94);
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: var(--radius-full);
    z-index: -1;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-badge:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-badge:hover::before {
    opacity: 1;
    filter: blur(8px);
}

/* Keyframes for Rotating Gradient Border */
@keyframes heroBadgeGlowRotate {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

/* Keyframes for Multi-Stage Breathing Ambient Aura */
@keyframes heroBadgeGlowPulse {
    0%, 100% {
        box-shadow:
            0 0 16px rgba(245, 158, 11, 0.45),
            0 0 32px rgba(245, 158, 11, 0.22),
            0 0 50px rgba(245, 158, 11, 0.08);
    }
    25% {
        box-shadow:
            0 0 16px rgba(16, 185, 129, 0.45),
            0 0 32px rgba(16, 185, 129, 0.22),
            0 0 50px rgba(16, 185, 129, 0.08);
    }
    50% {
        box-shadow:
            0 0 16px rgba(6, 182, 212, 0.45),
            0 0 32px rgba(6, 182, 212, 0.22),
            0 0 50px rgba(6, 182, 212, 0.08);
    }
    75% {
        box-shadow:
            0 0 16px rgba(99, 102, 241, 0.45),
            0 0 32px rgba(99, 102, 241, 0.22),
            0 0 50px rgba(236, 72, 153, 0.08);
    }
}

/* Theme Adaptive Variations */
[data-theme="light"] .hero-badge {
    color: #b45309;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero-badge::before {
    opacity: 0.75;
    filter: blur(4px);
}

[data-theme="light"] .hero-badge::after {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

[data-theme="dark"] .hero-badge {
    color: #fde047;
    text-shadow: 0 0 14px rgba(251, 191, 36, 0.55);
}

[data-theme="dark"] .hero-badge::after {
    background: rgba(11, 15, 25, 0.94);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.hero-title {
    max-width: 760px;
    color: var(--hub-text);
    font-size: clamp(3rem, 5.5vw, 5.35rem);
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.gradient-text,
.gradient-text-alt {
    background: linear-gradient(108deg, var(--hub-emerald-bright), #2dd4bf 54%, var(--hub-amber-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    max-width: 610px;
    color: var(--hub-text-soft);
    font-size: clamp(1.05rem, 1.45vw, 1.25rem);
    line-height: 1.62;
}

.btn-primary {
    background: linear-gradient(115deg, #047857, #10b981 58%, #d97706 150%);
    box-shadow: 0 16px 34px -18px rgba(16, 185, 129, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 20px 42px -18px rgba(16, 185, 129, 0.95);
}

.hero-stats {
    width: fit-content;
    padding: 0.8rem 1rem;
    border: 1px solid var(--hub-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

[data-theme="light"] .hero-stats {
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--hub-shadow);
}

.stat-number {
    background: linear-gradient(100deg, var(--hub-emerald-bright), var(--hub-amber-bright));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.orbit-container {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 64%);
    filter: drop-shadow(0 24px 54px rgba(16, 185, 129, 0.13));
}

.center-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(16, 185, 129, 0.08)), var(--hub-surface);
    box-shadow: var(--hub-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.orbit {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 0 28px rgba(16, 185, 129, 0.022), 0 0 0 58px rgba(245, 158, 11, 0.018);
    animation-duration: 32s;
}

.orbit-item {
    animation-duration: 32s;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

/* Shared sections */
.section-container {
    max-width: 1500px;
    padding: clamp(3.5rem, 7vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-header {
    max-width: 720px;
    margin: 0 auto clamp(2rem, 4vw, 3.25rem);
}

.section-title {
    color: var(--hub-text);
    font-weight: 780;
    letter-spacing: -0.035em;
}

.section-subtitle {
    color: var(--hub-text-soft);
}

.activity-ticker-section {
    border-block: 1px solid var(--hub-border);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.028), rgba(245, 158, 11, 0.018));
}

[data-theme="dark"] .activity-ticker-section {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.035), rgba(10, 17, 21, 0.84));
}

.ticker-title {
    color: var(--hub-text-soft);
}

.ticker-item,
[data-theme="light"] .ticker-item {
    color: var(--hub-text);
    background: var(--hub-glass);
    border-color: var(--hub-border);
    box-shadow: 0 10px 28px -24px rgba(0, 0, 0, 0.7);
}

.ticker-item:hover {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 15px 32px -22px rgba(16, 185, 129, 0.48);
}

.ticker-avatar {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.28);
}

.ticker-level {
    color: var(--hub-amber-bright);
    background: rgba(245, 158, 11, 0.11);
    border-color: rgba(245, 158, 11, 0.24);
}

.ticker-fade-left,
[data-theme="dark"] .ticker-fade-left {
    background: linear-gradient(90deg, var(--hub-canvas), transparent);
}

.ticker-fade-right,
[data-theme="dark"] .ticker-fade-right {
    background: linear-gradient(270deg, var(--hub-canvas), transparent);
}

/* Subject catalogue */
.subjects-section {
    background: var(--bg-secondary);
    background: linear-gradient(180deg, var(--bg-secondary), color-mix(in srgb, var(--hub-canvas) 94%, var(--hub-emerald) 6%));
    border-bottom: 1px solid var(--hub-border);
}

.subjects-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.subject-card {
    min-height: 350px;
    border: 1px solid var(--hub-border);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(16, 185, 129, 0.045), transparent 42%),
        var(--hub-surface);
    box-shadow: var(--hub-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    isolation: isolate;
    transform: translateZ(0);
    transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1), border-color 220ms ease, box-shadow 360ms ease;
}

.subject-card:hover {
    transform: translateY(-6px) scale(1.008);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 30px 64px -40px rgba(16, 185, 129, 0.7), 0 22px 44px -34px rgba(0, 0, 0, 0.8);
}

.card-glow {
    height: 2px;
    opacity: 0.68;
}

.subject-card:hover .card-glow {
    opacity: 1;
    filter: drop-shadow(0 0 7px currentColor);
}

.card-content {
    height: 100%;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
}

.card-icon-wrapper {
    width: 54px;
    height: 54px;
    margin-bottom: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 13px 24px -18px rgba(0, 0, 0, 0.75);
}

.card-icon {
    font-size: 1.65rem;
}

.card-title {
    color: var(--hub-text);
    font-size: 1.24rem;
    letter-spacing: -0.025em;
}

.card-description {
    color: var(--hub-text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.topic-tag {
    color: var(--hub-text-soft);
    background: rgba(16, 185, 129, 0.055);
    border: 1px solid var(--hub-border);
}

.card-footer {
    margin-top: auto;
    border-color: var(--hub-border);
}

.card-stats {
    color: var(--hub-text-muted);
}

.card-btn {
    min-height: 38px;
    background: linear-gradient(110deg, #047857, #10b981);
    box-shadow: 0 10px 20px -16px rgba(16, 185, 129, 0.9);
}

.card-badge {
    color: #1c1102;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 9px 20px -14px rgba(245, 158, 11, 0.9);
}

/* Competitive corner */
.exams-section {
    background: var(--hub-canvas);
}

.exams-section::before {
    background: linear-gradient(90deg, transparent, var(--hub-amber), var(--hub-emerald), transparent);
}

.exams-badge {
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #059669) !important;
}

.competitive-corner-card,
[data-theme="light"] .competitive-corner-card {
    background: var(--hub-surface);
    background:
        radial-gradient(500px circle at 50% 0%, rgba(16, 185, 129, 0.13), transparent 55%),
        linear-gradient(145deg, color-mix(in srgb, var(--hub-surface) 96%, var(--hub-emerald) 4%), var(--hub-surface-raised));
    border-color: var(--hub-border-strong);
    box-shadow: var(--hub-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.competitive-corner-card:hover {
    border-color: rgba(245, 158, 11, 0.48);
    box-shadow: 0 36px 76px -44px rgba(16, 185, 129, 0.72), 0 24px 50px -40px rgba(245, 158, 11, 0.65);
}

.competitive-corner-card::after {
    background: radial-gradient(ellipse at center bottom, rgba(245, 158, 11, 0.12), transparent 70%);
}

.icon-outer-ring {
    border-color: rgba(245, 158, 11, 0.34);
}

.icon-inner-ring {
    border-color: rgba(16, 185, 129, 0.42);
}

.icon-core,
[data-theme="light"] .icon-core {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(245, 158, 11, 0.08)), var(--hub-surface);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.corner-title,
.corner-stat .stat-value {
    color: var(--hub-text);
}

.corner-subtitle,
.corner-stat .stat-label {
    color: var(--hub-text-soft);
}

.corner-cta {
    background: linear-gradient(115deg, #047857, #10b981 60%, #d97706 150%);
}

/* Features and footer */
.features-section {
    background: var(--hub-canvas);
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1rem;
}

.feature-card {
    background: var(--hub-surface);
    border-color: var(--hub-border);
    border-radius: 20px;
    box-shadow: 0 18px 40px -34px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.feature-card:hover {
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 26px 52px -38px rgba(16, 185, 129, 0.65);
}

.feature-title {
    color: var(--hub-text);
}

.feature-description {
    color: var(--hub-text-soft);
}

.footer {
    color: var(--hub-text-soft);
    background: #05080a;
    background: color-mix(in srgb, var(--hub-canvas) 90%, #000000 10%);
    border-color: var(--hub-border);
}

[data-theme="light"] .footer {
    background: #eef4f2;
}

.nps-tag {
    background: linear-gradient(100deg, var(--hub-amber), var(--hub-emerald));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links a {
    color: var(--hub-emerald-bright);
}

.footer-links a:hover {
    color: var(--hub-amber-bright);
}

.footer-email-link,
.footer-whatsapp-link {
    color: var(--hub-text);
    background: rgba(16, 185, 129, 0.07);
    border-color: rgba(16, 185, 129, 0.22);
}

.footer-email-link:hover,
.footer-whatsapp-link:hover {
    color: var(--hub-text);
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: 0 12px 26px -20px rgba(16, 185, 129, 0.75);
}

.email-icon,
.whatsapp-icon {
    color: var(--hub-emerald-bright);
}

/* Mobile application shell */
.mobile-menu {
    height: 100dvh;
    color: var(--hub-text);
    background: var(--hub-surface);
    border-left: 1px solid var(--hub-border);
    box-shadow: -28px 0 70px -35px rgba(0, 0, 0, 0.72);
    padding-top: max(1.5rem, env(safe-area-inset-top, 0px));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

.mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.58);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.mobile-link {
    color: var(--hub-text);
    border-radius: 12px;
}

.mobile-link:hover {
    color: var(--hub-emerald-bright);
}

@media (max-width: 968px) {
    .hero {
        min-height: auto;
        padding-top: 112px;
    }

    .hero-stats {
        margin-inline: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0.75rem !important;
        background: var(--hub-glass) !important;
        border-color: var(--hub-border) !important;
    }

    [data-theme="dark"] .navbar {
        background: rgba(6, 9, 12, 0.92) !important;
    }

    .hero {
        min-height: auto;
        padding: 104px 1rem 3.2rem !important;
    }

    .hero-title {
        font-size: clamp(2.25rem, 11vw, 3.35rem) !important;
        line-height: 1.03;
    }

    .hero-subtitle {
        color: var(--hub-text-soft);
        font-size: 1rem !important;
    }

    .hero-stats {
        width: 100%;
        max-width: 420px;
        justify-content: space-around;
        gap: 0.55rem !important;
    }

    .stat-item {
        min-width: 0;
    }

    .activity-ticker-section {
        padding: 1.25rem 0;
    }

    .ticker-header {
        flex-direction: row;
    }

    .section-container {
        padding: 3.4rem 1rem !important;
    }

    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    }

    .subjects-grid,
    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .subject-card {
        min-height: 0;
        border-radius: 18px !important;
    }

    .card-content {
        padding: 1.1rem !important;
    }

    .card-footer {
        flex-direction: row;
        align-items: center;
    }

    .card-btn {
        width: auto;
        min-width: 92px;
        padding: 0.65rem 0.85rem;
    }

    .competitive-corner-card {
        margin: 0;
    }

    .feature-card {
        padding: 1.35rem !important;
    }
}

@media (max-width: 430px) {
    .logo-text-main {
        font-size: 1.05rem !important;
    }

    .hero-badge {
        font-size: 0.76rem;
    }

    .hero-title {
        font-size: clamp(2.1rem, 11vw, 2.7rem) !important;
    }

    .hero-stats {
        padding: 0.7rem 0.45rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    .card-stats {
        gap: 0.55rem;
        font-size: 0.72rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-shape,
    .logo-glow-ring,
    .logo-inner-ring,
    .orbit,
    .orbit-item,
    .ticker-track,
    .premium-heart,
    .subject-card,
    .feature-card,
    .competitive-corner-card {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: more) {
    .navbar,
    .hero-stats,
    .subject-card,
    .feature-card,
    .competitive-corner-card,
    .ticker-item {
        border-color: currentColor;
    }
}
