* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-page {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #071842;
    background: #F8FBFF;
    line-height: 1.5;
}

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

.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-height);
    min-height: var(--header-height);
    padding: 0 clamp(18px, 5vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #DCE7F6;
    backdrop-filter: blur(16px);
}

.landing-brand img {
    width: var(--header-logo-width);
    height: auto;
    max-height: var(--header-logo-height);
    object-fit: contain;
    display: block;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.55vw, 26px);
    flex: 1;
    font-size: 0.82rem;
    font-weight: 700;
}

.landing-nav a {
    padding: 22px 0 18px;
    border-bottom: 3px solid transparent;
}

.landing-nav a.active,
.landing-nav a:hover {
    color: #0057C8;
    border-bottom-color: #0057C8;
}

.landing-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #B9CDF4;
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-primary {
    background: #0057C8;
    border-color: #0057C8;
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 87, 200, 0.22);
}

.btn-ghost {
    background: #fff;
    color: #0057C8;
}

.btn-light {
    background: #fff;
    color: #0057C8;
    border-color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
}

.btn-lg {
    min-height: 52px;
    padding: 0 26px;
}

.landing-hero {
    min-height: 620px;
    padding: 70px clamp(18px, 5vw, 70px) 140px;
    display: grid;
    grid-template-columns: minmax(360px, 0.85fr) minmax(520px, 1.2fr);
    align-items: center;
    gap: 34px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(248, 251, 255, 0.98) 0%, rgba(238, 247, 255, 0.9) 37%, rgba(220, 238, 255, 0.44) 100%),
        url('../images/wallpaper01.png') center right / cover no-repeat;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center right;
    background-size: cover, min(980px, 62vw) auto;
}

.landing-hero::after {
    content: '';
    position: absolute;
    left: -5%;
    right: -5%;
    bottom: -42px;
    height: 125px;
    background:
        radial-gradient(55% 90% at 25% 0%, rgba(255, 255, 255, 0.96) 0 58%, transparent 60%),
        radial-gradient(50% 88% at 70% 10%, rgba(255, 255, 255, 0.9) 0 55%, transparent 58%);
}

.hero-copy {
    max-width: 680px;
    position: relative;
    z-index: 2;
}

.hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(2.5rem, 4vw, 4.75rem);
    line-height: 1.07;
    letter-spacing: 0;
    color: #061747;
}

.hero-copy h1 span {
    color: #0057C8;
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 560px;
    color: #24406F;
    font-size: 1.02rem;
}

.hero-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    color: #17366C;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-checks i {
    color: #0057C8;
}

.hero-visual {
    min-height: 430px;
    position: relative;
    z-index: 2;
}

.hero-card {
    position: absolute;
    width: 170px;
    padding: 16px;
    border: 1px solid #D7E6FF;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(31, 76, 142, 0.16);
}

.hero-card small,
.hero-card span {
    display: block;
    color: #33517D;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero-card strong {
    display: block;
    margin: 5px 0;
    color: #061747;
    font-size: 1.4rem;
}

.hero-card-top {
    left: 12%;
    top: 22px;
}

.hero-card-status {
    right: 12%;
    top: 0;
}

.hero-card-ops {
    left: 7%;
    bottom: 6px;
    width: 245px;
}

.hero-card-ops strong {
    font-size: 1.65rem;
}

.ops-status {
    color: #15803D !important;
}

.ops-status i {
    margin-right: 5px;
}

.ops-mini-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ops-mini-grid div {
    padding: 8px;
    border-radius: 9px;
    background: #EEF6FF;
}

.ops-mini-grid b,
.ops-mini-grid span {
    display: block;
}

.ops-mini-grid b {
    color: #0057C8;
    font-size: 1rem;
}

.ops-mini-grid span {
    color: #33517D;
    font-size: 0.64rem;
}

.hero-card-progress {
    right: 12%;
    bottom: 64px;
    width: 210px;
}

.hero-card-progress div,
.mock-progress {
    height: 8px;
    border-radius: 999px;
    background: #DDEBFF;
    overflow: hidden;
    margin-top: 10px;
}

.hero-card-progress div span,
.mock-progress span {
    display: block;
    height: 100%;
    background: #0057C8;
}

