/* DEMO PAGE */

.section-demo {
    position: relative;
}

.demo-inner {
    position: relative;
    z-index: 1;
}

.demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: 2.4rem;
    align-items: flex-start;
}

/* LEFT SIDE – COPY + VISUALS */

.demo-copy {
    max-width: 36rem;
}

.demo-kicker {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 0.6rem;
}

.demo-title {
    margin: 0 0 0.9rem;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.demo-text {
    margin: 0 0 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.demo-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.7rem 0 1.1rem;
}

.demo-pill {
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-muted);
}

.demo-points {
    display: grid;
    gap: 0.6rem;
    margin: 1rem 0 1.4rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}

.demo-point {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.6rem;
}

.demo-point-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.25), #ecfdf5);
    border: 1px solid rgba(34, 197, 94, 0.6);
    margin-top: 0.15rem;
}

.demo-point strong {
    color: var(--text-main);
}

/* SMALL IMAGE STRIP / VISUALS */

.demo-gallery {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.demo-gallery-main {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(209, 213, 219, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.demo-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 260ms ease-out;
}

.demo-gallery-main:hover img {
    transform: scale(1.08);
}

.demo-gallery-meta {
    display: grid;
    gap: 0.45rem;
}

.demo-gallery-tag {
    border-radius: 14px;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    background: linear-gradient(135deg,
            rgba(240, 253, 244, 0.98),
            rgba(224, 242, 254, 0.98));
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: var(--text-muted);
}

.demo-gallery-tag strong {
    color: var(--text-main);
}

/* RIGHT SIDE – FORM CARD */

.demo-form-card {
    position: relative;
    border-radius: 24px;
    padding: 1.5rem 1.6rem 1.4rem;
    background: linear-gradient(145deg,
            rgba(255, 255, 255, 0.98),
            rgba(240, 249, 255, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.9);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    overflow: hidden;
    animation: demoCardFloat 8s ease-in-out infinite alternate;
}

.demo-form-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background:
        radial-gradient(circle at 0 0, rgba(34, 197, 94, 0.23), transparent 60%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.2), transparent 60%);
    opacity: 0.8;
    mix-blend-mode: screen;
    pointer-events: none;
}

.demo-form-inner {
    position: relative;
    z-index: 1;
}

.demo-form-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
}

.demo-form-subtitle {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Form fields */

.demo-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.8rem 0.9rem;
    margin-bottom: 0.7rem;
}

.demo-form-grid-full {
    grid-column: 1 / -1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.form-label {
    font-size: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
}

.form-label span {
    color: #b91c1c;
}

.form-control,
.form-select,
.form-textarea {
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.95);
    padding: 0.55rem 0.65rem;
    font-size: 0.84rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text-main);
    outline: none;
    transition:
        border-color 160ms ease-out,
        box-shadow 160ms ease-out,
        background 160ms ease-out;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
    background: #ffffff;
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.demo-form-footer {
    margin-top: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.demo-form-small {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* nice micro badges inside form */

.demo-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.6rem;
    font-size: 0.75rem;
}

.demo-trust-pill {
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    background: rgba(240, 253, 244, 0.98);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #15803d;
}

/* animation */

@keyframes demoCardFloat {
    0% {
        transform: translateY(0px);
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    }

    100% {
        transform: translateY(-6px);
        box-shadow: 0 26px 60px rgba(15, 23, 42, 0.30);
    }
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .demo-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .demo-form-card {
        max-width: 480px;
        margin: 0 auto;
        order: -1;
    }
}

@media (max-width: 720px) {
    .demo-gallery {
        grid-template-columns: minmax(0, 1fr);
    }

    .demo-form-card {
        padding: 1.3rem 1.2rem 1.3rem;
    }

    .demo-form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}