:root {
    --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --dur-fast: 150ms;
    --dur-base: 280ms;
    --dur-slow: 480ms;
    --dur-xslow: 720ms;
    --font-geist: 'Geist', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'SF Pro Display', sans-serif;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --radius-2xl: 30px;
    --radius-3xl: 40px;
    --shadow-ambient: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 32px rgba(0, 0, 0, 0.04);
    --shadow-elevated: 0 2px 4px rgba(0, 0, 0, 0.04), 0 18px 56px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 6px 20px rgba(0, 0, 0, 0.08), 0 32px 80px rgba(0, 0, 0, 0.14);
    --shadow-inner-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    --blur-backdrop: 20px;
    --blur-heavy: 32px;
}

[data-theme="light"] {
    --bg-base: #F4F4F7;
    --bg-surface: #FFFFFF;
    --bg-surface-2: #FAFAFC;
    --bg-surface-3: #F7F7FB;
    --bg-hover: #EEEEF4;
    --bg-inset: rgba(0, 0, 0, 0.02);
    --text-primary: #0A0A0C;
    --text-secondary: #5E5E64;
    --text-tertiary: #9B9BA0;
    --text-quaternary: #C4C4C8;
    --text-inverse: #FFFFFF;
    --accent: #3A5A8C;
    --accent-hover: #2F4A75;
    --accent-subtle: rgba(58, 90, 140, 0.08);
    --accent-glow: rgba(58, 90, 140, 0.18);
    --border-hairline: rgba(0, 0, 0, 0.055);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --overlay: rgba(0, 0, 0, 0.42);
    --overlay-heavy: rgba(0, 0, 0, 0.62);
    --orb-1: radial-gradient(circle at 30% 20%, rgba(58, 90, 140, 0.15), transparent 60%);
    --orb-2: radial-gradient(circle at 70% 80%, rgba(140, 160, 200, 0.18), transparent 65%);
    --grain-opacity: 0.025;
}

[data-theme="dark"] {
    --bg-base: #070709;
    --bg-surface: #0F0F12;
    --bg-surface-2: #151519;
    --bg-surface-3: #1B1B20;
    --bg-hover: #202026;
    --bg-inset: rgba(255, 255, 255, 0.03);
    --text-primary: #F2F2F5;
    --text-secondary: #95959B;
    --text-tertiary: #5C5C62;
    --text-quaternary: #38383E;
    --text-inverse: #0A0A0C;
    --accent: #6B8FC4;
    --accent-hover: #85A3D3;
    --accent-subtle: rgba(107, 143, 196, 0.14);
    --accent-glow: rgba(107, 143, 196, 0.25);
    --border-hairline: rgba(255, 255, 255, 0.06);
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.15);
    --overlay: rgba(0, 0, 0, 0.65);
    --overlay-heavy: rgba(0, 0, 0, 0.82);
    --orb-1: radial-gradient(circle at 30% 20%, rgba(107, 143, 196, 0.22), transparent 60%);
    --orb-2: radial-gradient(circle at 70% 80%, rgba(60, 80, 120, 0.28), transparent 65%);
    --grain-opacity: 0.025;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*, *::before, *::after { -webkit-font-smoothing: antialiased; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-geist);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    background-color: var(--bg-base);
    background-image: var(--orb-1), var(--orb-2);
    background-attachment: fixed;
    font-weight: 400;
    overflow-x: hidden;
    transition: background-color var(--dur-slow) var(--ease-standard), color var(--dur-slow) var(--ease-standard);
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-smooth); }
a:hover { color: var(--accent-hover); }
input, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); background-clip: padding-box; }
::selection { background: var(--accent-subtle); color: var(--accent); }

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 180px;
    animation: grainShift 8s steps(10) infinite;
}

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -3%); }
    20% { transform: translate(-4%, 2%); }
    30% { transform: translate(3%, -4%); }
    40% { transform: translate(-3%, 3%); }
    50% { transform: translate(2%, -2%); }
    60% { transform: translate(-2%, 4%); }
    70% { transform: translate(4%, 1%); }
    80% { transform: translate(-1%, -3%); }
    90% { transform: translate(3%, 2%); }
    100% { transform: translate(0, 0); }
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover), var(--accent));
    background-size: 200% 100%;
    z-index: 1000;
    transition: width 100ms linear;
    
    box-shadow: 0 0 12px var(--accent-glow);
    animation: progressShimmer 3s ease-in-out infinite;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px 0;
    transition: padding var(--dur-base) var(--ease-standard);
}

.site-header__shell {
    max-width: 1280px;
    margin: 0 auto;
    background: color-mix(in srgb, var(--bg-surface) 78%, transparent);
    backdrop-filter: blur(var(--blur-backdrop)) saturate(1.5);
    -webkit-backdrop-filter: blur(var(--blur-backdrop)) saturate(1.5);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-3xl);
    transition: all var(--dur-base) var(--ease-standard);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03), 0 8px 28px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.site-header__shell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 50%);
    pointer-events: none;
}