.landing-stats,
.landing-section,
.landing-cta {
    width: min(1440px, calc(100% - 36px));
    margin-left: auto;
    margin-right: auto;
}

.landing-stats {
    margin-top: -92px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border: 1px solid #D7E6FF;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 48px rgba(19, 72, 140, 0.12);
    overflow: hidden;
}

.landing-stats article {
    min-height: 92px;
    padding: 20px;
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    column-gap: 14px;
    border-right: 1px solid #E3EEFC;
}

.landing-stats article:last-child {
    border-right: 0;
}

.landing-stats i {
    grid-row: span 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0057C8;
    background: #EAF3FF;
    font-size: 1.35rem;
}

.landing-stats strong {
    font-size: 1.6rem;
    line-height: 1;
    color: #0057C8;
}

.landing-stats span {
    color: #33517D;
    font-size: 0.82rem;
    font-weight: 800;
}

.landing-stats small {
    color: #60769A;
    font-size: 0.72rem;
    line-height: 1.3;
}

.landing-section {
    padding: 46px 0 0;
}

.landing-section h2 {
    margin: 0 0 22px;
    text-align: center;
    color: #061747;
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.2;
}

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

.feature-card,
.service-grid article,
.support-grid article,
.mockup-grid article {
    min-height: 158px;
    padding: 22px;
    border: 1px solid #D9E7FA;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(28, 72, 128, 0.06);
}

.feature-card i,
.service-grid i,
.support-grid i {
    color: #0057C8;
    font-size: 2rem;
    margin-bottom: 18px;
}

.feature-card h3,
.service-grid strong,
.support-grid strong,
.mockup-grid strong {
    display: block;
    margin: 0 0 8px;
    color: #06215E;
    font-size: 1rem;
}

.feature-card p,
.service-grid p,
.support-grid p,
.security-section p,
.faq-section p {
    margin: 0;
    color: #3C5883;
    font-size: 0.88rem;
}

.workflow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px;
    text-align: center;
}

.workflow article {
    position: relative;
}

.workflow span {
    width: 38px;
    height: 38px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #0057C8;
    color: #fff;
    font-weight: 800;
}

.workflow i {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #EAF3FF;
    color: #0057C8;
    font-size: 1.7rem;
}

.workflow strong {
    display: block;
    color: #06215E;
    font-size: 0.95rem;
}

.workflow p {
    margin: 8px auto 0;
    max-width: 250px;
    color: #3C5883;
    font-size: 0.82rem;
}

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

.mock-form {
    display: grid;
    gap: 8px;
}

.mock-form span,
.mock-balance {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    background: #F4F8FF;
    color: #17366C;
    font-size: 0.78rem;
    font-weight: 700;
}

.mock-form button,
.mockup-grid button {
    min-height: 34px;
    border: 0;
    border-radius: 7px;
    background: #0057C8;
    color: #fff;
    font-weight: 800;
}

.mock-balance {
    margin: 10px 0;
    color: #0057C8;
    font-size: 1.05rem;
}

.mock-balance small {
    float: right;
    color: #16A34A;
}

.agent-feature-grid {
    align-items: stretch;
}

.agent-feature-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 230px;
}

.agent-feature-card::after {
    content: '';
    position: absolute;
    right: -34px;
    top: -34px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #EAF3FF;
    opacity: 0.9;
}

.agent-feature-head,
.agent-feature-metric,
.agent-feature-list {
    position: relative;
    z-index: 1;
}

.agent-feature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.agent-feature-head i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #0057C8;
    color: #fff;
    font-size: 1.1rem;
}

.agent-feature-head span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #EFF6FF;
    color: #0057C8;
    font-size: 0.68rem;
    font-weight: 900;
}

.agent-feature-card strong,
.agent-feature-card p,
.agent-feature-card > small,
.agent-feature-card .mock-progress {
    position: relative;
    z-index: 1;
}

.agent-feature-card p {
    margin: 0;
    color: #3C5883;
    font-size: 0.86rem;
    line-height: 1.55;
}

.agent-feature-list {
    margin-top: auto;
    display: grid;
    gap: 8px;
}

