:root {
    --bg: #09090b;
    --fg: #fafafa;
    --fg-muted: #a1a1aa;
    --border: #27272a;
    --primary: #fafafa;
    --primary-inv: #09090b;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --card-bg: #18181b;
    --card-hover: #27272a;
    --gradient-start: #fff;
    --gradient-end: #a1a1aa;

    --font-heading: 'Cal Sans', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Animation variables */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== ANIMATIONS ===== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down Animation */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Scale Animation */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Glow Pulse */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--accent-glow), 0 0 60px var(--accent-glow);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(2deg);
    }
    50% {
        transform: translateY(-10px) rotateX(2deg);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Bounce */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Typing Cursor */
@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }
.stagger-7 { transition-delay: 0.7s; }
.stagger-8 { transition-delay: 0.8s; }

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: fadeInDown 0.6s var(--ease-out-expo) forwards;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    transition: transform 0.3s var(--ease-out-expo);
}

.logo:hover img {
    transform: rotate(-10deg);
}

.nav {
    display: none;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
        gap: 32px;
        font-size: 0.95rem;
        color: var(--fg-muted);
    }

    .nav a {
        position: relative;
        padding: 4px 0;
        transition: color 0.3s;
    }

    .nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--accent);
        transition: width 0.3s var(--ease-out-expo);
    }

    .nav a:hover {
        color: var(--fg);
    }

    .nav a:hover::after {
        width: 100%;
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out-expo);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

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

.btn-primary:hover {
    background: #e4e4e7;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.3);
}

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

.btn-secondary:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--border);
    color: var(--fg);
}

.btn-outline:hover {
    background: var(--card-bg);
    border-color: var(--fg-muted);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* ===== HERO ===== */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

/* Animated Background Gradient */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
    animation: fadeInScale 1.5s var(--ease-out-expo) forwards;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 24px;
    animation: fadeInDown 0.6s var(--ease-out-expo) 0.2s both;
}

.hero-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: glowPulse 2s infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s both;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--fg-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.5s both;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }

    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    border-top: 1px solid var(--border);
    padding-top: 32px;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.6s both;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: transform 0.3s var(--ease-out-expo);
}

.stat:hover .stat-value {
    transform: scale(1.1);
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--fg-muted);
}

/* ===== HERO VISUAL / MOCKUP ===== */
.hero-visual {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    perspective: 1000px;
    animation: fadeInUp 1s var(--ease-out-expo) 0.7s both;
}

.browser-mockup {
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotateX(2deg);
    transition: transform 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    animation: float 6s ease-in-out infinite;
}

.browser-mockup:hover {
    transform: rotateX(0deg) translateY(-5px);
    box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.1);
}

.browser-header {
    background: #27272a;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid #3f3f46;
}

.dots {
    display: flex;
    gap: 6px;
    margin-right: 16px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #52525b;
    transition: transform 0.3s var(--ease-out-expo);
}

.browser-mockup:hover .dots span {
    transform: scale(1.2);
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #eab308;
}

.dots span:nth-child(3) {
    background: #22c55e;
}

.nav-bar {
    flex: 1;
    height: 24px;
    background: #18181b;
    border-radius: 4px;
    max-width: 400px;
}

.browser-body {
    height: 480px;
    background: #09090b;
    display: flex;
}

.app-ui {
    display: flex;
    width: 100%;
    height: 100%;
}

.sidebar {
    width: 60px;
    border-right: 1px solid #27272a;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ui-item {
    width: 100%;
    aspect-ratio: 1;
    background: #27272a;
    border-radius: 6px;
    transition: background 0.3s, transform 0.3s var(--ease-out-expo);
}

.ui-item:hover {
    transform: scale(1.1);
}

.ui-item.active {
    background: #fff;
}

.main-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.shortcut-row {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 12px;
    transition: transform 0.3s var(--ease-out-expo), border-color 0.3s, background 0.3s;
}

.shortcut-row:hover {
    transform: translateX(10px);
    border-color: var(--accent);
    background: #1f1f23;
}

.key-combo {
    font-family: monospace;
    background: #27272a;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #a1a1aa;
    transition: background 0.3s, color 0.3s;
}

.shortcut-row:hover .key-combo {
    background: var(--accent);
    color: #fff;
}

.site-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon {
    width: 32px;
    height: 32px;
    background: #27272a;
    border-radius: 6px;
    transition: transform 0.3s var(--ease-out-expo);
}

.shortcut-row:hover .icon {
    transform: rotate(-5deg) scale(1.1);
}

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

