:root {
    color-scheme: light;
    --bg: #F5F7FB;
    --bg-soft: #FAFBFD;
    --surface: #FFFFFF;
    --surface-strong: #F5F5F7;
    --surface-line: rgba(15, 23, 42, 0.08);
    --text: #0B0B0F;
    --muted: #6E6E76;
    --subtle: #97979F;
    --accent: #0A84FF;
    --accent-strong: #0066CC;
    --accent-soft: #EAF4FF;
    --accent-ink: #FFFFFF;
    --danger: #E5484D;
    --radius: 20px;
    --shadow: 0 24px 60px rgb(15 23 42 / 0.07);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(720px 420px at 14% -8%, rgb(10 132 255 / 0.09), transparent 62%),
        radial-gradient(620px 420px at 96% 8%, rgb(124 58 237 / 0.06), transparent 60%),
        linear-gradient(180deg, #FAFBFD 0%, #F5F7FB 100%);
}

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

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

.skip-link {
    position: fixed;
    left: 16px;
    top: 12px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 700;
    transform: translateY(-140%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 14px max(18px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--surface-line);
    background: rgb(255 255 255 / 0.82);
    backdrop-filter: blur(18px) saturate(1.3);
    -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand img {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    box-shadow: 0 10px 24px rgb(10 132 255 / 0.18);
}

.brand span {
    white-space: nowrap;
}

.topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}

.topnav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.topnav a:hover,
.topnav a:focus-visible {
    color: var(--text);
    border-color: var(--surface-line);
    background: var(--surface-strong);
    outline: none;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    gap: 38px;
    align-items: center;
    min-height: calc(100dvh - 132px);
    max-width: 1180px;
    margin: 0 auto;
    padding: 36px 22px 20px;
}

.hero-copy {
    max-width: 680px;
}

.section-kicker {
    margin: 0 0 14px;
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.hero h1,
.section-heading h2,
.security-copy h2,
.capability-section h2 {
    margin: 0;
    color: var(--text);
    line-height: 1.03;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero h1 {
    max-width: 660px;
    font-size: 3.7rem;
}

.hero-text {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.65;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    max-width: 100%;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:active {
    transform: translateY(1px) scale(0.98);
}

.button:focus-visible {
    outline: 3px solid rgb(10 132 255 / 0.3);
    outline-offset: 3px;
}

.button-primary {
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 16px 34px rgb(10 132 255 / 0.24);
}

.button-primary:hover {
    background: var(--accent-strong);
    box-shadow: 0 18px 40px rgb(10 132 255 / 0.3);
}

.button-secondary,
.button-ghost {
    border-color: var(--surface-line);
    background: var(--surface);
    color: var(--text);
}

.button-secondary:hover,
.button-ghost:hover {
    border-color: rgb(10 132 255 / 0.4);
    background: var(--accent-soft);
    color: var(--accent-strong);
}

.button-disabled {
    gap: 10px;
    border-color: var(--surface-line);
    background: var(--surface-strong);
    color: var(--subtle);
    cursor: not-allowed;
    pointer-events: none;
}

.button-disabled:hover {
    background: var(--surface-strong);
    box-shadow: none;
}

.soon-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgb(15 23 42 / 0.08);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.download-status {
    min-height: 24px;
    margin: 18px 0 0;
    color: var(--subtle);
    font-size: 0.95rem;
    font-weight: 600;
}

.download-status.is-ready {
    color: #1FA463;
}

.download-status.is-error {
    color: var(--danger);
}

.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-shell {
    width: min(100%, 430px);
    min-height: 464px;
    padding: 18px;
    border: 1px solid var(--surface-line);
    border-radius: 36px;
    background:
        linear-gradient(160deg, rgb(255 255 255 / 0.9), rgb(245 247 251 / 0.9)),
        var(--surface);
    box-shadow: var(--shadow);
}

.phone-top {
    display: flex;
    justify-content: center;
    min-height: 34px;
}

.phone-top span {
    width: 74px;
    height: 7px;
    border-radius: 999px;
    background: rgb(15 23 42 / 0.12);
}

.app-line {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    background: rgb(15 23 42 / 0.02);
}

.app-line-active {
    border-color: rgb(10 132 255 / 0.35);
    background: rgb(10 132 255 / 0.06);
}

.app-line img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
}

.app-line strong,
.app-line span {
    display: block;
}

.app-line strong {
    font-size: 1.05rem;
    font-weight: 700;
}

.app-line span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.92rem;
}

.chat-preview,
.code-preview {
    display: grid;
    gap: 9px;
    margin: 12px 0;
    padding: 12px;
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    background: rgb(15 23 42 / 0.02);
}

.bubble {
    display: block;
    height: 31px;
    border-radius: 20px;
}

.bubble-left {
    width: 72%;
    background: rgb(15 23 42 / 0.07);
}

.bubble-right {
    justify-self: end;
    width: 66%;
    background: rgb(10 132 255 / 0.18);
}

.bubble.short {
    width: 48%;
}

.code-preview span {
    display: block;
    height: 12px;
    border-radius: 999px;
    background: rgb(15 23 42 / 0.08);
}

.code-preview span:nth-child(1) {
    width: 74%;
    background: rgb(10 132 255 / 0.28);
}

.code-preview span:nth-child(2) {
    width: 88%;
}

.code-preview span:nth-child(3) {
    width: 56%;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px 40px;
}

.trust-strip span {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    font-size: 0.92rem;
}

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

.screen-card {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 18px;
    border: 1px solid var(--surface-line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgb(15 23 42 / 0.05);
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms ease;
}

.screen-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 54px rgb(15 23 42 / 0.08);
    border-color: rgb(10 132 255 / 0.2);
}

.screen-card-media {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 9 / 17.4;
    margin-bottom: 14px;
    background: var(--surface-strong);
    border: 1px solid var(--surface-line);
}

.screen-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.screen-card-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 11px;
    margin-bottom: 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-strong);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.screen-card h3 {
    margin: 0 0 4px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.screen-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

.section-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 86px 22px;
}

.section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.section-heading h2,
.security-copy h2,
.capability-section h2 {
    font-size: 3rem;
}

.section-heading p:not(.section-kicker),
.security-copy p,
.capability-grid p,
.product-copy,
.security-grid p {
    color: var(--muted);
    line-height: 1.62;
}

.section-heading p:not(.section-kicker) {
    max-width: 620px;
    margin: 18px 0 0;
    font-size: 1.04rem;
}

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

.product-card,
.security-grid article,
.capability-grid article {
    border: 1px solid var(--surface-line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 14px 40px rgb(15 23 42 / 0.05);
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1), box-shadow 220ms cubic-bezier(.16, 1, .3, 1), border-color 220ms ease;
}

.product-card:hover,
.security-grid article:hover,
.capability-grid article:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 54px rgb(15 23 42 / 0.08);
    border-color: rgb(10 132 255 / 0.18);
}

.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px;
}