.site-header--scrolled .site-header__shell {
    background: color-mix(in srgb, var(--bg-surface) 94%, transparent);
    border-color: var(--border-subtle);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 48px rgba(0, 0, 0, 0.09);
    transform: translateZ(0);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    height: 60px;
    position: relative;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.site-logo:hover { color: var(--text-primary); }
.site-logo__mark svg { display: block; }
.site-logo__bg { fill: var(--text-primary); }
.site-logo__bars { stroke: var(--bg-surface); }

.site-logo__text {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.site-logo__text em {
    font-style: normal;
    font-weight: 300;
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--dur-fast) var(--ease-smooth);
    position: relative;
}

.site-nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.site-nav__link--active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: rotate(12deg);
}

.theme-toggle__icon {
    position: absolute;
    transition: opacity var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth);
}

[data-theme="light"] .theme-toggle__icon--sun { opacity: 0; transform: rotate(-90deg) scale(0.4); }
[data-theme="light"] .theme-toggle__icon--moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__icon--sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg) scale(0.4); }

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 6px 10px 18px;
    background: var(--text-primary);
    color: var(--text-inverse);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-smooth);
}

.cta-btn:hover::before { opacity: 1; }
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); }
.cta-btn:active { transform: scale(0.97); }

.cta-btn > * { position: relative; z-index: 1; }

.cta-btn__trailing {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--dur-base) var(--ease-smooth), background var(--dur-base) var(--ease-smooth);
}

.cta-btn:hover .cta-btn__trailing {
    transform: translate(2px, -1px) scale(1.08);
    background: rgba(255, 255, 255, 0.3);
}

.site-header__burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--dur-fast) var(--ease-smooth);
    position: relative;
}

.site-header__burger:hover { background: var(--bg-hover); }

.site-header__burger span {
    width: 16px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--dur-base) var(--ease-smooth);
    position: absolute;
}

.site-header__burger span:nth-child(1) { transform: translateY(-5px); }
.site-header__burger span:nth-child(2) { transform: translateY(0); }
.site-header__burger span:nth-child(3) { transform: translateY(5px); }

.site-header__burger--open span:nth-child(1) { transform: rotate(45deg); }
.site-header__burger--open span:nth-child(2) { opacity: 0; }
.site-header__burger--open span:nth-child(3) { transform: rotate(-45deg); }

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--bg-surface);
    backdrop-filter: blur(var(--blur-heavy));
    -webkit-backdrop-filter: blur(var(--blur-heavy));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-slow) var(--ease-standard), visibility var(--dur-slow) var(--ease-standard);
}

.mobile-menu--open { opacity: 1; visibility: visible; }

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.mobile-menu__link {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--dur-slow) var(--ease-smooth);
}

.mobile-menu--open .mobile-menu__link { opacity: 1; transform: translateY(0); }
.mobile-menu--open .mobile-menu__link:nth-child(1) { transition-delay: 80ms; }
.mobile-menu--open .mobile-menu__link:nth-child(2) { transition-delay: 160ms; }
.mobile-menu--open .mobile-menu__link:nth-child(3) { transition-delay: 240ms; }
.mobile-menu--open .mobile-menu__link:nth-child(4) { transition-delay: 320ms; }

.hero {
    position: relative;
    padding: 180px 24px 100px;
    overflow: hidden;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    
}

.hero__orb--1 {
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, var(--accent-subtle), transparent 70%);
    top: -180px;
    right: -140px;
    animation: orbFloat1 22s ease-in-out infinite;
}

.hero__orb--2 {
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(120, 140, 180, 0.2), transparent 70%);
    bottom: -120px;
    left: -70px;
    animation: orbFloat2 26s ease-in-out infinite;
}

.hero__orb--3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(180, 195, 220, 0.15), transparent 70%);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 30s ease-in-out infinite;
    opacity: 0.35;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 50px) scale(1.06); }
    66% { transform: translate(25px, -25px) scale(0.94); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.12); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    50% { transform: translate(-50%, -50%) scale(1.2) rotate(180deg); }
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border-hairline) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-hairline) 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%);
    opacity: 0.35;
}

.hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__inner {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: color-mix(in srgb, var(--bg-surface) 85%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 36px;
    box-shadow: var(--shadow-ambient);
}

.hero__eyebrow-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px var(--accent-glow);
}

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

.hero__title {
    font-size: clamp(44px, 6.5vw, 80px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.045em;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero__title-line { display: block; overflow: hidden; }

.hero__title-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #7B9DC6 50%, var(--accent-hover) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease-in-out infinite;
}

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

.hero__subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 580px;
    margin: 0 auto 44px;
}

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 56px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: color-mix(in srgb, var(--bg-surface) 85%, transparent);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--dur-base) var(--ease-smooth);
}

.tag-pill:hover {
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-ambient);
}

.tag-pill__dot {
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
}

