/* --- START OF FILE can_build.css --- */

#whatYouCanBuild {
    background: #f8fafc;
    scroll-snap-align: start;
    min-height: 80vh;
    height: auto;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-bottom: 1rem;
    padding-top: 1rem;
    margin-bottom: 0;
    
}

/* Desktop: fixed height for snap scrolling */
@media (min-width: 1024px) {
    #whatYouCanBuild {
        height: auto;
        overflow-y: visible !important;
        padding: 1rem 5% 3.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #whatYouCanBuild {
        padding: 0 5% 2rem;
    }
}

#whatYouCanBuild .section-header {
    margin: 0;
    padding-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#whatYouCanBuild .section-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0 0 16px 0;
    color: #1e293b;
}

@media (min-width: 1024px) {
    #whatYouCanBuild .section-header {
        padding-bottom: 2rem;
    }
}

#whatYouCanBuild .section-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    align-items: center;
    min-height: 70vh;
    box-sizing: border-box;
    overflow: visible;
    padding-bottom: 0.5rem;
    
    
}

@media (min-width: 1024px) {
    #whatYouCanBuild .section-content {
        height: auto;
        overflow: visible !important;
        padding: 0.75rem;
    }
}
/*
@media (min-width: 640px) {
    #whatYouCanBuild .section-content {
        padding: 1.5rem; 
    }
}

@media (min-width: 1024px) {
    #whatYouCanBuild .section-content {
        padding: 2rem; 
    }
}
*/

#whatYouCanBuild .what-build-card {
    flex: 1;
    background: #ffffff;
    padding: clamp(0.5rem, 1vh, 1rem);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 1.5rem;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 1px;
}

#whatYouCanBuild .pipeline-card {
    position: relative;
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: clamp(0.75rem, 1vw, 1rem);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

 #whatYouCanBuild .pipeline-card:hover {
     box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
 }

/* Override JavaScript-added min-heights on desktop to prevent scrolling */
@media (min-width: 1024px) {
    #whatYouCanBuild .pipeline-card {
        min-height: 0 !important;
    }
    
    /* Ensure flex-grow children fit within the card */
    #whatYouCanBuild .pipeline-card .flex-grow {
        min-height: 0;
        overflow: hidden;
    }
}

#whatYouCanBuild .pipeline-card,
#whatYouCanBuild .pipeline-card * {
    transition-property: border-color, box-shadow, transform, background, color;
    transition-duration: 0.35s;
    transition-timing-function: ease;
}

#whatYouCanBuild[data-pipeline-stage="input"] .pipeline-card--input,
#whatYouCanBuild[data-pipeline-stage="network"] .pipeline-card--network,
#whatYouCanBuild[data-pipeline-stage="output"] .pipeline-card--output {
    transform: translateY(-6px);
}

#whatYouCanBuild[data-pipeline-stage="input"] .pipeline-card--input {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 25px 65px rgba(37, 99, 235, 0.15);
}

#whatYouCanBuild[data-pipeline-stage="network"] .pipeline-card--network {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 25px 65px rgba(37, 99, 235, 0.15);
}

#whatYouCanBuild[data-pipeline-stage="output"] .pipeline-card--output {
    transform: translateY(-6px);
}

#whatYouCanBuild .placeholder-line {
    height: clamp(0.35rem, 0.5vh, 0.5rem);
    border-radius: 9999px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

#whatYouCanBuild .placeholder-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(226, 232, 240, 0), rgba(99, 102, 241, 0.45), rgba(226, 232, 240, 0));
    animation: placeholder-line 1.6s ease-in-out infinite;
}

#whatYouCanBuild .min-h-screen {
    min-height: auto;
    padding: 0.5rem 1.5rem 2rem;
}
#whatYouCanBuild .what-build-card main {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.5rem, 1vh, 1rem);
    flex: 1;
    min-height: 0;
    overflow: visible;
    padding: clamp(0.25rem, 0.5vh, 0.5rem);
}

