:root {
    color-scheme: dark; /* Signals dark mode support to browsers and extensions */
    --bg-base-default: #0a0b0d;
    --bg-base-secondary: #121314;
    --bg-overlay-l1: rgba(237, 239, 242, 0.04);
    --bg-overlay-l2: rgba(237, 239, 242, 0.08);
    --bg-overlay-l3: rgba(237, 239, 242, 0.13);
    --bg-overlay-l4: rgba(237, 239, 242, 0.18);
    --bg-brand: #32f08c;
    --bg-brand-hover: #0fdc78;
    --bg-invert: #edeff2;
    
    --text-default: #f5f9fe;
    --text-secondary: #a6aab5;
    --text-tertiary: #787d87;
    --text-disabled: #787d87;
    --text-brand: #32f08c;
    --text-brand-hover: #0fdc78;
    
    --border-neutral-l1: rgba(255, 255, 255, 0.06);
    --border-neutral-l2: rgba(255, 255, 255, 0.12);
    --border-neutral-l3: rgba(255, 255, 255, 0.18);
    
    --font-family-default: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    --font-family-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    
    --font-weight-default: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    
    --font-size-heading-1: 42px;
    --font-size-heading-2: 36px;
    --font-size-heading-3: 32px;
    --font-size-heading-4: 30px;
    --font-size-subhead-1: 28px;
    --font-size-subhead-2: 24px;
    --font-size-subhead-3: 20px;
    --font-size-subhead-4: 18px;
    --font-size-body-1: 16px;
    --font-size-body-2: 14px;
    --font-size-body-3: 13px;
    
    --line-height-heading: 1.2;
    --line-height-subhead: 1.3;
    --line-height-body: 1.6;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

input, textarea, [contenteditable] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-default);
    background: var(--bg-base-default);
    color: var(--text-default);
    font-size: var(--font-size-body-2);
    line-height: var(--line-height-body);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body.page-exit {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.page-enter {
    opacity: 0;
    transform: translateY(20px);
    animation: pageEnter 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageEnter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(50, 240, 140, 0.08), transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(50, 240, 140, 0.05), transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 50%, rgba(50, 240, 140, 0.03), transparent 50%);
    z-index: -2;
    pointer-events: none;
    animation: backgroundPulse 8s ease-in-out infinite;
}

/* Parallax background removed in favor of global canvas particles */

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

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

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

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 800ms cubic-bezier(0.77, 0, 0.175, 1), visibility 800ms cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden; /* Ensure intro animation doesn't overflow during transition */
}

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

.intro-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.intro-logo {
    display: flex;
    gap: 0.5rem;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2rem;
    position: relative;
    color: #fff;
    flex-wrap: wrap; /* Allow wrapping if text gets too long via translation */
    justify-content: center;
}

.intro-logo .letter {
    display: inline-block;
    opacity: 0;
    filter: blur(20px);
    transform: translateY(40px) scale(1.2);
    animation: letterReveal 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.intro-logo .letter:nth-child(1) { animation-delay: 0.2s; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,0.3); }
.intro-logo .letter:nth-child(2) { animation-delay: 0.4s; color: var(--bg-brand); text-shadow: 0 0 30px rgba(50, 240, 140, 0.5); }
.intro-logo .letter:nth-child(3) { animation-delay: 0.6s; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,0.3); }

.intro-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--bg-brand), transparent);
    margin-bottom: 1.5rem;
    opacity: 0.8;
    animation: lineExpand 1s cubic-bezier(0.23, 1, 0.32, 1) forwards 1s;
    box-shadow: 0 0 15px var(--bg-brand);
}

.intro-subtext {
    font-size: clamp(0.875rem, 2vw, 1.25rem);
    letter-spacing: 0.5em;
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    animation: subtextReveal 1s ease-out forwards 1.4s;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        transform: translateY(40px) scale(1.2);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0) scale(1);
    }
}

@keyframes lineExpand {
    0% { width: 0; opacity: 0; }
    50% { opacity: 1; }
    100% { width: 200px; opacity: 0.8; }
}