.tag-pill--active {
    background: var(--text-primary);
    border-color: var(--text-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.tag-pill--active:hover {
    background: var(--text-primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

.hero__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 24px 44px;
    background: color-mix(in srgb, var(--bg-surface) 80%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-ambient), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    max-width: 560px;
    margin: 0 auto;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.hero__stat-num {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    transition: transform var(--dur-base) var(--ease-smooth);
}

.hero__stat:hover .hero__stat-num {
    transform: scale(1.05);
    color: var(--accent);
}

.hero__stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.hero__stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-subtle);
}

.hero__scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: scrollHintPulse 3s ease-in-out infinite;
}

@keyframes scrollHintPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero__scroll-line {
    width: 1px;
    height: 44px;
    background: linear-gradient(to bottom, var(--text-tertiary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
    transform-origin: top;
}

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

.reveal--up.revealed { opacity: 1; transform: translateY(0); }
.reveal--down.revealed { opacity: 1; transform: translateY(0); }
.reveal--left.revealed { opacity: 1; transform: translateX(0); }
.reveal--right.revealed { opacity: 1; transform: translateX(0); }
.reveal--scale.revealed { opacity: 1; transform: scale(1); }

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }
.reveal--delay-5 { transition-delay: 500ms; }

.main-content {
    padding: 40px 24px 80px;
}

.main-content__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    align-items: start;
}

.feed-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
}

.feed-sidebar {
    position: sticky;
    top: 92px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-sidebar__shell {
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-2xl);
    padding: 18px;
    box-shadow: var(--shadow-ambient), var(--shadow-inner-highlight);
    transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base) var(--ease-smooth);
}

.feed-sidebar__shell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated), var(--shadow-inner-highlight);
}

.feed-sidebar__shell--profile { padding: 22px; }

.category-nav__header {
    padding: 0 12px 14px;
    border-bottom: 1px solid var(--border-hairline);
    margin-bottom: 10px;
}

.category-nav__title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-secondary);
    text-align: left;
    margin-bottom: 3px;
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.category-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: var(--accent);
    border-radius: 2px;
    transition: transform var(--dur-base) var(--ease-smooth);
}

.category-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: translateX(4px);
}

.category-item:hover::before { transform: translateY(-50%) scaleY(0.5); }

.category-item--active {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 600;
}

.category-item--active::before { transform: translateY(-50%) scaleY(1); }

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-card__avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-subtle), color-mix(in srgb, var(--accent) 20%, transparent));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 0 4px var(--bg-surface), 0 0 0 5px var(--accent-subtle);
}

.profile-card__avatar::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid var(--accent-subtle);
    opacity: 0.35;
    animation: avatarRing 3s ease-in-out infinite;
}

@keyframes avatarRing {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.12); opacity: 0; }
}

.profile-card__info { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.profile-card__name { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.profile-card__role { font-size: 11px; color: var(--text-tertiary); letter-spacing: 0.05em; }

.profile-card__cta {
    width: 100%;
    padding: 9px;
    background: var(--text-primary);
    color: var(--text-inverse);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 600;
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.profile-card__cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-smooth);
}

.profile-card__cta:hover::before { opacity: 1; }
.profile-card__cta:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15); }
.profile-card__cta:active { transform: scale(0.97); }
.profile-card__cta > * { position: relative; z-index: 1; }

.feed-main { min-width: 0; }

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.feed-tabs {
    display: inline-flex;
    gap: 4px;
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    padding: 5px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-hairline);
    box-shadow: var(--shadow-ambient);
}

.feed-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
}

.feed-tab:hover { color: var(--text-primary); }

.feed-tab--active {
    background: var(--text-primary);
    color: var(--text-inverse);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.feed-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-ambient);
    transition: all var(--dur-base) var(--ease-smooth);
    width: 260px;
}

.feed-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-subtle);
    width: 320px;
}

.feed-search__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 13px;
    color: var(--text-primary);
}

.feed-search__input::placeholder { color: var(--text-tertiary); }

.feed-list { display: flex; flex-direction: column; gap: 18px; }

.post-card {
    position: relative;
    transition: transform var(--dur-base) var(--ease-smooth);
    
}

.post-card__shell {
    background: linear-gradient(135deg, var(--border-subtle) 0%, var(--border-hairline) 100%);
    border-radius: var(--radius-2xl);
    padding: 1.5px;
    transition: all var(--dur-base) var(--ease-smooth);
    box-shadow: var(--shadow-ambient);
    position: relative;
    overflow: hidden;
}

.post-card__shell::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 60%);
    opacity: 0;
    transition: opacity var(--dur-slow) var(--ease-smooth);
    pointer-events: none;
}

.post-card--elevated:hover .post-card__shell {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.post-card--elevated:hover .post-card__shell::after { opacity: 1; }

.post-card--elevated:hover { transform: translateY(-3px); }

.post-card__content {
    background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
    border-radius: calc(var(--radius-2xl) - 1.5px);
    padding: 30px;
    transition: background var(--dur-base) var(--ease-smooth);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.post-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.post-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--accent-subtle), color-mix(in srgb, var(--accent) 18%, transparent));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
    overflow: hidden;
    transition: transform var(--dur-base) var(--ease-smooth);
}

.post-card:hover .post-card__avatar { transform: scale(1.08) rotate(-2deg); }

