﻿/* Unchanged from the last version you adopted.
   Included here for completeness. If you already placed this file, you can skip replacing it. */

/* Purchase.aspx — full stylesheet
   - Apple-like mobile menu
   - Animated feature cards
   - Right-focused integrations video
   - Improved footer
   - Strong modal backdrops
   - AJAX button busy state + icon
*/

/* Tokens */
:root {
    --bg: #060817;
    --bg2: #0b1220;
    --panel: #0f1724;
    --panel2: #0c1322;
    --accent1: #6ae3ff;
    --accent2: #8cffcc;
    --text: #eaf1fa;
    --muted: #9fb4da;
    --border: rgba(255,255,255,.06);
    --radius: 16px;
    --shadow: 0 24px 60px rgba(0,0,0,.55);
}

/* Base */
* {
    box-sizing: border-box
}

html, body {
    height: 100%
}

body {
    margin: 0;
    background: radial-gradient(1200px 600px at 20% -10%, rgba(106,227,255,.04), transparent 60%), radial-gradient(1200px 600px at 80% -20%, rgba(140,255,204,.04), transparent 60%), linear-gradient(180deg,var(--bg),var(--bg2));
    color: var(--text);
    font-family: Inter,system-ui,Segoe UI,Roboto,Arial,sans-serif;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 800;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all .22s ease;
    text-decoration: none;
    color: inherit;
    background: transparent
}

    .btn.grad {
        background: linear-gradient(90deg,var(--accent1),var(--accent2));
        color: #06202a
    }

    .btn.ghost {
        color: var(--accent1);
        border-color: rgba(106,227,255,.25)
    }

    .btn.big {
        padding: 12px 18px;
        font-size: 15px
    }

    .btn:hover {
        transform: translateY(-1px)
    }

    /* Submit icon + busy spinner */
    .btn.icon-send::before {
        content: "\f1d8"; /* paper-plane */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 14px;
        line-height: 1;
    }

.spin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    display: none;
    animation: spin 1s linear infinite
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.btn.busy .spin {
    display: inline-block
}

.btn.busy .lbl {
    opacity: .8
}

/* Topbar */
.p-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(6,9,16,.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.05);
    padding-right:15px;
    padding-left:15px;
}

.p-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0
}

.p-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900
}

    .p-brand .p-logo {
        width: 26px;
        height: 26px
    }

.p-brand-text {
    background: linear-gradient(90deg,var(--accent1),#79ffce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

/* Desktop nav */
.p-nav {
    display: flex;
    align-items: center;
    gap: 18px
}

    .p-nav .navlink {
        position: relative;
        color: #d7e6ff;
        text-decoration: none;
        font-weight: 700;
        letter-spacing: .15px;
        opacity: .92;
        padding: 8px 2px;
    }

        .p-nav .navlink::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 2px;
            width: 0;
            height: 2px;
            background: linear-gradient(90deg,var(--accent1),var(--accent2));
            border-radius: 2px;
            transform: translateX(-50%);
            transition: width .18s ease;
        }

        .p-nav .navlink:hover {
            opacity: 1
        }

            .p-nav .navlink:hover::after {
                width: 100%
            }

/* Hamburger (mobile) */
.hamburger {
    display: none;
    width: 42px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    border-radius: 9px;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

    .hamburger span {
        display: block;
        width: 20px;
        height: 2px;
        background: #d7e6ff;
        border-radius: 2px;
        transition: all .25s ease
    }

.mm-open .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg)
}

.mm-open .hamburger span:nth-child(2) {
    opacity: 0
}

.mm-open .hamburger span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg)
}

/* Mobile menu overlay */
.mm-backdrop {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: radial-gradient(50% 50% at 50% 0%, rgba(8,12,22,.85) 0%, rgba(3,6,12,.88) 60%, rgba(2,5,10,.94) 100%);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 90;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.2,.9,.25,1), opacity .25s ease;
    background: linear-gradient(180deg, rgba(18,24,38,.96), rgba(10,14,24,.96));
    border-bottom: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
}

