/* ============================================
   30u30 — Design System
   A warm, sophisticated palette that stands out
   from the typical AI cyan/purple aesthetic
   ============================================ */

:root {
    /* Primary Colors — Warm Terracotta & Sand */
    --color-primary: #e07a5f;        /* Warm terracotta */
    --color-primary-light: #f2a285;
    --color-primary-dark: #c45c3f;
    
    /* Secondary Colors — Deep Forest */
    --color-secondary: #3d5a45;      /* Forest green */
    --color-secondary-light: #5a7d65;
    
    /* Accent — Golden */
    --color-accent: #f4a261;         /* Golden amber */
    --color-accent-dark: #e76f51;
    
    /* Background — Warm Dark */
    --bg-primary: #1a1816;           /* Warm charcoal */
    --bg-secondary: #242220;         /* Warm dark gray */
    --bg-tertiary: #2e2a28;          /* Warm medium gray */
    --bg-card: #2a2624;
    --bg-card-hover: #343230;
    
    /* Text */
    --text-primary: #f5f0eb;         /* Warm white */
    --text-secondary: #b8b0a8;       /* Warm gray */
    --text-muted: #7d756d;           /* Muted warm gray */
    
    /* Borders */
    --border-color: #3d3835;
    --border-color-light: #4a4542;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-text: linear-gradient(135deg, #f5f0eb 0%, #e07a5f 50%, #f4a261 100%);
    --gradient-card: linear-gradient(145deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(224, 122, 95, 0.15);
    
    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--color-primary);
    color: var(--text-primary);
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    background: rgba(26, 24, 22, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(26, 24, 22, 0.95);
    border-bottom-color: var(--border-color);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.logo-30 {
    color: var(--color-primary);
}

.logo-u {
    color: var(--text-muted);
    margin: 0 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a:not(.nav-github):hover {
    color: var(--text-primary);
}

.nav-links a:not(.nav-github)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-links a:not(.nav-github):hover::after {
    width: 100%;
}

.nav-github {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.nav-github:hover {
    background: var(--color-primary);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(224, 122, 95, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(224, 122, 95, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-secondary-light);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

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

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.1s both;
}

.title-line {
    display: block;
}

.title-number {
    color: var(--color-primary);
    display: inline-block;
}

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

.title-accent {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.6em;
    margin: 0 0.3em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-quote {
    position: relative;
    max-width: 500px;
    margin: 0 auto var(--space-2xl);
    padding: var(--space-lg);
    background: var(--bg-secondary);
    border-left: 3px solid var(--color-primary);
    border-radius: var(--radius-sm);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.quote-mark {
    position: absolute;
    top: 8px;
    left: 16px;
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.hero-quote p {
    font-size: 1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

.hero-quote cite {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: normal;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-3xl);
    animation: fadeInUp 0.6s ease 0.4s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 0 0 rgba(224, 122, 95, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(224, 122, 95, 0.3);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.5s both;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Hero Symbols */
.hero-symbols {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.symbol {
    position: absolute;
    color: var(--color-primary);
    opacity: 0.15;
    animation: float 6s ease-in-out infinite;
}

.symbol svg {
    width: 100%;
    height: 100%;
}

.symbol-1 {
    top: 15%;
    left: 8%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.symbol-2 {
    top: 25%;
    right: 10%;
    width: 100px;
    height: 100px;
    animation-delay: -2s;
}

.symbol-3 {
    bottom: 20%;
    left: 12%;
    width: 70px;
    height: 70px;
    animation-delay: -4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Papers Section
   ============================================ */
.papers {
    background: var(--bg-secondary);
}

.papers-filter {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-color-light);
}

.filter-btn.active {
    color: var(--text-primary);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Papers Grid */
.papers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
}

/* Paper Card */
.paper-card {
    position: relative;
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    overflow: hidden;
}

.paper-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(224, 122, 95, 0.03) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.paper-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.paper-card:hover::before {
    opacity: 1;
}

/* Featured Card */
.paper-card.featured {
    grid-column: span 2;
    border-color: var(--color-primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(224, 122, 95, 0.05) 100%);
}

.paper-featured-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(224, 122, 95, 0.15);
    border-radius: 100px;
}

/* Paper Symbol */
.paper-symbol {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.paper-card:hover .paper-symbol {
    background: rgba(224, 122, 95, 0.15);
    transform: scale(1.05);
}

.paper-symbol svg {
    width: 40px;
    height: 40px;
}

/* Paper Content */
.paper-content {
    flex: 1;
    min-width: 0;
}

.paper-day {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.paper-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.paper-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.paper-meta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.meta-item i {
    color: var(--color-accent);
    font-size: 0.75rem;
}

/* Paper Arrow */
.paper-arrow {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    opacity: 0;
    transition: all var(--transition-base);
}

.paper-card:hover .paper-arrow {
    opacity: 1;
    color: var(--color-primary);
}

.paper-arrow svg {
    width: 20px;
    height: 20px;
}

/* Coming Soon */
.papers-coming {
    margin-top: var(--space-3xl);
    text-align: center;
}

.papers-coming h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.coming-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.coming-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
}

.coming-day {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.coming-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.coming-card.more {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
    justify-content: center;
}

/* ============================================
   Journey / Timeline Section
   ============================================ */
.journey {
    background: var(--bg-primary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-unit {
    display: flex;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.timeline-unit:last-child {
    padding-bottom: 0;
}

/* Unit Marker */
.unit-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.unit-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.timeline-unit.complete .unit-number {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

.timeline-unit.active .unit-number {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    box-shadow: 0 0 20px rgba(224, 122, 95, 0.3);
}

.unit-line {
    flex: 1;
    width: 2px;
    background: var(--border-color);
    margin-top: var(--space-md);
}

.timeline-unit:last-child .unit-line {
    display: none;
}

.timeline-unit.complete .unit-line {
    background: var(--color-secondary);
}

/* Unit Content */
.unit-content {
    flex: 1;
    padding-top: var(--space-xs);
}

.unit-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
    flex-wrap: wrap;
}

.unit-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.unit-status {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
}

.unit-status.complete {
    background: rgba(61, 90, 69, 0.2);
    color: var(--color-secondary-light);
}

.unit-status.active {
    background: rgba(224, 122, 95, 0.2);
    color: var(--color-primary);
}

.unit-status.upcoming {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.unit-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.unit-papers {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.unit-papers span {
    padding: 6px 12px;
    font-size: 0.8rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.unit-papers span.upcoming {
    border: 1px dashed var(--border-color);
    background: transparent;
    color: var(--text-muted);
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-content .section-tag,
.about-content .section-title {
    text-align: left;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.feature {
    display: flex;
    gap: var(--space-md);
}

.feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(224, 122, 95, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-primary);
}

.feature-icon svg {
    width: 22px;
    height: 22px;
}

.feature-text h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

/* Code Preview */
.about-visual {
    position: relative;
}

.code-preview {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
}

.code-dot:nth-child(1) { background: #ff5f57; }
.code-dot:nth-child(2) { background: #febc2e; }
.code-dot:nth-child(3) { background: #28c840; }

.code-title {
    margin-left: auto;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.code-content {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.code-content code {
    color: var(--text-secondary);
}

.code-keyword { color: var(--color-primary); }
.code-class { color: var(--color-accent); }
.code-function { color: #82aaff; }
.code-string { color: var(--color-secondary-light); }
.code-comment { color: var(--text-muted); font-style: italic; }

/* ============================================
   CTA Section
   ============================================ */
.cta {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    display: inline-block;
}

.footer-brand p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer-column a {
    display: block;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: var(--color-primary);
}

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

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

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-content .section-tag,
    .about-content .section-title {
        text-align: center;
    }
    
    .about-text {
        text-align: center;
    }
    
    .paper-card.featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px var(--space-xl) var(--space-xl);
        background: var(--bg-secondary);
        border-left: 1px solid var(--border-color);
        gap: var(--space-lg);
        transition: right var(--transition-base);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.open span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.open span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .papers-grid {
        grid-template-columns: 1fr;
    }
    
    .paper-card {
        flex-direction: column;
        text-align: center;
    }
    
    .paper-symbol {
        margin: 0 auto;
    }
    
    .paper-meta {
        justify-content: center;
    }
    
    .paper-arrow {
        display: none;
    }
    
    .timeline-unit {
        gap: var(--space-md);
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand {
        max-width: none;
    }
    
    .footer-links {
        justify-content: center;
        gap: var(--space-xl);
    }
    
    .symbol-1, .symbol-2, .symbol-3 {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    section {
        padding: var(--space-3xl) 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .coming-grid {
        flex-direction: column;
    }
    
    .coming-card {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
}

/* ============================================
   Animation Utilities
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color-light);
}
/* ============================================
   Live Stats Section
   ============================================ */

.stats-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), var(--color-accent), transparent);
}

.stats-header {
    text-align: center;
    margin-bottom: 60px;
}

.stats-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.stats-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(224, 122, 95, 0.1);
    border: 1px solid rgba(224, 122, 95, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--color-primary);
}

.stats-live-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(224, 122, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-primary);
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-number .stat-suffix {
    font-size: 1.5rem;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* World Map Visualization */
.world-map-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.map-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.high {
    background: var(--color-primary);
    box-shadow: 0 0 10px rgba(224, 122, 95, 0.5);
}

.legend-dot.medium {
    background: var(--color-accent);
}

.legend-dot.low {
    background: var(--text-muted);
}

.world-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.world-map {
    width: 100%;
    height: auto;
}

.world-map path {
    fill: var(--bg-tertiary);
    stroke: var(--border-color);
    stroke-width: 0.5;
    transition: all 0.3s ease;
}

.world-map path.visited {
    fill: rgba(224, 122, 95, 0.3);
}

.world-map path.visited-high {
    fill: var(--color-primary);
}

.world-map path.visited-medium {
    fill: var(--color-accent);
}

/* Visitor Hotspots on Map */
.map-hotspot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--color-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hotspot-pulse 2s ease-in-out infinite;
}

.map-hotspot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    background: rgba(224, 122, 95, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: hotspot-ring 2s ease-in-out infinite;
}

@keyframes hotspot-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes hotspot-ring {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

/* Top Countries List */
.top-countries {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.country-flag {
    font-size: 1.5rem;
}

.country-info {
    flex: 1;
}

.country-name {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.country-visitors {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.country-bar {
    width: 60px;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 2px;
    overflow: hidden;
}

.country-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Analytics Note */
.analytics-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(61, 90, 69, 0.1);
    border: 1px solid rgba(61, 90, 69, 0.3);
    border-radius: 12px;
}

.analytics-note p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.analytics-note a {
    color: var(--color-primary);
    text-decoration: none;
}

.analytics-note a:hover {
    text-decoration: underline;
}

/* Analytics CTA */
.analytics-cta {
    text-align: center;
    padding: 40px 20px;
}

.analytics-message {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.analytics-sub {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.analytics-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    color: white;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.analytics-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.analytics-button svg {
    transition: transform 0.3s ease;
}

.analytics-button:hover svg {
    transform: translate(3px, -3px);
}

/* Live counter pulse */
.live-counter {
    color: #4ade80 !important;
    font-size: 1.8rem !important;
    animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Stats Section Responsive */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .stats-section {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 24px 20px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .world-map-container {
        padding: 20px;
    }
    
    .map-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .top-countries {
        grid-template-columns: 1fr;
    }
}