@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #0f1115;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-light: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --selection-color: rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

::selection {
    background: var(--selection-color);
    color: var(--text-primary);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main>section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

main>section:nth-child(1) {
    animation-delay: 0.1s;
}

main>section:nth-child(2) {
    animation-delay: 0.3s;
}

main>section:nth-child(3) {
    animation-delay: 0.5s;
}

main>section:nth-child(4) {
    animation-delay: 0.7s;
}

.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
    pointer-events: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    z-index: 50;
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.brand-link {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s;
}

.brand-link:hover {
    opacity: 0.9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 5rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    opacity: 0;
    animation: fadeIn 1s 1.5s forwards;
}

.scroll-indicator::before {
    content: '';
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
    background: #fff;
    color: var(--bg-dark);
    letter-spacing: 0.5px;
}

.btn-primary:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 4px;
    border-radius: 4px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin: 6rem 0;
}

.tilt-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.1s ease-out, border-color 0.3s;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.tilt-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-stat {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    padding: 8rem 0;
}

.content-split.reversed {
    direction: rtl;
}

.content-split.reversed>* {
    direction: ltr;
}

.feature-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--border-light);
    filter: grayscale(10%);
    transition: all 0.5s ease;
}

.feature-img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.section-head {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.section-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.error-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.1) 0%, rgba(15, 17, 21, 1) 70%);
    padding: 2rem;
}

.error-code {
    font-size: clamp(8rem, 20vw, 15rem);
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    margin-bottom: 1rem;
}

.error-code::after {
    content: '404';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(25px);
    opacity: 0.4;
    z-index: -1;
}

.error-msg {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.error-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
}

footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: auto;
    background: rgba(15, 17, 21, 0.5);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .content-split {
        gap: 3rem;
        padding: 6rem 0;
    }
}

@media (max-width: 900px) {
    .scroll-indicator {
        display: none;
    }

    .grid-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 4rem 0;
    }

    .content-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 4rem 0;
        direction: ltr !important;
    }

    .feature-img {
        max-height: 400px;
        object-fit: cover;
    }

    .hero-section {
        padding-top: 6rem;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
        background: rgba(15, 17, 21, 0.95);
    }

    nav {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-link {
        margin-left: 0;
        font-size: 0.95rem;
        padding: 0.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .hero-subtitle {
        padding: 0 1rem;
    }

    .tilt-card {
        padding: 2rem;
    }

    .section-head {
        font-size: 2rem;
    }
}