.mm-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px
}

.mm-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900
}

    .mm-brand img {
        width: 22px;
        height: 22px
    }

.mm-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    color: #eaf1fa
}

.mm-links {
    display: grid;
    gap: 8px;
    padding: 0 20px 12px
}

.mm-link {
    display: block;
    padding: 12px 6px;
    border-radius: 10px;
    color: #eaf1fa;
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.02)
}

    .mm-link:active {
        transform: scale(.99)
    }

.mm-ctas {
    display: grid;
    gap: 10px;
    padding: 10px 20px 16px
}

.mm-open .mm-backdrop {
    opacity: 1;
    pointer-events: auto
}

.mm-open .mobile-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto
}

/* Breakpoint */
@media (max-width:992px) {
    .p-nav {
        display: none
    }

    .hamburger {
        display: inline-flex
    }
}

/* Hero */
.hero {
    position: relative;
    padding: 70px 0 48px;
    overflow: hidden
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr .95fr;
    gap: 24px;
    align-items: center
}

.hero-copy h1 {
    margin: 0 0 10px;
    font-weight: 900;
    font-size: clamp(30px,4.2vw,54px);
    line-height: 1.05
}

    .hero-copy h1 span {
        background: linear-gradient(90deg,var(--accent1),var(--accent2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent
    }

.hero-copy p {
    color: #cfe2ff;
    margin: 0 0 14px
}

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

.device-card {
    width: min(540px,92%);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative
}

    .device-card .shine {
        position: absolute;
        inset: -40% -40%;
        background: radial-gradient(300px 220px at var(--mx,30%) var(--my,20%), rgba(255,255,255,.10), transparent 60%);
        mix-blend-mode: screen;
        pointer-events: none
    }

/* Sections */
.section {
    padding: 64px 0 48px
}

    .section.alt {
        background: linear-gradient(180deg,#0a1120,#0b1322)
    }

.section-head {
    text-align: center;
    margin-bottom: 18px
}

    .section-head h2 {
        margin: 0;
        font-weight: 900;
        background: linear-gradient(90deg,var(--accent1),var(--accent2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent
    }

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

/* Features */
.grid.features {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
    margin-top: 10px
}

.card.feature {
    position: relative;
    background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));
    padding: 16px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
    overflow: hidden;
    transform: translateY(8px);
    opacity: .0;
    transition: transform .35s cubic-bezier(.2,.9,.25,1), opacity .35s ease;
}

    .card.feature.in {
        transform: none;
        opacity: 1
    }

.icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    background: linear-gradient(180deg,rgba(255,255,255,.03),transparent);
    border: 1px solid rgba(106,227,255,.12)
}

    .icon-ring i {
        color: var(--accent1);
        filter: drop-shadow(0 0 10px rgba(106,227,255,.35))
    }

.card.feature h3 {
    margin: 0 0 6px;
    font-weight: 900
}

.card.feature p {
    margin: 0;
    color: #cfe2ff
}

/* Fantasy light sweep */
.card.feature::before {
    content: "";
    position: absolute;
    inset: -20% -20%;
    pointer-events: none;
    background: radial-gradient(260px 180px at var(--mx,30%) var(--my,20%), rgba(106,227,255,.10), transparent 60%), conic-gradient(from 180deg at 120% -20%, rgba(106,227,255,.0), rgba(106,227,255,.18), rgba(140,255,204,.0));
    opacity: .0;
    transition: opacity .2s ease;
}

.card.feature:hover::before {
    opacity: 1
}

.card.feature:hover {
    transform: translateY(-6px)
}

.card.feature .icon-ring {
    animation: floaty 6s ease-in-out infinite
}

@keyframes floaty {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-4px)
    }
}

