.home-refresh-hero {
    padding: 58px 0 82px;
    background:
        radial-gradient(circle at 7% 8%, rgba(96, 165, 250, 0.17) 0, transparent 29rem),
        radial-gradient(circle at 94% 12%, rgba(251, 191, 36, 0.19) 0, transparent 27rem),
        linear-gradient(180deg, #f9fbff 0%, #f4f7fc 100%);
}

.home-refresh-hero .hero__grid {
    align-items: center;
}

.home-refresh-hero .hero__content h1 {
    max-width: 700px;
    margin: 18px 0 24px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

.home-refresh-hero .hero__description {
    max-width: 680px;
    margin: 0;
    font-size: 19px;
    line-height: 1.68;
}

.home-refresh-hero__advantages {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.home-refresh-hero__advantages li {
    position: relative;
    padding: 13px 14px 13px 42px;
    border: 1px solid #dbe4f0;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.78);
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.home-refresh-hero__advantages li::before {
    position: absolute;
    top: 12px;
    left: 13px;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: #fe9a00;
    color: #ffffff;
    content: "✓";
    font-size: 12px;
    font-weight: 900;
}

.home-refresh-hero__store-benefit {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.home-refresh-hero__store-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 6px;
}

.home-refresh-hero__store-badges img {
    display: block;
    width: auto;
    height: 36px;
}

.home-refresh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 30px;
}

.home-refresh-hero__actions .button {
    min-height: 50px;
}

.home-refresh-hero__primary-action {
    display: none;
}

.home-refresh-hero .form-card {
    align-self: stretch;
}

#capabilities {
    scroll-margin-top: 96px;
}

.home-capabilities {
    position: relative;
    z-index: 1;
    padding: 90px 0 24px;
}

.home-capabilities__heading {
    max-width: 800px;
    margin: 0 auto 46px;
    text-align: center;
}

.home-capabilities__heading h2 {
    margin: 12px 0 16px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.home-capabilities__heading p {
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.72;
}

.home-capability {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    min-height: 540px;
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 24px 68px rgba(15, 23, 42, 0.08);
}

.home-capability__visual,
.home-capability__text {
    min-width: 0;
}

.home-capability__visual {
    position: relative;
    display: flex;
    min-height: 540px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-capability__visual--push {
    background:
        radial-gradient(circle at 82% 12%, rgba(251, 191, 36, 0.24), transparent 18rem),
        linear-gradient(145deg, #e0f2fe 0%, #ddd6fe 52%, #ffedd5 100%);
}

.home-capability__visual--promo {
    background:
        radial-gradient(circle at 84% 18%, rgba(251, 191, 36, 0.3), transparent 18rem),
        linear-gradient(145deg, #fff7ed 0%, #f8fafc 48%, #e0f2fe 100%);
}

.home-capability__visual--navigation {
    background:
        radial-gradient(circle at 15% 84%, rgba(167, 139, 250, 0.22), transparent 18rem),
        linear-gradient(145deg, #eff6ff 0%, #f8fafc 48%, #fef3c7 100%);
}

.home-capability__text {
    display: flex;
    min-height: 540px;
    flex-direction: column;
    justify-content: center;
    padding: 54px 58px;
}

.home-capability__text h2,
.home-deep-links h2 {
    margin: 14px 0 18px;
    color: var(--text);
    font-size: clamp(31px, 3.6vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.home-capability__text > p,
.home-deep-links__content > p {
    margin: 0;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.72;
}

.home-capability__text ul {
    display: grid;
    gap: 11px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.home-capability__text li {
    position: relative;
    padding-left: 29px;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.55;
}

.home-capability__text li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: #fe9a00;
    color: #ffffff;
    content: "✓";
    font-size: 12px;
    font-weight: 900;
}

.home-capability__link,
.home-secondary-link {
    align-self: flex-start;
    margin-top: 28px;
    color: #1d4ed8;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.home-capability__link:hover,
.home-secondary-link:hover {
    text-decoration: underline;
}

.home-capability--reverse .home-capability__visual {
    order: 2;
}

.home-capability--reverse .home-capability__text {
    order: 1;
}

.home-phone {
    position: absolute;
    left: 50%;
    width: min(100%, 370px);
    padding: 10px;
    border: 7px solid #111827;
    border-radius: 44px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
    transform: translateX(-50%);
}

.home-capability__visual--push .home-phone,
.home-capability__visual--promo .home-phone,
.home-capability__visual--navigation .home-phone {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    width: min(calc(100% - 64px), 270px);
    transform: none;
}

.home-phone__screen {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 360 / 675;
    overflow: hidden;
    flex-direction: column;
    border-radius: 30px;
}

.home-phone__screen--push {
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.5), transparent 18rem),
        linear-gradient(145deg, #bfdbfe 0%, #ddd6fe 45%, #fed7aa 100%);
}

.home-phone__screen--promo {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.home-phone__screen--navigation {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

.home-phone__status {
    display: flex;
    flex: 0 0 auto;
    justify-content: space-between;
    padding: 15px 23px 8px;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
}

.home-phone__lock {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    color: #0f172a;
}

.home-phone__lock span {
    font-size: 12px;
    font-weight: 700;
}

.home-phone__lock strong {
    margin-top: 2px;
    font-size: 56px;
    line-height: 1;
    letter-spacing: -0.05em;
}

.home-phone__notification {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    margin: 34px 16px 0;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(16px);
}

.home-phone__app-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.home-phone__notification span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
}

.home-phone__notification strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
}

.home-phone__notification p {
    margin: 4px 0 0;
    color: #475569;
    font-size: 11px;
    line-height: 1.42;
}

.home-phone__promo-bar {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 15px;
    background: #fe9a00;
    color: #111827;
    font-size: 10px;
    font-weight: 850;
}

.home-phone__promo-bar strong {
    font-size: 15px;
    line-height: 1;
}

.home-phone__promo-site {
    display: grid;
    flex: 1 1 auto;
    align-content: start;
    gap: 12px;
    padding: 22px 18px;
}

.home-phone__promo-site span {
    height: 54px;
    border-radius: 12px;
    background: #e2e8f0;
}

.home-phone__promo-site span:first-child {
    height: 92px;
    background: linear-gradient(135deg, #dbeafe, #fde68a);
}

.home-phone__promo-overlay {
    position: absolute;
    right: 16px;
    bottom: 25px;
    left: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.2);
}

.home-phone__promo-image {
    display: flex;
    height: 92px;
    align-items: flex-end;
    padding: 12px;
    border-radius: 13px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.58), transparent 6rem),
        linear-gradient(135deg, #fb923c, #facc15);
}

.home-phone__promo-image span {
    padding: 4px 7px;
    border-radius: 6px;
    background: #111827;
    color: #ffffff;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.home-phone__promo-overlay > strong {
    display: block;
    margin-top: 11px;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.3;
}

.home-phone__promo-overlay > p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 9px;
    line-height: 1.45;
}

.home-phone__promo-action {
    display: inline-block;
    margin-top: 10px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #172554;
    color: #ffffff;
    font-size: 8px;
    font-weight: 800;
}

.home-promo-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
}

.home-promo-feature {
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.home-promo-feature strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
}

.home-promo-feature p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.home-capability__text .home-promo-note {
    margin-top: 18px;
    padding-left: 14px;
    border-left: 3px solid #fe9a00;
    color: #475569;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
}

.home-phone__site-preview {
    display: flex;
    min-height: 0;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    margin: 12px 16px 16px;
    padding: 25px 20px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 10%, rgba(251, 191, 36, 0.28), transparent 11rem),
        #172554;
    color: #ffffff;
}

.home-phone__site-preview span {
    width: 58%;
    height: 7px;
    margin-bottom: auto;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 18px 0 rgba(255, 255, 255, 0.12);
}

.home-phone__site-preview strong {
    font-size: 21px;
}

.home-phone__site-preview i {
    margin-top: 15px;
    padding: 9px 12px;
    border-radius: 9px;
    background: #f59e0b;
    color: #111827;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
}

.home-phone__navigation {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.home-phone__navigation-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 2px 7px;
    color: rgba(17, 24, 39, 0.5);
}

.home-phone__navigation-item img {
    width: 23px;
    height: 23px;
    opacity: 0.5;
    object-fit: contain;
}

.home-phone__navigation-item small {
    max-width: 100%;
    overflow: hidden;
    font-size: 8px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-phone__navigation-item.is-active {
    background: #fff7ed;
    color: #b45309;
}

.home-phone__navigation-item.is-active img {
    opacity: 1;
}

.home-phone__system-bar {
    display: flex;
    min-height: 31px;
    flex: 0 0 31px;
    align-items: center;
    justify-content: center;
    gap: 46px;
    background: #353940;
}

.home-phone__system-square {
    width: 10px;
    height: 10px;
    border: 1.6px solid #ffffff;
    border-radius: 1px;
}

.home-phone__system-circle {
    width: 11px;
    height: 11px;
    border: 1.6px solid #ffffff;
    border-radius: 50%;
}

.home-phone__system-triangle {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-right: 10px solid #ffffff;
    border-bottom: 6px solid transparent;
}

.home-deep-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
    align-items: center;
    gap: 60px;
    margin-top: 28px;
    padding: 48px 52px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 18%, rgba(251, 191, 36, 0.2), transparent 22rem),
        #172554;
    color: #ffffff;
}

.home-deep-links h2 {
    color: #ffffff;
}

.home-deep-links__content > p {
    color: #cbd5e1;
}

.home-deep-links__examples {
    display: grid;
    gap: 11px;
}

.home-deep-links__examples span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 15px 17px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
}

.home-deep-links__examples b {
    font-size: 13px;
}

.home-deep-links__examples code {
    color: #bfdbfe;
    font-size: 12px;
    text-align: right;
}

.home-secondary-link {
    align-self: center;
    margin-top: 15px;
}

.reveal-ready [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-ready [data-reveal][data-reveal-delay="1"] {
    transition-delay: 0.1s;
}

.reveal-ready [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1180px) {
    #capabilities {
        scroll-margin-top: 150px;
    }
}

@media (max-width: 980px) {
    .home-refresh-hero__primary-action {
        display: inline-flex;
    }

    .home-refresh-hero .hero__grid,
    .home-capability,
    .home-deep-links {
        grid-template-columns: 1fr;
    }

    .home-refresh-hero .hero__content {
        max-width: 760px;
    }

    .home-capability--reverse .home-capability__visual,
    .home-capability--reverse .home-capability__text {
        order: initial;
    }

    .home-capability__visual {
        min-height: 450px;
    }

    .home-capability__visual--push,
    .home-capability__visual--promo,
    .home-capability__visual--navigation {
        min-height: 540px;
    }

    .home-capability__text {
        min-height: 0;
    }

    .home-deep-links {
        gap: 34px;
    }
}

@media (max-width: 620px) {
    #capabilities {
        scroll-margin-top: 82px;
    }

    .home-refresh-hero {
        padding: 34px 0 58px;
    }

    .home-refresh-hero .hero__content h1 {
        font-size: 39px;
        line-height: 1.06;
    }

    .home-refresh-hero .hero__description {
        font-size: 17px;
        line-height: 1.6;
    }

    .home-refresh-hero__advantages {
        grid-template-columns: 1fr;
    }

    .home-refresh-hero__actions,
    .home-refresh-hero__actions .button {
        width: 100%;
    }

    .home-capabilities {
        padding-top: 48px;
    }

    .home-capability {
        min-height: 0;
        border-radius: 22px;
    }

    .home-capability__visual {
        min-height: 365px;
    }

    .home-capability__text {
        padding: 34px 23px 38px;
    }

    .home-capability__text h2,
    .home-deep-links h2 {
        font-size: 30px;
    }

    .home-phone {
        width: min(calc(100% - 34px), 330px);
        border-width: 6px;
        border-radius: 39px;
    }

    .home-capability__visual--push .home-phone,
    .home-capability__visual--promo .home-phone,
    .home-capability__visual--navigation .home-phone {
        top: auto;
        bottom: auto;
        width: min(calc(100% - 70px), 220px);
    }

    .home-capability__visual--push,
    .home-capability__visual--promo,
    .home-capability__visual--navigation {
        min-height: 420px;
    }

    .home-promo-features {
        grid-template-columns: 1fr;
    }

    .home-deep-links {
        padding: 34px 23px;
        border-radius: 22px;
    }

    .home-deep-links__examples span {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .home-deep-links__examples code {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-ready [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Homepage full-background grid experiment. Remove this block to revert. */
.home-refresh-hero {
    background: rgba(249, 251, 255, 0.18);
}
