:root {
    --site-primary: #165dff;
    --site-primary-dark: #0b3d91;
    --site-success: #00a870;
    --site-warning: #ffb020;
    --site-danger: #e5484d;
    --site-text: #172033;
    --site-muted: #667085;
    --site-line: #e5e7eb;
    --site-bg: #f5f7fb;
    --site-card: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--site-text);
    background: var(--site-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    letter-spacing: 0;
}

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

.site-header {
    position: fixed;
    z-index: 30;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    background: rgba(15, 23, 42, .72);
    color: #fff;
    backdrop-filter: blur(16px);
}

.site-header-solid {
    background: #0f172a;
}

.site-nav {
    display: flex;
    width: min(1160px, calc(100% - 40px));
    height: 68px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: #fff;
    color: var(--site-primary);
    font-weight: 900;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    font: inherit;
}

.button-primary {
    background: var(--site-primary);
    color: #fff;
    box-shadow: 0 12px 30px rgba(22, 93, 255, .28);
}

.button-light {
    border: 1px solid rgba(255, 255, 255, .32);
    color: #fff;
}

.button-ghost {
    border: 1px solid var(--site-line);
    background: #fff;
    color: var(--site-text);
}

.button:disabled {
    cursor: not-allowed;
    opacity: .55;
}

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #0f172a url("/images/frontend-dashboard-hero.png") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(9, 17, 31, .62);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 124px 0 92px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 800;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: #60a5fa;
}

.hero h1 {
    margin: 0;
    font-size: clamp(46px, 7vw, 88px);
    line-height: 1.03;
    font-weight: 900;
}

.hero p {
    max-width: 640px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 20px;
    line-height: 1.75;
}

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

.hero-proof {
    display: grid;
    max-width: 760px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 48px;
}

.proof-item {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    padding: 18px;
    background: rgba(255, 255, 255, .09);
    backdrop-filter: blur(10px);
}

.proof-value {
    display: block;
    font-size: 28px;
    font-weight: 900;
}

.proof-label {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, .72);
    font-size: 13px;
}

.section {
    padding: 86px 0;
}

.section-white {
    background: #fff;
}

.section-dark {
    background: #101828;
    color: #fff;
}

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

.section-head {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--site-primary);
    font-size: 14px;
    font-weight: 900;
}

.section h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

.section-desc {
    margin: 16px 0 0;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.75;
}

.section-dark .section-desc {
    color: rgba(255, 255, 255, .72);
}

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

.plan-card,
.empty-panel,
.register-panel,
.selected-plan-box,
.complete-panel {
    border: 1px solid var(--site-line);
    border-radius: 8px;
    background: #fff;
}

.plan-card {
    display: flex;
    min-height: 520px;
    flex-direction: column;
    padding: 28px;
}

.plan-card-head {
    min-height: 150px;
}

.plan-code {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    background: #eef4ff;
    color: var(--site-primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.plan-card h3,
.empty-panel h3 {
    margin: 16px 0 10px;
    font-size: 24px;
}

.plan-card p,
.empty-panel p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.plan-pricing {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 18px;
    background: #f8fbff;
}

.plan-price-main,
.selected-price-main {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: var(--site-primary);
}

.plan-price-main .currency,
.selected-price-main span {
    font-size: 20px;
    font-weight: 900;
}

.plan-price-main strong,
.selected-price-main strong {
    font-size: 48px;
    line-height: .95;
    font-weight: 950;
    letter-spacing: 0;
}

.plan-price-main .cycle,
.selected-price-main em {
    color: var(--site-muted);
    font-style: normal;
    font-weight: 800;
}

.plan-price-sub,
.selected-price-yearly {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.5;
}

.plan-price-sub em,
.selected-price-yearly span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #ecfdf3;
    color: #027a48;
    font-style: normal;
    font-weight: 900;
}

.plan-limits {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.plan-limits li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--site-muted);
}

