/* 
   theme: Minimalist Academic
   fonts: Inter (Body), Merriweather (Headings)
   colors: 
     - Primary: #0F172A (Deep Navy)
     - Accent: #3B82F6 (Scientific Blue)
     - Success: #10B981 (Emerald)
     - Background: #F8FAFC (Clean Slate)
     - Text: #334155 (Slate Gray)
*/

:root {
    --primary-color: #0F172A;
    --accent-color: #3B82F6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --bg-color: #F8FAFC;
    --bg-subtle: #F1F5F9;
    --bg-dark: #00040e;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --text-light: #F1F5F9;
    --border-color: rgba(226, 232, 240, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);

    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

    --container-width: 1200px;

    /* Dashboard Theme Tokens */
    --db-bg: #0B0F19;
    --db-card: #151B28;
    --db-border: rgba(255, 255, 255, 0.1);
}

body.dashboard-theme {
    background-color: var(--db-bg);
    color: #E2E8F0;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid var(--db-border);
    border-radius: 20px;
}

.dashboard-theme .nav-links a:not(.btn) {
    color: #94A3B8;
}

.dashboard-theme .nav-links a:not(.btn):hover {
    color: white;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.center {
    text-align: center;
}

.bg-subtle {
    background-color: var(--bg-subtle);
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.text-gradient {
    background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
}

/* Dashboard Redesign Layout (Sidebar + Content + Right Synthesis) */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    height: 100vh;
    overflow: hidden;
    background-color: var(--db-bg);
    transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-layout.sidebar-collapsed {
    grid-template-columns: 80px 1fr 350px;
}

.dashboard-layout.synth-collapsed {
    grid-template-columns: 280px 1fr 0px;
}

.dashboard-layout.sidebar-collapsed.synth-collapsed {
    grid-template-columns: 80px 1fr 0px;
}

/* Sidebar Styling */
.sidebar {
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--db-border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 10px;
}

.sidebar-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--db-border);
    color: #94A3B8;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    white-space: nowrap;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .user-menu span {
    opacity: 0;
    visibility: hidden;
    width: 0;
    padding: 0;
    margin: 0;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .nav-group {
    align-items: center;
}

.logo-text span {
    color: #3B82F6;
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #475569;
    letter-spacing: 0.1em;
    padding: 0 12px;
    margin-bottom: 8px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    flex-shrink: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #94A3B8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Main Content Area */
.main-stage {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: relative;
    background: transparent;
}

/* Ambient Deep Glow Effects */
.main-stage::before {
    content: '';
    position: fixed;
    top: 5%;
    left: 15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.04) 50%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

.main-stage::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.03) 50%, transparent 80%);
    z-index: 0;
    pointer-events: none;
}

@keyframes ambientPulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.15);
    }
}

.top-bar {
    height: 80px;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    z-index: 90;
}

.search-container {
    position: relative;
    max-width: 600px;
    width: 100%;
}

.search-container i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

