/* Hero specific styles - scoped to .ts-wrap to avoid conflicts */
.ts-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: transparent;
    margin: 0;
    padding: 0;
}

/* FLEX CONTAINER: Side-by-side on Desktop, Stacked on Mobile */
.ts-hero-split {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    padding: 28px 16px;
    display: flex;
    flex-direction: column; /* Default for mobile */
    /* gap: 32px; */
    align-items: center;
    border-radius: 0 0 24px 24px;
    /* width: calc(100% + 2rem); */
}

/* Left Side: Content */
.ts-hero-content {
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.ts-hero-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ts-hero-content p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.5;
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Right Side: Comparison Panes (Static Preview) */
.ts-comparison-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 1px;
    margin-top: 10px;
    background: #1e293b;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);
}

.ts-code-pane {
    background: #0f172a;
    padding: 16px;
}

.ts-pane-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5b6e8c;
    margin-bottom: 12px;
    display: block;
}

.ts-code-line {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    font-size: 0.75rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    display: block;
    margin-bottom: 2px;
}

.ts-removed {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border-radius: 4px;
    padding: 0 2px;
    display: inline-block;
}

.ts-added {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-radius: 4px;
    padding: 0 2px;
    display: inline-block;
}

.ts-dim {
    color: #5b6e8c;
}

.ts-btn-primary {
    background: #2563eb;
    color: white;
    border: none;
    width: 100%;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.ts-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.ts-btn-primary:active {
    transform: translateY(1px);
}

/* DESKTOP ADJUSTMENTS */
@media (min-width: 768px) {
    .ts-hero-split {
        flex-direction: row;
        padding: 56px 48px;
        justify-content: space-between;
        gap: 48px;
    }

    .ts-hero-content {
        text-align: left;
        flex: 1;
        max-width: 520px;
    }

    .ts-hero-content h1 {
        font-size: 2.6rem;
    }

    .ts-hero-content p {
        margin-left: 0;
        font-size: 1.05rem;
    }

    .ts-comparison-container {
        grid-template-columns: 1fr 1fr; /* Side-by-side on desktop */
        flex: 1.2;
        max-width: 620px;
    }

    .ts-btn-primary {
        width: auto;
        padding: 10px 28px;
    }
}

/* Extra small screens fine-tuning */
@media (max-width: 480px) {
    .ts-hero-split {
        margin-bottom: 1.5rem;
    }
    .ts-hero-content h1 {
        font-size: 1.7rem;
    }
    .ts-code-line {
        font-size: 0.7rem;
    }
}
