/* =================================================================
   PERFORMANCE ADS PAGE STYLES
   ================================================================= */

/* ----------------------------------
   HERO SECTION
   ---------------------------------- */
.ads-hero {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ads-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.particle-stream {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(138, 66, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, transparent, black 40%, black 60%, transparent);
    animation: streamMove 20s linear infinite;
}

@keyframes streamMove {
    0% { background-position: 0 0; }
    100% { background-position: 0 1000px; }
}

.revenue-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 70%); /* Green for revenue */
    filter: blur(100px);
    opacity: 0.6;
}

.ads-hero__content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.ads-hero__hud {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 40px;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    backdrop-filter: blur(10px);
}

.ads-hero__hud .highlight {
    color: #fff;
    font-weight: 700;
}

.ads-hero__hud .live {
    color: var(--color-accent);
    text-shadow: 0 0 10px var(--color-accent);
}

.ads-hero__content .title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 10vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.ads-hero__content .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 650px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.ads-hero__actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Button Styles (Missing in Global) */
.btn-primary {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 30px rgba(138, 66, 255, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(138, 66, 255, 0.5);
    color: #fff;
}

.btn-outline {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 36px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-outline:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    transform: translateY(-3px);
}

/* ----------------------------------
   PROBLEM SECTION
   ---------------------------------- */
.ads-problem {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
}

.ads-problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-tag {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-primary-light);
    margin-bottom: 20px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.problem-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.problem-list li {
    display: flex;
    gap: 20px;
}

.problem-list i {
    font-size: 1.5rem;
    color: #ef4444; /* Red for problem */
    background: rgba(239, 68, 68, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.problem-list strong {
    display: block;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 5px;
}

.problem-list p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.system-alert-card {
    background: rgba(20, 10, 10, 0.8);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.alert-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    color: #ef4444;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding-bottom: 15px;
}

.alert-header .dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 10px #ef4444;
    animation: pulse 1s infinite;
}

.alert-graph {
    height: 200px;
    background: linear-gradient(to bottom, rgba(239, 68, 68, 0.1), transparent);
    position: relative;
    border-bottom: 2px solid rgba(239, 68, 68, 0.5);
}

.alert-graph::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,50 Q50,10 100,80 T200,90' fill='none' stroke='%23ef4444' stroke-width='2'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s cubic-bezier(0.22, 1, 0.36, 1);
}

.system-alert-card.active .alert-graph::after {
    clip-path: inset(0 0 0 0);
}

/* ----------------------------------
   PROTOCOL SECTION
   ---------------------------------- */
.ads-protocol {
    padding: 120px 0;
    background: #02040a;
}

.ads-protocol__header {
    text-align: center;
    margin-bottom: 80px;
}

.protocol-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.protocol-line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    z-index: 0;
}

.p-step {
    position: relative;
    z-index: 1;
    background: var(--color-bg);
    padding: 30px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.p-step:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-primary-light);
    margin: -60px auto 20px; /* Pull up to sit on line */
    position: relative;
    z-index: 2;
}

.p-step h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #fff;
}

.p-step p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ----------------------------------
   CHANNELS SECTION
   ---------------------------------- */
.ads-channels {
    padding: 120px 0;
    background: var(--color-bg);
}

.ads-channels__header {
    text-align: center;
    margin-bottom: 60px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.channel-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: default;
}

.channel-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.channel-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    background: linear-gradient(45deg, #fff, var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.channel-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.channel-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* ----------------------------------
   CREATIVE FOUNDRY
   ---------------------------------- */
.ads-creative {
    padding: 120px 0;
    background: #02040a;
    overflow: hidden;
}

.ads-creative__content {
    text-align: center;
    margin-bottom: 60px;
}

.creative-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.creative-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 300px;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.creative-item--vertical {
    aspect-ratio: 9/16;
    grid-row: span 2;
}

.creative-item--square {
    aspect-ratio: 1/1;
}

.creative-item--horizontal {
    aspect-ratio: 16/9;
    grid-column: span 2;
}

.creative-item:hover {
    border-color: rgba(138, 66, 255, 0.4);
    background: rgba(138, 66, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.creative-item span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    z-index: 2;
    font-weight: 600;
}

.creative-item .type-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-top: 10px;
}

/* ----------------------------------
   RESULTS SECTION
   ---------------------------------- */
.ads-results {
    padding: 100px 0;
    background: var(--color-bg);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0;
}

.result-card {
    text-align: center;
}

.result-card .metric {
    display: block;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-accent); /* Green for growth */
    line-height: 1;
    margin-bottom: 10px;
}

.result-card .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
}

/* ----------------------------------
   PRICING SECTION
   ---------------------------------- */
.ads-pricing {
    padding: 120px 0;
    background: var(--color-bg);
}

.ads-pricing__header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    background: rgba(138, 66, 255, 0.05);
    border-color: var(--color-primary);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.pricing-card .desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.pricing-card .btn-outline,
.pricing-card .btn-primary {
    width: 100%;
    margin-top: auto;
    justify-content: center;
}

/* ----------------------------------
   FAQ & CTA
   ---------------------------------- */
.ads-faq {
    padding: 100px 0;
    background: var(--color-bg);
}

.ads-cta-box {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ads-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(138, 66, 255, 0.1), transparent 70%);
    pointer-events: none;
}

.ads-cta-box h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.ads-cta-box p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ----------------------------------
   RESPONSIVE
   ---------------------------------- */
@media (max-width: 1024px) {
    .ads-problem__grid {
        grid-template-columns: 1fr;
    }
    
    .protocol-steps {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .protocol-line {
        display: none;
    }
    
    .step-num {
        margin: 0 auto 20px;
    }
    
    .channels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .ads-hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .ads-hero__content .title {
        font-size: 2.5rem;
        word-wrap: break-word;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .creative-showcase {
        grid-template-columns: 1fr;
    }
    
    .creative-item--vertical,
    .creative-item--horizontal {
        grid-column: span 1;
    }
    
    .channels-grid {
        grid-template-columns: 1fr;
    }

    .ads-problem, .ads-protocol, .ads-channels, .ads-creative, .ads-results, .ads-pricing, .ads-faq {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .system-alert-card {
        margin-top: 40px;
    }
}