@keyframes subtextReveal {
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Remove old styles */
.intro-text { display: none; }


.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: transparent;
    border-bottom: none;
    z-index: 50;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: transparent;
    border-bottom: none;
    z-index: 50;
    transition: background var(--transition-normal), border-color var(--transition-normal);
}

.navbar.scrolled,
header.scrolled {
    background: rgba(10, 11, 13, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-neutral-l1);
}

.header-inner,
.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-default);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 24px;
    height: 24px;
    color: var(--bg-brand);
    transition: transform var(--transition-normal);
}

.logo:hover .logo-icon {
    transform: rotate(180deg);
}

.logo span {
    display: inline-block;
    transition: transform var(--transition-normal);
}

.logo:hover span {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-right: auto; /* Push auth to right if needed, or use justify-between */
    margin-left: 4rem;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-auth .btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

/* User Menu Dropdown */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-brand);
    color: var(--bg-base-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-base-secondary);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: var(--bg-overlay-l1);
    color: var(--text-default);
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-neutral-l1);
    margin: 0.5rem 0;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--bg-brand);
    transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-default);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Enhanced Page Header (Unified Full Body) */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Removed specific background to allow global particles to show through */
    margin-bottom: 2rem;
    padding-top: 80px;
    padding-bottom: 40px; /* Add bottom padding to accommodate content expansion */
}

/* Removed .page-hero::before to eliminate gradient overlay fragmentation */

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.page-hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--text-default);
    text-shadow: 0 0 30px rgba(0,0,0,0.5); /* Improve readability against particles */
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.page-hero-decoration {
    /* Kept for potential floating elements, but ensured no background block */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Compact Layout Tweaks */
.section {
    padding: 3rem 0; /* Reduced from default padding */
}

.section-header {
    margin-bottom: 2rem; /* Reduced from 4rem */
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Denser grid */
    gap: 1.5rem;
}

/* =========================================
   Blog & Admin Shared Styles
   ========================================= */
.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: auto; /* Changed from 100% to auto to prevent overflow */
    min-height: 100%; /* Ensure uniform height but allow expansion */
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-brand);
    transform: translateY(-2px);
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-default);
}

.blog-meta-header {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

/* Admin UI Specifics */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 80vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-neutral-l1);
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid var(--border-neutral-l1);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.admin-tab:hover, .admin-tab.active {
    background: var(--bg-brand);
    color: #000;
    border-color: var(--bg-brand);
    font-weight: 600;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
}

.data-table th, .data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-neutral-l1);
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--text-default);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active { background: rgba(50, 240, 140, 0.15); color: var(--text-brand); }
.status-banned { background: rgba(255, 80, 80, 0.15); color: #ff5050; }
.status-pending { background: rgba(255, 200, 50, 0.15); color: #ffc832; }

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-neutral-l2);
    border-radius: 8px;
    color: var(--text-default);
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--bg-brand);
    background: rgba(255, 255, 255, 0.05);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-danger {
    background: rgba(255, 80, 80, 0.15);
    color: #ff5050;
    border: 1px solid rgba(255, 80, 80, 0.3);
}

.btn-danger:hover {
    background: rgba(255, 80, 80, 0.3);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #1a1b1e;
    border: 1px solid var(--border-neutral-l1);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 500px;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatOrb 10s infinite ease-in-out;
}

@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 20px); }
}