@media (min-width: 1024px) {
    #whatYouCanBuild .what-build-card main {
        grid-template-columns: minmax(120px, 0.6fr) minmax(160px, 0.9fr) minmax(160px, 0.9fr) minmax(200px, 1.2fr);
        grid-template-rows: 1fr;
        gap: clamp(0.5rem, 1vw, 1rem);
        overflow: hidden;
    }
}

/* 11-inch laptops (1366px width) - tighter layout */
@media (min-width: 1024px) and (max-width: 1400px) {
    #whatYouCanBuild .what-build-card {
        padding: clamp(0.4rem, 0.8vh, 0.75rem);
    }
    
    #whatYouCanBuild .what-build-card main {
        grid-template-columns: minmax(100px, 0.55fr) minmax(140px, 0.85fr) minmax(140px, 0.85fr) minmax(180px, 1.1fr);
        gap: clamp(0.4rem, 0.8vw, 0.75rem);
    }
}

/* 13-inch laptops (1440-1680px width) - balanced */
@media (min-width: 1400px) and (max-width: 1680px) {
    #whatYouCanBuild .what-build-card {
        padding: clamp(0.6rem, 1vh, 0.9rem);
    }
    
    #whatYouCanBuild .what-build-card main {
        grid-template-columns: minmax(110px, 0.58fr) minmax(150px, 0.88fr) minmax(150px, 0.88fr) minmax(190px, 1.15fr);
        gap: clamp(0.6rem, 1vw, 0.9rem);
    }
}

/* 16-inch laptops (1920px+ width) - more spacious */
@media (min-width: 1680px) {
    #whatYouCanBuild .what-build-card {
        padding: clamp(0.75rem, 1.2vh, 1.25rem);
    }
    
    #whatYouCanBuild .what-build-card main {
        grid-template-columns: minmax(130px, 0.62fr) minmax(170px, 0.92fr) minmax(170px, 0.92fr) minmax(210px, 1.2fr);
        gap: clamp(0.75rem, 1.2vw, 1.25rem);
    }
}

/* Remove fixed min-widths that cause overflow */
@media (min-width: 1024px) {
    #whatYouCanBuild #input-container,
    #whatYouCanBuild #neural-network-container,
    #whatYouCanBuild #output-container {
        min-width: 0;
    }
}


@keyframes progress-animation {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.animate-progress {
    animation: progress-animation 8s linear forwards;
}

@keyframes sweep-mask-wave {
    from {
        transform: translateX(-75px);
    }

    to {
        transform: translateX(400px);
    }
}

@keyframes placeholder-line {
    0% {
        transform: translateX(-120%);
    }

    100% {
        transform: translateX(120%);
    }
}

.wave-mask-rect {
    animation: sweep-mask-wave 3s linear infinite;
}

.typing-active::after,
#whatYouCanBuild .typing-active::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    background: currentColor;
    margin-left: 2px;
    animation: caret-blink 0.9s steps(2, start) infinite;
    vertical-align: bottom;
}

@keyframes caret-blink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

/* #whatYouCanBuild #use-case-tabs {
    Layout is now controlled by HTML grid classes
    Removed flex properties to allow grid layout from HTML
} */

#whatYouCanBuild .use-case-tab {
    position: relative;
    padding: 10px 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    overflow: hidden;
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

#whatYouCanBuild .use-case-tab:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}

#whatYouCanBuild .use-case-tab.active {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    transform: none;
}

#whatYouCanBuild .use-case-tab-icon {
    display: none;
    position: relative;
    z-index: 1;
}

#whatYouCanBuild .use-case-tab-title {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

#whatYouCanBuild .use-case-tab.active .use-case-tab-title {
    color: #ffffff;
}

/* Use Case Tab Fill Animation */
#whatYouCanBuild .use-case-tab-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background-color: rgb(56, 97, 227); */
    background-color: rgb(0, 0, 0);

    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    /* Initially hidden */
    pointer-events: none;
}

