/* =================================================================
   SEO OPTIMIZATION PAGE STYLES
   ================================================================= */

/* ----------------------------------
   HERO SECTION
   ---------------------------------- */
.seo-hero {
    position: relative;
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.seo-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.data-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.data-glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.15), transparent 70%); /* Green for Growth */
    filter: blur(100px);
    opacity: 0.6;
}

.data-glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%); /* Blue */
    filter: blur(100px);
    opacity: 0.5;
}

.seo-hero__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.seo-hero__content {
    text-align: left;
    max-width: 600px;
}

.seo-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    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);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s infinite;
}

.seo-hero__content .title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.seo-hero__content .subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 0 40px;
    line-height: 1.6;
}

.seo-hero__metrics {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.metric-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 16px;
    min-width: 100px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.metric-pill:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.metric-pill .val {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.metric-pill .lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.seo-hero__actions {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
    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;
}

.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);
}

/* Hero Visual Side */
.seo-hero__visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.rank-card-stack {
    position: relative;
    width: 340px;
    height: 440px;
}

.r-card {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.r-back {
    transform: rotate(-6deg) translate(-20px, -10px);
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(59, 130, 246, 0.05));
    z-index: 1;
}

.r-front {
    transform: rotate(0deg);
    z-index: 2;
    padding: 25px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
}

.rank-card-stack:hover .r-back { transform: rotate(-10deg) translate(-30px, -15px); }
.rank-card-stack:hover .r-front { transform: translateY(-5px); }

