/* =============================================
   code.css — MQL Development & Code Review Page
   ============================================= */

/* Monospace font for code elements */
.code-editor-mockup,
.editor-body,
.code-line,
.compare-timer {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
}

/* Green accent for this page */
.accent-green {
    background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav CTA button */
.nav-cta-btn {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
    color: var(--darker);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

/* =============================================
   Hero
   ============================================= */
.code-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
    background: var(--darker);
}

.code-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.code-hero-text {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.code-hero-text .hero-title {
    text-align: left;
    margin-bottom: 1.5rem;
}

.code-hero-text .hero-subtitle {
    text-align: left;
    margin: 0 0 2.5rem 0;
}

.code-hero-text .hero-stats {
    justify-content: flex-start;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

/* Free audit badge */
.free-audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

/* Code editor mockup */
.code-hero-visual {
    position: relative;
    min-width: 0;
}

.code-editor-mockup {
    background: #0d1117;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-bar {
    background: #161b22;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.editor-dots {
    display: flex;
    gap: 6px;
}

.dot-red   { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dot-yellow{ width: 12px; height: 12px; border-radius: 50%; background: #ffbd2e; }
.dot-green { width: 12px; height: 12px; border-radius: 50%; background: #28c840; }

.editor-filename {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

.editor-body {
    padding: 1.4rem 1.2rem;
    font-size: 0.82rem;
    line-height: 2;
}

.code-line {
    display: flex;
    gap: 0.8rem;
    padding: 0 0.4rem;
    border-radius: 3px;
}

.code-line.removed {
    background: rgba(255, 80, 80, 0.12);
    color: #ff6b6b;
}

.code-line.added {
    background: rgba(0, 255, 136, 0.08);
    color: #00ff88;
}

.code-line.context {
    color: rgba(255, 255, 255, 0.35);
}

.ln {
    color: rgba(255, 255, 255, 0.2);
    min-width: 1.2rem;
    text-align: right;
    user-select: none;
}

.diff-marker {
    min-width: 0.8rem;
    font-weight: 700;
}

.code-keyword { color: #ff79c6; }
.code-fn      { color: #50fa7b; }
.code-var     { color: #8be9fd; }
.code-num     { color: #bd93f9; }
.code-str     { color: #f1fa8c; }
.code-comment { color: rgba(255, 255, 255, 0.3); font-style: italic; }

/* =============================================
   Services Section
   ============================================= */
.services-section {
    padding: 8rem 0;
    background: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-4px);
}

.service-card-highlight {
    border-color: rgba(0, 255, 136, 0.25);
    background: rgba(0, 255, 136, 0.03);
}

.service-card-highlight:hover {
    border-color: rgba(0, 255, 136, 0.5);
}

.service-badge {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
    color: var(--darker);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon-wrap {
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

.service-desc {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-list li {
    color: var(--light);
    font-size: 0.95rem;
    padding-left: 1.4rem;
    position: relative;
}

.service-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: #00ff88;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    color: var(--gray);
    margin-top: 3rem;
    font-size: 0.95rem;
}

/* Report structure block */
.report-structure {
    margin-top: 1.8rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.report-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--gray);
    margin-bottom: 1rem;
}

.report-sections {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.report-section {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.report-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 3px;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}

.tag-critical {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(255, 80, 80, 0.25);
}

.tag-perf {
    background: rgba(255, 165, 0, 0.12);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.25);
}

.tag-design {
    background: rgba(0, 212, 255, 0.1);
    color: var(--primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* =============================================
   Performance Section
   ============================================= */
.performance-section {
    padding: 8rem 0;
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

.performance-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 40%, rgba(0, 255, 136, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.compare-arrow {
    font-size: 2.5rem;
    color: var(--gray);
    text-align: center;
    font-weight: 300;
}

.compare-card {
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid;
}

.compare-before {
    background: rgba(255, 80, 80, 0.05);
    border-color: rgba(255, 80, 80, 0.2);
}

.compare-after {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
}

.compare-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
}

.compare-before .compare-label { color: #ff6b6b; }
.compare-after  .compare-label { color: #00ff88; }

.compare-timer {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timer-slow { color: #ff6b6b; }
.timer-fast { color: #00ff88; }

.compare-desc {
    font-size: 0.8rem;
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.compare-bar-wrap {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.compare-bar {
    height: 100%;
    border-radius: 3px;
}

.bar-slow {
    width: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff4444);
}

.bar-fast {
    width: 4.5%;
    background: linear-gradient(90deg, #00ff88, #10b981);
}

.compare-issues {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.compare-issues li {
    font-size: 0.85rem;
    line-height: 1.5;
    padding-left: 1.4rem;
    position: relative;
}

.compare-issues code {
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.07);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.issue-bad {
    color: rgba(255, 107, 107, 0.85);
}

.issue-bad::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

.issue-good {
    color: rgba(255, 255, 255, 0.8);
}

.issue-good::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00ff88;
}

.performance-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.1rem;
    color: var(--gray);
    position: relative;
    z-index: 1;
}

.perf-highlight {
    color: #00ff88;
    font-weight: 700;
    font-size: 1.3rem;
}

/* =============================================
   Pain Points Section
   ============================================= */
.painpoints-section {
    padding: 8rem 0;
    background: var(--dark);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.pain-card {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 2rem;
    transition: border-color 0.3s, transform 0.3s;
}

.pain-card:hover {
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateY(-4px);
}

.pain-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.pain-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.pain-card p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* =============================================
   Testimonials Ticker
   ============================================= */
.testimonials-section {
    padding: 6rem 0;
    background: var(--darker);
    overflow: hidden;
}

.testimonials-section .container {
    margin-bottom: 3rem;
}

.ticker-wrapper {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ticker-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: ticker-scroll 40s linear infinite;
    padding: 0.5rem 0;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.review-card {
    background: rgba(10, 14, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2rem;
    width: 380px;
    flex-shrink: 0;
    transition: border-color 0.3s;
}

.review-card:hover {
    border-color: rgba(0, 255, 136, 0.2);
}

.review-stars {
    color: #ffa500;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.review-text {
    color: var(--light);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.review-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.review-author span {
    color: var(--gray);
    font-weight: 400;
}

/* =============================================
   Process Section
   ============================================= */
.process-section {
    padding: 8rem 0;
    background: var(--dark);
}

.process-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    padding: 0 1rem;
}

.step-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.process-step h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--light);
}

.process-step p {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.8;
}

.process-connector {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.4) 0%, rgba(0, 255, 136, 0.1) 100%);
    align-self: center;
    margin-top: -1rem;
}

/* =============================================
   Contact Form Section
   ============================================= */
.code-contact-section {
    padding: 8rem 0;
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

.code-contact-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-intro .section-title {
    margin-bottom: 1.5rem;
}

.contact-subtext {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1rem;
}

.contact-guarantees {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--light);
}

.guarantee-icon {
    color: #00ff88;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

/* Form */
.contact-form-wrap {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    color: var(--light);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-select {
    appearance: none;
    cursor: pointer;
}

.form-select option {
    background: var(--dark);
    color: var(--light);
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form-note {
    font-size: 0.82rem;
    color: var(--gray);
    margin-top: -0.5rem;
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
}

.form-note a:hover {
    color: #00ff88;
}

.submit-btn {
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
    color: var(--darker);
    border: none;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.3px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.35);
}

/* =============================================
   Cross-sell Section
   ============================================= */
.crosssell-section {
    padding: 5rem 0;
    background: var(--dark);
}

.crosssell-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 3rem 3.5rem;
}

.crosssell-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-bottom: 0.75rem;
}

.crosssell-text p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 500px;
}

.crosssell-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.crosssell-btn:hover {
    background: var(--primary);
    color: var(--darker);
    transform: translateY(-2px);
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .pain-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-cta-btn {
        display: none;
    }

    .code-hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .code-hero-text .hero-title {
        text-align: center;
    }

    .code-hero-text .hero-subtitle {
        text-align: center;
    }

    .code-hero-text .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem 2.5rem;
    }

    .code-editor-mockup {
        overflow-x: hidden;
    }

    .code-hero-text .cta-button {
        display: block;
        text-align: center;
    }

    .free-audit-badge {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .compare-arrow {
        transform: rotate(90deg);
        font-size: 2rem;
        justify-self: center;
    }

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

    .process-steps {
        grid-template-columns: 1fr;
    }

    .process-connector {
        width: 60px;
        height: 2px;
        background: linear-gradient(90deg, rgba(0, 255, 136, 0.4) 0%, rgba(0, 255, 136, 0.1) 100%);
        justify-self: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-intro .section-title {
        text-align: center;
    }

    .contact-subtext {
        text-align: center;
    }

    .contact-guarantees {
        align-items: flex-start;
    }

    .contact-form-wrap {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .crosssell-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem;
    }

    .crosssell-text p {
        max-width: 100%;
    }
}
