html,
body {
    min-height: 100%;
    width: 100%;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-family: "Roboto", "SF Pro SC", "SF Pro Display", "SF Pro Icons", "PingFang SC", BlinkMacSystemFont, -apple-system, "Segoe UI", "Microsoft Yahei", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 400;
    margin: 0;
    color: #223047;
    background: #eef4fb;
}

a {
    color: inherit;
    text-decoration: none;
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

p {
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

#mainbody {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 61px);
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(71, 128, 255, 0.18), transparent 28%),
        linear-gradient(135deg, #eef6ff 0%, #f7fbff 46%, #edf5f1 100%);
}

#mainbody:before,
#mainbody:after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
}

#mainbody:before {
    right: -180px;
    top: 90px;
    width: 440px;
    height: 440px;
    background: rgba(44, 123, 229, 0.12);
}

#mainbody:after {
    left: -150px;
    bottom: -170px;
    width: 360px;
    height: 360px;
    background: rgba(34, 178, 139, 0.12);
}

.topbar,
.hero,
.feature-list {
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: #182235;
    font-size: 18px;
    font-weight: 700;
}

.brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: #fff;
    background: #2878eb;
    box-shadow: 0 12px 26px rgba(40, 120, 235, 0.28);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 64px;
    align-items: center;
    padding: 70px 0 64px;
}

.hero-copy {
    min-width: 0;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #2878eb;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    color: #121c2f;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: 0;
}

.hero p {
    max-width: 620px;
    color: #5f6f86;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
}

.secondary-btn {
    color: #2878eb;
    background: #fff;
    border: 1px solid rgba(40, 120, 235, 0.18);
}

.secondary-btn:hover,
.secondary-btn:focus {
    border-color: #2878eb;
}

.dashboard-preview {
    padding: 24px;
    border: 1px solid rgba(78, 102, 138, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 26px 70px rgba(28, 44, 72, 0.14);
    backdrop-filter: blur(14px);
}

.preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    color: #182235;
    font-size: 18px;
    font-weight: 800;
}

.preview-head strong {
    padding: 6px 10px;
    border-radius: 6px;
    color: #13956b;
    background: rgba(19, 149, 107, 0.1);
    font-size: 12px;
}

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

.metric-card {
    min-height: 106px;
    padding: 16px;
    border-radius: 8px;
    background: #f6f9fd;
    border: 1px solid rgba(78, 102, 138, 0.08);
}

.metric-card span,
.pipeline-row span,
.feature-item span {
    color: #69788d;
    font-size: 13px;
}

.metric-card strong {
    display: block;
    margin-top: 16px;
    color: #121c2f;
    font-size: 30px;
    line-height: 1;
}

.pipeline {
    display: grid;
    gap: 18px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(78, 102, 138, 0.12);
}

.pipeline-row {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
}

.pipeline-row i {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2878eb, #23b58f);
    box-shadow: 0 8px 16px rgba(35, 181, 143, 0.16);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 0 0 58px;
}

.feature-item {
    min-height: 132px;
    padding: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(78, 102, 138, 0.1);
}

.feature-item b {
    display: block;
    margin-bottom: 12px;
    color: #162238;
    font-size: 18px;
}

.footer {
    background-color: #111827;
    padding: 20px 0;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

.footer p {
    font-size: 14px;
    margin: 0;
}

.footer a {
    color: rgba(255, 255, 255, 0.72);
}

.footer a:hover,
.footer a:focus {
    color: #fff;
}

@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 34px;
        padding-top: 42px;
    }

    .dashboard-preview {
        max-width: 640px;
    }
}

@media (max-width: 767px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .topbar {
        padding: 20px 0;
    }

    .brand {
        font-size: 16px;
    }

    .hero {
        padding: 36px 0 34px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 26px;
    }

    .secondary-btn {
        flex: 1 1 150px;
        padding: 0 16px;
    }

    .dashboard-preview {
        padding: 18px;
    }

    .metric-grid,
    .feature-list {
        grid-template-columns: 1fr;
    }

    .metric-card {
        min-height: auto;
    }

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