/* ===== CSS Variables ===== */
:root {
    --color-bg: #0a0a0a;
    --color-bg-elevated: #111111;
    --color-bg-card: #141414;
    --color-border: #1f1f1f;
    --color-border-hover: #2a2a2a;
    --color-text: #ffffff;
    --color-text-muted: #888888;
    --color-text-dim: #555555;
    --color-primary: #4CA626;
    --color-primary-dim: #3d8a1f;
    --color-primary-glow: rgba(76, 166, 38, 0.35);
    --color-primary-subtle: rgba(76, 166, 38, 0.08);
    --color-warning: #facc15;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== Loading Screen ===== */
.tm-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.tm-loader.tm-loader--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.tm-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.tm-loader-logo-wrap {
    position: relative;
    width: 280px;
    height: 80px;
}
.tm-logo-base,
.tm-logo-fill {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tm-logo-base {
    filter: grayscale(1) brightness(0.25);
}
.tm-logo-fill {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.3s ease-out;
    /* Keep original logo colors - the green 'melon' part will fill in naturally */
}
.tm-loader-bar-wrap {
    width: 280px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 1px;
    overflow: hidden;
}
.tm-loader-bar {
    height: 100%;
    width: 0%;
    background: var(--color-primary);
    border-radius: 1px;
    transition: width 0.3s ease-out;
}
.tm-loader-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.25);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ===== Full-Page Background Animation ===== */
.page-bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(76, 166, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 166, 38, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.6;
}

.page-bg-particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ===== Cursor Glow Effect ===== */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(76, 166, 38, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

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

.system-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    min-width: fit-content;
    white-space: nowrap;
}

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

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-btn {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* ===== Hamburger Menu ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-bg-elevated);
        border-left: 1px solid var(--color-border);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .nav-right.active {
        right: 0;
    }
    
    .nav-link,
    .nav-btn {
        width: 100%;
        text-align: left;
        padding: 1rem 0;
        border-bottom: 1px solid var(--color-border);
        font-size: 0.9rem;
    }
    
    .nav-btn {
        border: 1px solid var(--color-primary);
        border-radius: 4px;
        margin-top: 1rem;
    }
    
    .system-status {
        display: none;
    }
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

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

.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    container-type: inline-size;
}

.hero-badges {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.badge-warning {
    background: var(--color-warning);
    color: #000;
}

.badge-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
}

.hero-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    max-width: 100%;
}

.title-line {
    display: block;
}

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

.title-highlight {
    color: var(--color-primary);
    text-shadow:
        0 0 15px rgba(76, 166, 38, 0.4),
        0 0 40px rgba(76, 166, 38, 0.25),
        0 0 80px rgba(76, 166, 38, 0.15),
        0 0 120px rgba(76, 166, 38, 0.08);
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.8;
}

.highlight-text {
    color: var(--color-text);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--color-primary-dim);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(76, 166, 38, 0.35), 0 0 60px rgba(76, 166, 38, 0.12);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 0.85rem;
}

.uptime-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

.uptime-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
}

.uptime-value {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.uptime-bars {
    display: flex;
    gap: 2px;
}

.uptime-bars span {
    width: 4px;
    height: 20px;
    background: var(--color-primary);
    opacity: 0.3;
    animation: bar-pulse 1.5s ease-in-out infinite;
}

.uptime-bars span:nth-child(1) { animation-delay: 0s; }
.uptime-bars span:nth-child(2) { animation-delay: 0.1s; }
.uptime-bars span:nth-child(3) { animation-delay: 0.2s; }
.uptime-bars span:nth-child(4) { animation-delay: 0.3s; }
.uptime-bars span:nth-child(5) { animation-delay: 0.4s; }
.uptime-bars span:nth-child(6) { animation-delay: 0.5s; }
.uptime-bars span:nth-child(7) { animation-delay: 0.6s; }
.uptime-bars span:nth-child(8) { animation-delay: 0.7s; }
.uptime-bars span:nth-child(9) { animation-delay: 0.8s; }
.uptime-bars span:nth-child(10) { animation-delay: 0.9s; }

@keyframes bar-pulse {
    0%, 100% { opacity: 0.3; height: 12px; }
    50% { opacity: 1; height: 20px; }
}

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

/* ===== Ticker ===== */
.ticker {
    background: var(--color-primary);
    padding: 0.75rem 0;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: ticker 40s linear infinite;
}

.ticker-content {
    display: flex;
    flex-shrink: 0;
}

.ticker-item {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-bg);
    white-space: nowrap;
    letter-spacing: 0.05em;
    padding: 0 1.5rem;
}

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

