
/* ===== 1. Global styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #571313;
    --text-color: #f5f7ff;
    --muted-color: #c7a8a8;
    --accent-color: #fa7575;
    --border-color: rgba(255, 255, 255, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at 75% 25%,
            rgba(241, 99, 99, 0.13),
            transparent 45%
        ),
        var(--bg-color);
    color: var(--text-color);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ===== 2. Navigation bar ===== */
/* Expected HTML class: .navbar */

.navbar {
    width: min(1120px, 90%);
    min-height: 85px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--muted-color);
    font-size: 0.92rem;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--accent-color);
}

/* ===== 3. Hero section ===== */
/* Expected HTML class: .hero */

.hero {
    width: min(1120px, 90%);
    min-height: calc(100vh - 85px);
    min-height: calc(100svh - 85px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 80px 0 110px;
}

.hero-content {
    max-width: 850px;
}

/* Small introduction above the heading */

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--accent-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f88181;
    box-shadow: 0 0 14px rgba(248, 129, 129, 0.7);
}

/* Main headline */

.hero h1 {
    max-width: 850px;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.065em;
    margin-bottom: 26px;
}

.hero h1 span {
    color: var(--accent-color);
}

/* Short description */

.hero-description {
    max-width: 650px;
    margin-bottom: 34px;
    color: var(--muted-color);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.85;
}

/* ===== 4. Hero buttons ===== */

.hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    min-height: 48px;
    padding: 13px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 650;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #0b1020;
    border-color: var(--accent-color);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    background: #c7d2fe;
}

.btn-secondary:hover {
    border-color: var(--accent-color);
}

/* Visible keyboard focus */

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

/* ===== 5. Subtle entrance animation ===== */

@media (prefers-reduced-motion: no-preference) {
    .hero-content {
        animation: hero-enter 0.7s ease-out both;
    }

    @keyframes hero-enter {
        from {
            opacity: 0;
            transform: translateY(18px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== 6. Tablet and mobile ===== */

@media (max-width: 700px) {
    .navbar {
        min-height: 72px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .hero {
        min-height: calc(100svh - 72px);
        padding: 70px 0 90px;
    }

    .hero h1 {
        letter-spacing: -0.045em;
    }
}

@media (max-width: 460px) {
    .navbar {
        width: 92%;
        flex-wrap: wrap;
        padding: 18px 0;
    }

    .nav-links {
        gap: 13px;
    }

    .hero {
        width: 92%;
        padding: 65px 0 80px;
    }

    .hero-tag {
        font-size: 0.68rem;
        letter-spacing: 1.4px;
    }

    .hero-buttons {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