#whatYouCanBuild .use-case-tab-fill .use-case-tab-icon {
    display: none;
}

#whatYouCanBuild .use-case-tab-fill .use-case-tab-title {
    color: #ffffff;
    /* Ensure text inside fill is white */
}

#whatYouCanBuild .use-case-tab.active .use-case-tab-fill {
    animation: use-case-fill-animation var(--use-case-loader-duration, 7000ms) linear forwards;
}

@keyframes use-case-fill-animation {
    0% {
        clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0 0 0);
    }
}

/* Use Case Description */
#whatYouCanBuild #use-case-description {
    min-height: clamp(40px, 5vh, 60px);
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

#whatYouCanBuild #use-case-description > div {
    width: 100%;
    background: linear-gradient(to bottom right, #ecfdf5, #f0fdfa);
    border: 2px solid #a7f3d0;
    border-radius: clamp(0.5rem, 0.7vw, 0.75rem);
    padding: clamp(0.4rem, 0.8vh, 0.75rem);
    min-height: clamp(40px, 5vh, 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#whatYouCanBuild #use-case-description.visible > div {
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

#whatYouCanBuild #use-case-description .description-content {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 0.6vw, 0.75rem);
}

#whatYouCanBuild #use-case-description svg {
    width: clamp(0.9rem, 1.2vw, 1.25rem);
    height: clamp(0.9rem, 1.2vw, 1.25rem);
    color: #059669;
    flex-shrink: 0;
}

#whatYouCanBuild #use-case-description p {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s ease;
    color: #047857;
    font-weight: 600;
    line-height: 1.3;
    font-size: clamp(0.7rem, 0.9vw, 0.95rem);
    text-align: center;
}

#whatYouCanBuild #use-case-description.visible p {
    opacity: 1;
    transform: translateY(0);
}

/* Thinking Section */
#whatYouCanBuild .thinking-container {
    background: #dcfce7;
    border: 2px solid #86efac;
    border-radius: clamp(0.5rem, 0.7vw, 0.75rem);
    padding: clamp(0.4rem, 0.8vh, 0.6rem) clamp(0.6rem, 1vw, 0.9rem);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
    color: #475569;
    text-align: left;
    margin-bottom: clamp(0.6rem, 1vh, 1rem);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    min-height: clamp(120px, 18vh, 200px);
    max-height: clamp(150px, 22vh, 250px);
    overflow-y: hidden;
}

/* Only enable scroll on mobile/tablet where content might overflow */
@media (max-width: 1023px) {
    #whatYouCanBuild .thinking-container {
        overflow-y: auto;
    }
}

#whatYouCanBuild .thinking-header {
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    font-size: clamp(0.55rem, 0.75vw, 0.65rem);
    letter-spacing: 0.05em;
    border-bottom: 1px solid #bbf7d0;
    padding-bottom: 0.2rem;
}

#whatYouCanBuild .thinking-content {
    line-height: 1.5;
    min-height: 1rem;
}

/* Output Section Containers (Label & Entities) */
#whatYouCanBuild .output-section-container {
    background: #dbeafe;
    border: 1px solid #bfdbfe;
    border-radius: clamp(0.5rem, 0.7vw, 0.75rem);
    padding: clamp(0.4rem, 0.8vh, 0.6rem) clamp(0.6rem, 1vw, 0.9rem);
    text-align: left;
    margin-bottom: clamp(0.6rem, 1vh, 1rem);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    min-height: clamp(28px, 3.5vh, 35px);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.875rem;
}

#whatYouCanBuild .output-section-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: clamp(0.4rem, 0.7vh, 0.6rem);
    font-weight: 600;
    color: #2563eb;
    text-transform: uppercase;
    font-size: clamp(0.55rem, 0.75vw, 0.65rem);
    letter-spacing: 0.05em;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.2rem;
}

