/* style.css */

:root {
    --bg-soft: #fff7d6;

    --primary: #d62828;
    --primary-hover: #b71f1f;
}
:root {
    --bg: #ffffff;
    --bg-soft: #fff7d6;

    --text: #111111;
    --text-soft: #5c6370;

    --line: #e6e9ef;

    --primary: #d62828;
    --primary-hover: #b71f1f;

    --radius: 14px;

    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--text);
    background: var(--bg);

    line-height: 1.6;
}

.menu-toggle {
    display: none;

    background: none;
    border: none;

    font-size: 28px;

    cursor: pointer;

    color: var(--text);
}

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

.container {
    width: 100%;
    max-width: var(--container);

    margin: 0 auto;
    padding: 0 24px;
}

.about-author {

    color: var(--text-soft);

    font-size: 15px;
}

.about-author a {
    color: var(--text);

    font-weight: 600;

    border-bottom: 1px solid transparent;

    transition: 0.15s;
}

.about-author a:hover {
    border-color: var(--text);
}

/* TOPBAR */

.topbar {
    border-bottom: 1px solid var(--line);

    position: sticky;
    top: 0;

    background: rgba(255,255,255,0.92);

    backdrop-filter: blur(8px);

    z-index: 100;
}

.topbar-inner {
    height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 700;

    letter-spacing: -0.03em;
}

.logo-sub {
    font-size: 12px;
    color: var(--text-soft);
}

.menu {
    display: flex;
    gap: 28px;
}

.menu a {
    color: var(--text-soft);

    transition: 0.15s;
}

.menu a:hover {
    color: var(--text);
}


/* HERO */

.hero {
    padding: 72px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "text preview"
        "actions preview";
    gap: 48px;
    align-items: start;
}

.hero-text {
    grid-area: text;
}

.hero-preview {
    grid-area: preview;
}

.hero-actions {
    grid-area: actions;
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.badge {
    display: inline-flex;

    padding: 6px 12px;

    background: var(--bg-soft);

    border-radius: 999px;

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 20px;
}

.hero h1 {
    margin: 0 0 20px;

    font-size: 54px;
    line-height: 1.05;

    letter-spacing: -0.05em;
}

.hero-description {
    font-size: 20px;
    color: var(--text-soft);

    max-width: 640px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 48px;

    padding: 0 22px;

    border-radius: 12px;

    font-weight: 600;

    transition: 0.15s;
}

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

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

.btn-secondary {
    border: 1px solid var(--line);
}

.btn-secondary:hover {
    background: var(--bg-soft);
}


/* PREVIEW */

.preview-card {
    border: 1px solid var(--line);

    border-radius: 18px;

    overflow: hidden;

    background: white;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05);
}

.preview-topline {
    height: 14px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(214, 40, 40, 0.12), rgba(214, 40, 40, 0.04));
}

.preview-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 32px;
    color: var(--text-soft);
    font-size: 24px;
    font-weight: 600;
    background:
        radial-gradient(circle at top left, rgba(214, 40, 40, 0.08), transparent 45%),
        linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
}

.hero-video {
    width: 100%;

    display: block;

    border-radius: 12px;

    cursor: zoom-in;
}

.video-hint {
    margin-top: 12px;

    text-align: center;

    font-size: 14px;

    color: var(--text-soft);
}

/* SECTIONS */

.section {
    padding: 64px 0;
}

.section-header {
    margin-bottom: 36px;
}

.section-header h2 {
    margin: 0 0 12px;

    font-size: 36px;
    letter-spacing: -0.04em;
}

.section-header p {
    margin: 0;

    color: var(--text-soft);
}

.section-header p + p {
    margin-top: 12px;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.card {
    border: 1px solid var(--line);

    border-radius: var(--radius);

    padding: 28px;

    background: white;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 12px;

    font-size: 20px;
}

.card p {
    margin: 0;

    color: var(--text-soft);
}


/* FOOTER */

.footer {
    margin-top: 80px;

    border-top: 1px solid var(--line);

    padding: 32px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
}

.footer-text {
    margin-top: 8px;

    color: var(--text-soft);
}

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

.footer-links a {
    color: var(--text-soft);
}

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


/* MOBILE */

@media (max-width: 900px) {

    .topbar-inner {
        height: 72px;

        position: relative;
    }

    .menu-toggle {
        display: block;

        margin-left: auto;

        background: none;
        border: none;

        font-size: 28px;

        cursor: pointer;

        color: var(--text);
    }

    .menu {
        display: none;

        position: absolute;

        top: 72px;
        right: 0;

        width: 240px;

        background: white;

        border: 1px solid var(--line);

        border-radius: 14px;

        padding: 18px;

        box-shadow:
            0 10px 30px rgba(0,0,0,0.08);

        flex-direction: column;

        gap: 16px;

        z-index: 1000;
    }

    .menu.menu-open {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "text"
            "preview"
            "actions";
    }

    .hero h1 {
        font-size: 34px;
        line-height: 1.1;
        text-align: center;
    }

    .hero-description {
        font-size: 17px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
        margin-top: 0;
    }

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

    .footer-inner {
        flex-direction: column;
    }

}

@media (max-width: 640px) {

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: auto;
        min-width: 220px;
    }

}
