/* ========== DEMO PAGE STYLES ========== */

/* Hero Section */
.demo-hero {
    padding: 140px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Demo Video Hero Section */
.demo-video-hero {
    padding: 0px;
    position: relative;
}

.demo-video-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-video-hero .ipad-mini {
    position: relative;
}

.demo-video-hero .ipad-mini img {
    display: block;
    position: relative;
    width: 100%;
    z-index: 1;
}

.demo-video-hero .ipad-mini video {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    padding: 20px;
}

.demo-video-hero .ipad-mini .video-controls {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    padding: 15px;
    z-index: 4;
    border-radius: 0 0 15px 15px;
    display: none;
}

.demo-video-hero .ipad-mini .controls-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.demo-video-hero .ipad-mini .control-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    width: auto;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-video-hero .ipad-mini .control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.demo-video-hero .ipad-mini .control-btn svg {
    width: 24px;
    height: 24px;
}

.demo-hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,68,255,0.12) 0%, rgba(231,65,126,0.06) 40%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    animation: fadeInDown 0.6s ease;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #00c853;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.demo-hero h1 {
    color: #ffffff;
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeInUp 0.7s ease;
}

.demo-hero h1 .gradient-text {
    background: linear-gradient(135deg, #0044FF 0%, #E7417E 30%, #E27333 54%, #E54D6A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    color: rgba(255,255,255,0.6);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease;
}

/* Offerings Section */
.offerings-section {
    padding: 60px 40px 80px;
}

.offerings-section h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin-bottom: 16px;
}