.line {
    height: 6px;
    background: #27272a;
    border-radius: 3px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.shortcut-row:hover .line::after {
    left: 100%;
}

.line.short {
    width: 60%;
}

.blur-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

/* ===== FEATURES ===== */
.features {
    padding: 100px 0;
    background: var(--bg);
    position: relative;
    border-top: 1px solid #18181b;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--fg-muted);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

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

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: 12px;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--card-hover);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(59, 130, 246, 0.1);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    background: #27272a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #fff;
    transition: transform 0.4s var(--ease-out-expo), background 0.4s;
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--accent);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ===== DEMO SECTION ===== */
.demo-section {
    padding: 100px 0;
    border-top: 1px solid #18181b;
}

.demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 900px) {
    .demo-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.demo-text h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.steps li {
    display: flex;
    gap: 24px;
    transition: transform 0.3s var(--ease-out-expo);
}

.steps li:hover {
    transform: translateX(10px);
}

.step-num {
    width: 32px;
    height: 32px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.3s var(--ease-out-expo), background 0.3s;
}

.steps li:hover .step-num {
    transform: scale(1.2);
    background: var(--accent);
    color: #fff;
}

.steps h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.steps p {
    color: var(--fg-muted);
}

.demo-preview {
    background: linear-gradient(135deg, #18181b 0%, #09090b 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.demo-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.05), transparent 30%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.keyboard-visual {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.key {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-bottom-width: 4px;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
}

.key:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px -2px rgba(0, 0, 0, 0.4);
}

.key.accent {
    background: #fff;
    color: #000;
    border-color: #e4e4e7;
    animation: glowPulse 2s infinite;
}

.arrow-down {
    color: var(--fg-muted);
    animation: bounce 2s infinite;
    position: relative;
    z-index: 1;
}

.browser-window {
    width: 100%;
    background: #27272a;
    border-radius: 8px;
    padding: 12px;
    position: relative;
    z-index: 1;
}

.url-bar {
    background: #18181b;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--fg-muted);
    overflow: hidden;
    white-space: nowrap;
}

/* Typing animation for URL */
.url-bar.typing {
    animation: typing 2s steps(30) infinite;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid #18181b;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
    transition: color 0.3s;
}

.logo-text:hover {
    color: var(--accent);
}

.footer-brand p {
    color: var(--fg-muted);
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 640px) {
    .footer-links {
        flex-direction: row;
        justify-content: space-between;
    }
}

.link-group h4 {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: var(--fg);
}

.link-group a {
    display: block;
    margin-bottom: 12px;
    color: var(--fg-muted);
    font-size: 0.9rem;
    transition: color 0.3s, transform 0.3s var(--ease-out-expo);
}

.link-group a:hover {
    color: var(--fg);
    transform: translateX(5px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #18181b;
    padding-top: 32px;
    color: var(--fg-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom a {
    color: var(--fg);
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ===== KBD STYLING ===== */
kbd {
    background-color: #27272a;
    border-radius: 3px;
    border: 1px solid #3f3f46;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 2px 0 0 rgba(255, 255, 255, 0.05) inset;
    display: inline-block;
    font-size: .85em;
    font-weight: 700;
    line-height: 1;
    padding: 2px 4px;
    white-space: nowrap;
    margin: 0 2px;
    transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
}

kbd:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3), 0 2px 0 0 rgba(255, 255, 255, 0.05) inset;
}

/* ===== LEGAL PAGES ===== */
.legal-content h2 {
    font-family: var(--font-heading);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.legal-content p {
    color: var(--fg-muted);
    margin-bottom: 24px;
}

.legal-content ul {
    color: var(--fg-muted);
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 40px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* ===== CHANGELOG STYLES ===== */
.changelog-content h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.version-block {
    margin-bottom: 48px;
    padding-left: 24px;
    border-left: 2px solid var(--border);
    transition: border-color 0.3s;
}

.version-block:hover {
    border-left-color: var(--accent);
}

.version-header {
    margin-bottom: 16px;
}

.version-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-latest {
    background: var(--accent);
    color: #fff;
}

.version-date {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.changes {
    margin-top: 16px;
}

.changes ul {
    list-style-type: none;
    padding-left: 0;
}

.changes li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--fg-muted);
    transition: color 0.3s, transform 0.3s var(--ease-out-expo);
}

.changes li:hover {
    color: var(--fg);
    transform: translateX(5px);
}

.changes li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--accent);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s var(--ease-out-expo);
    z-index: 99;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
    color: var(--fg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--fg);
    cursor: pointer;
    padding: 8px;
}

@media (max-width: 767px) {
    .mobile-menu-btn {
        display: block;
    }

    .btn-primary.header-cta {
        display: none;
    }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }
}