/* ===== Stats Section ===== */
.stats {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 3rem 2rem;
}

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

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

.stat-card {
    text-align: center;
}

.stat-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text);
    line-height: 1;
}

.stat-prefix,
.stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
}

/* ===== Section Styles ===== */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.section-description {
    max-width: 500px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 4rem;
}

/* ===== Services Carousel ===== */
.services-carousel {
    position: relative;
    width: 100%;
    background: var(--color-bg);
}

.carousel-viewport {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
    position: relative;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10, 10, 10, 0.95) 0%,
        rgba(10, 10, 10, 0.5) 40%,
        rgba(10, 10, 10, 0.15) 100%
    );
}

.carousel-content {
    position: relative;
    z-index: 2;
    padding: 4rem;
    max-width: 700px;
}

.carousel-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.carousel-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.carousel-description {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 500px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    background: rgba(10, 10, 10, 0.9);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.carousel-prev {
    left: 1.5rem;
}

.carousel-next {
    right: 1.5rem;
}

.carousel-dots {
    position: absolute;
    bottom: 2rem;
    right: 4rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.carousel-dot {
    width: 32px;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 48px;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.carousel-dot.active:hover {
    background: var(--color-primary);
}

@media (max-width: 768px) {
    .carousel-viewport {
        height: 70vh;
        min-height: 400px;
    }

    .carousel-content {
        padding: 2rem;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 1rem;
    }

    .carousel-next {
        right: 1rem;
    }

    .carousel-dots {
        right: 2rem;
        bottom: 1.5rem;
    }
}

/* ===== Tech Specs ===== */
.tech-specs {
    background: var(--color-bg);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

@media (max-width: 640px) {
    .specs-grid {
        grid-template-columns: 1fr;
    }
}

.spec-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spec-card:hover {
    border-color: var(--color-border-hover);
    transform: translateY(-4px);
}

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

.spec-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-subtle);
    border: 1px solid rgba(76, 166, 38, 0.18);
    border-radius: 8px;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.spec-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.spec-description {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.spec-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.spec-version {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-text-dim);
}

.spec-status {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-primary);
}

/* ===== Projects Section ===== */
.projects {
    background: var(--color-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--color-border-hover);
}

.project-featured {
    grid-row: span 2;
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    overflow: hidden;
}

.project-featured .project-image {
    aspect-ratio: 16/12;
}

.project-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: linear-gradient(135deg, rgba(76, 166, 38, 0.05) 0%, rgba(76, 166, 38, 0.02) 100%);
}

.project-image-placeholder.small {
    font-size: 0.7rem;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 50%);
}

.project-content {
    padding: 1.5rem;
}

.project-category {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.project-description {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-contributors {
    margin-bottom: 1.5rem;
}

.contributors-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--color-text-dim);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.contributors-list {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.05em;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 1rem;
}

/* ===== CTA Section ===== */
.cta {
    background: var(--color-text);
    color: var(--color-bg);
    padding: 6rem 2rem;
    text-align: center;
}

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

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: var(--color-bg);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
    background: var(--color-bg-elevated);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.cta .btn-outline:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-elevated);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
    }
}

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

.footer-brand .logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 6rem;
}

@media (max-width: 640px) {
    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-address {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-style: normal;
    color: var(--color-text-muted);
    line-height: 1.8;
}

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

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

.footer-list a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-text-dim);
}

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

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.social-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badges,
.hero-title,
.hero-description,
.hero-actions {
    animation: fadeInUp 0.8s ease forwards;
    animation-play-state: paused;
}

.hero-badges { animation-delay: 0.1s; }
.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.3s; }
.hero-actions { animation-delay: 0.4s; }

body.tm-loaded .hero-badges,
body.tm-loaded .hero-title,
body.tm-loaded .hero-description,
body.tm-loaded .hero-actions {
    animation-play-state: running;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}
