﻿:root {
    --background: #07111f;
    --background-soft: #0d1a2c;
    --surface: rgba(255, 255, 255, 0.07);
    --surface-border: rgba(255, 255, 255, 0.13);
    --text: #f5f7fb;
    --text-soft: #b6c0cf;
    --accent: #49a6ff;
    --accent-strong: #1687ee;
    --legacy: #f0b84b;
    --maximum-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 40px), var(--maximum-width));
    margin-inline: auto;
}

.hero {
    min-height: 720px;
    background:
        radial-gradient(circle at 80% 20%, rgba(73, 166, 255, 0.22), transparent 35%),
        radial-gradient(circle at 15% 75%, rgba(87, 74, 255, 0.16), transparent 35%),
        linear-gradient(145deg, #050c17, #0b1a2d);
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent), #7157ff);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
}

.nav-link {
    color: var(--text-soft);
    text-decoration: none;
}

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

.hero-content {
    display: flex;
    max-width: 920px;
    min-height: 550px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 900px;
    margin-bottom: 26px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -3px;
}

.hero-text {
    max-width: 720px;
    margin-bottom: 34px;
    color: var(--text-soft);
    font-size: 20px;
}

.primary-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    padding: 0 24px;
    border-radius: 12px;
    background: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
}

.primary-button:hover {
    filter: brightness(1.1);
}

.projects-section {
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-heading h2,
.history-content h2 {
    margin-bottom: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    display: flex;
    min-height: 360px;
    flex-direction: column;
    padding: 34px;
    border: 1px solid var(--surface-border);
    border-radius: 22px;
    background: var(--surface);
}

.project-card.featured {
    background:
        linear-gradient(
            145deg,
            rgba(73, 166, 255, 0.18),
            rgba(255, 255, 255, 0.05)
        );
}

.project-card h3 {
    margin: 22px 0 14px;
    font-size: 29px;
}

.project-card p {
    color: var(--text-soft);
}

.project-card a {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.status {
    align-self: flex-start;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(73, 166, 255, 0.13);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.status.legacy {
    background: rgba(240, 184, 75, 0.13);
    color: var(--legacy);
}

.history-section {
    padding: 90px 0;
    background: var(--background-soft);
}

.history-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 70px;
}

.history-content > p {
    margin-bottom: 0;
    color: var(--text-soft);
    font-size: 18px;
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    color: var(--text-soft);
}

.footer-content strong {
    color: var(--text);
}

@media (max-width: 860px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        min-height: 620px;
    }

    h1 {
        letter-spacing: -2px;
    }

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

    .project-card {
        min-height: 300px;
    }

    .history-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 28px), var(--maximum-width));
    }

    .brand-name {
        display: none;
    }

    .navigation {
        min-height: 74px;
    }

    .hero-content {
        min-height: 570px;
    }

    h1 {
        font-size: 43px;
        letter-spacing: -1.5px;
    }

    .hero-text {
        font-size: 18px;
    }

    .projects-section {
        padding: 78px 0;
    }

    .project-card {
        padding: 26px;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
    }
}