/* Output Section Headers */
#whatYouCanBuild .output-label-header {
    font-size: clamp(0.6rem, 0.8vw, 0.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: clamp(0.4rem, 0.7vh, 0.6rem);
    text-align: left;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 0.2rem;
    width: 100%;
}

/* --- Grid Layout Styles --- */

/* Use Case Tabs Column */
#whatYouCanBuild .use-case-tabs-column {
    display: flex;
    align-items: center;
    height: 100%;
}

@media (min-width: 1024px) {
    #whatYouCanBuild .use-case-tabs-column {
        grid-column: 1;
        grid-row: 1;
    }
}

/* use-case-tabs grid */
#whatYouCanBuild #use-case-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(0.4rem, 0.8vh, 0.6rem);
    padding-left: 0.5rem;
}

@media (min-width: 1024px) {
    #whatYouCanBuild #use-case-tabs {
        grid-template-columns: 1fr;
        gap: clamp(0.4rem, 0.7vh, 0.6rem);
    }
}

/* Input container */
#whatYouCanBuild #input-container {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    #whatYouCanBuild #input-container {
        grid-column: 2;
        grid-row: 1;
    }
}

/* Neural Network Column */
#whatYouCanBuild .neural-network-column {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 0.8vh, 0.75rem);
    min-height: 0;
    height: 100%;
}

@media (min-width: 1024px) {
    #whatYouCanBuild .neural-network-column {
        grid-column: 3;
        grid-row: 1;
    }
}

/* Neural network container - responsive */
#whatYouCanBuild #neural-network-container {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide neural network image on mobile screens */
@media (max-width: 1023px) {
    #whatYouCanBuild #neural-network-container {
        display: none;
    }
}

/* Output container */
#whatYouCanBuild #output-container {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    #whatYouCanBuild #output-container {
        grid-column: 4;
        grid-row: 1;
    }
}

/* footer */
#whatYouCanBuild .what-build-card footer {
    margin-top: clamp(0.5rem, 1vh, 1rem);
    flex-shrink: 0;
    padding-top: clamp(0.4rem, 0.8vh, 0.75rem);
}

/* Progress bar container */
#whatYouCanBuild #progress-bar-container {
    height: clamp(3px, 0.4vh, 5px);
}

/* ==========================================================================
   #MOBILE RESPONSIVE FONT SIZES
   ========================================================================== */