.plan-limits li::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--site-success);
}

.plan-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.empty-panel {
    grid-column: 1 / -1;
    padding: 34px;
}

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

.module-card,
.role-card,
.timeline-item {
    border: 1px solid var(--site-line);
    border-radius: 8px;
    background: var(--site-card);
}

.module-card {
    min-height: 216px;
    padding: 26px;
}

.module-icon {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--site-primary);
    font-weight: 900;
}

.module-card h3,
.role-card h3,
.timeline-item h3 {
    margin: 18px 0 10px;
    font-size: 20px;
}

.module-card p,
.role-card p,
.timeline-item p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.7;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.timeline-item {
    position: relative;
    padding: 22px;
}

.timeline-index {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 8px;
    background: var(--site-primary);
    color: #fff;
    font-weight: 900;
}

.roles {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
}

.role-card {
    padding: 30px;
}

.role-list {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.role-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--site-muted);
    line-height: 1.6;
}

.role-row::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin-top: 7px;
    border-radius: 999px;
    background: var(--site-success);
}

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

.dark-item {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    padding: 22px;
    background: rgba(255, 255, 255, .06);
}

.dark-item strong {
    display: block;
    margin-bottom: 8px;
}

.dark-item span {
    color: rgba(255, 255, 255, .68);
    line-height: 1.65;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    padding: 34px;
    background: #fff;
}

.cta-band h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.register-page {
    background: #f5f7fb;
}

.register-shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 112px 0 70px;
}

.register-layout {
    display: grid;
    grid-template-columns: .86fr 1.14fr;
    gap: 24px;
    align-items: start;
}

.selected-plan {
    position: sticky;
    top: 96px;
}

.selected-plan h1,
.complete-panel h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.selected-plan p,
.complete-panel p {
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.75;
}

.selected-plan-box {
    margin-top: 24px;
    padding: 24px;
}

.selected-plan-box h2 {
    margin: 14px 0 8px;
    font-size: 26px;
}

.selected-plan-desc {
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
}

.selected-price-panel {
    display: grid;
    gap: 10px;
    margin-top: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    padding: 16px;
    background: #f8fbff;
}

.selected-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.selected-limits span {
    border: 1px solid var(--site-line);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--site-muted);
    font-size: 13px;
}

.register-panel {
    padding: 28px;
}

.form-alert,
.result-note {
    display: grid;
    gap: 6px;
    margin-bottom: 22px;
    border: 1px solid #ffd8a8;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff7ed;
    color: #92400e;
}

.register-form {
    display: grid;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid label,
.form-grid .field-control {
    display: grid;
    gap: 8px;
    color: var(--site-text);
    font-weight: 800;
}

.form-grid input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--site-line);
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: var(--site-text);
    font: inherit;
}

.select-field {
    position: relative;
}