.avatar-initials {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-card__avatar--anonymous {
    background: linear-gradient(135deg, var(--bg-hover), var(--bg-surface-3));
    color: var(--text-secondary);
}

.post-card__meta { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.post-card__author { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.post-card__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-tertiary); }
.post-card__time { font-size: 12px; color: var(--text-tertiary); }

.post-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.post-card__badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.post-card__badge--new { background: var(--accent-subtle); color: var(--accent); }
.post-card__badge--hot { background: rgba(180, 83, 9, 0.08); color: #B45309; }
.post-card__badge--sunk { background: var(--bg-hover); color: var(--text-tertiary); }
.post-card__badge--anon { background: var(--bg-hover); color: var(--text-secondary); }

.post-card__title {
    font-size: 21px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: 14px;
    letter-spacing: -0.025em;
    transition: color var(--dur-fast) var(--ease-smooth);
}

.post-card:hover .post-card__title { color: var(--accent); }

.post-card__excerpt {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.post-card__tag {
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    padding: 3px 10px;
    background: var(--accent-subtle);
    border-radius: var(--radius-full);
    transition: all var(--dur-fast) var(--ease-smooth);
}

.post-card__tag:hover { background: var(--accent); color: var(--text-inverse); }

.post-card__mood { margin-bottom: 18px; }

.mood-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.mood-indicator--study { background: var(--accent-subtle); color: var(--accent); }
.mood-indicator--love { background: rgba(190, 24, 93, 0.08); color: #BE185D; }
.mood-indicator--food { background: rgba(180, 83, 9, 0.08); color: #B45309; }

.post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-hairline);
}

.post-card__stats { display: flex; align-items: center; gap: 6px; }

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 500;
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--bg-hover);
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-smooth);
}

.stat-item:hover { color: var(--text-primary); transform: translateY(-1px); }
.stat-item:hover::before { opacity: 1; }
.stat-item > * { position: relative; z-index: 1; }
.stat-item:active { transform: scale(0.94); }

.stat-item--empathy:hover { color: #BE185D; }

.stat-item--empathy.particle-burst {
    animation: particleBurst 0.4s var(--ease-bounce);
}

@keyframes particleBurst {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.post-card__expand {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--dur-base) var(--ease-smooth);
}

.post-card__expand:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    transform: translateX(3px);
}

.feed-skeleton { display: none; flex-direction: column; gap: 18px; }
.feed-skeleton--visible { display: flex; }

.skeleton-card {
    background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.skeleton-card__inner { padding: 28px; }
.skeleton-header { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(110deg, var(--bg-hover) 8%, var(--bg-surface-3) 18%, var(--bg-hover) 33%);
    background-size: 200% 100%;
    animation: skelShimmer 1.4s linear infinite;
}

.skeleton-meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.skeleton-line {
    height: 12px;
    border-radius: var(--radius-sm);
    background: linear-gradient(110deg, var(--bg-hover) 8%, var(--bg-surface-3) 18%, var(--bg-hover) 33%);
    background-size: 200% 100%;
    animation: skelShimmer 1.4s linear infinite;
}

.skeleton-line--xs { width: 35%; height: 10px; }
.skeleton-line--sm { width: 20%; height: 9px; }
.skeleton-line--md { width: 60%; }
.skeleton-line--lg { width: 80%; height: 22px; margin-bottom: 14px; }

@keyframes skelShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.feed-load-more { display: flex; justify-content: center; padding-top: 12px; }

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: color-mix(in srgb, var(--bg-surface) 92%, transparent);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.load-more-btn:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.load-more-btn:hover svg { animation: arrowDown 1s ease-in-out infinite; }

@keyframes arrowDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.load-more-btn:active { transform: scale(0.97); }

.right-rail {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.rail-card__shell {
    background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-2xl);
    padding: 22px;
    box-shadow: var(--shadow-ambient), var(--shadow-inner-highlight);
    transition: transform var(--dur-base) var(--ease-smooth), box-shadow var(--dur-base) var(--ease-smooth);
}

.rail-card__shell:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated), var(--shadow-inner-highlight);
}

.rail-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.heatmap-viz { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.heatmap-viz__week { display: flex; align-items: center; gap: 12px; }
.heatmap-viz__week > span { font-size: 11px; color: var(--text-tertiary); width: 32px; font-weight: 500; letter-spacing: 0.03em; }

.heatmap-viz__bars { display: flex; align-items: flex-end; gap: 4px; flex: 1; height: 38px; }

.heatmap-viz__bars i {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent));
    border-radius: 4px 4px 0 0;
    opacity: 0.3;
    animation: heatPulse 2.5s ease-in-out infinite;
    transition: opacity var(--dur-base) var(--ease-smooth);
}

.heatmap-viz__bars i:nth-child(odd) { animation-delay: 0.8s; }

@keyframes heatPulse {
    0%, 100% { opacity: 0.22; transform: scaleY(0.9); }
    50% { opacity: 0.55; transform: scaleY(1); }
}

.heatmap-viz__legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.heatmap-viz__gradient {
    flex: 1;
    height: 3px;
    background: linear-gradient(to right, var(--border-subtle), var(--accent));
    border-radius: var(--radius-full);
}

.top-list { list-style: none; }

.top-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-hairline);
    transition: transform var(--dur-fast) var(--ease-smooth);
}