/* Medium mobile and tablets (640px and below) */
@media (max-width: 640px) {
    /* Allow section to grow with content */
    #whatYouCanBuild {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 2rem !important;
    }

    /* Section title - mobile size */
    #whatYouCanBuild .section-title {
        font-size: 1.75rem !important;
    }

    #whatYouCanBuild .section-content {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
    }

    #whatYouCanBuild .what-build-card {
        height: auto !important;
    }

    /* Remove fixed heights - allow content to stack vertically */
    #whatYouCanBuild .what-build-card main {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        overflow: visible !important;
        height: auto !important;
    }

    /* Remove min-height from pipeline cards */
    #whatYouCanBuild .pipeline-card {
        min-height: auto !important;
        height: auto !important;
    }

    /* Use case tabs column - don't take full height */
    #whatYouCanBuild .use-case-tabs-column {
        height: auto !important;
    }

    /* Section title */
    #whatYouCanBuild .section-title {
        font-size: 1.75rem !important;
    }

    /* Use case tab titles */
    #whatYouCanBuild .use-case-tab-title {
        font-size: 0.7rem !important;
    }

    /* Use case tabs - ensure proper spacing */
    #whatYouCanBuild #use-case-tabs {
        margin-bottom: 1rem !important;
    }

    /* Pipeline card titles (Input/Output) */
    #whatYouCanBuild .pipeline-card > h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Base font size for all pipeline card content */
    #whatYouCanBuild .pipeline-card {
        font-size: 0.6rem !important;
    }

    /* All text inside pipeline cards */
    #whatYouCanBuild .pipeline-card *:not(h3) {
        font-size: 0.6rem !important;
        line-height: 1.35 !important;
    }

    /* Override specific Tailwind classes - keep them small */
    #whatYouCanBuild .pipeline-card .text-sm,
    #whatYouCanBuild .pipeline-card p {
        font-size: 0.6rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-lg {
        font-size: 0.7rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-xl {
        font-size: 0.75rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-xs {
        font-size: 0.55rem !important;
    }

    #whatYouCanBuild .pipeline-card h3 {
        font-size: 0.95rem !important;
    }

    /* Email subject and from */
    #whatYouCanBuild .pipeline-card .font-bold {
        font-size: 0.6rem !important;
    }

    /* Thinking and output sections */
    #whatYouCanBuild .thinking-container {
        font-size: 0.58rem !important;
        padding: 0.5rem !important;
    }

    #whatYouCanBuild .thinking-header {
        font-size: 0.5rem !important;
    }

    #whatYouCanBuild .output-section-container {
        font-size: 0.6rem !important;
        padding: 0.5rem !important;
    }

    /* Reduce card padding */
    #whatYouCanBuild .pipeline-card {
        padding: 0.7rem !important;
    }

    #whatYouCanBuild .pipeline-card .bg-blue-100,
    #whatYouCanBuild .pipeline-card .bg-gray-100,
    #whatYouCanBuild .pipeline-card .bg-gray-50 {
        padding: 0.6rem !important;
    }

    /* Entity cards */
    #whatYouCanBuild .entity-card {
        padding: 0.5rem !important;
    }

    /* Ensure all divs inside cards respect the sizing */
    #whatYouCanBuild .pipeline-card div {
        font-size: inherit !important;
    }

    /* Specific override for span elements */
    #whatYouCanBuild .pipeline-card span {
        font-size: inherit !important;
    }
}

