:root {
    --navy: #08275a;
    --navy-soft: #0c326d;
    --slate: #2b3445;
    --muted: #667085;
    --border: #d9e2ef;
    --surface: #ffffff;
    --surface-soft: #f5f8fc;
    --green: #00bfa6;
    --green-strong: #008d7b;
    --amber: #61d8cb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate);
    background: var(--surface-soft);
    font-family: Avenir, Inter, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

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

img {
    display: block;
    max-width: 100%;
}

.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    left: 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.header-inner {
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1440px;
    min-height: 72px;
    padding: 10px clamp(18px, 5vw, 72px);
}

.brand img {
    height: auto;
    object-fit: contain;
    width: 190px;
}

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

.site-nav {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 700;
}

.site-nav a {
    padding: 8px 4px;
}

.site-nav a:hover {
    color: var(--navy);
}

.btn {
    align-items: center;
    border: 1px solid transparent;
    border-radius: 0;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    transition: background-color .18s ease, border-color .18s ease;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--green-strong);
}

.btn-ghost {
    border-color: rgba(7, 17, 31, 0.14);
    color: var(--navy);
}

.btn-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.hero {
    background-image: linear-gradient(90deg, rgba(5, 20, 45, 0.96) 0%, rgba(5, 20, 45, 0.82) 48%, rgba(5, 20, 45, 0.38) 100%), url("../img/pesaview-hero.png");
    background-position: center;
    background-size: cover;
    color: #fff;
    min-height: min(760px, calc(100vh - 72px));
    padding: clamp(80px, 10vw, 126px) max(clamp(22px, 7vw, 96px), calc((100vw - 1440px) / 2 + 72px));
    position: relative;
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    color: var(--amber);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 14px;
    text-transform: uppercase;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.7rem, 5.6vw, 5.25rem);
    line-height: 1;
    margin: 0;
    max-width: 780px;
}

.hero-copy {
    color: rgba(248, 250, 252, 0.86);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    margin: 26px 0 0;
    max-width: 680px;
}

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

.hero-capabilities {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    list-style: none;
    margin: 44px 0 0;
    padding: 20px 0 0;
}

.hero-capabilities li {
    color: rgba(248, 250, 252, 0.74);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.section {
    padding: clamp(64px, 9vw, 112px) clamp(22px, 7vw, 96px);
}

.section-tight {
    background: #fff;
}

.section-heading {
    max-width: 760px;
}

.section-heading h2,
.workflow-copy h2,
.smart-view-copy h2 {
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1;
    margin: 0;
}

.section-heading p,
.workflow-copy p,
.smart-view-copy p {
    color: var(--muted);
    font-size: 1.04rem;
}

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

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

.feature-card,
.trust-grid div {
    background: var(--surface);
    border: 1px solid rgba(16, 27, 46, 0.1);
    border-radius: 0;
    padding: 24px;
}

.feature-icon {
    color: var(--green);
    font-weight: 900;
}

.feature-card h3,
.trust-grid h3 {
    color: var(--navy);
    font-size: 1.18rem;
    margin: 20px 0 10px;
}

.feature-card p,
.trust-grid p {
    color: var(--muted);
    margin: 0;
}

.workflow {
    align-items: start;
    background: #edf3f8;
    display: grid;
    gap: 44px;
    grid-template-columns: 0.8fr 1.2fr;
}

.workflow-steps {
    counter-reset: steps;
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.workflow-steps li {
    background: #fff;
    border-left: 5px solid var(--green);
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
    padding: 22px 24px;
}

.workflow-steps span {
    color: var(--green-strong);
    display: block;
    font-size: 0.86rem;
    font-weight: 900;
    margin-bottom: 7px;
    text-transform: uppercase;
}

.workflow-steps strong {
    color: var(--navy);
    font-size: 1.05rem;
}

.trust {
    background: var(--navy);
    color: #fff;
}

.trust .section-heading h2,
.trust-grid h3 {
    color: #fff;
}

.trust .section-heading p,
.trust-grid p {
    color: rgba(248, 250, 252, 0.72);
}

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

.trust-grid div {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.faq-section,
.legal-section {
    background: #fff;
}

.faq-grid,
.legal-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 38px;
}

.faq-card {
    background: var(--surface);
    border: 1px solid rgba(16, 27, 46, 0.1);
    padding: 24px;
}

.faq-card h3,
.legal-card h3 {
    color: var(--navy);
    font-size: 1.12rem;
    margin: 0 0 10px;
}

.faq-card p,
.legal-card p {
    color: var(--muted);
    margin: 0;
}

.smart-view {
    align-items: stretch;
    background: #fff;
    display: grid;
    gap: 32px;
    grid-template-columns: 0.9fr 1.1fr;
}

.smart-view-copy h2 span {
    color: var(--green);
    display: block;
}

.smart-view-panel {
    background: var(--navy);
    color: #fff;
    display: grid;
    gap: 28px;
    padding: clamp(28px, 4vw, 44px);
}

.smart-view-benefits {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smart-view-benefits div {
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 18px;
}

.smart-view-benefits strong {
    color: #fff;
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.smart-view-benefits span {
    color: rgba(248, 250, 252, 0.7);
    display: block;
    font-size: 0.93rem;
}

.smart-view-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.smart-view-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.site-footer {
    background: #061a44;
    color: rgba(248, 250, 252, 0.78);
    padding: 48px clamp(22px, 7vw, 96px) 24px;
}

.footer-inner {
    display: grid;
    gap: 48px;
    grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
    margin: 0 auto;
    max-width: 1296px;
}

.footer-brand p {
    font-size: 1rem;
    margin: 18px 0 24px;
    max-width: 420px;
}

.site-footer img {
    height: auto;
    width: 190px;
}

.footer-maker {
    border-left: 4px solid var(--green);
    display: grid;
    gap: 4px;
    padding-left: 16px;
}

.footer-maker span {
    color: rgba(248, 250, 252, 0.62);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-maker strong {
    color: #fff;
    font-size: 1.08rem;
}

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

.footer-links div {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-links h3 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
    text-transform: uppercase;
}

.footer-links a,
.footer-links span {
    color: rgba(248, 250, 252, 0.74);
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--green);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    margin: 42px auto 0;
    max-width: 1296px;
    padding-top: 20px;
}

.footer-bottom span {
    color: rgba(248, 250, 252, 0.58);
    font-size: 0.88rem;
}

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

    .feature-grid,
    .compact-grid,
    .faq-grid,
    .legal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .header-inner {
        gap: 16px;
        min-height: 64px;
    }

    .brand img {
        width: 154px;
    }

    .site-actions .btn {
        min-height: 38px;
        padding: 8px 12px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-actions,
    .workflow,
    .trust-grid,
    .smart-view {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        align-items: stretch;
        display: grid;
    }

    .feature-grid,
    .compact-grid,
    .faq-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }

    .smart-view-benefits {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding-top: 40px;
    }

    .footer-inner,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .site-actions .btn-ghost {
        display: none;
    }

    .hero {
        background-position: 62% center;
        min-height: calc(100vh - 64px);
        padding-top: 72px;
    }

    .hero h1 {
        font-size: 2.75rem;
    }

    .hero-capabilities {
        gap: 8px 18px;
        margin-top: 34px;
    }
}
