:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #667085;
    --line: #d9e1ec;
    --blue: #1d4ed8;
    --navy: #0f2544;
    --green: #0f766e;
    --coral: #dc4662;
    --soft-blue: #eaf2ff;
    --shadow: 0 22px 70px rgba(15, 37, 68, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(180deg, #ffffff 0, var(--bg) 420px),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

.site-header,
.site-footer,
main {
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    color: var(--navy);
    font-size: 1.08rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--green));
    border-radius: 8px;
    letter-spacing: 0;
    box-shadow: 0 10px 24px rgba(15, 37, 68, 0.18);
}

.site-nav,
.site-footer nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
    color: var(--muted);
    font-weight: 750;
    padding: 10px 13px;
    border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-footer a:hover {
    color: var(--blue);
    background: var(--soft-blue);
}

.hero,
.page-hero,
.support-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 15%, rgba(49, 210, 181, 0.22), transparent 30%),
        linear-gradient(135deg, #07182d 0%, #12345c 56%, #0f766e 100%);
    color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero {
    min-height: 590px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(48px, 7vw, 88px);
}

.hero-copy {
    max-width: 670px;
    z-index: 1;
}

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

.hero .eyebrow,
.page-hero .eyebrow,
.support-band .eyebrow {
    color: #9df3d5;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 5.7vw, 4.8rem);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin-bottom: 14px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.hero-text,
.page-hero p,
.support-band p {
    max-width: 660px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.12rem;
}

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

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 900;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button.primary {
    color: #fff;
    background: var(--coral);
    box-shadow: 0 14px 34px rgba(220, 70, 98, 0.25);
}

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

.hero-panel {
    padding: 0;
}

.phone-mockup {
    display: grid;
    place-items: center;
    min-height: 390px;
}

.phone-frame {
    position: relative;
    width: min(230px, 78%);
    aspect-ratio: 9 / 18.5;
    padding: 14px;
    background: linear-gradient(145deg, #101f3c, #2d6cdf 48%, #20b894);
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 72px;
    height: 18px;
    background: #101f3c;
    border-radius: 0 0 14px 14px;
    transform: translateX(-50%);
    z-index: 2;
}

.phone-screen {
    height: 100%;
    padding: 54px 18px 20px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f3f7ff 100%);
    border-radius: 24px;
}

.app-logo,
.app-line,
.app-button {
    display: block;
    border-radius: 8px;
}

.app-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 auto 22px;
    color: var(--navy);
    font-weight: 900;
}

.app-logo span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--navy), var(--green));
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.app-logo strong {
    font-size: 1.02rem;
    line-height: 1;
}

.app-line {
    width: 58%;
    height: 8px;
    margin: 0 auto 9px;
    background: #c8d4e6;
}

.app-line.wide {
    width: 88%;
}

.app-grid-mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.app-grid-mini span {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 8px;
    color: var(--navy);
    background: #e7eef9;
    border: 1px solid #d5e0ee;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 900;
}

.app-grid-mini b {
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    background: var(--blue);
    border-radius: 50%;
}

.app-grid-mini span:nth-child(2) b {
    background: var(--green);
}

.app-grid-mini span:nth-child(3) b {
    background: var(--coral);
}

.app-grid-mini span:nth-child(4) b {
    background: #f59e0b;
}

.app-button {
    width: 82%;
    height: 36px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--coral);
    font-size: 0.9rem;
    font-weight: 900;
}

.section {
    padding: clamp(54px, 8vw, 92px) 0;
}

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

.split > p {
    color: var(--muted);
    font-size: 1.12rem;
}

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

.app-card {
    position: relative;
    min-height: 188px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 37, 68, 0.06);
}

.app-card::before {
    content: "";
    display: block;
    width: 34px;
    height: 4px;
    margin-bottom: 24px;
    background: var(--blue);
    border-radius: 8px;
}

.app-card:nth-child(2)::before {
    background: var(--green);
}

.app-card:nth-child(3)::before {
    background: var(--coral);
}

.app-card:nth-child(4)::before {
    background: #f59e0b;
}

.app-card p {
    color: var(--muted);
    margin-bottom: 0;
}

.support-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(34px, 5vw, 54px);
    margin-bottom: 76px;
}

.support-band h2 {
    max-width: 720px;
}

.support-band p {
    margin-bottom: 0;
}

.page-hero {
    padding: clamp(48px, 7vw, 78px);
    margin-bottom: 34px;
}

.support-hero .button {
    margin-top: 16px;
}

.legal-page,
.faq-list {
    max-width: 900px;
    margin: 0 auto 76px;
    padding: clamp(28px, 5vw, 48px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 37, 68, 0.06);
}

.legal-page h2 {
    margin-top: 34px;
    font-size: 1.45rem;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page p,
.legal-page li,
.faq-list li {
    color: var(--muted);
}

.legal-page a {
    color: var(--blue);
    font-weight: 800;
}

.faq-list {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 36px;
}

.faq-list ul {
    margin: 0;
    padding-left: 20px;
}

.faq-list li + li {
    margin-top: 10px;
}

.site-footer {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0 42px;
    border-top: 1px solid var(--line);
}

.site-footer p {
    margin: 6px 0 0;
    color: var(--muted);
}

.metrics,
.contact-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0 0 clamp(54px, 8vw, 92px);
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 36px rgba(15, 37, 68, 0.06);
}

.metrics div,
.contact-panel > * {
    padding: 28px;
    background: #fff;
}

.metrics strong {
    display: block;
    color: var(--navy);
    font-size: 1.1rem;
}

.metrics span {
    color: var(--muted);
}

.contact-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.contact-panel h2 {
    font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.contact-panel p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

@media (max-width: 980px) {
    .hero,
    .split,
    .faq-list,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 0;
    }

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

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

@media (max-width: 720px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav a,
    .site-footer a {
        padding: 8px 9px;
    }

    .hero,
    .page-hero {
        padding: 34px 22px;
    }

    .hero {
        gap: 28px;
    }

    .hero-panel {
        padding: 16px;
    }

    .phone-mockup {
        min-height: 350px;
    }

    .phone-frame {
        width: min(210px, 74%);
    }

    .hero-actions,
    .support-band {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

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

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