@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&family=Share+Tech+Mono&family=DotGothic16&display=swap');

:root {
    --bg-base: #020617;
    --bg-surface: #0f172a;
    --primary: #ef4444;
    /* Crimson Red */
    --primary-dim: rgba(239, 68, 68, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --hacker-font: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */

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

section {
    padding: 140px 0;
}

/* --- Global Components --- */

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    display: block;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    text-decoration: none;
    gap: 10px;
}

.btn-primary {
    background: var(--primary);
    color: #000;
    border: none;
}

.btn-primary:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
}

/* --- Navigation --- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    background: rgba(2, 6, 23, 0.85);
    transition: all 0.3s var(--ease);
}

.nav-scrolled {
    height: 65px;
    background: rgba(2, 6, 23, 0.98);
}

.nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.nav-quote {
    font-family: 'DotGothic16', sans-serif;
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--primary);
    width: 0;
    max-width: fit-content;
    animation: typing 5s steps(42) infinite, blink 0.8s step-end infinite;
    opacity: 0.9;
    justify-self: center;
}

@keyframes typing {

    0%,
    10% {
        width: 0;
    }

    40%,
    90% {
        width: 42ch;
    }

    100% {
        width: 0;
    }
}

@keyframes blink {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }
}

@media (max-width: 1024px) {
    .nav-inner {
        display: flex;
        justify-content: space-between;
    }

    .nav-quote {
        display: none;
    }
}

.logo-brand {
    font-family: var(--hacker-font);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.logo-brand span {
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    justify-self: end;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:not(.btn):hover {
    color: #fff;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-only {
    display: none;
}

.desk-only {
    display: block;
}

/* --- Hero --- */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    text-align: center;
}

.hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}




/* --- Footer --- */

footer {
    padding: 100px 0 60px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

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

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

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

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

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

@media (max-width: 992px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .desk-only {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.98);
        border-bottom: 1px solid var(--border);
        padding: 2rem;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        backdrop-filter: blur(20px);
    }

    .nav-links.active {
        display: flex;
    }

    section {
        padding: 80px 0;
    }

    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* --- Privacy & Terms Overlay --- */

.footer-cta {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.footer-cta:hover {
    color: var(--primary);
}


.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* --- Scroll to Top --- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    opacity: 0;
    visibility: hidden;
    z-index: 2000;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
    bottom: 40px;
}

.scroll-top:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px -10px rgba(239, 68, 68, 0.3);
}