/* =======================================================
   SECTION 17 : FINAL CALL TO ACTION
======================================================= */
.final-cta-section {
    position: relative;
    overflow: hidden;
    background: #06111c;
}
.cta-background {
    position: relative;
    padding: 15px 5.5%;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(46, 196, 255, 0.18), transparent 30%),
        radial-gradient(circle at 84% 74%, rgba(46, 213, 115, 0.12), transparent 31%),
        linear-gradient(135deg, #06131f 0%, #092942 50%, #071720 100%);
}
.cta-background::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(110, 216, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 216, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
    pointer-events: none;
}
.cta-background::after {
    position: absolute;
    top: 16%;
    right: -115px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(46, 196, 255, 0.12);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 48px rgba(46, 196, 255, 0.035),
        0 0 0 96px rgba(46, 196, 255, 0.018);
    pointer-events: none;
}
.cta-content {
    position: relative;
    z-index: 1;
    width: min(930px, 100%);
    margin: 0 auto;
    text-align: center;
}
.cta-content > .section-tag {
    margin-bottom: 19px;
}
.cta-content > h2 {
    max-width: 810px;
    margin: 0 auto;
    color: #f0fdff;
    font-size: clamp(2.35rem, 5vw, 4.3rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.06em;
}
.cta-content > p {
    max-width: 670px;
    margin: 20px auto 0;
    color: #afccd9;
    font-size: 0.96rem;
    line-height: 1.8;
}
/* ---------- Demo generator ---------- */
.demo-generator {
    margin-top: 39px;
    overflow: hidden;
    border: 1px solid rgba(117, 217, 255, 0.28);
    border-radius: 17px;
    background:
        linear-gradient(145deg, rgba(16, 53, 76, 0.88), rgba(5, 22, 35, 0.92));
    box-shadow:
        0 26px 75px rgba(0, 0, 0, 0.38),
        0 0 45px rgba(46, 196, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
}
.demo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid rgba(128, 214, 249, 0.14);
    background: rgba(46, 196, 255, 0.045);
    text-align: left;
}
.demo-header h3 {
    margin: 0;
    color: #e8faff;
    font-size: 0.9rem;
    font-weight: 600;
}
.demo-header span {
    padding: 6px 9px;
    color: #8feab8;
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: 999px;
    background: rgba(46, 213, 115, 0.07);
    font-size: 0.62rem;
    font-weight: 500;
    white-space: nowrap;
}
.demo-generator textarea {
    display: block;
    width: calc(100% - 44px);
    min-height: 145px;
    margin: 21px 22px 16px;
    padding: 16px;
    resize: vertical;
    outline: none;
    color: #dff6ff;
    border: 1px solid rgba(137, 213, 246, 0.17);
    border-radius: 10px;
    background:
        linear-gradient(rgba(46, 196, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 196, 255, 0.025) 1px, transparent 1px),
        rgba(2, 16, 27, 0.55);
    background-size: 28px 28px;
    font-family: "Courier New", monospace;
    font-size: 0.75rem;
    line-height: 1.7;
    transition: 0.2s ease;
}
.demo-generator textarea:focus {
    border-color: rgba(46, 196, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(46, 196, 255, 0.08);
}
.demo-generator textarea::placeholder {
    color: rgba(153, 190, 207, 0.58);
}
.demo-options {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 17px;
    padding: 0 22px 20px;
}
.demo-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #abcbd8;
    font-size: 0.71rem;
    cursor: pointer;
}
.demo-options input {
    width: 15px;
    height: 15px;
    margin: 0;
    accent-color: var(--cyan);
    cursor: pointer;
}
.demo-generator > .generate-btn {
    width: calc(100% - 44px);
    margin: 0 22px 22px;
}
/* ---------- CTA benefits ---------- */
.cta-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 25px;
}
.cta-benefits > div {
    padding: 17px;
    border: 1px solid rgba(133, 212, 245, 0.14);
    border-radius: 11px;
    background: rgba(4, 21, 34, 0.37);
    text-align: left;
}
.cta-benefits span {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 11px;
    border: 1px solid rgba(46, 196, 255, 0.21);
    border-radius: 8px;
    background: rgba(46, 196, 255, 0.08);
    font-size: 0.94rem;
    place-items: center;
}
.cta-benefits > div:nth-child(2) span {
    border-color: rgba(255, 177, 66, 0.24);
    background: rgba(255, 177, 66, 0.08);
}
.cta-benefits > div:nth-child(3) span {
    border-color: rgba(46, 213, 115, 0.24);
    background: rgba(46, 213, 115, 0.08);
}
.cta-benefits strong {
    display: block;
    color: #dff5fc;
    font-size: 0.78rem;
    font-weight: 600;
}
.cta-benefits p {
    margin: 6px 0 0;
    color: #8facba;
    font-size: 0.69rem;
    line-height: 1.5;
}
/* ---------- Final buttons ---------- */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}
.cta-buttons .primary-btn,
.cta-buttons .secondary-btn {
    min-height: 45px;
    padding: 12px 20px;
    font-size: 0.78rem;
}
.cta-buttons .secondary-btn {
    background: rgba(3, 18, 29, 0.35);
}
/* ---------- Responsive final CTA ---------- */
@media (max-width: 760px) {
    .cta-background {
        padding: 20.5px 22px;
    }
    .cta-content > h2 {
        font-size: clamp(2.2rem, 11vw, 3.35rem);
    }
    .cta-content > p {
        font-size: 0.86rem;
        line-height: 1.72;
    }
    .demo-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px;
    }
    .demo-generator textarea {
        width: calc(100% - 32px);
        min-height: 155px;
        margin: 16px 16px 14px;
        padding: 13px;
        font-size: 0.69rem;
    }
    .demo-options {
        padding: 0 16px 16px;
    }
    .demo-generator > .generate-btn {
        width: calc(100% - 32px);
        margin: 0 16px 16px;
    }
    .cta-benefits {
        grid-template-columns: 1fr;
        gap: 11px;
    }
    .cta-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }
    .cta-buttons button {
        width: 100%;
    }
}
