/**
 * AutoWave landing — final polish layer (load after landing-pro.css)
 */

.aw-landing ::selection {
    background: rgba(0, 208, 132, 0.22);
    color: var(--aw-navy);
}

.aw-landing :focus-visible {
    outline: 2px solid var(--aw-green);
    outline-offset: 2px;
}

.aw-landing .btn:focus-visible {
    outline-offset: 3px;
}

.aw-header {
    position: sticky;
}

.aw-header.scrolled {
    border-bottom-color: rgba(230, 236, 245, 0.9);
}

.aw-brand__mark {
    box-shadow: 0 2px 8px rgba(11, 31, 68, 0.08);
}

/* Hero proof row */
.aw-hero__proof {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.aw-hero__proof li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--aw-navy);
}

.aw-hero__proof i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--aw-bg);
    border: 1px solid var(--aw-line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--aw-green-dark);
    flex-shrink: 0;
}

.aw-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
}

.aw-checklist li::before {
    display: none;
}

.aw-checklist li i {
    color: var(--aw-green);
    font-size: 11px;
    margin-top: 5px;
    flex-shrink: 0;
}

.aw-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 0;
}

.aw-hero__meta::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--aw-green);
    margin-right: 8px;
    box-shadow: 0 0 0 3px rgba(0, 208, 132, 0.2);
}

/* Scroll reveal */
.aw-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

.aw-reveal--delay-1 { transition-delay: 0.08s; }
.aw-reveal--delay-2 { transition-delay: 0.16s; }
.aw-reveal--delay-3 { transition-delay: 0.24s; }

/* Section rhythm */
.aw-section {
    position: relative;
}

.aw-section-head__title {
    text-wrap: balance;
}

.aw-hero__title {
    text-wrap: balance;
}

/* Demo connector arrow (desktop) */
@media (min-width: 961px) {
    .aw-demo__grid {
        position: relative;
    }

    .aw-demo__grid::after {
        content: '';
        position: absolute;
        top: 42%;
        left: 50%;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, var(--aw-line), var(--aw-green));
        transform: translate(-50%, -50%);
        opacity: 0.65;
        pointer-events: none;
    }
}

/* Features accent */
.aw-feature {
    position: relative;
    overflow: hidden;
}

.aw-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--aw-green), var(--aw-blue));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.aw-feature:hover::before {
    opacity: 1;
}

/* Pricing hidden site-wide (toggle via body.aw-pricing-off / SHOW_PRICING in script.js) */
body.aw-pricing-off .aw-pricing-block,
body.aw-pricing-off .aw-pricing-nav,
body.aw-pricing-off #pricing {
    display: none !important;
}

.aw-pricing-block[hidden],
.aw-pricing-nav[hidden] {
    display: none !important;
}

/* Pricing loading */
.aw-landing #pricingGrid.is-loading {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    min-height: 320px;
}

.aw-pricing-skeleton {
    border-radius: 14px;
    border: 1px solid var(--aw-line);
    background: linear-gradient(90deg, #f1f5f9 0%, #fff 50%, #f1f5f9 100%);
    background-size: 200% 100%;
    animation: awShimmer 1.2s ease-in-out infinite;
    min-height: 340px;
}

@keyframes awShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* CTA band */
.aw-cta-band {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.aw-cta-band__inner {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

/* Demo form note */
.aw-form-note {
    font-size: 11px;
    line-height: 1.45;
    color: var(--aw-muted);
    text-align: center;
    margin: 12px 0 0;
}

.aw-landing .floating-form.is-visible {
    animation: awFormIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.aw-landing .floating-form.is-closing {
    animation: awFormOut 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes awFormOut {
    to {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
}

.aw-landing .floating-form.is-success {
    box-shadow: 0 24px 60px rgba(0, 208, 132, 0.18);
}

.demo-form-success {
    text-align: center;
    padding: 12px 4px 8px;
}

.demo-form-success[hidden] {
    display: none;
}

.demo-success-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(145deg, #00d084, #00a86b);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 12px 28px rgba(0, 208, 132, 0.35);
    animation: demoSuccessPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.demo-success-icon::after {
    content: '';
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(0, 208, 132, 0.45);
    animation: demoSuccessRing 0.9s ease-out 0.15s forwards;
    opacity: 0;
}

.demo-form-success {
    position: relative;
}

.demo-success-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--aw-navy, #0b1f44);
    margin: 0 0 8px;
    animation: demoSuccessFadeUp 0.45s ease 0.12s both;
}

.demo-success-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--aw-muted, #64748b);
    margin: 0;
    animation: demoSuccessFadeUp 0.45s ease 0.22s both;
}

@keyframes demoSuccessPop {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes demoSuccessRing {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.55);
    }
}

@keyframes demoSuccessFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes awFormIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Footer refinement */
.aw-footer__logo img {
    border-radius: 8px;
}

.aw-footer__actions .btn-primary {
    box-shadow: 0 4px 16px rgba(0, 208, 132, 0.25);
}

/* Architecture section subtle bg */
#architecture.aw-section {
    background:
        radial-gradient(ellipse 50% 40% at 100% 50%, rgba(37, 99, 255, 0.04), transparent),
        var(--aw-white);
}

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

    .aw-pricing-skeleton {
        animation: none;
    }

    .aw-landing .floating-form.is-visible {
        animation: none;
    }
}

@media (max-width: 960px) {
    .aw-demo__grid::after {
        display: none;
    }

    .aw-hero__proof {
        margin-bottom: 1.25rem;
    }
}
