:root {
    --ink: #17211d;
    --ink-soft: #53605a;
    --green: #087a4b;
    --green-dark: #075c3b;
    --green-soft: #e7f4ed;
    --blue: #1769aa;
    --amber: #a65d08;
    --line: #dce3df;
    --surface: #ffffff;
    --surface-alt: #f4f7f5;
    --header-height: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body,
button,
a {
    letter-spacing: 0;
}

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

button {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(23, 33, 29, 0.1);
    backdrop-filter: blur(14px);
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--green);
    border-radius: 7px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    color: #405049;
    font-size: 14px;
    font-weight: 600;
}

.site-nav > a:not(.nav-login):hover {
    color: var(--green);
}

.nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 18px;
    color: #fff;
    background: var(--green);
    border-radius: 6px;
}

.nav-login:hover {
    background: var(--green-dark);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.hero {
    min-height: calc(100svh - var(--header-height) - 38px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #eef2f1;
    background-image: url("../img/home/complaint-protection-hero.png");
    background-position: center center;
    background-size: cover;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 72px;
    padding-bottom: 76px;
}

.hero-copy {
    width: min(500px, 43%);
}


.hero-kicker,
.section-label {
    margin: 0 0 18px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-kicker span {
    width: 28px;
    height: 2px;
    background: var(--green);
}

.hero h1 {
    max-width: 500px;
    margin: 0;
    font-size: clamp(40px, 4.4vw, 62px);
    line-height: 1.14;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    white-space: nowrap;
}

.hero-summary {
    max-width: 475px;
    margin: 26px 0 0;
    color: #43504a;
    font-size: 18px;
    line-height: 1.85;
}

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

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 23px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--green);
}

.button-primary:hover {
    background: var(--green-dark);
}

.button-secondary {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.88);
    border-color: #cbd5d0;
}

.button-secondary:hover {
    background: #fff;
    border-color: #9daaa4;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 13px 22px;
    margin: 31px 0 0;
    padding: 0;
    color: #47534d;
    font-size: 13px;
    list-style: none;
}

.hero-points i {
    margin-right: 5px;
    color: var(--green);
}

.trust-strip {
    padding: 27px 0;
    color: #fff;
    background: #15231d;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-grid div {
    min-width: 0;
    padding: 3px 25px;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.trust-grid div:first-child {
    padding-left: 0;
    border-left: 0;
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    margin-bottom: 5px;
    font-size: 16px;
}

.trust-grid span {
    color: #aebbb5;
    font-size: 12px;
    line-height: 1.5;
}

.section {
    padding: 104px 0;
    scroll-margin-top: var(--header-height);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 47px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.workflow-intro h2,
.cta-inner h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.25;
    font-weight: 750;
}

.section-heading > p:last-child,
.workflow-intro > p:not(.section-label) {
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.8;
}

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

.feature-card {
    min-width: 0;
    padding: 31px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(31, 48, 40, 0.06);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 27px;
    border-radius: 8px;
    font-size: 20px;
}

.feature-icon-green {
    color: var(--green);
    background: var(--green-soft);
}

.feature-icon-blue {
    color: var(--blue);
    background: #e8f1f8;
}

.feature-icon-amber {
    color: var(--amber);
    background: #fbf0df;
}

.feature-card h3,
.workflow-steps h3,
.advantage-item h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
}

.feature-card p {
    min-height: 87px;
    margin: 14px 0 22px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
}

.feature-tag {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.workflow {
    background: var(--surface-alt);
}

.workflow-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 90px;
    align-items: start;
}

.workflow-intro {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 27px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
}

.workflow-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.workflow-steps li {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 23px;
    padding: 0 0 34px;
    position: relative;
}

.workflow-steps li:not(:last-child)::after {
    content: "";
    width: 1px;
    position: absolute;
    top: 50px;
    bottom: 8px;
    left: 32px;
    background: #bfcbc5;
}

.step-number {
    width: 66px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--green);
    background: #fff;
    border: 1px solid #cbd6d1;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
}

