
/* ========================================
   NORTHDETECT - WEBSITE DESIGN
   ======================================== */

:root {
    --background: #080f1c;
    --surface: #101c2e;
    --surface-hover: #142238;
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --text: #f1f5f9;
    --muted: #94a3b8;
    --border: #253650;
    --green: #34d399;
    --orange: #fbbf24;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-light);
    text-decoration: none;
}

a, button {
    -webkit-tap-highlight-color: transparent;
}

button {
    font: inherit;
    cursor: pointer;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 5px;
}

/* Navigation */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 15, 28, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: 1240px;
    margin: auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: var(--text);
}

.logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s;
}

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

#language-toggle {
    padding: 7px 14px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: var(--surface);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 700;
}

/* Hero section */

.hero {
    position: relative;
    min-height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 110px 24px;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 25%,
            rgba(37, 99, 235, 0.19),
            transparent 65%
        ),
        linear-gradient(
            rgba(59, 130, 246, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.035) 1px,
            transparent 1px
        );
    background-size: auto, 40px 40px, 40px 40px;
    border-bottom: 1px solid var(--border);
}

.eyebrow {
    color: var(--primary-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 24px;
}

.hero h1 {
    max-width: 900px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.13;
    letter-spacing: -2px;
    font-weight: 800;
    background: linear-gradient(
        120deg,
        #ffffff 20%,
        #93c5fd 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 650px;
    font-size: 19px;
    color: var(--muted);
    margin: 26px auto 35px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Buttons */

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition:
        background 0.2s,
        transform 0.2s,
        border-color 0.2s;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: #2563eb;
    border: 1px solid #3b82f6;
    color: #ffffff;
}

.primary:hover {
    background: #1d4ed8;
}

.secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}

.secondary:hover {
    border-color: var(--primary);
    background: var(--surface-hover);
}

/* Sections */

.section {
    max-width: 1180px;
    margin: auto;
    padding: 85px 30px;
}

.section h2 {
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 40px;
}

/* Project cards */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 36px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: linear-gradient(
        145deg,
        var(--surface),
        #0d1727
    );
    transition:
        border-color 0.25s,
        transform 0.25s;
}

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

.project-card h3 {
    font-size: 26px;
    line-height: 1.3;
    margin: 22px 0 16px;
}

.project-card p {
    color: var(--muted);
    font-size: 15px;
}

.status {
    align-self: flex-start;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.development {
    color: var(--orange);
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.available {
    color: var(--green);
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.features {
    list-style: none;
    margin: 26px 0 32px;
}

.features li {
    position: relative;
    padding: 10px 0 10px 26px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    color: #cbd5e1;
    font-size: 14px;
}

.features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.project-card .button {
    align-self: flex-start;
    margin-top: auto;
}

.release-info {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--border);
    font-size: 13px !important;
}

/* About and contact */

.about {
    border-top: 1px solid var(--border);
    text-align: center;
}

.about p,
.contact p {
    max-width: 740px;
    margin: 0 auto;
    color: var(--muted);
    font-size: 17px;
}

.contact {
    text-align: center;
    border-top: 1px solid var(--border);
}

.contact .button {
    margin-top: 25px;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Footer */

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    padding: 28px 40px;
    background: #060b14;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

/* Tablet and mobile */

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 16px;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
        gap: 17px;
    }

    .nav-links a {
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 85px 22px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 17px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 26px;
    }

    .section {
        padding: 60px 20px;
    }

    footer {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    html {
        scroll-padding-top: 150px;
    }
}

@media (max-width: 380px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .nav-links {
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }

    .button:hover,
    .project-card:hover {
        transform: none;
    }
}