/* Showcase */
.showcase {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.shot {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 18px;
    align-items: center;
    transform: translateY(10px);
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease
}

    .shot.in {
        opacity: 1;
        transform: none
    }

    .shot.reverse {
        grid-template-columns: .9fr 1.1fr
    }

    .shot img {
        border-radius: 14px;
        border: 1px solid rgba(255,255,255,.06);
        box-shadow: 0 18px 44px rgba(0,0,0,.55);
        transform: translateY(var(--py,0))
    }

/* Powered / video — right-focused and smaller */
.powered-stage {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    background: linear-gradient(180deg,#0b0f19,#0e1424);
    padding: 16px;
    box-shadow: var(--shadow)
}

.powered-video {
    position: relative
}

.video-frame {
    position: relative;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    overflow: hidden;
    background: #0d1424;
    box-shadow: 0 14px 36px rgba(0,0,0,.45),0 0 0 1px rgba(106,227,255,.08) inset;
    aspect-ratio: 16/9;
    max-width: min(620px,90vw);
    margin-left: auto;
}

    .video-frame.right-only {
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 28%, rgba(0,0,0,1) 45%, rgba(0,0,0,1) 100%);
        mask-image: linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,.85) 28%, rgba(0,0,0,1) 45%, rgba(0,0,0,1) 100%);
    }

.bgvid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

    .bgvid.right-bias {
        object-position: 92% 50%;
        transform: scale(1.12);
        transform-origin: 90% 50%
    }

.vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(140% 140% at 85% 15%, transparent 0%, transparent 48%, rgba(11,15,25,.6) 85%, rgba(11,15,25,.86) 100%)
}

.edge-glow {
    position: absolute;
    inset: auto 0 0 0;
    height: 22px;
    background: radial-gradient(70% 120% at 50% 0%, rgba(106,227,255,.28), transparent 70%);
    pointer-events: none
}

/* Pricing */
.pricing-fantasy {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: center;
    padding: 18px 0;
    flex-wrap: wrap
}

.plan-card {
    position: relative;
    width: 360px;
    border-radius: 20px;
    padding: 22px;
    background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.03));
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: var(--shadow);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform .28s cubic-bezier(.2,.9,.3,1)
}

    .plan-card:hover {
        transform: translateY(-10px) scale(1.02)
    }

    .plan-card .sparkles {
        position: absolute;
        inset: -20% -10% auto auto;
        width: 300px;
        height: 300px;
        background: radial-gradient(circle at 25% 25%, rgba(255,255,255,.06), transparent 20%), radial-gradient(circle at 80% 80%, rgba(138,255,204,.06), transparent 20%);
        filter: blur(8px);
        animation: floaty 8s ease-in-out infinite;
        pointer-events: none;
        mix-blend-mode: screen
    }

.plan-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    font-weight: 800;
    color: var(--muted);
    margin-bottom: 8px
}

.plan-title {
    font-weight: 900;
    font-size: 20px;
    margin: 6px 0
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-weight: 900;
    color: #ffd76b;
    font-size: 28px
}

    .plan-price .amt {
        font-size: 48px;
        letter-spacing: 1px;
        background: linear-gradient(90deg,var(--accent1),var(--accent2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 10px 24px rgba(106,227,255,.06)
    }

.plan-features {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 8px
}

    .plan-features li {
        display: flex;
        gap: 10px;
        align-items: flex-start;
        padding: 8px;
        background: rgba(255,255,255,.02);
        border-radius: 10px;
        border: 1px solid rgba(255,255,255,.06)
    }

    .plan-features i {
        color: var(--accent2);
        margin-top: 3px
    }

.pricing-note {
    margin-top: 14px;
    color: var(--muted);
    text-align: center
}

/* CTA */
.section.cta .cta-inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 16px;
    align-items: center;
    background: #121a2b;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.cta-text h2 {
    margin: 0 0 8px;
    font-weight: 900
}

.cta-text p {
    margin: 0;
    color: #cfe2ff
}

.cta-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end
}

