@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --page-bg: #f0f2f5;
    --surface: #ffffff;
    --surface-soft: #f7f8fa;
    --ink: #1c1e21;
    --muted: #65676b;
    --line: #dadde1;
    --accent: #1877f2;
    --accent-deep: #1664d9;
    --accent-alt: #00a7a0;
    --accent-soft: #e7f3ff;
    --success: #42b72a;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: radial-gradient(circle at 10% 4%, #ffffff 0, #ebf9ff 26%, #e8eef9 56%, #e4e9f2 100%);
    color: var(--ink);
}

a {
    text-decoration: none;
}

.landing-shell {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.landing-shell::before,
.landing-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

.landing-shell::before {
    width: 420px;
    height: 420px;
    right: -140px;
    top: -120px;
    background: radial-gradient(circle, #bfe6ff 0, #dff3ff 48%, transparent 72%);
}

.landing-shell::after {
    width: 360px;
    height: 360px;
    left: -120px;
    bottom: -160px;
    background: radial-gradient(circle, #c8efe3 0, #e5faf3 55%, transparent 74%);
}

.landing-wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px 16px 56px;
    position: relative;
    z-index: 1;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    background: linear-gradient(140deg, #1877f2 0, #00a7a0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
    background: #1877f2;
    border: 1px solid #1664d9;
    color: #fff;
    box-shadow: 0 10px 20px rgba(24, 119, 242, 0.24);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(24, 119, 242, 0.3);
    filter: saturate(1.05);
}

.install-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.15rem;
    line-height: 1;
}

.locale-switch {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.locale-pill {
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.locale-pill.active {
    background: var(--accent);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 44px;
    align-items: start;
    min-height: 72vh;
    padding-top: 8px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #dff1ff;
    border: 1px solid #bfdefe;
    color: #1157a8;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hero-eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2, #00a7a0);
    box-shadow: 0 0 0 5px rgba(24, 119, 242, 0.12);
}

.hero-copy h1 {
    margin: 16px 0 14px;
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.9;
    letter-spacing: -0.045em;
    color: #0f3f7e;
    max-width: 10ch;
}

.hero-lead {
    margin: 0;
    font-size: clamp(1.08rem, 1.9vw, 1.42rem);
    line-height: 1.58;
    max-width: 34ch;
    color: #243447;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d2deed;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: #244260;
    backdrop-filter: blur(2px);
}

.hero-social-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    max-width: 680px;
}

.proof-card {
    background: linear-gradient(180deg, #ffffff 0, #f7fbff 100%);
    border: 1px solid #d5e3f6;
    border-radius: 16px;
    padding: 16px 14px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.proof-card strong {
    display: block;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.proof-card span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.hero-panel {
    background: linear-gradient(160deg, #ffffff 0, #f6fbff 62%, #edf7ff 100%);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 18px;
    border: 1px solid #d7e6fa;
    position: relative;
    overflow: hidden;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: auto -72px -94px auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #d4f3ef 0, #eafcf8 56%, transparent 72%);
    pointer-events: none;
}

.panel-ribbon {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    background: #eff7ff;
    border: 1px solid #cee3fc;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #1f5ca5;
    margin-bottom: 10px;
}

.action-card {
    display: grid;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    position: relative;
    z-index: 1;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.14);
}

.action-btn.primary {
    background: linear-gradient(140deg, #b8daf9 0, #d6ebff 100%);
    color: #1c1e21;
    border: 1px solid #a6cbef;
}

.action-btn.primary:hover {
    background: linear-gradient(140deg, #a7d0f8 0, #cae4ff 100%);
}

.action-btn.secondary {
    background: linear-gradient(140deg, #c8f8c5 0, #dfffe2 100%);
    color: #1c1e21;
    border: 1px solid #a9e0aa;
}

.action-btn.secondary:hover {
    background: linear-gradient(140deg, #baf3b7 0, #d5fad8 100%);
}

.action-btn.pastel-yellow {
    background: #FFF6B7;
    color: #1c1e21;
}

.action-btn.pastel-yellow:hover {
    background: #FFE066;
}

.action-btn.pastel-pink {
    background: #FFD6E0;
    color: #1c1e21;
}

.action-btn.pastel-pink:hover {
    background: #FFB3C6;
}

.action-meta {
    padding: 4px 0 14px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.help-link {
    display: block;
    text-align: center;
    color: var(--accent);
    font-size: 0.92rem;
    font-weight: 700;
    padding-top: 4px;
}

.helper-card {
    margin-top: 18px;
    background: var(--surface);
    border: 1px solid #d8e6f7;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
}

.helper-card strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}

.helper-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.94rem;
}

.helper-card a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 800;
}

.lower-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.info-card {
    background: linear-gradient(180deg, #ffffff 0, #f8fcff 100%);
    border: 1px solid #d8e5f5;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.info-card strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.footer-callout {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 0.94rem;
}

.footer-callout a {
    color: var(--accent);
    font-weight: 800;
}

.install-help-modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 30, 49, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1200;
}

.install-help-modal.open {
    display: flex;
}

.install-help-card {
    width: 100%;
    max-width: 460px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.install-help-title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    color: var(--ink);
}

.install-help-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.install-help-actions {
    display: flex;
    justify-content: flex-end;
}

.install-help-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
}

.install-help-close:hover {
    background: #fbfdff;
}

.hero-copy>* {
    opacity: 0;
    transform: translateY(12px);
    animation: landing-rise 560ms ease forwards;
}

.hero-copy h1 {
    animation-delay: 70ms;
}

.hero-copy .hero-lead {
    animation-delay: 140ms;
}

.hero-copy .hero-chips {
    animation-delay: 190ms;
}

.hero-copy .hero-social-proof {
    animation-delay: 230ms;
}

@keyframes landing-rise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media(max-width:960px) {

    .hero,
    .lower-grid,
    .hero-social-proof {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 28px;
        min-height: auto;
    }

    .hero-panel {
        order: 1;
    }

    .hero-copy {
        order: 2;
    }

    .hero-copy h1,
    .hero-copy p {
        max-width: none;
    }
}

@media(max-width:720px) {
    .landing-wrap {
        padding: 16px 12px 40px;
    }

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

    .topbar-left,
    .topbar-actions {
        width: 100%;
    }

    .topbar-actions {
        justify-content: space-between;
    }

    .install-btn {
        padding: 9px 14px;
    }

    .hero-copy h1 {
        font-size: clamp(2.3rem, 12vw, 3.7rem);
    }

    .hero-lead {
        font-size: 1.05rem;
    }
}