.agent-feature-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #17366C;
    font-size: 0.76rem;
    font-weight: 800;
}

.agent-feature-list i {
    color: #0057C8;
}

.agent-feature-metric {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.agent-feature-metric div {
    padding: 10px;
    border-radius: 10px;
    background: #F4F8FF;
}

.agent-feature-metric b,
.agent-feature-metric small {
    display: block;
}

.agent-feature-metric b {
    color: #0057C8;
    font-size: 0.98rem;
}

.agent-feature-metric small,
.agent-feature-card > small {
    color: #60769A;
    font-size: 0.75rem;
}

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

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

.security-strip {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
    border: 1px solid #D7E6FF;
    border-radius: 16px;
    background: #fff;
}

.security-strip span {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #17366C;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 800;
}

.security-strip i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #0057C8;
    background: #EAF3FF;
}

.security-section p {
    margin-top: 12px;
    text-align: center;
}

.faq-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    padding-bottom: 46px;
}

.faq-section h2,
.faq-section p {
    text-align: left;
}

.faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
}

.faq-list details {
    border: 1px solid #D9E7FA;
    border-radius: 10px;
    background: #fff;
}

.faq-list summary {
    min-height: 44px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
    color: #06215E;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list p {
    padding: 0 18px 14px;
    font-size: 0.84rem;
}

.landing-cta {
    min-height: 142px;
    padding: 30px clamp(18px, 5vw, 70px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(0, 54, 145, 0.98), rgba(0, 95, 212, 0.88)),
        url('../images/wallpaper02.png') center right / cover no-repeat;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center right;
    background-size: cover, min(760px, 48vw) auto;
}

.landing-cta h2,
.landing-cta p {
    margin: 0;
    color: #fff;
}

.landing-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.landing-cta p {
    margin-top: 6px;
    max-width: 700px;
}

.landing-footer {
    padding: 44px clamp(18px, 5vw, 70px) 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    color: #D7E7FF;
    background: #061A45;
}

.landing-footer img {
    width: 150px;
    filter: brightness(0) invert(1);
}

.landing-footer p {
    max-width: 330px;
}

.landing-footer strong,
.landing-footer a,
.landing-footer span {
    display: block;
}

.landing-footer strong {
    color: #fff;
    margin-bottom: 12px;
}

.landing-footer a,
.landing-footer span,
.landing-footer p {
    color: #D7E7FF;
    font-size: 0.88rem;
    margin: 0 0 8px;
}

.landing-footer-version {
    margin-top: 6px;
    font-size: 0.8rem;
    opacity: 0.7;
}

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

    .landing-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-bottom: 115px;
    }

    .hero-visual {
        min-height: 270px;
    }

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

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