main {
    padding-top: 0; /* Reset padding as page-hero handles spacing */
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.hero {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
    overflow: visible; /* Changed from hidden to visible to allow text expansion */
}

.hero-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: var(--font-size-heading-1);
    font-weight: 700;
    line-height: var(--line-height-heading);
    color: var(--text-default);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    word-break: break-word; /* Prevent long translated words from overflowing */
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-title span:nth-child(1) { animation-delay: 0.1s; }
.hero-title span:nth-child(2) { animation-delay: 0.2s; }
.hero-title span:nth-child(3) { animation-delay: 0.3s; }

.hero-subtitle {
    font-size: var(--font-size-subhead-2);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero-description {
    font-size: var(--font-size-body-1);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: var(--line-height-body);
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: var(--font-size-body-1);
    font-weight: 500;
    border-radius: 0.375rem;
    transition: all var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--bg-brand);
    color: #0a0b0d;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--bg-brand-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 12px rgba(50, 240, 140, 0.3), 0 3px 6px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-default);
    border: 1px solid var(--border-neutral-l2);
}

.btn-secondary:hover {
    background: var(--bg-overlay-l2);
    border-color: var(--border-neutral-l3);
}

.interactive-section {
    padding: 2rem 2rem;
    position: relative;
    overflow: visible;
    background: transparent;
}

.interactive-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    perspective: 1000px;
}

.interactive-text {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-default);
    text-align: center;
    position: relative;
    z-index: 2;
    cursor: default;
    user-select: none;
}

.interactive-text .char {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-text:hover .char {
    color: var(--text-brand);
}

/* Interactive particles removed in favor of global canvas particles */

@media (max-width: 768px) {
    .interactive-text {
        font-size: 2.5rem;
    }
    
    .interactive-section {
        padding: 4rem 1rem;
    }
}

.features {
    padding: 6rem 2rem;
    position: relative;
    overflow: visible; /* Changed from hidden to visible */
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: var(--font-size-heading-2);
    font-weight: 600;
    color: var(--text-default);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    font-size: var(--font-size-body-1);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid .card {
    opacity: 0;
    transform: translateY(30px);
    height: auto; /* Allow height to grow with content */
    min-height: 100%; /* Maintain consistent grid heights */
}

.features-grid .card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.features-grid .card.visible:hover {
    transform: translateY(-8px);
    border-color: var(--border-neutral-l2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.card {
    background: rgba(18, 19, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 0.75rem;
    padding: 2rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    display: flex; /* Make card a flex container */
    flex-direction: column; /* Stack children vertically */
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--border-neutral-l2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-default);
    font-size: var(--font-size-body-2);
}

.form-input,
.form-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    color: var(--text-default);
    font-family: inherit;
    font-size: var(--font-size-body-2);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--bg-brand);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 2px rgba(50, 240, 140, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.card:hover::before {
    left: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-overlay-l2);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    transition: background var(--transition-fast);
}

.card:hover .card-icon {
    background: var(--bg-overlay-l3);
}

.card-title {
    font-size: var(--font-size-subhead-3);
    font-weight: 600;
    color: var(--text-default);
    margin-bottom: 0.75rem;
.card-description {
    font-size: var(--font-size-body-2);
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1; /* Allow description to fill available space */
}var(--line-height-body);
}

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

footer,
.footer {
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-neutral-l1);
    background: transparent;
    backdrop-filter: blur(12px);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 0;
    background: transparent;
    align-items: flex-start;
}

.footer-section {
    flex: 0 1 calc(25% - 2.25rem);
}

.footer-section h3 {
    font-size: var(--font-size-subhead-3);
    font-weight: 600;
    color: var(--text-default);
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    font-size: var(--font-size-body-1);
    font-weight: 600;
    color: var(--text-default);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: var(--font-size-body-2);
    transition: color var(--transition-fast);
}

.footer-section a:hover {
    color: var(--text-brand);
}

.footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border-neutral-l1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: var(--font-size-body-2);
    color: var(--text-tertiary);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-neutral-l2);
    border-radius: 0.5rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--bg-brand);
    color: var(--bg-brand);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: var(--font-size-heading-3);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-subhead-3);
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .team-marquee {
        animation: none;
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (min-width: 744px) {
    :root {
        --font-size-heading-1: 56px;
        --font-size-heading-2: 48px;
        --font-size-heading-3: 42px;
        --font-size-heading-4: 40px;
        --font-size-subhead-1: 34px;
        --font-size-subhead-2: 28px;
        --font-size-subhead-3: 20px;
        --font-size-subhead-4: 18px;
    }
}

@media (min-width: 1280px) {
    :root {
        --font-size-heading-1: 72px;
        --font-size-heading-2: 64px;
        --font-size-heading-3: 56px;
        --font-size-heading-4: 48px;
        --font-size-subhead-1: 40px;
        --font-size-subhead-2: 32px;
        --font-size-subhead-3: 24px;
        --font-size-subhead-4: 20px;
        --font-size-body-1: 18px;
        --font-size-body-2: 16px;
        --font-size-body-3: 14px;
        --line-height-heading: 1.1;
    }
}

.section {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--font-size-heading-2);
    font-weight: 700;
    color: var(--text-default);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: var(--font-size-subhead-2);
    color: var(--text-secondary);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

.member-card {
    background: rgba(18, 19, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.member-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-neutral-l2);
}

.member-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bg-brand) 0%, var(--bg-brand-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--bg-base-default);
    margin: 0 auto 1.5rem;
}