.workflow-steps p,
.advantage-item p {
    margin: 9px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.7;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.advantage-item {
    min-width: 0;
    padding: 36px 28px 38px;
    border-left: 1px solid var(--line);
}

.advantage-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.advantage-item i {
    margin-bottom: 22px;
    color: var(--green);
    font-size: 22px;
}

.cta-band {
    padding: 68px 0;
    color: #fff;
    background: var(--green-dark);
}

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

.cta-inner .section-label {
    color: #9bd0b7;
}

.cta-inner h2 {
    max-width: 760px;
    font-size: clamp(27px, 3.3vw, 40px);
}

.button-light {
    flex: 0 0 auto;
    color: var(--green-dark);
    background: #fff;
}

.site-footer {
    padding: 27px 0;
    color: #8d9b94;
    background: #101813;
    font-size: 12px;
}

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

@media (max-width: 1024px) {
    .hero {
        background-position: 58% center;
    }

    .hero-copy {
        width: 47%;
    }

    .workflow-layout {
        gap: 50px;
    }

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

    .advantage-item:nth-child(3) {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .advantage-item:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 64px;
    }

    .site-container {
        width: min(100% - 32px, 680px);
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 63px;
        right: 16px;
        left: 16px;
        padding: 13px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 18px 40px rgba(18, 32, 25, 0.16);
    }

    .site-nav.is-open {
        display: grid;
        gap: 4px;
    }

    .site-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 13px;
    }

    .nav-login {
        justify-content: center;
        margin-top: 5px;
    }

    .hero {
        min-height: calc(100svh - var(--header-height) - 32px);
        align-items: flex-start;
        background-position: 65% bottom;
    }

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.68);
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 56px;
    }

    .hero-copy {
        width: 100%;
        max-width: 560px;
    }

    .hero-copy::before {
        display: none;
    }

    .hero h1 {
        max-width: 520px;
        font-size: clamp(38px, 9vw, 54px);
    }

    .hero h1 span {
        white-space: normal;
    }

    .hero-summary {
        max-width: 530px;
        color: #34433c;
        font-size: 16px;
    }

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

    .trust-grid div:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .section {
        padding: 78px 0;
    }

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

    .feature-card p {
        min-height: 0;
    }

    .workflow-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .workflow-intro {
        position: static;
    }

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

@media (max-width: 520px) {
    .site-container {
        width: calc(100% - 28px);
    }

    .brand {
        font-size: 15px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .hero {
        min-height: calc(100svh - var(--header-height) - 24px);
        background-position: 67% bottom;
    }

    .hero-inner {
        padding-top: 38px;
        padding-bottom: 38px;
    }

    .hero-kicker {
        margin-bottom: 13px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: clamp(36px, 12vw, 48px);
    }

    .hero-summary {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.7;
    }

    .hero-actions {
        margin-top: 24px;
    }

    .button {
        min-width: 0;
        padding: 0 17px;
    }

    .hero-points {
        display: grid;
        gap: 8px;
        margin-top: 22px;
    }

    .trust-strip {
        padding: 24px 0;
    }

    .trust-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .trust-grid div,
    .trust-grid div:nth-child(3) {
        padding: 13px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        border-left: 0;
    }

    .trust-grid div:first-child {
        border-top: 0;
    }

    .section {
        padding: 66px 0;
    }

    .section-heading {
        margin-bottom: 34px;
        text-align: left;
    }

    .feature-card {
        padding: 25px;
    }

    .workflow-steps li {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 17px;
    }

    .step-number {
        width: 50px;
    }

    .workflow-steps li:not(:last-child)::after {
        left: 24px;
    }

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

    .advantage-item,
    .advantage-item:first-child,
    .advantage-item:nth-child(3) {
        padding: 28px 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .advantage-item:first-child {
        border-top: 0;
    }

    .cta-band {
        padding: 55px 0;
    }

    .button-light {
        width: 100%;
    }

    .footer-inner {
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }
}