@media (max-width: 768px) {
    .landing-header {
        height: var(--mobile-header-height);
        min-height: var(--mobile-header-height);
        padding: 0 14px;
    }

    .landing-brand img {
        width: var(--mobile-header-logo-width);
        max-height: var(--mobile-header-logo-height);
    }

    .landing-actions .btn-ghost {
        display: none;
    }

    .landing-actions .btn-primary {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .landing-hero {
        padding: 34px 16px 90px;
        background:
            linear-gradient(180deg, rgba(248, 251, 255, 0.97), rgba(232, 243, 255, 0.82)),
            url('../images/wallpaper01.png') center bottom / cover no-repeat;
        background-repeat: no-repeat, no-repeat;
        background-position: center, center bottom;
        background-size: cover, min(520px, 110vw) auto;
    }

    .hero-copy h1 {
        font-size: 2.22rem;
    }

    .hero-copy p {
        font-size: 0.94rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-checks {
        gap: 10px;
    }

    .hero-visual {
        display: none;
    }

    .landing-stats {
        width: calc(100% - 24px);
        margin-top: -54px;
        grid-template-columns: 1fr 1fr;
    }

    .landing-stats article {
        min-height: 86px;
        border-right: 0;
        border-bottom: 1px solid #E3EEFC;
        padding: 14px;
        grid-template-columns: 42px 1fr;
    }

    .landing-stats article:last-child {
        grid-column: span 2;
        border-bottom: 0;
    }

    .landing-stats i {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .landing-stats strong {
        font-size: 1.1rem;
    }

    .landing-section,
    .landing-cta {
        width: calc(100% - 24px);
    }

    .landing-section {
        padding-top: 34px;
    }

    .feature-grid,
    .service-grid,
    .support-grid,
    .mockup-grid,
    .workflow,
    .faq-section,
    .faq-list {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .service-grid article,
    .support-grid article,
    .mockup-grid article {
        min-height: 0;
        padding: 18px;
    }

    .security-strip {
        grid-template-columns: 1fr 1fr;
    }

    .faq-section {
        gap: 12px;
    }

    .landing-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 18px;
    }

    .landing-footer {
        grid-template-columns: 1fr;
        padding: 34px 18px 28px;
    }
}

.legal-page main {
    background:
        linear-gradient(180deg, rgba(234, 244, 255, 0.9), rgba(248, 251, 255, 1) 36%),
        url('../images/wallpaper02.png') top right / min(760px, 82vw) auto no-repeat;
    background-repeat: no-repeat, no-repeat;
}

.legal-page .landing-nav {
    display: flex;
}

.legal-hero {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto;
    padding: 72px 0 32px;
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 24px;
    align-items: center;
}

.legal-icon {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: #E7F1FF;
    color: #0057C8;
    font-size: 2.25rem;
    box-shadow: 0 16px 40px rgba(0, 87, 200, 0.16);
}

.legal-hero p {
    margin: 0 0 8px;
    color: #0057C8;
    font-weight: 800;
}

.legal-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.legal-hero span:not(.legal-icon) {
    display: block;
    max-width: 780px;
    color: #29446F;
    font-size: 1.05rem;
}

.legal-content {
    width: min(1080px, calc(100% - 36px));
    margin: 0 auto 64px;
    display: grid;
    gap: 14px;
}

.legal-content article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 24px;
    border: 1px solid #D9E6F7;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.legal-content article > span {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #F0F7FF;
    color: #0057C8;
    font-weight: 800;
}

.legal-content h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
}

.legal-content p {
    margin: 0;
    color: #405477;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .legal-page .landing-header {
        height: var(--mobile-header-height);
        min-height: var(--mobile-header-height);
    }

    .legal-page .landing-nav {
        display: flex;
        order: 3;
        width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 2px;
    }

    .legal-page .landing-nav a {
        padding: 7px 12px;
        border: 1px solid #D9E6F7;
        border-radius: 999px;
        background: #fff;
        white-space: nowrap;
    }

    .legal-page .landing-nav a.active {
        background: #0057C8;
        border-color: #0057C8;
        color: #fff;
    }

    .legal-hero {
        width: calc(100% - 24px);
        padding: 30px 0 18px;
        grid-template-columns: 56px 1fr;
        gap: 14px;
    }

    .legal-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 1.5rem;
    }

    .legal-hero h1 {
        font-size: 1.85rem;
    }

    .legal-hero span:not(.legal-icon) {
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .legal-content {
        width: calc(100% - 24px);
        margin-bottom: 34px;
    }

    .legal-content article {
        grid-template-columns: 38px 1fr;
        gap: 12px;
        padding: 16px 14px;
        border-radius: 10px;
    }

    .legal-content article > span {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 0.82rem;
    }

    .legal-content h2 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .legal-content p {
        font-size: 0.92rem;
        line-height: 1.6;
    }
}

@media (max-width: 430px) {
    .landing-header {
        padding-inline: 12px;
        gap: 10px;
    }

    .landing-actions .btn {
        min-height: 36px;
        padding: 0 12px;
        font-size: 0.78rem;
    }

    .landing-hero {
        padding-inline: 12px;
    }

    .hero-copy h1 {
        font-size: 2rem;
    }

    .hero-copy p {
        font-size: 0.95rem;
    }

    .landing-stats {
        width: calc(100% - 24px);
        gap: 8px;
    }

    .landing-stats article {
        min-height: 82px;
        padding: 12px 10px;
    }

    .feature-card,
    .service-grid article,
    .support-grid article,
    .mockup-grid article {
        padding: 16px;
    }

    .feature-card i,
    .service-grid i,
    .support-grid i {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}