.member-card h3 {
    font-size: var(--font-size-subhead-2);
    font-weight: 600;
    color: var(--text-default);
    margin-bottom: 0.5rem;
}

.member-role {
    display: inline-block;
    font-size: var(--font-size-body-2);
    font-weight: 500;
    color: var(--bg-brand);
    background: var(--bg-overlay-l2);
    padding: 0.25rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.member-card p {
    font-size: var(--font-size-body-2);
    color: var(--text-secondary);
    line-height: 1.6;
}

.team-section {
    padding: 0;
    height: 400vh; /* Create scroll track */
    position: relative;
    view-timeline-name: --team-scroll;
    view-timeline-axis: block;
}

.team-marquee-container {
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent; /* Remove background to show global bg */
}

#global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Old div particle styles removed */

.team-marquee {
    display: flex;
    gap: 4rem;
    padding: 0 4rem;
    width: max-content;
    will-change: transform;
}

.team-card {
    display: block; /* Ensure it behaves like a block for anchor tags */
    text-decoration: none; /* Remove underline for anchor tags */
    color: inherit; /* Inherit text color */
    flex-shrink: 0;
    width: 320px;
    background: rgba(18, 19, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(50, 240, 140, 0.1), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover::before {
    left: 100%;
}

.team-card:hover {
    border-color: var(--border-neutral-l2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.team-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--bg-brand);
}

.team-card h3 {
    font-size: var(--font-size-subhead-2);
    font-weight: 600;
    color: var(--text-default);
    margin-bottom: 0.5rem;
}

/* particles-container removed in favor of #global-particles */

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px) scale(1.2);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-40px) translateX(-10px) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) translateX(15px) scale(1.1);
        opacity: 0.4;
    }
}

/* Blog Pages Styles */
.blog-header {
    padding: 120px 0 60px;
    text-align: center;
}
.member-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--bg-brand), #3b82f6);
    color: white;
    box-shadow: 0 0 20px rgba(50, 240, 140, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}
.member-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
}
.blog-post {
    background: rgba(18, 19, 20, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-neutral-l1);
    border-radius: 0.75rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out forwards;
}
.blog-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-default);
}
.blog-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}
.blog-text {
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Blog Index Styles */
.link-card {
    text-decoration: none;
    color: inherit;
    display: block;
}
.blog-meta-header {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}
.blog-meta-author {
    color: var(--bg-brand);
}
.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
}
.blog-read-more {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    color: var(--bg-brand);
    font-weight: 500;
}
.tag-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.tag-pill {
    padding: 0.5rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 2rem;
    border: 1px solid var(--border-neutral-l1);
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}
.tag-pill:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--bg-brand);
    color: var(--text-default);
}

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

.blog-member-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-default);
}
.blog-member-role {
    color: var(--bg-brand);
    font-size: 1.125rem;
    margin-bottom: 1rem;
}
.blog-member-desc {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
.blog-section-title {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-neutral-l1);
    padding-bottom: 1rem;
    color: var(--text-default);
}

/* Additional Blog Layout Styles */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
}

@media (max-width: 900px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .blog-sidebar {
        position: static;
    }
}