.top-list__item:last-child { border-bottom: none; padding-bottom: 0; }
.top-list__item:first-child { padding-top: 0; }

.top-list__item:hover { transform: translateX(4px); }

.top-list__rank {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    font-variant-numeric: tabular-nums;
    padding-top: 3px;
    transition: color var(--dur-fast) var(--ease-smooth);
}

.top-list__item:hover .top-list__rank { color: var(--accent); }

.top-list__body { flex: 1; min-width: 0; }

.top-list__body h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.45;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-list__body span { font-size: 11px; color: var(--text-tertiary); }

.topic-chips { display: flex; flex-wrap: wrap; gap: 7px; }

.topic-chip {
    padding: 7px 14px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--dur-base) var(--ease-smooth);
}

.topic-chip:hover {
    background: var(--accent-subtle);
    color: var(--accent);
    transform: translateY(-2px);
}

.treehole {
    padding: 100px 24px;
    position: relative;
}

.treehole__inner { max-width: 1280px; margin: 0 auto; }

.treehole__header { text-align: center; margin-bottom: 64px; }

.eyebrow {
    display: inline-block;
    padding: 5px 14px;
    background: color-mix(in srgb, var(--bg-surface) 85%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.treehole__title {
    font-size: clamp(36px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-bottom: 18px;
}

.treehole__desc {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

.mood-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
}

.mood-card {
    background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-2xl);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: all var(--dur-base) var(--ease-smooth);
    box-shadow: var(--shadow-ambient), var(--shadow-inner-highlight);
    position: relative;
    overflow: hidden;
}

.mood-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform var(--dur-xslow) var(--ease-smooth);
}

.mood-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-card-hover), var(--shadow-inner-highlight);
    border-color: var(--accent);
}

.mood-card:hover::before { transform: translateX(100%); }

.mood-card--large {
    grid-row: span 2;
    background: linear-gradient(145deg, color-mix(in srgb, var(--bg-surface) 95%, transparent), color-mix(in srgb, var(--bg-hover) 95%, transparent));
    padding: 36px;
}

.mood-card__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--accent-subtle), color-mix(in srgb, var(--accent) 15%, transparent));
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    transition: transform var(--dur-base) var(--ease-smooth);
}

.mood-card:hover .mood-card__icon {
    transform: scale(1.1) rotate(-3deg);
}

.mood-card--large .mood-card__icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-xl);
}

.mood-card__count {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.mood-card--large .mood-card__count {
    font-size: 46px;
}

.mood-card__label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.mood-card__pct {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.03em;
}

.mood-card__pct::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    margin-left: 8px;
    vertical-align: middle;
    background: linear-gradient(90deg, var(--accent), var(--accent-subtle));
    border-radius: 2px;
}

.fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 52px;
    height: 52px;
    background: var(--text-primary);
    color: var(--text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px);
    transition: all var(--dur-base) var(--ease-smooth);
    pointer-events: none;
    z-index: 90;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.fab--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab:hover {
    background: var(--accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

.fab:active {
    transform: scale(0.94);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-standard), visibility var(--dur-base) var(--ease-standard);
    padding: 20px;
}

.modal--open {
    opacity: 1;
    visibility: visible;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: var(--overlay-heavy);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.modal__panel {
    position: relative;
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    padding: 1.5px;
    border-radius: var(--radius-2xl);
    background: linear-gradient(135deg, var(--border-subtle), var(--border-hairline));
    transform: scale(0.96) translateY(12px);
    opacity: 0;
    transition: transform var(--dur-base) var(--ease-bounce), opacity var(--dur-base) var(--ease-smooth);
}

.modal--open .modal__panel {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal__shell {
    background: color-mix(in srgb, var(--bg-surface) 98%, transparent);
    border-radius: calc(var(--radius-2xl) - 1.5px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(90vh - 3px);
}

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-bottom: 1px solid var(--border-hairline);
}

.modal__title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.modal__close {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all var(--dur-fast) var(--ease-smooth);
}

.modal__close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal__body {
    padding: 24px 26px;
    overflow-y: auto;
    flex: 1;
}

.post-settings { margin-bottom: 22px; }

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.setting-row__label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.switch { position: relative; display: inline-block; }
.switch input { display: none; }

.switch__track {
    position: relative;
    display: flex;
    align-items: center;
    width: 88px;
    height: 32px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--dur-base) var(--ease-smooth);
}

.switch__thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 26px;
    height: 26px;
    background: var(--bg-surface);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: transform var(--dur-base) var(--ease-bounce);
}

.switch__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    width: 50%;
    text-align: center;
    transition: color var(--dur-fast) var(--ease-smooth);
}

.switch__label--on { color: transparent; }

.switch input:checked + .switch__track { background: var(--accent); }
.switch input:checked + .switch__track .switch__thumb { transform: translateX(56px); }
.switch input:checked + .switch__track .switch__label--off { color: transparent; }
.switch input:checked + .switch__track .switch__label--on { color: rgba(255,255,255,0.9); }

.mood-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }

.mood-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    background: var(--bg-hover);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--dur-base) var(--ease-smooth);
    border: 1px solid transparent;
}