.product-card-main {
    border-color: rgb(10 132 255 / 0.28);
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--surface) 38%);
}

.product-head {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.product-head img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgb(15 23 42 / 0.12);
}

.product-head h3,
.security-grid h3,
.capability-grid h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.product-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.product-copy {
    margin: 24px 0 0;
}

.feature-list,
.permission-list {
    display: grid;
    gap: 10px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.feature-list li,
.permission-list li {
    position: relative;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.45;
}

.feature-list li::before,
.permission-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.action-row {
    margin-top: auto;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 24px 0 0;
}

.meta-grid div {
    min-width: 0;
    padding-top: 14px;
    border-top: 1px solid var(--surface-line);
}

.meta-grid dt {
    margin: 0 0 5px;
    color: var(--subtle);
    font-size: 0.78rem;
    font-weight: 600;
}

.meta-grid dd {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 34px;
    align-items: start;
}

.security-copy {
    position: sticky;
    top: 104px;
}

.security-grid {
    display: grid;
    gap: 18px;
}

.security-grid article,
.capability-grid article {
    padding: 26px;
}

.security-grid p,
.capability-grid p {
    margin: 14px 0 0;
}

.capability-section {
    padding-top: 42px;
}

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

.footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 22px 42px;
    border-top: 1px solid var(--surface-line);
    color: var(--subtle);
    font-size: 0.9rem;
}

.footer a {
    color: var(--muted);
    font-weight: 600;
    transition: color 160ms ease;
}

.footer a:hover {
    color: var(--accent-strong);
}

[data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 520ms ease, transform 520ms ease;
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 52px;
    }

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

    .hero-visual {
        justify-content: flex-start;
    }

    .phone-shell {
        max-width: 520px;
        min-height: auto;
    }

    .product-grid,
    .split-section,
    .capability-grid {
        grid-template-columns: 1fr;
    }

    .security-copy {
        position: static;
    }

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

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

@media (max-width: 720px) {
    .topbar {
        position: static;
        align-items: flex-start;
        flex-direction: column;
        min-height: auto;
        padding: 14px 16px;
    }

    .topnav {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .topnav a {
        flex: 0 0 auto;
    }

    .hero,
    .section-shell {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero {
        gap: 34px;
        padding-bottom: 42px;
    }

    .hero h1 {
        font-size: 2.55rem;
        line-height: 1.06;
    }

    .hero-text {
        font-size: 1.02rem;
    }

    .button {
        width: 100%;
        white-space: normal;
    }

    .phone-shell {
        width: 100%;
        padding: 14px;
        border-radius: 26px;
    }

    .trust-strip {
        grid-template-columns: 1fr;
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading h2,
    .security-copy h2,
    .capability-section h2 {
        font-size: 2.15rem;
        line-height: 1.08;
    }

    .product-card,
    .security-grid article,
    .capability-grid article {
        padding: 20px;
    }

    .product-head {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 12px;
    }

    .product-head img {
        width: 58px;
        height: 58px;
    }

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

    .footer {
        flex-direction: column;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 420px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .app-line {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 13px;
    }

    .app-line img {
        width: 46px;
        height: 46px;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