/* Tablet and below (768px) */
@media (max-width: 768px) {
    /* Section title */
    #whatYouCanBuild .section-title {
        font-size: 1.75rem;
    }

    /* Use case tab titles */
    #whatYouCanBuild .use-case-tab-title {
        font-size: 0.75rem;
    }

    /* Description text */
    #whatYouCanBuild #use-case-description p {
        font-size: 0.75rem;
    }

    #whatYouCanBuild #use-case-description svg {
        width: 1rem;
        height: 1rem;
    }

    /* Pipeline card titles (Input/Output) */
    #whatYouCanBuild .pipeline-card h3 {
        font-size: 1.1rem !important;
    }

    /* Input/Output card content */
    #whatYouCanBuild .pipeline-card p,
    #whatYouCanBuild .pipeline-card .text-sm {
        font-size: 0.75rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-lg {
        font-size: 0.9rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-xl {
        font-size: 1rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-xs {
        font-size: 0.65rem !important;
    }

    /* Entity cards and labels */
    #whatYouCanBuild .entity-card .text-sm {
        font-size: 0.7rem !important;
    }

    /* Thinking section */
    #whatYouCanBuild .thinking-container {
        font-size: 0.65rem;
        min-height: 100px;
        max-height: 180px;
    }

    #whatYouCanBuild .thinking-header {
        font-size: 0.6rem;
    }

    /* Output sections */
    #whatYouCanBuild .output-section-container {
        font-size: 0.7rem;
        min-height: 24px;
    }

    #whatYouCanBuild .output-section-header {
        font-size: 0.6rem;
    }

    #whatYouCanBuild .output-label-header {
        font-size: 0.65rem;
    }

    /* Reduce padding on pipeline cards */
    #whatYouCanBuild .pipeline-card {
        padding: 0.75rem !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Section title */
    #whatYouCanBuild .section-title {
        font-size: 1.75rem;
    }

    /* Use case tab titles */
    #whatYouCanBuild .use-case-tab-title {
        font-size: 0.65rem;
    }

    #whatYouCanBuild .use-case-tab {
        padding: clamp(0.3rem, 0.6vh, 0.6rem) clamp(0.5rem, 0.8vw, 1rem);
    }

    /* Description text */
    #whatYouCanBuild #use-case-description p {
        font-size: 0.65rem;
    }

    #whatYouCanBuild #use-case-description svg {
        width: 0.85rem;
        height: 0.85rem;
    }

    #whatYouCanBuild #use-case-description {
        min-height: 35px;
    }

    #whatYouCanBuild #use-case-description > div {
        min-height: 35px;
        padding: clamp(0.3rem, 0.6vh, 0.6rem);
    }

    /* Pipeline card titles (Input/Output) - smaller for mobile */
    #whatYouCanBuild .pipeline-card h3 {
        font-size: 0.95rem !important;
        margin-bottom: 0.5rem !important;
    }

    /* Input/Output card content - significantly reduced */
    #whatYouCanBuild .pipeline-card p,
    #whatYouCanBuild .pipeline-card .text-sm {
        font-size: 0.6rem !important;
        line-height: 1.4 !important;
    }

    #whatYouCanBuild .pipeline-card .text-lg {
        font-size: 0.75rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-xl {
        font-size: 0.85rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-xs {
        font-size: 0.55rem !important;
    }

    /* Entity cards and labels - smaller */
    #whatYouCanBuild .entity-card {
        padding: 0.5rem !important;
    }

    #whatYouCanBuild .entity-card .text-sm {
        font-size: 0.6rem !important;
    }

    #whatYouCanBuild .entity-card .font-bold {
        font-size: 0.6rem !important;
    }

    /* Email header styling */
    #whatYouCanBuild .pipeline-card .font-bold.text-gray-800 {
        font-size: 0.65rem !important;
    }

    #whatYouCanBuild .pipeline-card .text-gray-600.text-xs {
        font-size: 0.55rem !important;
    }

    /* Thinking section */
    #whatYouCanBuild .thinking-container {
        font-size: 0.5rem !important;
        padding: 0.4rem 0.6rem !important;
        min-height: 70px;
        max-height: 140px;
        line-height: 1.4 !important;
    }

    #whatYouCanBuild .thinking-header {
        font-size: 0.45rem !important;
        margin-bottom: 0.3rem !important;
    }

    #whatYouCanBuild .thinking-content {
        font-size: 0.5rem !important;
    }

    /* Output sections */
    #whatYouCanBuild .output-section-container {
        font-size: 0.55rem !important;
        padding: 0.4rem 0.6rem !important;
        min-height: 18px;
        margin-bottom: 0.5rem !important;
    }

    #whatYouCanBuild .output-section-header {
        font-size: 0.45rem !important;
        gap: 0.25rem;
        margin-bottom: 0.4rem !important;
    }

    #whatYouCanBuild .output-label-header {
        font-size: 0.5rem !important;
        margin-bottom: 0.3rem !important;
    }

    /* Reduce card padding significantly */
    #whatYouCanBuild .what-build-card {
        padding: 0.4rem !important;
    }

    #whatYouCanBuild .what-build-card main {
        gap: 0.4rem !important;
        padding: 0.3rem !important;
    }

    /* Pipeline cards - reduce padding */
    #whatYouCanBuild .pipeline-card {
        padding: 0.6rem !important;
        min-height: 200px !important;
    }

    /* Reduce spacing in content areas */
    #whatYouCanBuild .pipeline-card .space-y-3 > * + * {
        margin-top: 0.5rem !important;
    }

    #whatYouCanBuild .pipeline-card .bg-blue-100,
    #whatYouCanBuild .pipeline-card .bg-gray-50 {
        padding: 0.6rem !important;
    }

    /* Use case tabs grid spacing */
    #whatYouCanBuild #use-case-tabs {
        gap: clamp(0.3rem, 0.6vh, 0.5rem);
    }

    /* Neural network column spacing */
    #whatYouCanBuild .neural-network-column {
        gap: clamp(0.3rem, 0.6vh, 0.6rem);
    }
}