input.global-search {
    width: 100%;
    padding: 14px 20px 14px 54px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    /* Pill shape */
    color: white;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

input.global-search:focus {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), 0 0 20px rgba(59, 130, 246, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* Dashboard Heading Overrides */
.dashboard-theme h1,
.dashboard-theme h2,
.dashboard-theme h3,
.dashboard-theme h4 {
    color: #F1F5F9;
}

#stage-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #F1F5F9;
    font-family: var(--font-heading);
}

.stage-content {
    padding: 0 40px 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

/* Synthesis Panel (Right Sidebar) */
.synthesis-panel {
    background: rgba(15, 23, 42, 0.8);
    border-left: 1px solid var(--db-border);
    padding: 30px;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.synthesis-panel.collapsed {
    width: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    border-left: none;
}

.synth-toggle-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.synth-toggle-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.synthesis-header {
    font-family: var(--font-heading);
    color: #60A5FA;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--db-border);
}

.synthesis-body {
    line-height: 1.8;
    font-size: 0.95rem;
    color: #CBD5E1;
}

.synth-item {
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.synth-label {
    font-weight: 700;
    font-size: 0.7rem;
    margin-right: 8px;
}

.pulse-label {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.breakthrough-label {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alignment-label {
    background: rgba(139, 92, 246, 0.1);
    color: #A78BFA;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.impact-label {
    background: rgba(239, 68, 68, 0.1);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Global Dark Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--db-bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid var(--db-bg);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar for sidebars and main stage */
.sidebar::-webkit-scrollbar,
.synthesis-panel::-webkit-scrollbar,
.main-stage::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb,
.synthesis-panel::-webkit-scrollbar-thumb,
.main-stage::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Date Separator */
.date-separator {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0 15px;
}

.date-separator span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.date-separator::after {
    content: "";
    height: 1px;
    background: linear-gradient(90deg, var(--db-border), transparent);
    flex: 1;
}

/* Sort Toggle Buttons (Newest / Relevant) */
.sort-toggle {
    display: flex;
    gap: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    padding: 3px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sort-toggle button {
    background: transparent;
    border: none;
    color: #64748B;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.sort-toggle button:hover {
    color: #CBD5E1;
}

.sort-toggle button.active {
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Feed & Paper Cards */
.feed-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paper-card {
    background: rgba(22, 33, 55, 0.65);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 3px solid rgba(59, 130, 246, 0.4);
    border-radius: 12px;
    padding: 14px 18px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    z-index: 10;
}

/* Inner glass shimmer */
.paper-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.paper-card:hover {
    transform: translateY(-3px) scale(1.005);
    border-left-color: rgba(59, 130, 246, 0.8);
    border-color: rgba(59, 130, 246, 0.25);
    border-top-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: rgba(30, 45, 70, 0.75);
    z-index: 20;
}

.paper-title {
    font-size: 0.92rem;
    font-weight: 700;
    margin: 0;
    color: #F8FAFC;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.paper-authors {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748B;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.paper-abstract {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #94A3B8;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.paper-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trending-tag {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-transform: uppercase;
}

.engagement-stats {
    display: flex;
    gap: 10px;
    font-size: 0.7rem;
    color: #64748B;
    margin-top: 2px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

.paper-actions {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    justify-content: space-between;
    align-items: center;
}

.action-btn {
    background: none;
    border: none;
    color: #64748B;
    font-size: 0.82rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    padding: 4px 8px;
    border-radius: 8px;
}

.action-btn:hover {
    color: #60A5FA;
    background: rgba(59, 130, 246, 0.08);
}

.action-btn.active-bookmark {
    color: #FBBF24;
}

/* Status & Labels */
.new-badge {
    display: inline-block;
    background: #10B981;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.similarity-score {
    font-size: 0.8rem;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more {
    color: #60A5FA;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Feedback Buttons */
.feedback-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.feedback-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.feedback-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feedback-btn.active-like {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10B981;
    color: #10B981;
}

.feedback-btn.active-dislike {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    color: #EF4444;
}

/* Animations */
@keyframes shimmer {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.loading-shimmer {
    animation: shimmer 1.5s infinite;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--db-card);
    border: 1px solid var(--db-border);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
}

.close-modal,
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #94A3B8;
    font-size: 1.5rem;
    cursor: pointer;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.avatar-circle {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.sort-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--db-border);
}

.sort-toggle button {
    padding: 6px 16px;
    background: transparent;
    border: none;
    color: #94A3B8;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.sort-toggle button.active {
    background: #3B82F6;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(248, 250, 252, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--accent-color);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Hero */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background:
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.1), transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(124, 58, 237, 0.05), transparent 40%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.02;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-suby {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.trust-badge {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* Hero Visual Animation */
.hero-visual {
    perspective: 1000px;
}

.mockup-card {
    width: 600px;
    height: 400px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: rotateX(10deg) rotateY(0deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: rotateX(5deg) rotateY(0deg) scale(1.02);
}

.mockup-header {
    height: 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.mockup-controls {
    display: flex;
    gap: 8px;
}

.mockup-tab {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    background: var(--bg-subtle);
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: auto;
    margin-left: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background-color: #EF4444;
}

.yellow {
    background-color: #F59E0B;
}

.green {
    background-color: #10B981;
}

.mockup-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mockup-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    opacity: 0.8;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mockup-stat {
    background: rgba(255, 255, 255, 0.5);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.line {
    height: 8px;
    border-radius: 4px;
    background-color: var(--bg-subtle);
}

.title-line {
    width: 60%;
    height: 16px;
    background-color: var(--primary-color);
    opacity: 0.1;
    margin-bottom: 10px;
}

.text-line {
    width: 100%;
    margin-bottom: 8px;
}

.text-line.short {
    width: 80%;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Problem Section */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-glass);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* How It Works */
.pipeline-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 60px;
    position: relative;
    flex-wrap: wrap;
}

.step-card {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.2;
    margin-bottom: -20px;
    position: relative;
    z-index: -1;
}

.step-content h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.step-connector {
    width: 100px;
    height: 2px;
    background-color: var(--border-color);
    margin-top: 60px;
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 900px) {
    .step-connector {
        display: block;
    }
}

/* Structured Summaries */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.lead {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

.benefit-list li {
    margin-bottom: 16px;
    padding-left: 20px;
    position: relative;
}

.benefit-list li::before {
    content: "•";
    color: var(--accent-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.visual-side {
    display: flex;
    justify-content: center;
}

.pdf-mockup {
    width: 350px;
    height: 500px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 20px;
    transition: transform 0.4s ease;
    cursor: pointer;
}

/* Rotate hover effect */
.rotate-hover:hover {
    transform: rotate(2deg) scale(1.02);
}

.pdf-header {
    height: 40px;
    background: var(--bg-subtle);
    margin-bottom: 20px;
}

.pdf-block {
    height: 10px;
    background: var(--bg-subtle);
    margin-bottom: 10px;
    width: 100%;
}

.pdf-block:nth-child(2) {
    width: 90%;
}

.pdf-block:nth-child(3) {
    width: 95%;
}

/* Differentiation Table */
.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-light);
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-table th {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.highlight-col {
    background-color: rgba(37, 99, 235, 0.1);
    color: white;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

/* Audience Grid */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.audience-card {
    text-align: center;
    padding: 20px;
}

.avatar-placeholder {
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Open Science */
.logos-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    opacity: 0.6;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--text-muted);
}

/* CTA */
.cta-box {
    background: linear-gradient(135deg, var(--bg-subtle) 0%, white 100%);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    margin-bottom: 16px;
}

.cta-sub {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.signup-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
}


/* Profile Form Styling */
.profile-form {
    text-align: left;
    margin-top: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.radio-card {
    position: relative;
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
}

.radio-card span {
    display: block;
    padding: 12px;
    text-align: center;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.radio-card input:checked+span {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Button & Loader */
.btn-block {
    width: 100%;
}

.btn-large {
    padding: 18px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.loader {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.hidden {
    display: none !important;
}

.status-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.status-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.status-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mockup Enhancements */
.mockup-card {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    overflow: hidden;
}

.text-gradient {
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced PDF Mockup */
.enhanced-pdf-mockup {
    perspective: 1000px;
}

.pdf-window {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: rotateY(-5deg) rotateX(2deg);
    transition: transform 0.3s ease;
}

.pdf-window:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.pdf-titlebar {
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #cbd5e1;
}

.pdf-controls {
    display: flex;
    gap: 6px;
}

.pdf-controls .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.pdf-controls .dot.red {
    background: #ef4444;
}

.pdf-controls .dot.yellow {
    background: #f59e0b;
}

.pdf-controls .dot.green {
    background: #10b981;
}

.pdf-filename {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.pdf-content {
    padding: 32px 24px;
    background: white;
}

.pdf-section {
    margin-bottom: 24px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-lines .line {
    height: 8px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 4px;
}

.section-lines .line.long {
    width: 100%;
}

.section-lines .line.medium {
    width: 75%;
}

.section-lines .line.short {
    width: 50%;
}

/* Improved Comparison Table */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table thead {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.comparison-table th {
    padding: 20px;
    text-align: left;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 1rem;
    border-bottom: 2px solid #3b82f6;
}

.comparison-table th.highlight-col {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.comparison-table td {
    padding: 18px 20px;
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.comparison-table td.highlight-col {
    background: rgba(59, 130, 246, 0.1);
    color: white;
    font-weight: 500;
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.comparison-table strong {
    color: #60a5fa;
    font-weight: 600;
}

/* Footer */
.footer {
    background-color: white;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo-footer {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .mockup-card {
        width: 100%;
        max-width: 400px;
        height: 300px;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .signup-form {
        flex-direction: column;
    }

    .signup-form input {
        width: 100%;
    }

    .signup-form button {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .dashboard-mockup {
        transform: none;
    }

    .db-sidebar {
        display: none;
    }
}