:root {
    --white: #ffffff;
    --black: #111111;
    --dark: #1b1b1b;
    --red: #d71920;
    --red-dark: #a80f15;
    --light: #f7f7f7;
    --gray: #666666;
    --border: #e6e6e6;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

img {
    max-width: 100%;
}

.container {
    width: min(92%, var(--max-width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    border-radius: 8px;
}

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

.nav-links a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.8rem;
    cursor: pointer;
}

.hero {
    background:
        linear-gradient(110deg, rgba(17,17,17,0.9), rgba(17,17,17,0.65)),
        radial-gradient(circle at 80% 20%, rgba(215,25,32,0.6), transparent 30%),
        var(--black);
    color: var(--white);
    padding: 110px 0 90px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 54px;
    align-items: center;
}

.eyebrow {
    color: var(--red);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    margin-bottom: 16px;
}

h1, h2, h3 {
    line-height: 1.15;
    margin: 0 0 18px;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5.2rem);
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: 1.35rem;
}

.lead {
    font-size: 1.22rem;
    color: #e8e8e8;
    max-width: 720px;
}

.hero-card {
    background: var(--white);
    color: var(--black);
    padding: 34px;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.28);
}

.hero-card ul {
    padding-left: 20px;
    margin: 0;
}

.hero-card li {
    margin-bottom: 10px;
}

.btn-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

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

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.section {
    padding: 84px 0;
}

.section-light {
    background: var(--light);
}

.section-dark {
    background: var(--black);
    color: var(--white);
}

.section-intro {
    max-width: 790px;
    margin-bottom: 42px;
}

.section-intro p {
    color: var(--gray);
    font-size: 1.1rem;
}

.section-dark .section-intro p,
.section-dark p {
    color: #dddddd;
}

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

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

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.04);
}

.section-dark .card {
    background: #1d1d1d;
    border-color: #333333;
}

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--red);
    color: var(--white);
    font-weight: 900;
    margin-bottom: 20px;
}

.red-line {
    width: 72px;
    height: 5px;
    background: var(--red);
    border-radius: 999px;
    margin: 18px 0 24px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 12px 0 12px 28px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-dark .feature-list li {
    border-bottom-color: #333333;
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20px;
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 48px;
}

.stat {
    background: var(--white);
    border-left: 5px solid var(--red);
    padding: 24px;
}

.stat strong {
    display: block;
    font-size: 2.2rem;
    line-height: 1;
}

.stat span {
    color: var(--gray);
    font-weight: 700;
}

.page-hero {
    padding: 72px 0;
    background: var(--black);
    color: var(--white);
}

.page-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: var(--black);
    color: var(--white);
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.section-dark .tag {
    background: var(--red);
}

.contact-box {
    background: var(--black);
    color: var(--white);
    border-radius: 18px;
    padding: 36px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

label {
    font-weight: 800;
}

input, textarea, select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

.form-message {
    display: none;
    padding: 14px;
    border-radius: 10px;
    background: #fff0f1;
    color: var(--red-dark);
    font-weight: 700;
}

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 40px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

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

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 860px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        top: 76px;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background: var(--white);
        padding: 24px 4%;
        border-bottom: 1px solid var(--border);
    }

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

    .hero-grid,
    .grid-2,
    .grid-3,
    .stats {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 80px 0 64px;
    }
}
