:root {
    --blue: #25aef3;
    --blue2: #0c8ef0;
    --orange: #ff9300;
    --ink: #10233d;
    --muted: #607188;
    --soft: #f4fbff;
    --line: #dfeef7;
    --card: #ffffff;
    --shadow: 0 18px 55px rgba(19, 87, 132, 0.12);
    --r: 26px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.65;
}

a {
    color: inherit;
}

.container {
    width: min(calc(100% - 36px), var(--max));
    margin: auto;
}

/* Header */

.header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(37, 174, 243, 0.12);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-weight: 800;
    flex-shrink: 0;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(37, 174, 243, 0.16);
}

.brand strong {
    color: var(--blue2);
}

.brand em {
    font-style: normal;
    color: var(--orange);
}

.links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.links a {
    text-decoration: none;
    color: #41546c;
    font-size: 0.94rem;
    transition:
        color 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

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

/* App Store button in navigation */

.links .cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 17px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(12, 142, 240, 0.2);
}

.links .cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 13px 28px rgba(12, 142, 240, 0.27);
}

.app-store-nav {
    white-space: nowrap;
}

.apple-symbol {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        sans-serif;
    font-size: 19px;
    line-height: 1;
}

/* Hero */

.hero {
    padding: 78px 0 64px;
    background:
        radial-gradient(
            circle at 78% 18%,
            rgba(37, 174, 243, 0.16),
            transparent 31%
        ),
        linear-gradient(180deg, #ffffff 0%, #f8fdff 100%);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    align-items: center;
    gap: 60px;
}

.eyebrow {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf8ff;
    color: var(--blue2);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 22px 0 24px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.97;
    letter-spacing: -0.06em;
}

.hero h1 span {
    color: var(--blue2);
}

.lead {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.16rem;
}

.actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 14px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    box-shadow: 0 14px 32px rgba(12, 142, 240, 0.22);
}

.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(12, 142, 240, 0.28);
}

.secondary {
    border: 1px solid var(--line);
    background: #ffffff;
}

.secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 142, 240, 0.35);
    box-shadow: 0 12px 26px rgba(19, 87, 132, 0.1);
}

/* App Store badge */

.app-store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    min-width: 205px;
    min-height: 62px;
    padding: 8px 20px;
    color: #ffffff;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.app-store-badge:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 17px 35px rgba(0, 0, 0, 0.24);
}

.app-store-badge:active {
    transform: translateY(0);
    opacity: 0.88;
}

.app-store-apple {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "SF Pro Display",
        sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.app-store-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.app-store-copy small {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.app-store-copy strong {
    color: #ffffff;
    font-size: 23px;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.hero-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Hero visual */

.visual {
    position: relative;
    display: grid;
    place-items: center;
}

.visual::before {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: #eaf8ff;
    filter: blur(2px);
}

.screen-card {
    position: relative;
    width: min(420px, 88vw);
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 36px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.screen-card > img {
    display: block;
    width: 100%;
    border-radius: 24px;
}

.icon-float {
    position: absolute;
    left: -36px;
    bottom: 56px;
    width: 112px;
    height: 112px;
    padding: 9px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transform: rotate(-6deg);
}

.icon-float img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
}

/* Sections */

.section {
    padding: 86px 0;
}

.section.alt {
    background: var(--soft);
}

.section-head {
    max-width: 730px;
    margin-bottom: 34px;
}

.section h2 {
    margin: 14px 0;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.section-head p {
    color: var(--muted);
}

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

.card {
    padding: 26px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    box-shadow: 0 12px 36px rgba(22, 92, 137, 0.07);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(22, 92, 137, 0.12);
}

.icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: #e9f8ff;
    color: var(--blue2);
    font-size: 1.45rem;
}

.card:nth-child(2) .icon,
.card:nth-child(4) .icon {
    background: #fff5e6;
    color: var(--orange);
}

.card h3 {
    margin: 17px 0 7px;
    font-size: 1.14rem;
}

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

/* AI */

.ai {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 38px;
    padding: 42px;
    background: linear-gradient(135deg, #eaf8ff, #fff7e9);
    border: 1px solid #d9eef9;
    border-radius: 34px;
}

.ai-badge {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    border-radius: 24px;
    font-size: 2rem;
    box-shadow: 0 18px 35px rgba(37, 174, 243, 0.2);
}

.steps {
    display: grid;
    gap: 12px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
}

.step b {
    color: var(--blue2);
}

/* Legal cards */

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

.legal-card {
    padding: 25px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-decoration: none;
    box-shadow: 0 12px 34px rgba(22, 92, 137, 0.07);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.legal-card:hover {
    transform: translateY(-3px);
    border-color: rgba(12, 142, 240, 0.28);
    box-shadow: 0 18px 40px rgba(22, 92, 137, 0.12);
}

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

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

/* Legal pages */

.legal {
    padding: 74px 0;
}

.legal-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 42px;
}

.toc {
    position: sticky;
    top: 100px;
    align-self: start;
    padding: 16px;
    background: #f8fcff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

.toc a {
    display: block;
    padding: 7px 5px;
    color: #637489;
    text-decoration: none;
}

.toc a:hover {
    color: var(--blue2);
}

.content {
    max-width: 820px;
}

.content section {
    margin-bottom: 34px;
}

.content h1 {
    font-size: clamp(2.6rem, 6vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.content h2 {
    font-size: 1.45rem;
}

.content p,
.content li {
    color: #53677e;
}

.callout {
    padding: 18px;
    background: #fff8ed;
    border-left: 4px solid var(--orange);
    border-radius: 0 14px 14px 0;
}

/* Footer */

.footer {
    padding: 34px 0;
    background: #fbfdff;
    border-top: 1px solid var(--line);
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
    color: #718095;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
}

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

/* Tablet */

@media (max-width: 1000px) {
    .links {
        gap: 14px;
    }

    .links a {
        font-size: 0.88rem;
    }

    .links .cta {
        padding: 10px 14px;
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .ai,
    .legal-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-copy {
        text-align: center;
    }

    .lead {
        margin-right: auto;
        margin-left: auto;
    }

    .actions {
        justify-content: center;
    }

    .hero-note {
        text-align: center;
    }

    .visual {
        margin-top: 22px;
    }

    .toc {
        position: static;
    }

    .links a:not(.cta) {
        display: none;
    }
}

/* Mobile */

@media (max-width: 590px) {
    .container {
        width: min(calc(100% - 28px), var(--max));
    }

    .nav {
        min-height: 68px;
    }

    .brand span {
        display: none;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .links .cta {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 52px 0 54px;
    }

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

    .lead {
        font-size: 1.04rem;
    }

    .actions {
        flex-direction: column;
    }

    .app-store-badge {
        width: 100%;
        max-width: 260px;
    }

    .actions .secondary {
        width: 100%;
        max-width: 260px;
    }

    .screen-card {
        width: 320px;
    }

    .icon-float {
        left: -14px;
        width: 82px;
        height: 82px;
        border-radius: 22px;
    }

    .icon-float img {
        border-radius: 17px;
    }

    .section {
        padding: 64px 0;
    }

    .cards,
    .legal-links {
        grid-template-columns: 1fr;
    }

    .ai {
        padding: 24px;
    }

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

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

    .screen-card {
        width: 290px;
    }

    .links .cta {
        padding: 9px 11px;
        font-size: 0.8rem;
    }
}