.r-header { display: flex; gap: 8px; margin-bottom: 20px; }
.r-dot { width: 10px; height: 10px; border-radius: 50%; }
.r-dot.red { background: #ef4444; }
.r-dot.yellow { background: #eab308; }
.r-dot.green { background: #22c55e; }

.r-graph-area {
    flex-grow: 1;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-end;
}

.r-chart-line { width: 100%; height: 100%; overflow: visible; }

.r-tooltip {
    position: absolute;
    top: 20%;
    right: 20%;
    background: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    padding: 8px 12px;
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.r-tooltip span { display: block; font-size: 0.7rem; color: #fff; }
.r-tooltip strong { display: block; font-size: 1rem; color: #22c55e; }

.r-stats-row { display: flex; justify-content: space-between; }
.r-stat { display: flex; flex-direction: column; }
.r-stat span { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; }
.r-stat strong { font-size: 1.2rem; color: #fff; font-family: var(--font-heading); }

.floating-badge {
    position: absolute;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #050816;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 3;
    animation: floatIcon 4s ease-in-out infinite alternate;
}

.fb-1 { top: -20px; right: -20px; color: #4285F4; animation-delay: 0s; }
.fb-2 { bottom: 40px; left: -30px; color: #22C55E; animation-delay: 1s; }

.seo-hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

@keyframes floatIcon {
    0% { transform: translateY(0); }
    100% { transform: translateY(-20px); }
}

/* ----------------------------------
   PROBLEM SECTION
   ---------------------------------- */
.seo-problem {
    padding: 140px 0;
    background: var(--color-bg);
    position: relative;
}

.seo-problem__layout {
    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-accent);
    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 .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.problem-list i {
    font-size: 1.5rem;
    color: #ef4444;
}

.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;
}

/* Problem Visuals */
.debt-card-stack {
    position: relative;
    width: 320px;
    height: 440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.d-card {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease;
}

.d-back { background: #0a0f2e; transform: rotate(-10deg) translate(-20px, -10px); opacity: 0.5; z-index: 1; }
.d-front { 
    background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    transform: rotate(0deg); 
    z-index: 3;
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.debt-card-stack:hover .d-back { transform: rotate(-15deg) translate(-30px, -15px); }
.debt-card-stack:hover .d-front { transform: translateY(-5px); }

.d-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ef4444;
    font-family: monospace;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
}

.d-body { flex-grow: 1; display: flex; flex-direction: column; gap: 20px; justify-content: center; }

.d-row { display: flex; flex-direction: column; gap: 8px; }
.d-row span { font-size: 0.8rem; color: var(--color-text-muted); text-transform: uppercase; }
.d-bar { height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; overflow: hidden; }
.d-fill { height: 100%; border-radius: 3px; }
.d-fill.low { width: 30%; background: #ef4444; }
.d-fill.med { width: 50%; background: #eab308; }
.d-fill.high { width: 80%; background: #ef4444; }

.d-footer { margin-top: auto; text-align: center; }
.d-footer strong { display: block; color: #ef4444; font-size: 1rem; }
.d-footer small { color: var(--color-text-muted); font-size: 0.8rem; }

/* ----------------------------------
   PROTOCOL SECTION
   ---------------------------------- */
.seo-protocol {
    padding: 140px 0;
    background: #02040a;
    position: relative;
    overflow: hidden;
}

.seo-protocol__header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 2;
}

.seo-protocol__header h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.seo-protocol__header p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.protocol-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    z-index: 2;
}

.protocol-card {
    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.05);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.protocol-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #22C55E;
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.1);
}

.card-num {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    position: absolute;
    top: -10px;
    right: 10px;
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s ease;
}

.protocol-card:hover .card-num { color: rgba(34, 197, 94, 0.05); }

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #22C55E;
    margin-bottom: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.protocol-card:hover .card-icon { transform: scale(1.1) rotate(-5deg); background: #22C55E; color: #fff; }

.protocol-card h3 { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 5px; }
.protocol-card p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ----------------------------------
   SERVICES SECTION
   ---------------------------------- */
.seo-services {
    padding: 140px 0;
    background: #02040a;
    position: relative;
    overflow: hidden;
}

.seo-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
}

.seo-services__header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 2;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 40px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(34, 197, 94, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.service-card.featured {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.service-card .card-icon {
    font-size: 2.5rem;
    color: #22C55E;
    margin-bottom: 10px;
    width: 60px; height: 60px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease;
}

.service-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
    background: #22C55E;
    color: #000;
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: #fff;
}

.service-card p {
    color: var(--color-text-muted);
    line-height: 1.6;
    font-size: 1rem;
}

/* ----------------------------------
   RESULTS SECTION
   ---------------------------------- */
.seo-results {
    padding: 120px 0;
    background: var(--color-bg);
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0;
    border: none;
}

.result-card {
    text-align: center;
    padding: 50px 30px;
    background: rgba(255,255,255,0.01);
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
}

.result-card:hover {
    background: rgba(255,255,255,0.03);
    transform: translateY(-5px);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.1);
}

.result-card .metric {
    display: block;
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    line-height: 1;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.result-card:hover .metric {
    color: #22C55E;
    -webkit-text-stroke: 0px transparent;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.result-card .label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* ----------------------------------
   FAQ & CTA
   ---------------------------------- */
.seo-faq {
    padding: 140px 0;
    background: var(--color-bg);
}

.ui-faq__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: start;
}

.ui-faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ui-section-header { margin-bottom: 40px; }

.ui-section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.faq-trigger i {
    transition: transform 0.3s ease;
    color: var(--color-text-muted);
}

.faq-item.active .faq-trigger i {
    transform: rotate(45deg);
    color: #22C55E;
}

.faq-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s ease;
}

.faq-content p {
    padding-bottom: 20px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.seo-cta-box {
    background: linear-gradient(135deg, #0a0f2e, #000);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 50px;
    border-radius: 32px;
    text-align: center;
    position: sticky;
    top: 120px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.seo-cta-box h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.seo-cta-box p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* ----------------------------------
   RESPONSIVE
   ---------------------------------- */
@media (max-width: 1024px) {
    .seo-hero__layout, .seo-problem__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .protocol-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }
    
    .ui-faq__grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .seo-cta-box {
        position: relative;
        top: 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .service-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .seo-hero {
        padding: 100px 0 60px;
        min-height: auto;
        text-align: center;
    }

    .seo-hero__content {
        text-align: center;
        margin: 0 auto;
    }
    
    .seo-hero__actions, .seo-hero__metrics {
        justify-content: center;
    }
    
    .seo-hero__visual {
        display: none; /* Hide complex visual on mobile */
    }

    .seo-hero__content .title {
        font-size: 2.5rem;
        word-wrap: break-word;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .seo-problem, .seo-protocol, .seo-services, .seo-results, .seo-faq {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .debt-card-stack {
        transform: scale(0.9);
    }
    
    .protocol-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
}