.mood-chip:hover {
    background: var(--bg-surface);
    border-color: var(--border-strong);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.mood-chip--active {
    background: var(--accent-subtle);
    color: var(--accent);
    border-color: var(--accent);
    font-weight: 600;
}

.field-input,
.field-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-surface-2);
    border: 1px solid var(--border-hairline);
    border-radius: var(--radius-lg);
    font-size: 15px;
    color: var(--text-primary);
    transition: all var(--dur-base) var(--ease-smooth);
    outline: none;
    margin-bottom: 14px;
}

.field-input:focus,
.field-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-subtle);
    background: var(--bg-surface);
}

.field-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.75;
}

.upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    background: var(--bg-surface-2);
    border: 1.5px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    color: var(--text-tertiary);
    font-size: 13px;
    transition: all var(--dur-base) var(--ease-smooth);
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone--drag {
    border-color: var(--accent);
    background: var(--accent-subtle);
    color: var(--accent);
    transform: scale(1.01);
}

.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.upload-preview__item {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.upload-preview__item img { width: 100%; height: 100%; object-fit: cover; }

.upload-preview__remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform var(--dur-fast) var(--ease-smooth);
}

.upload-preview__remove:hover { transform: scale(1.15); }

.modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 26px;
    border-top: 1px solid var(--border-hairline);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all var(--dur-base) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.btn--ghost { background: var(--bg-hover); color: var(--text-primary); }
.btn--ghost:hover { background: var(--border-subtle); }

.btn--primary {
    background: var(--text-primary);
    color: var(--text-inverse);
}

.btn--primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    opacity: 0;
    transition: opacity var(--dur-base) var(--ease-smooth);
}

.btn--primary:hover::before { opacity: 1; }
.btn--primary > * { position: relative; z-index: 1; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.btn--primary:active { transform: scale(0.97); }

.particle-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 300;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
    box-shadow: 0 0 8px var(--accent-glow);
    animation: particleFloat 0.8s var(--ease-standard) forwards;
    pointer-events: none;
}

@keyframes particleFloat {
    0% { transform: translate(0, 0) scale(1); opacity: 0.9; }
    100% { transform: translate(var(--dx), var(--dy)) scale(0); opacity: 0; }
}

.heart-wave {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid currentColor;
    opacity: 0.35;
    animation: heartWave 0.8s var(--ease-out-expo) forwards;
    pointer-events: none;
}

@keyframes heartWave {
    0% { transform: scale(0.3); opacity: 0.8; }
    100% { transform: scale(2.5); opacity: 0; }
}

.site-footer {
    padding: 48px 24px;
    border-top: 1px solid var(--border-hairline);
    background: color-mix(in srgb, var(--bg-surface) 95%, transparent);
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-footer__brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-footer__text { display: flex; flex-direction: column; gap: 3px; }
.site-footer__text strong { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.site-footer__text span { font-size: 12px; color: var(--text-tertiary); }

.site-footer__nav { display: flex; gap: 28px; }

.site-footer__nav a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color var(--dur-fast) var(--ease-smooth);
}

.site-footer__nav a:hover { color: var(--accent); }

.site-footer__copy { font-size: 12px; color: var(--text-tertiary); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateX(-50%) translateY(0); }
    to { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@media (max-width: 1100px) {
    .main-content__inner { grid-template-columns: 1fr; }
    .feed-layout { grid-template-columns: 1fr; }
    .feed-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .feed-sidebar__shell { flex: 1; min-width: 220px; }
    .feed-sidebar__shell--profile { min-width: 260px; }
    .right-rail { position: static; flex-direction: row; flex-wrap: wrap; }
    .rail-card { flex: 1; min-width: 240px; }
}

@media (max-width: 768px) {
    .site-header { padding: 10px 14px 0; }
    .site-header__shell { border-radius: var(--radius-2xl); }
    .site-nav { display: none; }
    .site-header__burger { display: flex; }
    .hero { padding: 120px 20px 60px; min-height: auto; }
    .hero__title { font-size: 44px; }
    .hero__stats { padding: 18px 26px; gap: 0; }
    .hero__stat-num { font-size: 24px; }
    .hero__stat-label { font-size: 11px; }
    .hero__stat-divider { height: 28px; }
    .feed-header { flex-direction: column; align-items: stretch; }
    .feed-search { width: 100%; }
    .feed-search:focus-within { width: 100%; }
    .post-card__content { padding: 24px; }
    .mood-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .mood-card--large { grid-row: auto; }
    .treehole { padding: 56px 20px; }
    .site-footer__inner { flex-direction: column; gap: 22px; text-align: center; }
    .site-footer__nav { flex-wrap: wrap; justify-content: center; }
    .fab { bottom: 24px; right: 24px; width: 46px; height: 46px; }
    .modal { padding: 12px; }
    .feed-sidebar__shell { min-width: 100%; }
    .rail-card { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .grain-overlay { display: none !important; }
    .hero__orb { animation: none !important; }
}

/* Animated gradient text */
.gradient-text {
    background: linear-gradient(120deg, var(--text-primary), var(--accent) 50%, var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent);
    margin-left: 3px;
    vertical-align: -2px;
    animation: typingBlink 1s steps(2) infinite;
}

@keyframes typingBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ============ POKER SHOWCASE ============ */
.poker-showcase {
    position: relative;
    padding: 80px 0 60px;
    overflow: hidden;
}

.poker-showcase__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg-surface) 50%, transparent));
    pointer-events: none;
}