/* Footer */
.footer {
    margin-top: 48px;
    position: relative;
    background: linear-gradient(180deg,#0a111e,#0b1322)
}

.footer-top-glow {
    position: absolute;
    inset: 0 0 auto 0;
    height: 10px;
    background: radial-gradient(60% 100% at 50% 0%, rgba(106,227,255,.25), transparent 70%);
    opacity: .5;
    pointer-events: none
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.06)
}

.f-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900
}

    .f-brand img {
        width: 22px;
        height: 22px
    }

.f-links {
    display: flex;
    gap: 14px
}

    .f-links a {
        color: #cfe2ff;
        text-decoration: none;
        position: relative;
        opacity: .9
    }

        .f-links a:hover {
            opacity: 1
        }

.f-cta .btn {
    box-shadow: 0 6px 18px rgba(106,227,255,.15)
}

.f-bottom {
    padding: 12px 0 20px;
    color: #a7bddf
}

/* Modal backdrop and card */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: radial-gradient(70% 70% at 50% 0%, rgba(5,8,16,.85), rgba(4,7,14,.92) 40%, rgba(2,5,10,.96) 100%);
    backdrop-filter: blur(6px);
    z-index: 1000;
    opacity: 0;
    transition: opacity .25s ease
}

    .modal-backdrop.show {
        display: flex;
        opacity: 1
    }

body.modal-open {
    overflow: hidden
}

.modal-scene {
    perspective: 1000px;
    width: min(880px,94vw)
}

.modal-card {
    background: linear-gradient(180deg,rgba(255,255,255,.02),rgba(0,0,0,.02));
    border-radius: 14px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 30px 80px rgba(0,0,0,.65);
    transform: translateY(10px) rotateX(-6deg) scale(.98);
    opacity: 0
}

    .modal-card.pop-in {
        animation: modalIn .45s cubic-bezier(.2,.9,.25,1) forwards
    }

    .modal-card.closing {
        animation: modalOut .36s cubic-bezier(.2,.8,.3,1) forwards
    }

@keyframes modalIn {
    0% {
        transform: translateY(28px) rotateX(-12deg) scale(.95);
        opacity: 0
    }

    60% {
        transform: translateY(0) rotateX(2deg) scale(1.01);
        opacity: 1
    }

    100% {
        transform: none;
        opacity: 1
    }
}

@keyframes modalOut {
    to {
        transform: translateY(18px) rotateX(-8deg) scale(.94);
        opacity: 0
    }
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    color: #eaf1fa
}

/* Form */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.field {
    margin-top: 10px
}

    .field label {
        display: block;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 6px
    }

.input {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(0,0,0,.12);
    color: var(--text)
}

/* Alerts */
.alert {
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700
}

    .alert.ok {
        background: #0d2b1f;
        color: #bff7d2;
        border: 1px solid #2c9f6b
    }

    .alert.err {
        background: #2b1111;
        color: #ffc9c9;
        border: 1px solid #a54e4e
    }

/* Responsive */
@media (max-width:992px) {
    .hero-inner {
        grid-template-columns: 1fr
    }

    .grid.features {
        grid-template-columns: 1fr 1fr
    }

    .shot, .shot.reverse {
        grid-template-columns: 1fr
    }

    .section.cta .cta-inner {
        grid-template-columns: 1fr
    }

    .video-frame {
        max-width: 100%
    }

    .row {
        grid-template-columns: 1fr
    }
}

@media (max-width:700px) {
    .grid.features {
        grid-template-columns: 1fr
    }
}

/* Reduced motion */
@media (prefers-reduced-motion:reduce) {
    .card.feature, .sparkles, .modal-card.pop-in, .modal-card.closing {
        animation: none;
        transition: none
    }
}

/* No-select helpers for video */
.video-frame, .bgvid {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none
}

.bgvid {
    pointer-events: none
}
