:root {
    --bg: #0b1020;
    --panel: #121a2f;
    --panel-dark: #0f172a;
    --card: #18233d;
    --text: #ffffff;
    --muted: #a9b4d0;
    --soft: #8fa3c7;
    --line: rgba(255, 255, 255, 0.08);
    --primary: #2f80ed;
    --active: #27ae60;
    --completed: #56ccf2;
    --queued: #f2c94c;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(47, 128, 237, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(86, 204, 242, 0.1), transparent 24%),
        var(--bg);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(72px);
    opacity: 0.45;
}

body::before {
    top: -120px;
    right: -80px;
    background: rgba(47, 128, 237, 0.18);
}

body::after {
    bottom: -140px;
    left: -80px;
    background: rgba(86, 204, 242, 0.12);
}

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

button {
    font: inherit;
}

main,
section[id] {
    scroll-margin-top: 120px;
}

.page-shell {
    position: relative;
    z-index: 1;
    max-width: 1512px;
    margin: 0 auto;
    padding: 32px 80px 72px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 56px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 56px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-nav a {
    position: relative;
    color: var(--muted);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    transition: color 0.2s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: rgba(47, 128, 237, 0.8);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
    transform: scaleX(1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--text);
    box-shadow: 0 18px 40px rgba(47, 128, 237, 0.22);
}

.btn-primary:hover {
    box-shadow: 0 24px 48px rgba(47, 128, 237, 0.3);
}

.btn-secondary {
    border-color: var(--primary);
    background: rgba(47, 128, 237, 0.08);
    color: #eaf2ff;
}

.btn-header {
    width: 190px;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 22px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(0, 592px);
    gap: 140px;
    align-items: center;
    margin-top: 82px;
}

.hero-title {
    margin: 0;
    font-size: 56px;
    font-weight: 800;
    line-height: 64px;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 560px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.btn-large {
    min-height: 54px;
    padding: 0 28px;
}

.hero-actions .btn-primary {
    width: 180px;
}

.hero-actions .btn-secondary {
    width: 200px;
}

.hero-mockup {
    min-height: 520px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 92px;
    padding: 18px 16px;
    border-radius: 18px;
    background: var(--card);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--soft);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.activity-panel {
    min-height: 250px;
    margin-top: 32px;
    padding: 24px;
    border-radius: 20px;
    background: var(--panel-dark);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(39, 174, 96, 0.28);
    border-radius: 999px;
    background: rgba(39, 174, 96, 0.12);
    color: #dff8e9;
    font-size: 13px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--active);
    box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.6);
    animation: pulse 1.8s infinite;
}

.task-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.task-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
}

.task-name {
    color: #eaf2ff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
}

.task-status {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.status-active {
    color: var(--active);
}

.status-completed {
    color: var(--completed);
}

.status-queued {
    color: var(--queued);
}

.benefits-section {
    margin-top: 90px;
}

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

.benefit-card {
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    background: var(--panel);
}

.benefit-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.benefit-text {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
}

.faq-section {
    max-width: 980px;
    margin-top: 72px;
}

.section-copy {
    margin-bottom: 24px;
}

.section-caption {
    margin: 0 0 8px;
    color: var(--completed);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    background: var(--panel);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 22px 24px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.faq-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--muted);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.is-open .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scaleX(0.2);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition:
        max-height 0.25s ease,
        padding-bottom 0.25s ease;
}

.faq-item.is-open .faq-answer {
    max-height: 180px;
    padding-bottom: 22px;
}

.faq-answer p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 28px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.55);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

@media (max-width: 1440px) {
    .page-shell {
        padding-right: 48px;
        padding-left: 48px;
    }

    .hero {
        gap: 72px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (max-width: 1180px) {
    .page-shell {
        padding-top: 24px;
        padding-right: 32px;
        padding-left: 32px;
    }

    .site-header,
    .header-left {
        flex-wrap: wrap;
    }

    .hero {
        margin-top: 64px;
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .hero-description {
        max-width: none;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .page-shell {
        padding-right: 20px;
        padding-left: 20px;
    }

    .header-left {
        gap: 24px;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 20px;
    }

    .btn-header {
        width: 100%;
    }

    .hero-title {
        font-size: 42px;
        line-height: 1.14;
    }

    .hero-description {
        font-size: 18px;
        line-height: 30px;
    }

    .hero-mockup {
        padding: 24px;
    }

    .stats-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 30px;
    }
}

@media (max-width: 560px) {
    .hero {
        margin-top: 48px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-actions .btn,
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        min-width: 0;
    }

    .task-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .faq-question {
        padding: 18px 20px;
        font-size: 17px;
    }

    .faq-answer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .faq-item.is-open .faq-answer {
        padding-bottom: 18px;
    }
}
