@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@700;800;900&family=Inter:wght@400;500&display=swap');

:root {
    --bg: #0a0a0a;
    --bg-alt: #111;
    --white: #fff;
    --gray: #888;
    --accent: #e63312;
    --accent-hover: #ff4425;
}

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

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

h1, h2, h3, h4 {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.accent {
    color: var(--accent);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate {
    opacity: 0;
}

.animate.in-view {
    animation-duration: 1.4s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.animate.fade-up.in-view { animation-name: fadeInUp; }
.animate.fade-in.in-view { animation-name: fadeIn; }
.animate.slide-left.in-view { animation-name: slideInLeft; }
.animate.scale-in.in-view { animation-name: scaleIn; }

.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.35s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.55s; }
.delay-5 { animation-delay: 0.65s; }

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background 0.3s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
}

.logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    color: var(--gray);
    transition: color 0.2s ease;
    position: relative;
}

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

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

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

.nav-cta {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--bg);
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--white);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 8rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.hero-title span {
    display: block;
}

.hero-title .outline {
    -webkit-text-stroke: 1px var(--white);
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 4rem;
}

.hero-desc {
    max-width: 400px;
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-scroll-line {
    width: 60px;
    height: 1px;
    background: var(--gray);
}

/* Marquee */
.marquee {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin: 4rem 0;
}

.marquee-inner {
    display: flex;
    gap: 4rem;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4rem;
}

.marquee-item::after {
    content: '●';
    color: var(--accent);
}

/* Sections */
.section {
    padding: 8rem 0;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 4rem);
    max-width: 800px;
    margin-bottom: 4rem;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.service {
    background: var(--bg);
    padding: 3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service:hover {
    background: var(--bg-alt);
    transform: translateY(-5px);
}

.service-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 0.875rem;
    color: var(--accent);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.service:hover .service-num {
    transform: translateX(5px);
}

.service h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* About */
.about {
    background: var(--bg-alt);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.about-text p strong {
    color: var(--white);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.stat {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 1.5rem;
    transition: border-color 0.3s ease;
}

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

.stat-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.stat:hover .stat-num {
    color: var(--accent);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA */
.cta {
    text-align: center;
    padding: 10rem 0;
}

.cta-title {
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 800;
    margin-bottom: 2rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    padding: 1.25rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    border-radius: 100px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
}

.cta-btn svg {
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(5px);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    position: relative;
}

.footer-logo {
    font-family: 'Unbounded', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--gray);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-sub {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .hero-scroll {
        display: none;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .stat-num {
        font-size: 2.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        position: static;
        transform: none;
    }
}

/* Utilities */
::selection {
    background: var(--accent);
    color: var(--white);
}

a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* 404 Page Specific */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(120px, 20vw, 300px);
    font-weight: 800;
    line-height: 1;
    -webkit-text-stroke: 2px var(--text);
    margin-bottom: 24px;
}

.error-title {
    font-size: clamp(24px, 4vw, 40px);
    margin-bottom: 16px;
 }

.error-desc {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.error-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