.native-select-control {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.custom-select-field {
    z-index: 2;
}

.custom-select-field.is-open {
    z-index: 8;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    padding: 0 54px 0 14px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    color: var(--site-text);
    font: inherit;
    font-weight: 900;
    text-align: left;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 18px rgba(15, 23, 42, .04);
    cursor: pointer;
}

.custom-select-trigger::before {
    content: "";
    position: absolute;
    top: 7px;
    right: 7px;
    width: 36px;
    height: 36px;
    border-left: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #eff5ff;
}

.custom-select-trigger::after {
    content: "";
    position: absolute;
    top: 19px;
    right: 21px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--site-primary);
    border-bottom: 2px solid var(--site-primary);
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.custom-select.is-open .custom-select-trigger::after {
    top: 22px;
    transform: rotate(225deg);
}

.custom-select-trigger:hover {
    border-color: #9db7e8;
    background: #fff;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 10;
    display: none;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}

.custom-select.is-open .custom-select-menu {
    display: grid;
    gap: 4px;
}

.custom-select-option {
    display: grid;
    gap: 4px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    padding: 10px 12px;
    background: transparent;
    color: var(--site-text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.custom-select-option span {
    font-weight: 900;
}

.custom-select-option small {
    color: var(--site-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.custom-select-option:hover,
.custom-select-option[aria-selected="true"] {
    background: #eef5ff;
    color: var(--site-primary);
}

.custom-select-option[aria-selected="true"] small {
    color: #355fba;
}

.provider-field {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.provider-field legend {
    margin-bottom: 8px;
    color: var(--site-text);
    font-weight: 800;
}

.provider-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.provider-option {
    display: block;
    min-width: 0;
}

.provider-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.provider-option span {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfd8e6;
    border-radius: 8px;
    padding: 0 12px;
    background: #fff;
    color: #344054;
    font-weight: 900;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
}

.provider-option:hover span {
    border-color: #9db7e8;
    background: #f8fbff;
}

.provider-option input:checked + span {
    border-color: var(--site-primary);
    background: #eef5ff;
    color: var(--site-primary);
    box-shadow: 0 0 0 3px rgba(22, 93, 255, .12);
}

.provider-option input:focus-visible + span {
    outline: 3px solid rgba(22, 93, 255, .18);
    outline-offset: 2px;
}

.form-grid input:focus,
.custom-select-trigger:focus-visible {
    border-color: var(--site-primary);
    outline: 3px solid rgba(22, 93, 255, .14);
    box-shadow: 0 0 0 1px rgba(22, 93, 255, .12), 0 8px 18px rgba(22, 93, 255, .08);
}

.agreement-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--site-muted);
    line-height: 1.65;
}

.agreement-row input {
    margin-top: 5px;
}

.complete-panel {
    max-width: 880px;
    margin: 0 auto;
    padding: 42px;
}

.result-badge {
    display: inline-flex;
    margin-bottom: 16px;
    border-radius: 999px;
    padding: 7px 12px;
    background: #ecfdf3;
    color: #027a48;
    font-weight: 900;
}

.result-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.result-list div {
    border: 1px solid var(--site-line);
    border-radius: 8px;
    padding: 16px;
}

.result-list dt {
    margin-bottom: 6px;
    color: var(--site-muted);
    font-size: 13px;
}

.result-list dd {
    margin: 0;
    font-weight: 800;
    word-break: break-word;
}

.site-footer {
    padding: 34px 0;
    border-top: 1px solid var(--site-line);
    background: #fff;
    color: var(--site-muted);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 980px) {
    .nav-links {
        display: none;
    }

    .module-grid,
    .plan-grid,
    .workflow,
    .dark-grid,
    .roles,
    .register-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .selected-plan {
        position: static;
    }
}

@media (max-width: 640px) {
    .site-nav {
        width: min(100% - 28px, 1160px);
        height: 62px;
    }

    .nav-actions .button-light {
        display: none;
    }

    .hero {
        min-height: 86vh;
        background-position: 58% center;
    }

    .hero-inner,
    .container {
        width: min(100% - 28px, 1160px);
    }

    .hero p {
        font-size: 17px;
    }

    .hero-proof,
    .plan-grid,
    .module-grid,
    .workflow,
    .roles,
    .dark-grid,
    .register-layout,
    .form-grid,
    .result-list {
        grid-template-columns: 1fr;
    }

    .proof-item {
        padding: 14px;
    }

    .section {
        padding: 64px 0;
    }

    .module-card {
        min-height: 0;
    }

    .cta-band,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-shell {
        width: min(100% - 28px, 1160px);
        padding-top: 92px;
    }

    .register-panel,
    .complete-panel {
        padding: 22px;
    }

    .plan-pricing,
    .selected-price-panel {
        padding: 14px;
    }

    .plan-price-main strong,
    .selected-price-main strong {
        font-size: 40px;
    }

    .selected-plan h1,
    .complete-panel h1 {
        font-size: 30px;
        line-height: 1.18;
    }
}