.poker-showcase__inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.poker-showcase__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 16px;
}

.poker-showcase__label {
    letter-spacing: 0.05em;
}

.poker-showcase__label-sep {
    color: var(--text-tertiary);
}

.poker-showcase__count {
    color: var(--text-tertiary);
    font-weight: 400;
}

.poker-showcase__title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 16px;
    color: var(--text-primary);
}

.poker-showcase__title-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 12px;
}

.poker-showcase__desc {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 0 48px;
    line-height: 1.6;
}

/* Poker deck container */
.poker-deck {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 360px;
    perspective: 1200px;
}

.poker-card {
    position: absolute;
    width: 200px;
    height: 280px;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.poker-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.poker-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 16px 48px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Front face */
.poker-card__face--front {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fb 100%);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
}

.poker-card__index {
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
}

.poker-card__index--tl {
    align-self: flex-start;
}

.poker-card__index--br {
    align-self: flex-end;
    transform: rotate(180deg);
}

.poker-card__rank {
    font-size: 18px;
    letter-spacing: 0;
}

.poker-card__suit {
    font-size: 16px;
    color: #2C3E50;
}

.poker-card__suit--red {
    color: #BE185D;
}

.poker-card__center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px 0;
}

.poker-card__icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    margin-bottom: 10px;
}

.poker-card__topic {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.poker-card__q {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    padding: 0 4px;
}

/* Back face */
.poker-card__face--back {
    background: linear-gradient(145deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 70%, #1a1a2e) 100%);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.poker-card__back-pattern {
    position: absolute;
    inset: 8px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.05) 8px,
        rgba(255, 255, 255, 0.05) 16px
    );
}

.poker-card__back-center {
    position: relative;
    z-index: 1;
    text-align: center;
}

.poker-card__back-text {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.15em;
}

/* Featured card glow */
.poker-card--featured .poker-card__face--front {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.1),
        0 24px 64px rgba(58, 90, 140, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Controls */
.poker-deck__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.poker-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    font-size: 13px;
    font-weight: 500;
}

.poker-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.08);
}

.poker-btn:active {
    transform: scale(0.95);
}

.poker-btn--flip {
    width: auto;
    padding: 0 20px;
    height: 40px;
    border-radius: 20px;
    background: var(--text-primary);
    color: var(--bg-surface);
    border: none;
}

.poker-btn--flip:hover {
    background: var(--accent);
    color: #fff;
}

/* ============ MARQUEE ============ */
.marquee-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.marquee-header {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1280px;
    margin: 0 auto 20px;
    padding: 0 32px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.marquee-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}

.marquee-header__title {
    font-weight: 600;
    color: var(--text-primary);
}

.marquee-header__count {
    color: var(--text-tertiary);
    font-weight: 400;
}

.marquee-track-wrapper {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marqueeSlide 28s linear infinite;
    will-change: transform;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.marquee-item:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(58, 90, 140, 0.12);
}

.marquee-item__rank {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

.marquee-item__title {
    font-weight: 600;
    min-width: 80px;
}

.marquee-item__meta {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
}

.marquee-item--mirror {
    /* Second set for seamless loop - same style, not invisible */
}

@keyframes marqueeSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track.pause-on-hover {
    animation-play-state: paused;
}

.marquee-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    pointer-events: none;
}

.marquee-fade--left {
    left: 0;
    background: linear-gradient(90deg, var(--bg-surface), transparent);
}

.marquee-fade--right {
    right: 0;
    background: linear-gradient(-90deg, var(--bg-surface), transparent);
}

