/* ================================================================
   PREMIUM CORPORATE REDESIGN — Unified Enterprise Theme
   Overrides old green-accent sections to match the blue/purple
   enterprise palette used in the hero, stats, and solutions sections.
   ================================================================ */

/* === ROOT VARIABLE OVERRIDES === */
:root {
    --bg-dark: #07080f;
    --bg-card: #0e1019;
    --bg-card2: #0b0c14;
    --accent: #818cf8;
    --accent-dim: #6366f1;
    --accent-blue: #3b82f6;
    --text-primary: #f1f5f9;
    --text-secondary: rgba(255,255,255,0.55);
    --text-muted: rgba(255,255,255,0.35);
    --border: rgba(255,255,255,0.07);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #07080f 0%, #131525 100%);
}

/* === GLOBAL TYPOGRAPHY REFINEMENTS === */
body {
    background: var(--bg-dark);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === SECTION LABELS / EYEBROWS (unified) === */
.section-label {
    font-size: 0.72rem;
    color: #818cf8;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 0.85rem;
}

/* Section headings */
.section h2,
.metrics-section h2,
.ai-section h2,
.rtb-section h2,
.geo-section h2,
.pricing-section h2,
.testimonials-section h2,
.faq-section h2 {
    color: #fff;
    letter-spacing: -1px;
}

.section-desc,
.metrics-section .section-desc,
.ai-section .section-desc {
    color: rgba(255,255,255,0.5);
}

/* ================================================================
   PLATFORM METRICS SECTION (Section 9)
   ================================================================ */
.metrics-section {
    background: rgba(11,12,20,0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.metrics-section::before {
    background: radial-gradient(circle, rgba(99,102,241,0.05) 0%, transparent 60%);
}

.metric-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.metric-card:hover {
    border-color: rgba(99,102,241,0.35);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(99,102,241,0.06);
}

.metric-card::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    opacity: 0.5;
}

.metric-value {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-badge {
    color: #818cf8;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.25);
}

.metric-label {
    color: rgba(255,255,255,0.4);
}

/* ================================================================
   AI OPTIMIZER SECTION
   ================================================================ */
.ai-section {
    padding: 7rem 2rem;
}

.ai-feature-dot {
    background: #818cf8;
    box-shadow: 0 0 10px rgba(129,140,248,0.5);
}

.ai-feature-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s;
    padding: 1.5rem 0;
}

.ai-feature-item:hover {
    background: rgba(99,102,241,0.03);
}

.ai-feature-item h4 {
    color: #fff;
}

.ai-feature-item p {
    color: rgba(255,255,255,0.45);
}

/* AI Account Health Score bar */
.ai-section [style*="rgba(0,255,136"] {
    /* Override handled by inline — we'll fix those green references */
}

/* Neural network viz */
.neural-viz {
    background: rgba(14,16,25,0.95);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 20px;
}

.neural-viz::before {
    background: radial-gradient(ellipse at 50% 50%, rgba(99,102,241,0.06) 0%, transparent 70%);
}

.neural-label {
    color: rgba(255,255,255,0.3);
}

/* ================================================================
   GEOFENCING & LOCATION (RTB Section)
   ================================================================ */
.rtb-section {
    background: rgba(11,12,20,0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 7rem 2rem;
}

.rtb-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 2.25rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.rtb-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.rtb-spec {
    color: #818cf8;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 8px;
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
}

.rtb-card h3 {
    color: #fff;
}

.rtb-card p {
    color: rgba(255,255,255,0.45);
}

/* ================================================================
   OPENRTB SECTION (Geo Section)
   ================================================================ */
.geo-section {
    padding: 7rem 2rem;
}

.geo-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 2.25rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.geo-card:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.geo-card h3 {
    color: #fff;
}

.geo-card p {
    color: rgba(255,255,255,0.45);
}

.geo-badge {
    color: #60a5fa;
    background: rgba(59,130,246,0.1);
    border: 1px solid rgba(59,130,246,0.25);
}

.geo-hero {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
}

/* ================================================================
   SECURITY SECTIONS (both instances)
   ================================================================ */
.security-section {
    background: rgba(11,12,20,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 7rem 2rem;
}

.security-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s;
}

.security-card:hover {
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-3px);
}

.security-card .sec-icon {
    color: #818cf8;
}

.security-card h3 {
    color: #fff;
}

.security-card p {
    color: rgba(255,255,255,0.45);
}

/* Security section 8 - sec-item */
.sec-item {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    transition: border-color 0.3s, transform 0.3s;
}

.sec-item:hover {
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-3px);
}

.sec-icon {
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
}

.sec-item h4 {
    color: #fff;
}

.sec-item p {
    color: rgba(255,255,255,0.45);
}

/* ================================================================
   PRICING SECTION
   ================================================================ */
.pricing-section {
    background: rgba(11,12,20,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 7rem 2rem;
}

.pricing-card.publisher {
    background: rgba(18,18,26,0.9);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    transition: border-color 0.3s, transform 0.3s;
}

.pricing-card.publisher:hover {
    border-color: rgba(59,130,246,0.3);
    transform: translateY(-4px);
}

.pricing-tag.pub {
    color: #60a5fa;
}

.pricing-tag.adv {
    color: #a78bfa;
}

.pricing-price {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card-gradient-border {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    padding: 1px;
    transition: transform 0.3s;
}

.pricing-card-gradient-border:hover {
    transform: translateY(-4px);
}

.pricing-card-inner {
    background: rgba(14,16,25,0.98);
    border-radius: 19px;
}

.pricing-card-gradient-border .pricing-price {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-divider {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.pricing-features li .check {
    color: #60a5fa;
}

.pricing-features li .check.blue {
    color: #a78bfa;
}

.pricing-cta.pub {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pricing-cta.pub:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}

.pricing-cta.adv {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pricing-cta.adv:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}

.pricing-fine-print {
    color: rgba(255,255,255,0.3);
}

.pricing-price-sub {
    color: rgba(255,255,255,0.35);
}

/* Affiliate card styling */
.pricing-cta.aff {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.pricing-cta.aff:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}

.check.aff {
    color: #f59e0b;
}

/* ================================================================
   TESTIMONIALS SECTION
   ================================================================ */
.testimonials-section {
    padding: 7rem 2rem;
}

.testimonial-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 2.25rem;
    transition: border-color 0.3s, transform 0.3s;
}

.testimonial-card:hover {
    border-color: rgba(99,102,241,0.2);
    transform: translateY(-4px);
}

.quote-mark {
    color: #818cf8;
    opacity: 0.4;
}

.testimonial-text {
    color: rgba(255,255,255,0.55);
}

.author-avatar {
    background: linear-gradient(135deg, rgba(59,130,246,0.2), rgba(139,92,246,0.2));
    border: 1px solid rgba(99,102,241,0.2);
}

.author-name {
    color: #fff;
}

.author-title {
    color: rgba(255,255,255,0.35);
}

.badge-pub {
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
    border: 1px solid rgba(59,130,246,0.25);
}

.badge-adv {
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
    border: 1px solid rgba(139,92,246,0.25);
}

.badge-agency {
    background: rgba(236,72,153,0.1);
    color: #f472b6;
    border: 1px solid rgba(236,72,153,0.2);
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
    background: rgba(11,12,20,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 7rem 2rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
    color: rgba(255,255,255,0.9);
    transition: color 0.2s;
}

.faq-question:hover {
    color: #818cf8;
}

.faq-icon {
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.45);
    transition: transform 0.3s, border-color 0.3s, color 0.3s;
}

.faq-item.open .faq-icon {
    border-color: #818cf8;
    color: #818cf8;
}

.faq-answer-inner {
    color: rgba(255,255,255,0.5);
}

.faq-answer-inner a {
    color: #60a5fa;
}

/* ================================================================
   CASE STUDIES SECTION
   ================================================================ */
.case-studies-section {
    padding: 7rem 2rem;
    background: var(--bg-dark);
}

.cs-card {
    background: rgba(18,18,26,0.9);
    border-radius: 18px;
    transition: transform 0.3s;
}

.cs-card:hover {
    transform: translateY(-4px);
}

.cs-card::before {
    background: linear-gradient(135deg, rgba(59,130,246,0.35), rgba(139,92,246,0.35), transparent 70%);
}

.cs-logo {
    background: linear-gradient(135deg, rgba(59,130,246,0.12), rgba(139,92,246,0.12));
    border: 1px solid rgba(99,102,241,0.2);
}

.cs-category {
    color: #60a5fa;
}

.cs-metric {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cs-quote {
    color: rgba(255,255,255,0.5);
    border-left: 2px solid rgba(99,102,241,0.3);
}

/* ================================================================
   RTB DEMO SECTION
   ================================================================ */
.rtb-demo-section {
    padding: 7rem 2rem;
    background: var(--bg-dark);
}

.rtb-stat-val {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rtb-terminal {
    background: #060810;
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 16px;
    box-shadow: 0 0 60px rgba(99,102,241,0.06), 0 0 120px rgba(59,130,246,0.03);
}

.rtb-term-bar {
    background: #0d0f18;
    border-bottom: 1px solid rgba(99,102,241,0.15);
}

.rtb-term-body::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.25);
}

.rtb-cpm {
    color: #60a5fa;
    font-weight: bold;
}

.rtb-label-win {
    color: #34d399;
}

.rtb-label-served {
    color: #fbbf24;
}

.rtb-label-req {
    color: #60a5fa;
}

.rtb-label-bid {
    color: #a78bfa;
}

/* ================================================================
   ROI CALCULATOR SECTION
   ================================================================ */
.roi-section {
    padding: 7rem 2rem;
    background: rgba(11,12,20,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.roi-card {
    background: rgba(18,18,26,0.9);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 22px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}

.roi-card::after {
    background: radial-gradient(circle, rgba(99,102,241,0.07), transparent 70%);
}

.roi-slider {
    background: linear-gradient(to right, #6366f1 var(--pct, 40%), rgba(255,255,255,0.08) var(--pct, 40%));
}

.roi-slider::-webkit-slider-thumb {
    background: #818cf8;
    box-shadow: 0 0 12px rgba(129,140,248,0.5);
}

.roi-slider::-moz-range-thumb {
    background: #818cf8;
    box-shadow: 0 0 12px rgba(129,140,248,0.5);
}

.roi-result-box {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}

.roi-result-box.highlight {
    background: rgba(99,102,241,0.06);
    border-color: rgba(99,102,241,0.25);
}

.roi-result-box.highlight .roi-result-val {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-result-label {
    color: rgba(255,255,255,0.4);
}

.roi-uplift strong {
    color: #34d399;
}

.roi-input-label {
    color: rgba(255,255,255,0.55);
}

.roi-input-label span {
    color: #fff;
}

/* ================================================================
   FINAL CTA SECTION
   ================================================================ */
.final-cta {
    padding: 8rem 2rem;
    position: relative;
}

.final-cta-bg {
    background: linear-gradient(135deg, rgba(59,130,246,0.06) 0%, rgba(139,92,246,0.06) 100%);
}

.final-cta-border {
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: 24px;
}

.final-cta-glow {
    background: radial-gradient(ellipse, rgba(99,102,241,0.08) 0%, transparent 70%);
}

.final-cta-eyebrow {
    color: #818cf8;
}

.final-cta h2 {
    color: #fff;
}

.final-cta p {
    color: rgba(255,255,255,0.5);
}

/* CTA Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(99,102,241,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(99,102,241,0.45);
}

.btn-secondary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff;
    border-radius: 10px;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-ghost {
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.8);
    transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.05);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: rgba(10,11,18,0.98);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 5rem 2rem 2.5rem;
}

.footer-brand .logo-text {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: rgba(255,255,255,0.45);
}

.footer-col h5 {
    color: rgba(255,255,255,0.4);
}

.footer-links a {
    color: rgba(255,255,255,0.45);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-grid {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.social-icon {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.4);
}

.social-icon:hover {
    background: rgba(99,102,241,0.1);
    color: #818cf8;
    border-color: rgba(99,102,241,0.3);
}

.footer-copyright {
    color: rgba(255,255,255,0.3);
}

.footer-copyright a {
    color: rgba(255,255,255,0.4);
}

.footer-legal a {
    color: rgba(255,255,255,0.3);
}

.footer-legal a:hover {
    color: rgba(255,255,255,0.6);
}

/* ================================================================
   GEOFENCING LIVE MAP — polish with enterprise palette
   ================================================================ */
.geo-map-section {
    background: linear-gradient(180deg, #06091a 0%, #050b18 100%);
}

.geo-map-container {
    border: 1px solid rgba(99,102,241,0.2);
    border-bottom: none;
    box-shadow: 0 0 80px rgba(99,102,241,0.06);
}

.geo-stats-bar {
    background: rgba(6,10,28,0.95);
    border: 1px solid rgba(99,102,241,0.2);
    border-top: 1px solid rgba(99,102,241,0.12);
}

.geo-stat+.geo-stat::before {
    background: rgba(99,102,241,0.2);
}

.geo-stat-value {
    color: #60a5fa;
}

.geo-stat-green {
    color: #34d399;
}

/* ================================================================
   SCROLL ANIMATIONS — smoother, more professional
   ================================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children animations */
.metrics-grid .metric-card:nth-child(1) { transition-delay: 0.0s; }
.metrics-grid .metric-card:nth-child(2) { transition-delay: 0.08s; }
.metrics-grid .metric-card:nth-child(3) { transition-delay: 0.16s; }
.metrics-grid .metric-card:nth-child(4) { transition-delay: 0.24s; }
.metrics-grid .metric-card:nth-child(5) { transition-delay: 0.32s; }

.how-rtb-steps .how-rtb-step:nth-child(1) { transition-delay: 0.0s; }
.how-rtb-steps .how-rtb-step:nth-child(2) { transition-delay: 0.12s; }
.how-rtb-steps .how-rtb-step:nth-child(3) { transition-delay: 0.24s; }

.solutions-grid .solution-col:nth-child(1) { transition-delay: 0.0s; }
.solutions-grid .solution-col:nth-child(2) { transition-delay: 0.1s; }

.testimonials-grid .testimonial-card:nth-child(1) { transition-delay: 0.0s; }
.testimonials-grid .testimonial-card:nth-child(2) { transition-delay: 0.08s; }
.testimonials-grid .testimonial-card:nth-child(3) { transition-delay: 0.16s; }
.testimonials-grid .testimonial-card:nth-child(4) { transition-delay: 0.24s; }

.case-studies-grid .cs-card:nth-child(1) { transition-delay: 0.0s; }
.case-studies-grid .cs-card:nth-child(2) { transition-delay: 0.1s; }
.case-studies-grid .cs-card:nth-child(3) { transition-delay: 0.2s; }

/* ================================================================
   STAT VALUE GRADIENT (unified)
   ================================================================ */
.stat-value {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero counter values */
.hero-counter-value {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================================
   PROBLEM CARDS (if visible)
   ================================================================ */
.problem-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.3s, transform 0.3s;
}

.problem-card:hover {
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-3px);
}

.problem-card::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}

/* ================================================================
   FEATURE CARDS
   ================================================================ */
.feature-card {
    background: rgba(18,18,26,0.8);
    border: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
    border-color: rgba(99,102,241,0.25);
    transform: translateY(-3px);
}

.feature-card .feature-icon {
    background: rgba(99,102,241,0.1);
}

/* ================================================================
   REVENUE GRID
   ================================================================ */
.revenue-grid {
    background: rgba(255,255,255,0.04);
}

.revenue-item {
    background: rgba(14,16,25,0.95);
}

.revenue-item .rev-pct {
    color: #818cf8;
}

/* ================================================================
   FLOW STEPS (old how-it-works)
   ================================================================ */
.flow-section {
    background: rgba(14,16,25,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.flow-steps::before {
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

.flow-step .step-num {
    background: var(--bg-dark);
    border: 2px solid #818cf8;
    color: #818cf8;
}

/* ================================================================
   INLINE STYLE OVERRIDES FOR AI SECTION HEALTH BAR
   These green-themed inline styles in the AI section need overriding
   ================================================================ */

/* ================================================================
   TRUST BAR (old version, if visible)
   ================================================================ */
.trust-bar {
    background: rgba(14,16,25,0.95);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.trust-logo-item {
    opacity: 0.4;
}

.trust-logo-item:hover {
    opacity: 0.7;
}

/* ================================================================
   DASHBOARD MOCKUP (old version)
   ================================================================ */
.dashboard-mockup {
    background: rgba(14,16,25,0.95);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.mockup-stat-val {
    color: #60a5fa;
}

.mockup-stat-val.blue {
    color: #a78bfa;
}

.mockup-bar {
    background: linear-gradient(to top, rgba(59,130,246,0.6), rgba(139,92,246,0.4));
}

.mockup-bar.blue {
    background: linear-gradient(to top, rgba(139,92,246,0.5), rgba(236,72,153,0.3));
}

.mockup-table-val {
    color: #60a5fa;
}

.mockup-table-val.blue {
    color: #a78bfa;
}

/* ================================================================
   RESPONSIVE REFINEMENTS
   ================================================================ */
@media (max-width: 1024px) {
    .testimonials-grid {
        grid-template-columns: 1fr 1fr;
    }

    .case-studies-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .testimonials-grid,
    .case-studies-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid-3 {
        grid-template-columns: 1fr;
    }

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

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

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

    /* Tighter section padding on mobile */
    .metrics-section,
    .pricing-section,
    .faq-section,
    .rtb-section,
    .security-section,
    .case-studies-section,
    .rtb-demo-section,
    .roi-section {
        padding: 5rem 1.25rem;
    }

    .testimonials-section,
    .ai-section,
    .geo-section {
        padding: 5rem 1.25rem;
    }

    .final-cta {
        padding: 5rem 1.25rem;
    }

    .final-cta-border {
        inset: 1.5rem;
    }

    .footer {
        padding: 4rem 1.25rem 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .roi-card {
        padding: 2rem 1.25rem;
    }

    .roi-results {
        grid-template-columns: 1fr;
    }

    .rtb-stats-row {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* ================================================================
   MICRO-INTERACTIONS & POLISH
   ================================================================ */

/* Subtle card entrance animation */
@keyframes cardEnter {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smoother scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Selection color */
::selection {
    background: rgba(99,102,241,0.3);
    color: #fff;
}

/* Focus states for accessibility */
.faq-question:focus-visible,
.pricing-cta:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-hero-primary:focus-visible {
    outline: 2px solid #818cf8;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

/* Better scrollbar on chrome */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99,102,241,0.35);
}

/* ================================================================
   MOBILE NAV DRAWER — override green signup button
   ================================================================ */
.mobile-nav-drawer .nav-ctas .btn-signup {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
}

/* ================================================================
   OLD-SECTION GREEN REFERENCES (explicit overrides)
   These override hardcoded green values in the inline CSS
   ================================================================ */

/* Metric cards */
.metric-card::before {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6) !important;
}

/* RTB card hover */
.rtb-card:hover {
    border-color: rgba(99,102,241,0.25) !important;
}

/* RTB spec badges */
.rtb-spec {
    background: rgba(99,102,241,0.08) !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
    color: #818cf8 !important;
}

/* Security card hover */
.security-card:hover {
    border-color: rgba(99,102,241,0.2) !important;
}

/* Sec icon boxes */
.sec-icon {
    background: rgba(99,102,241,0.08) !important;
    border: 1px solid rgba(99,102,241,0.15) !important;
}

.sec-item:hover {
    border-color: rgba(99,102,241,0.25) !important;
}

/* RTB terminal */
.rtb-terminal {
    border: 1px solid rgba(99,102,241,0.2) !important;
    box-shadow: 0 0 60px rgba(99,102,241,0.05), 0 0 120px rgba(59,130,246,0.03) !important;
}

.rtb-term-bar {
    border-bottom: 1px solid rgba(99,102,241,0.1) !important;
}

.rtb-term-body::-webkit-scrollbar-thumb {
    background: rgba(99,102,241,0.2) !important;
}

.rtb-cpm {
    color: #60a5fa !important;
}

/* ROI section overrides */
.roi-card::after {
    background: radial-gradient(circle, rgba(99,102,241,0.06), transparent 70%) !important;
}

.roi-slider {
    background: linear-gradient(to right, #6366f1 var(--pct, 40%), rgba(255,255,255,0.08) var(--pct, 40%)) !important;
}

.roi-slider::-webkit-slider-thumb {
    background: #818cf8 !important;
    box-shadow: 0 0 10px rgba(129,140,248,0.5) !important;
}

.roi-slider::-moz-range-thumb {
    background: #818cf8 !important;
    box-shadow: 0 0 10px rgba(129,140,248,0.5) !important;
}

.roi-result-box.highlight {
    background: rgba(99,102,241,0.04) !important;
    border-color: rgba(99,102,241,0.2) !important;
}

.roi-uplift strong {
    color: #34d399 !important;
}

/* Social icon hover */
.social-icon:hover {
    background: rgba(99,102,241,0.1) !important;
    color: #818cf8 !important;
    border-color: rgba(99,102,241,0.3) !important;
}

/* Case study cards */
.cs-card::before {
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3), transparent 70%) !important;
}

.cs-logo {
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1)) !important;
    border: 1px solid rgba(99,102,241,0.2) !important;
}

.cs-quote {
    border-left: 2px solid rgba(99,102,241,0.25) !important;
}

/* btn-ghost hover */
.btn-ghost:hover {
    border-color: rgba(99,102,241,0.3) !important;
}

/* btn-primary old override */
.btn-primary {
    box-shadow: 0 0 24px rgba(99,102,241,0.25) !important;
}
