/* ============================================
   REVENUE-FOCUSED WEB DESIGN — "Blueprint Architect"
   Page accent: #8B5CF6 (Purple)
   ============================================ */

/* ---------- Hero ---------- */
.web-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 30%, rgba(139, 92, 246, 0.06) 0%, transparent 60%);
}

.web-hero .blueprint-svg {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translate(0, -50%);
    width: 460px;
    height: 460px;
    opacity: 0.14;
    z-index: 0;
}

/* Blueprint & Wireframe Animations */
.blueprint-grid-line {
    stroke: rgba(139, 92, 246, 0.15);
    stroke-width: 0.5;
}

.wireframe-line {
    stroke: #8B5CF6;
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-wireframe 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wireframe-line.delay-1 { animation-delay: 0.5s; }
.wireframe-line.delay-2 { animation-delay: 1s; }
.wireframe-line.delay-3 { animation-delay: 1.5s; }

@keyframes draw-wireframe {
    to { stroke-dashoffset: 0; }
}

/* ---------- Stats Row ---------- */
.web-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.web-metric-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-md);
    text-align: center;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.web-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8B5CF6, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.web-metric-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.05);
}

.web-metric-card:hover::before {
    opacity: 1;
}

.web-metric-card .metric-icon {
    color: #8B5CF6;
    margin-bottom: var(--space-sm);
}

.web-metric-card .metric-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.web-metric-card .metric-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---------- Before/After Interactive Slider ---------- */
.before-after-container {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

/* The Blueprint Underlay */
.slider-img.before-blueprint {
    background: #09090b;
    background-image: 
        radial-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 0),
        radial-gradient(rgba(139, 92, 246, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blueprint-mockup-content {
    border: 2px dashed rgba(139, 92, 246, 0.4);
    border-radius: 6px;
    width: 80%;
    height: 70%;
    padding: 1.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blueprint-tag {
    position: absolute;
    top: -12px;
    left: 20px;
    background: #09090b;
    border: 1px dashed #8B5CF6;
    color: #8B5CF6;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-family: monospace;
}

.blueprint-line-place {
    border-bottom: 1px dashed rgba(139, 92, 246, 0.3);
    height: 12px;
    width: 100%;
}

/* The Polished UI Overlay */
.slider-img.after-ui {
    background: linear-gradient(135deg, #120e25 0%, #07050f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 2;
}

.polished-mockup-content {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 8px;
    width: 80%;
    height: 70%;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

.polished-mockup-cta {
    background: linear-gradient(90deg, #8B5CF6, #a78bfa);
    height: 30px;
    width: 120px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Slider Controls */
.slider-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #8B5CF6;
    z-index: 10;
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.slider-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    background: #8B5CF6;
    border-radius: 50%;
    z-index: 11;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    color: #fff;
    font-weight: bold;
    font-size: 0.8rem;
}

/* ---------- Methodology Steps ---------- */
.wd-methodology {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: var(--space-lg);
}

.wd-methodology::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), #8B5CF6, rgba(139, 92, 246, 0.3), transparent);
}

.wd-methodology-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
}

.wd-methodology-step .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #8B5CF6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-heading);
    margin: 0 auto var(--space-sm);
    position: relative;
    z-index: 2;
}

.wd-methodology-step h4 {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: #fff;
}

.wd-methodology-step p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 100%;
}

/* ---------- FAQ Accordion ---------- */
.wd-faq details {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) 0;
}

.wd-faq details summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    transition: color 0.3s ease;
}

.wd-faq details summary::-webkit-details-marker { display: none; }

.wd-faq details summary::after {
    content: '+';
    font-size: 1.5rem;
    color: #8B5CF6;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

.wd-faq details[open] summary::after {
    transform: rotate(45deg);
}

.wd-faq details summary:hover { color: #8B5CF6; }

.wd-faq details .faq-answer {
    padding-top: var(--space-sm);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 90%;
}

/* ---------- CTA ---------- */
.wd-cta {
    text-align: center;
    padding: var(--space-xl) 0;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    border-top: 1px solid var(--color-border);
}

.wd-cta .btn-primary {
    background: #8B5CF6;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.wd-cta .btn-primary:hover {
    background: transparent;
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
}

/* ---------- Section Label ---------- */
.wd-label {
    color: #8B5CF6;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-sm);
    display: block;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .web-stats-row { grid-template-columns: repeat(2, 1fr); }
    .wd-methodology { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
    .wd-methodology::before { display: none; }
    .web-hero .blueprint-svg { display: none; }
}

@media (max-width: 768px) {
    .web-stats-row { grid-template-columns: 1fr; }
    .wd-methodology { grid-template-columns: 1fr; }
    .slider-wrapper { height: 260px; }
}
