:root {
    --font-base: 18px;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.25rem;
    --text-xl: 1.5rem;
    --text-2xl: 1.875rem;
    --text-3xl: 2.25rem;
    --text-4xl: 3rem;
    --leading-tight: 1.2;
    --leading-normal: 1.5;
    --leading-relaxed: 1.5;
    --tracking-tight: -0.02em;
    --tracking-normal: 0;
    --tracking-wide: 0.02em;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: var(--font-base);
    line-height: var(--leading-normal);
    margin: 0;
    background: #0b0f1a;
    color: white;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 20px 40px;
    background: #0b0f1a;
    border-bottom: 1px solid #222;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1003;
    box-sizing: border-box;
}

    .navbar.scrolled {
        background: rgba(11, 15, 26, 0.85);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid #333;
    }

    .navbar nav a {
        margin: 0 15px;
        text-decoration: none;
        color: #ccc;
    }

nav {
    display: flex;
    gap: 20px;
    flex-shrink: 1;
    overflow-x: auto;
}

    nav a {
        white-space: nowrap;
    }

.logo {
    font-weight: bold;
}

.logo-block {
    display: flex;
    align-items: center;
    font-size: 28px;
}

.logo a {
    text-decoration: none;
    color: white;
}

.demo-btn {
    background: #5b7cff;
    border: none;
    padding: 10px 18px;
    color: white;
    border-radius: 6px;
}

.hero {
    text-align: left;
    max-width: 850px;
    padding: 80px 80px;
}

.hero-bg {
    background: url('../img/bg-home.png') no-repeat;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
    height: 100vh;
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    margin: 0 0 24px;
    background: linear-gradient(135deg, #ffffff 0%, #b8c1d9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    color: #a0aec0;
    margin: 0;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 34px;
}

.primary,
.secondary {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 1px;
    padding: 14px 28px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* === PRIMARY BUTTON === */
.primary {
    background: linear-gradient(135deg, #5b7cff 0%, #7a94ff 100%);
    border: none;
    color: white;
 
    box-shadow: 0 4px 14px rgba(91, 124, 255, 0.25);
}

    .primary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(91, 124, 255, 0.4);
        background: linear-gradient(135deg, #4a6de5 0%, #6584f0 100%);
    }

        .primary:hover::before {
            left: 100%;
        }

    .primary:active {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(91, 124, 255, 0.3);
    }

    .primary:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.4);
    }

/* === SECONDARY BUTTON === */
.secondary {
    background: transparent;
    border: 1px solid rgba(91, 124, 255, 0.6);
    color: white;
    margin-left: 10px;
    width: 220px;
}

    .secondary::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(91, 124, 255, 0.1);
        opacity: 0;
        transition: opacity 0.3s ease;
        border-radius: 10px;
    }

    .secondary:hover {
        transform: translateY(-3px);
        border-color: #5b7cff;
        box-shadow: 0 12px 30px rgba(91, 124, 255, 0.2);
    }

        .secondary:hover::after {
            opacity: 1;
        }

    .secondary:active {
        transform: translateY(-1px);
        border-color: #7a94ff;
    }

    .secondary:focus {
        outline: none;
        border-color: #5b7cff;
        box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.3);
    }

    /* === HOVER: Иконка-стрелка (опционально) === */
    .primary span,
    .secondary span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        position: relative;
        z-index: 1;
    }

    .primary svg,
    .secondary svg {
        width: 18px;
        height: 18px;
        transition: transform 0.3s ease;
    }

    .primary:hover svg,
    .secondary:hover svg {
        transform: translateX(4px);
    }

/* === АДАПТИВНОСТЬ === */
@media (max-width: 768px) {
    .primary,
    .secondary {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
        padding: 12px 24px;
    }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
    .primary,
    .secondary {
        transition: none !important;
        transform: none !important;
    }

        .primary::before,
        .secondary::after {
            display: none;
        }
}

.section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: auto;
    scroll-margin-top: 48px;
}

    .section h2 {
        font-size: var(--text-2xl);
        font-weight: 700;
        line-height: var(--leading-tight);
        letter-spacing: var(--tracking-tight);
        margin: 0 0 16px;
    }

    .section p {
        font-size: var(--text-lg);
        line-height: var(--leading-relaxed);
        color: #a0aec0;
        margin: 0 0 48px;
        max-width: 680px;
    }

.dark {
    background: #0e1322;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card {
    background: #11162a;
    padding: 30px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

    .card button {
        margin-top: auto;
        background: #5b7cff;
        border: none;
        padding: 6px;
        border-radius: 6px;
        color: white;
        cursor: pointer;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech {
    background: #11162a;
    padding: 20px;
    border-radius: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    gap: 15px;
}

    .contact-form input,
    .contact-form textarea {
        padding: 12px;
        background: #11162a;
        border: none;
        color: white;
    }

    .contact-form button {
        padding: 14px;
        background: #5b7cff;
        border: none;
        color: white;
    }

footer {
    padding: 40px;
    background: #05070f;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
}

.links a {
    display: block;
    color: #aaa;
    margin-bottom: 8px;
    text-decoration: none;
}

.beta-tag {
    bottom: 1em;
    left: 1em;
    color: var(--foreground);
    letter-spacing: 1px;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
    text-wrap: nowrap;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.9;
    }
}

.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

    .burger span {
        width: 25px;
        height: 3px;
        background: white;
        transition: 0.3s;
    }

    .burger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .burger.active span:nth-child(2) {
        opacity: 0;
    }

    .burger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
}

    .overlay.active {
        opacity: 1;
        pointer-events: all;
    }

@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero p {
        font-size: var(--text-base);
    }

    .secondary {
        margin-left: 0;
        margin-top: 24px;
    }

    .burger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: #0b0f1a;
        flex-direction: column;
        padding-top: 100px;
        transition: right 0.3s ease;
        z-index: 1002;
    }

        nav a {
            padding: 20px;
            border-bottom: 1px solid #222;
        }

        nav.active {
            right: 0;
        }
}

@media (max-width: 480px) {
    :root {
        --font-base: 15px;
    }

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

    .section h2 {
        font-size: 1.5rem;
    }

    .primary,
    .secondary {
        width: 100%;
        margin-left: 0;
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card-image,
    .solution-card,
    .learn-more {
        transition: none !important;
        transform: none !important;
    }
}