/* Dark theme adjustments */
[data-theme="dark"] .marquee-fade--left {
    background: linear-gradient(90deg, #0a0a0c, transparent);
}

[data-theme="dark"] .marquee-fade--right {
    background: linear-gradient(-90deg, #0a0a0c, transparent);
}

[data-theme="dark"] .poker-card__face--back {
    background: linear-gradient(145deg, #3A5A8C 0%, #1a1a2e 100%);
}

[data-theme="dark"] .poker-card__face--front {
    background: linear-gradient(145deg, #161618 0%, #1c1c20 100%);
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .poker-card__rank,
[data-theme="dark"] .poker-card__suit {
    color: var(--text-primary);
}

[data-theme="dark"] .marquee-item {
    background: #161618;
    border-color: rgba(255, 255, 255, 0.06);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .poker-deck {
        height: 300px;
    }
    .poker-card {
        width: 150px;
        height: 210px;
    }
    .poker-card__icon {
        width: 40px;
        height: 40px;
    }
    .poker-card__q {
        font-size: 11px;
    }
    .marquee-item {
        padding: 12px 16px;
        font-size: 13px;
    }
    .marquee-item__meta {
        display: none;
    }
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal--left { transform: translateX(-40px); }
.reveal--right { transform: translateX(40px); }
.reveal--zoom { transform: scale(0.95); }

.reveal--left.revealed { transform: translateX(0); }
.reveal--right.revealed { transform: translateX(0); }
.reveal--zoom.revealed { transform: scale(1); }

.hero__title-accent {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Shimmer effect on post cards */
.post-card__shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 70%
    );
    transition: left 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.post-card--elevated:hover .post-card__shell::before {
    left: 100%;
}

/* Glow pulse for active elements */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { box-shadow: 0 0 0 8px transparent; }
}

.glow-pulse { animation: glowPulse 2s ease-out infinite; }

/* Progress bar premium glow */
.reading-progress {
    box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* Magnetic button internal icon dance */
[data-magnetic] .magnetic-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-magnetic]:hover .magnetic-icon {
    transform: translate(4px, -2px) scale(1.1);
}

/* Scroll progress side indicator */
.scroll-indicator {
    position: fixed;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    height: 140px;
    width: 3px;
    background: var(--border-subtle);
    border-radius: 3px;
    z-index: 50;
    overflow: hidden;
}

.scroll-indicator__fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
    transition: height 100ms linear;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Premium particle burst */
.particle--premium {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent-glow);
}

/* Hero entrance choreography */
.hero__eyebrow {
    animation: heroEyeliner 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* Card hover lift with shadow dance */
.post-card--elevated:hover {
    transform: translateY(-6px);
}

.post-card--elevated:hover .post-card__shell {
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.08),
        0 40px 80px rgba(0, 0, 0, 0.14),
        0 0 0 1px var(--border-subtle);
}

/* Mood card micro-interactions */
.mood-card {
    transition:
        transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.4s var(--ease-smooth),
        background 0.4s var(--ease-smooth);
}

.mood-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.mood-card:active {
    transform: translateY(-2px) scale(0.99);
}

/* Animated gradient border for rail cards */
.rail-card__shell {
    position: relative;
    overflow: hidden;
}

.rail-card__shell::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, transparent, var(--accent-subtle), transparent);
    background-size: 300% 300%;
    
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    pointer-events: none;
}


}

/* Hero scroll hint animation */
.hero__scroll-hint {
    animation: scrollHintFloat 2s ease-in-out infinite;
}

@keyframes scrollHintFloat {
    0%, 100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(6px); opacity: 1; }
}

/* Sticky nav gradient border when scrolled */
.site-header--scrolled .site-header__shell {
    position: relative;
}

.site-header--scrolled .site-header__shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, var(--accent-subtle), transparent, var(--accent-glow));
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    
}

/* FAB floating */
.fab {
    
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth);
}

.fab:hover {
    animation-play-state: paused;
    transform: translateY(-3px) scale(1.05);
}


}

/* Hide fab animation on mobile */
@media (max-width: 768px) {
    .scroll-indicator { display: none; }
}

/* Enhanced noise overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    pointer-events: none;
    opacity: var(--grain-opacity);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
    animation: grainShift 10s steps(12) infinite;
    mix-blend-mode: overlay;
}

/* Loading bar */
.loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    z-index: 10000;
    transition: width 0.4s var(--ease-smooth);
    box-shadow: 0 0 12px var(--accent-glow);
}

/* Hero entrance overlay */
.hero__inner > * {
    animation: heroReveal 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__inner > *:nth-child(1) { animation-delay: 0.05s; }
.hero__inner > *:nth-child(2) { animation-delay: 0.18s; }
.hero__inner > *:nth-child(3) { animation-delay: 0.32s; }
.hero__inner > *:nth-child(4) { animation-delay: 0.46s; }
.hero__inner > *:nth-child(5) { animation-delay: 0.6s; }

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

/* Category item hover arrow */
.category-item svg {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-item:hover svg {
    transform: translateX(3px) rotate(-5deg);
}

/* Animated underline for nav links */
.site-nav__link {
    position: relative;
}

.site-nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1), left 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav__link:hover::after {
    width: 60%;
    left: 20%;
}

.site-nav__link--active::after {
    width: 60%;
    left: 20%;
}

/* Premium focus ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-subtle), 0 0 0 5px var(--accent-glow);
    border-radius: 6px;
}

/* Premium stat item interactive feedback */
.stat-item {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: visible;
}

.stat-item::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-smooth);
    z-index: -1;
}

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

.stat-item:active {
    transform: scale(0.92);
}

/* Premium scrollbar */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
}

/* Section entrance */
.treehole {
    position: relative;
}

.treehole__title {
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Heatmap bars animation */
.heatmap-viz__bars i {
    display: block;
    width: 100%;
    height: var(--h);
    background: linear-gradient(180deg, var(--accent), var(--accent-hover));
    border-radius: 3px;
    transform-origin: bottom;
    animation: heatBarRise 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--index, 0) * 60ms);
}

@keyframes heatBarRise {
    from { transform: scaleY(0); opacity: 0.3; }
    to { transform: scaleY(1); opacity: 1; }
}

/* Premium shimmer skeleton */
.skeleton-card {
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 20%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 80%
    );
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}