.offerings-section h2 .gradient-text {
    background: linear-gradient(135deg, #0044FF 0%, #E7417E 30%, #E27333 54%, #E54D6A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.offerings-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 48px;
}

.offerings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

/* Performance Media Agent Cards */
.performanceMediaAgentSection {
    padding: 50px 0;
    position: relative;
}

.performanceMediaAgentSection:after {
    width: 262px;
    height: 1440px;
    transform: rotate(90deg);
    flex-shrink: 0;
    pointer-events: none;
    content: "";
    position: absolute;
    left: calc(50% - 131px);
    top: calc(50% - 720px);
    border-radius: 1440px;
    background: radial-gradient(50% 50% at 50% 50%, rgba(0, 68, 255, 0.20) 0%, rgba(18, 18, 29, 0.00) 100%);
    z-index: -1;
}

.performanceMediaAgentSection .row > .col-12,
.performanceMediaAgentSection .row > [class*="col-"] {
    margin-bottom: 30px;
}

.performanceMediaAgentBox {
    border-radius: 30px;
    border: 2px solid #282828;
    background: #12121D;
    box-shadow: 0 4px 24px -1px rgba(0, 0, 0, 0.20);
    padding: 40px;
    margin: 0 auto;
    max-width: 480px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.performanceMediaAgentBox:hover {
    transform: translateY(-4px);
    border-color: rgba(231, 65, 126, 0.3);
    box-shadow: 0 8px 32px -1px rgba(231, 65, 126, 0.15);
}

.performanceMediaAgentBox img {
    max-width: 20px;
}

.performanceMediaAgentBox h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 20px 0;
}

.performanceMediaAgentBox .gradient-text {
    background: linear-gradient(135deg, #0044FF 0%, #E7417E 30%, #E27333 54%, #E54D6A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pma_box {
    color: #ffffff;
    display: block;
}

.pma_box + .pma_box {
    margin-top: 30px;
}

.pma_box p {
    color: rgba(255, 255, 255, 0.60);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.pma_box .features-list {
    margin-bottom: 24px;
}

.pma_box .play-btn {
    margin-top: 10px;
}

.offering-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease;
}

.offering-card:nth-child(2) { animation-delay: 0.1s; }
.offering-card:nth-child(3) { animation-delay: 0.2s; }
.offering-card:nth-child(4) { animation-delay: 0.3s; }

.offering-card:hover {
    transform: translateY(-4px);
    border-color: rgba(231,65,126,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.offering-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}

.offering-card:nth-child(1)::before { background: linear-gradient(90deg, #0044FF, #5577FF); }
.offering-card:nth-child(2)::before { background: linear-gradient(90deg, #E7417E, #FF6B9D); }
.offering-card:nth-child(3)::before { background: linear-gradient(90deg, #E27333, #FFa060); }
.offering-card:nth-child(4)::before { background: linear-gradient(90deg, #8B3DFF, #b06dff); }

.offering-card:hover::before { opacity: 1; }

.offering-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.offering-card:nth-child(1) .offering-icon { background: rgba(0,68,255,0.15); color: #5588FF; }
.offering-card:nth-child(2) .offering-icon { background: rgba(231,65,126,0.15); color: #FF6B9D; }
.offering-card:nth-child(3) .offering-icon { background: rgba(226,115,51,0.15); color: #FFa060; }
.offering-card:nth-child(4) .offering-icon { background: rgba(139,61,255,0.15); color: #b06dff; }

.offering-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.offering-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 24px;
}

.features-list {
    list-style: none;
    margin-bottom: 28px;
    padding-left: 0;
}

.features-list li {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.features-list li .check {
    color: #00c853;
    font-weight: 700;
    font-size: 14px;
}

.offering-card:nth-child(1) .play-btn { background: linear-gradient(135deg, #0044FF, #3366FF); }
.offering-card:nth-child(2) .play-btn { background: linear-gradient(135deg, #E7417E, #FF6B9D); }
.offering-card:nth-child(3) .play-btn { background: linear-gradient(135deg, #E27333, #FFa060); }
.offering-card:nth-child(4) .play-btn { background: linear-gradient(135deg, #8B3DFF, #b06dff); }

.play-btn {
    display: inline-flex;
    background: linear-gradient(135deg, #0044FF 0%, #E7417E 30%, #E27333 54%, #E54D6A 100%);
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.3s;
    width: 100%;
    justify-content: center;
}
.play-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.play-btn .play-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn .play-icon svg {
    width: 12px;
    height: 12px;
    fill: #fff;
    margin-left: 2px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
    display: flex !important;
}

.modal {
    background: #141922;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    overflow: hidden;
    transform: translateY(20px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    display: block;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
    display: block;
}

.modal-top-bar {
    height: 4px;
    background: linear-gradient(135deg, #0044FF 0%, #E7417E 30%, #E27333 54%, #E54D6A 100%);
}

.modal-content {
    padding: 36px 32px 32px;
    background: transparent
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
    z-index: 1;
}

.modal-close:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.modal-demo-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.modal h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal .modal-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    line-height: 1.5;
}

.modal .modal-subtitle strong {
    color: #ffffff;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.75);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.3);
}

.form-group input:focus {
    border-color: rgba(231,65,126,0.5);
    box-shadow: 0 0 0 3px rgba(231,65,126,0.1);
}

.form-group input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255,68,68,0.1);
}

.form-error {
    font-size: 12px;
    color: #ff6b6b;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.recaptcha-container .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

@media (max-width: 480px) {
    .recaptcha-container .g-recaptcha {
        transform: scale(0.85);
    }
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0044FF 0%, #E7417E 30%, #E27333 54%, #E54D6A 100%);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    margin-top: 8px;
}

.submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(231,65,126,0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* OTP Section */
.otp-container {
    text-align: center;
}

.otp-container h2 {
    color: #ffffff;
}

.otp-container p {
    color: rgba(255,255,255,0.6);
}

.otp-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: rgba(0,68,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-inputs input {
    width: 50px;
    height: 56px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.otp-inputs input:focus {
    border-color: rgba(0,68,255,0.6);
    box-shadow: 0 0 0 3px rgba(0,68,255,0.15);
}

.otp-email-display {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.otp-email-display strong {
    color: #fff;
}

.resend-link {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 16px;
}

.resend-link a {
    color: #5588FF;
    cursor: pointer;
    font-weight: 500;
}

.resend-link a:hover {
    text-decoration: underline;
}

/* Success State */
.success-container {
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0,200,83,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    animation: scaleIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-container h2 {
    margin-bottom: 12px;
    color: #ffffff;
}

.success-container p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.6;
}

.success-container p strong {
    color: #ffffff;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .demo-hero {
        padding: 120px 20px 40px;
    }

    .demo-video-hero .ipad-mini {
        margin: 0 auto;
    }

    .demo-video-hero .ipad-mini video {
        padding: 8px;
    }

    .demo-video-hero .ipad-mini .video-controls {
        padding: 12px;
        bottom: 25px;
        left: 25px;
        right: 25px;
    }

    .demo-video-hero .ipad-mini .controls-wrapper {
        gap: 10px;
    }

    .demo-video-hero .ipad-mini .control-btn svg {
        width: 20px;
        height: 20px;
    }

    .offerings-section {
        padding: 40px 20px 60px;
    }

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

    .performanceMediaAgentSection:after {
        transform: rotate(0deg);
        width: 250px;
    }

    .performanceMediaAgentSection .row > .col-12,
    .performanceMediaAgentSection .row > [class*="col-"] {
        margin-bottom: 20px;
    }

    .performanceMediaAgentBox {
        padding: 30px;
    }

    .performanceMediaAgentBox h3 {
        font-size: 20px;
    }

    .pma_box p {
        font-size: 14px;
    }

    .modal-content {
        padding: 28px 20px 24px;
    }

    .otp-inputs input {
        width: 44px;
        height: 50px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .demo-video-hero .ipad-mini .video-controls {
        padding: 10px;
        bottom: 20px;
        left: 20px;
        right: 20px;
    }

    .demo-video-hero .ipad-mini .control-btn {
        padding: 6px;
    }

    .demo-video-hero .ipad-mini .control-btn svg {
        width: 18px;
        height: 18px;
    }

    .performanceMediaAgentBox {
        padding: 25px;
    }

    .performanceMediaAgentBox h3 {
        font-size: 18px;
        gap: 8px;
    }

    .performanceMediaAgentBox img {
        max-width: 18px;
    }

    .pma_box p {
        font-size: 13px;
    }

    .features-list li {
        font-size: 12px;
    }

    .play-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .play-btn .play-icon {
        width: 24px;
        height: 24px;
    }
}

