:root {
    --opti-green: #30d158;
    --opti-green-soft: rgba(48, 209, 88, 0.14);
    --opti-surface: #11151b;
    --opti-surface-raised: #181d24;
    --opti-border: rgba(255, 255, 255, 0.11);
}

.opti-page {
    background: #080b0f;
}

.app-main {
    overflow: hidden;
}

.app-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 138px 0 90px;
    background:
        radial-gradient(circle at 78% 28%, rgba(48, 209, 88, 0.16), transparent 28%),
        radial-gradient(circle at 20% 8%, rgba(65, 108, 161, 0.13), transparent 32%),
        linear-gradient(180deg, #080b0f 0%, #0b0f14 100%);
}

.app-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
    align-items: center;
    gap: 4rem;
}

.app-hero-copy {
    position: relative;
    z-index: 2;
}

.app-identity {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.app-identity img,
.app-final-card img {
    border-radius: 22%;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
}

.app-identity strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.app-eyebrow {
    color: var(--opti-green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.app-hero h1 {
    max-width: 720px;
    margin-bottom: 1.6rem;
    font-size: clamp(3.3rem, 6.6vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
}

.app-lede {
    max-width: 630px;
    color: #b6bdc7;
    font-size: 1.08rem;
    line-height: 1.75;
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 2.2rem;
}

.app-store-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.65rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    background: #f7f8f9;
    color: #080a0d;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(48, 209, 88, 0.18);
}

.app-store-button i {
    font-size: 2rem;
}

.app-store-button span {
    display: flex;
    flex-direction: column;
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.08;
}

.app-store-button small {
    font-size: 0.66rem;
    font-weight: 500;
}

.app-text-link {
    color: #c7cbd1;
    font-size: 0.95rem;
    text-underline-offset: 0.25rem;
}

.app-text-link:hover {
    color: #ffffff;
}

.app-showcase {
    position: relative;
    min-height: 680px;
    perspective: 1600px;
}

.phone-shot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 258px;
    aspect-ratio: 700 / 1515;
    margin: 0;
    overflow: hidden;
    border: 8px solid #08090b;
    border-radius: 48px;
    background: #08090b;
    box-shadow: 0 36px 84px rgba(0, 0, 0, 0.56);
}

.phone-shot img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.phone-shot-main {
    z-index: 3;
    transform: translate(-50%, -50%);
}

.phone-shot-left {
    z-index: 1;
    transform: translate(-105%, -42%) rotate(-8deg) scale(0.84);
    opacity: 0.76;
}

.phone-shot-right {
    z-index: 2;
    transform: translate(5%, -42%) rotate(8deg) scale(0.84);
    opacity: 0.84;
}

.app-features {
    padding: 110px 0;
    background: #0d1117;
    border-top: 1px solid var(--opti-border);
    border-bottom: 1px solid var(--opti-border);
}

.section-heading {
    display: grid;
    grid-template-columns: 180px minmax(0, 780px);
    gap: 2rem;
    align-items: start;
    margin-bottom: 4rem;
}

.section-heading h2,
.app-flow h2,
.app-final-card h2 {
    margin: 0;
    font-size: clamp(2.15rem, 4.5vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--opti-border);
    border-radius: 24px;
    overflow: hidden;
}

.feature-card {
    min-height: 310px;
    padding: 2.25rem;
    background: linear-gradient(160deg, var(--opti-surface-raised), var(--opti-surface));
}

.feature-card + .feature-card {
    border-left: 1px solid var(--opti-border);
}

.feature-number {
    display: block;
    margin-bottom: 4.5rem;
    color: var(--opti-green);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8rem;
}

.feature-card h3 {
    margin-bottom: 0.85rem;
    font-size: 1.28rem;
}

.feature-card p {
    color: #9ca4af;
    font-size: 1rem;
    line-height: 1.65;
}

.app-flow {
    padding: 110px 0;
    background: #080b0f;
}

.app-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 6rem;
}

.app-flow h2 {
    margin-top: 0.8rem;
}

.flow-list {
    list-style: none;
}

.flow-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--opti-border);
}

.flow-list li:last-child {
    border-bottom: 1px solid var(--opti-border);
}

.flow-list span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(48, 209, 88, 0.4);
    border-radius: 50%;
    background: var(--opti-green-soft);
    color: var(--opti-green);
    font-size: 0.85rem;
    font-weight: 700;
}

.flow-list p {
    color: #c5cad2;
    font-size: 1rem;
}

.app-final-cta {
    padding: 30px 0 110px;
    background: #080b0f;
}

.app-final-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border: 1px solid rgba(48, 209, 88, 0.26);
    border-radius: 28px;
    background:
        radial-gradient(circle at 82% 20%, rgba(48, 209, 88, 0.16), transparent 35%),
        var(--opti-surface);
}

.app-final-card h2 {
    margin-top: 0.4rem;
    font-size: clamp(1.85rem, 3vw, 2.8rem);
}

@media (max-width: 1040px) {
    .app-hero-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .app-hero-copy {
        max-width: 760px;
    }

    .app-showcase {
        min-height: 620px;
    }

    .phone-shot {
        width: 236px;
    }
}

@media (max-width: 768px) {
    .app-hero {
        min-height: auto;
        padding: 118px 0 48px;
    }

    .app-hero h1 {
        font-size: clamp(3rem, 14vw, 4.5rem);
    }

    .app-lede {
        font-size: 1rem;
    }

    .app-showcase {
        min-height: 520px;
        margin-top: 1rem;
    }

    .phone-shot {
        width: 190px;
        border-width: 6px;
        border-radius: 38px;
    }

    .phone-shot-left {
        transform: translate(-98%, -42%) rotate(-7deg) scale(0.78);
    }

    .phone-shot-right {
        transform: translate(-2%, -42%) rotate(7deg) scale(0.78);
    }

    .app-features,
    .app-flow {
        padding: 80px 0;
    }

    .section-heading,
    .app-flow-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-heading {
        margin-bottom: 2.5rem;
    }

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

    .feature-card {
        min-height: 0;
        padding: 1.75rem;
    }

    .feature-card + .feature-card {
        border-top: 1px solid var(--opti-border);
        border-left: none;
    }

    .feature-number {
        margin-bottom: 2.5rem;
    }

    .app-final-cta {
        padding: 0 0 80px;
    }

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

    .app-final-card .app-store-button {
        grid-column: 1 / -1;
        justify-self: stretch;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .app-identity img {
        width: 62px;
        height: 62px;
    }

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

    .app-showcase {
        min-height: 450px;
    }

    .phone-shot {
        width: 166px;
        border-radius: 32px;
    }

    .app-final-card {
        grid-template-columns: 1fr;
        padding: 1.6rem;
    }

    .app-final-card img {
        width: 76px;
        height: 76px;
    }
}
