/* Highlights carousel */
.highlights-section {
    background: #f8fafc;
    scroll-snap-align: start;
    min-height: auto;
    height: auto;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding-bottom: 2rem;
    padding-top: 1rem;
    margin-bottom: 0;
}

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

@media (min-width: 768px) and (max-width: 1023px) {
    .highlights-section {
        padding: 0 5% 2rem;
    }
    
    .highlights-section .reasoning-cell {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
        line-height: 1.4 !important;
    }
    
    .highlights-section .typing-text.js-no-border {
        font-size: 1.4rem !important;
    }
}
.highlights-section .section-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    align-items: center;
    min-height: auto;
    box-sizing: border-box;
    overflow: visible;
    padding-bottom: 2rem;
}
.highlights-surface {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    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;
    height: 100%;
    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;
    min-height: 70vh;
    margin-bottom: 1px;
}

@media (min-width: 768px) {
    .highlights-surface {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .highlights-surface {
        width: 100%;
    }
}

.highlights-section * {
    box-sizing: border-box;
}

/* Highlights Grid - Side by Side Layout */
.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: start;
    flex: none;
    min-height: 0;
    overflow: visible;
}

@media (min-width: 1024px) {
    .highlights-grid {
        grid-template-columns: minmax(180px, 0.75fr) minmax(400px, 3fr);
        align-items: start;
        gap: clamp(1rem, 1.5vw, 1.5rem);
    }
}

/* 11-inch laptops */
@media (min-width: 1024px) and (max-width: 1400px) {
    .highlights-grid {
        grid-template-columns: minmax(160px, 0.7fr) minmax(350px, 2.8fr);
        gap: clamp(0.75rem, 1.2vw, 1.25rem);
    }
}

/* 13-inch laptops */
@media (min-width: 1400px) and (max-width: 1680px) {
    .highlights-grid {
        grid-template-columns: minmax(170px, 0.72fr) minmax(380px, 2.9fr);
        gap: clamp(0.9rem, 1.4vw, 1.4rem);
    }
}

/* 16-inch laptops */
@media (min-width: 1680px) {
    .highlights-grid {
        grid-template-columns: minmax(190px, 0.78fr) minmax(420px, 3fr);
        gap: clamp(1.1rem, 1.6vw, 1.6rem);
    }
}

/* Carousel Card Wrapper */
.carousel-card {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: clamp(0.75rem, 1vw, 1rem);
    padding: clamp(0.75rem, 1.5vw, 1.5rem);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
    overflow: visible;
    box-sizing: border-box;
    height: auto;
    display: flex;
    flex-direction: column;
}

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

.carousel-container {
    width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Desktop: hide overflow */
@media (min-width: 1024px) {
    .carousel-container {
        overflow-y: hidden;
    }
}

/* Navigation Tiles */
.navigation-tiles {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: clamp(0.4rem, 0.8vh, 0.6rem);
    margin-bottom: 0;
    height: 100%;
    padding-left: 0.5rem;
}

@media (min-width: 1024px) {
    .navigation-tiles {
        flex-direction: column;
        gap: clamp(0.5rem, 0.8vh, 0.75rem);
        align-items: center;
        justify-content: center;
    }
}

.nav-tile {
    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);
}

@media (min-width: 1024px) {
    .nav-tile {
        width: 100%;
    }
}

.nav-tile:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
    transform: translateY(-1px);
}

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

.nav-tile-label {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    white-space: nowrap;
    position: relative;
    z-index: 1;
    padding: 0;
}

.nav-tile.active .nav-tile-label {
    color: #ffffff;
}

.nav-tile-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;
    z-index: 2;
    clip-path: inset(0 100% 0 0);
    /* Initially hidden */
    pointer-events: none;
}

.nav-tile-fill .nav-tile-label {
    color: #ffffff;
    /* Ensure text inside fill is white */
}

.nav-tile.active .nav-tile-fill {
    animation: highlight-fill-animation var(--nav-tile-duration, 7000ms) linear forwards;
}

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

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

.highlights-section .section-header {
    text-align: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 1024px) {
    .highlights-section .section-header {
        height: 10vh;
    }
}

.highlights-section .section-content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    align-items: center;
    min-height: auto;
    box-sizing: border-box;
    overflow: visible;
    padding-bottom: 2rem;
}

@media (min-width: 1024px) {
    .highlights-section .section-content {
        height: auto;
        overflow: visible !important;
        padding: 0.75rem;
    }
}

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

@media (max-width: 768px) {
    .highlights-section .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 640px) {
    .highlights-section {
        padding: 0.5rem 0 2rem !important;
    }

    .highlights-section .section-title {
        font-size: 3rem;
    }

    .highlights-surface {
        padding: 0.5rem !important;
    }
}

@media (max-width: 480px) {
    .highlights-section .section-title {
        font-size: 3rem;
    }
}

.highlights-section .carousel-container {
    position: relative;
    width: 100%;
    min-height: 0;
    height: auto;
    transition: height 0.4s ease;
    overflow-x: hidden;
    overflow-y: hidden;
    border-radius: 24px;
    background: transparent;
}

/* Desktop: hide overflow */
@media (min-width: 1024px) {
    .highlights-section .carousel-container {
        overflow-y: hidden;
    }
}

.highlights-section .carousel-track {
    display: flex;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.highlights-section .slide {
    min-width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(0.5rem, 1vh, 1rem) clamp(0.5rem, 1vw, 1rem);
    position: relative;
    overflow-y: hidden;
    color: #1d1d1f;
    background: transparent;
}

/* Desktop: hide overflow */
@media (min-width: 1024px) {
    .highlights-section .slide {
        overflow-y: hidden;
    }
}

.highlights-section .slide-content {
    max-width: 100%;
    width: 100%;
    height: auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease;
    display: flex;
    flex-direction: column;
}

.highlights-section .slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

/* Icon styles commented out - icons removed from slides 
.highlights-section .slide-icon {
    font-size: 80px;
    margin-bottom: 30px;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}
*/


.highlights-section .slide-title {
    font-size: clamp(28px, 4.2vh, 40px);
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: inherit;
}

.highlights-section .slide-description-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
}

.highlights-section .slide-description {
    font-size: clamp(0.75rem, 1.2vh, 0.9rem);
    color: #047857;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: clamp(0.25rem, 0.5vh, 0.4rem);
    flex-shrink: 0;
    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);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    align-self: center !important;
    width: fit-content !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    flex: 0 0 auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

@media (min-width: 1024px) {
    .highlights-section .slide-description {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
}

.highlights-section .progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #0071e3;
    width: 0;
    transition: width 0.1s linear;
}

/* Spreadsheet */
.highlights-section .spreadsheet-container {
    margin-top: clamp(0.1rem, 0.2vh, 0.2rem);
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: clamp(0.5rem, 0.8vw, 0.75rem);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
}

/* Desktop: constrain spreadsheet height to fit viewport */
@media (min-width: 1024px) {
    .highlights-section .spreadsheet-container {
        max-height: none;
        overflow-y: auto;
    }
}

.highlights-section .spreadsheet-header {
    background: rgba(245, 245, 250, 0.95);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.highlights-section .sheet-tab {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 113, 227, 0.12);
    border-radius: 6px;
    font-size: 14px;
    color: #0071e3;
    font-weight: 500;
}

.highlights-section .spreadsheet-grid {
    display: flex;
    flex-direction: column;
}

.highlights-section .spreadsheet-row {
    display: grid;
    grid-template-columns: 60px 1fr 80px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    min-height: 48px;
}

@media (min-width: 768px) {
    .highlights-section .spreadsheet-row {
        grid-template-columns: 100px 1fr 150px;
    }
}

.highlights-section .spreadsheet-row.header-row {
    background: rgba(245, 245, 250, 0.8);
}

.highlights-section .spreadsheet-row.header-row .cell {
    font-weight: 600;
    font-size: 14px;
    color: #6e6e73;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.highlights-section .cell {
    padding: clamp(0.5rem, 1vh, 0.75rem);
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    font-size: clamp(0.75rem, 1.2vh, 0.9rem);
    color: inherit;
}

.highlights-section .cell:last-child {
    border-right: none;
}

.highlights-section .image-cell {
    justify-content: center;
    background: rgba(245, 245, 250, 0.6);
}

.highlights-section .satellite-image,
.highlights-section .fashion-bag {
    font-size: 48px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.highlights-section .reasoning-cell {
    padding: clamp(0.5rem, 1vh, 0.75rem);
    line-height: 1.4;
    color: #1d1d1f;
    font-size: 1.4rem;
}

.highlights-section .slide-content.dataset-slide {
    max-width: 100%;
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: clamp(1rem, 2vh, 1.5rem);
}

@media (min-width: 768px) {
    .highlights-section .slide-content.dataset-slide {
        gap: clamp(1.25rem, 2.5vh, 2rem);
    }
}

@media (min-width: 1024px) {
    .highlights-section .slide-content.dataset-slide {
        gap: clamp(1.5rem, 3vh, 2.5rem);
    }
}

.highlights-section .slide-content.dataset-slide .slide-description {
    margin-bottom: 0;
    flex-shrink: 0;
}

.highlights-section .slide-content.dataset-slide .spreadsheet-container {
    max-width: 100%;
    margin-top: 0;
    flex: 0 1 auto;
    min-height: 0;
}

.highlights-section .slide-content.dataset-slide .spreadsheet-row {
    grid-template-columns: 80px 1fr 80px;
    min-height: auto;
}

@media (min-width: 768px) {
    .highlights-section .slide-content.dataset-slide .spreadsheet-row {
        grid-template-columns: 100px 1fr 100px;
        min-height: auto;
    }
    
    .highlights-section .slide-content.dataset-slide .cell {
        font-size: 15px;
        padding: 14px;
    }
    
    .highlights-section .slide-content.dataset-slide .reasoning-cell {
        font-size: 13px;
        line-height: 1.6;
        padding: 14px;
    }
    
    .highlights-section .slide-content.dataset-slide .image-cell {
        padding: 12px;
    }
    
    .highlights-section .slide-content.dataset-slide .image-cell img {
        max-width: 80px;
    }
}

@media (min-width: 1024px) {
    .highlights-section .slide-content.dataset-slide .spreadsheet-row {
        grid-template-columns: 100px 1fr 100px;
        min-height: auto;
    }
}

.highlights-section .slide-content.dataset-slide .spreadsheet-row.header-row {
    min-height: 36px;
}

.highlights-section .slide-content.dataset-slide .spreadsheet-row.header-row .cell {
    font-size: 15px;
    letter-spacing: 0.3px;
    padding: 8px 16px;
    font-weight: 700;
    color: #1d1d1f;
    justify-content: center;
    text-align: center;
}

@media (min-width: 1024px) {
    .highlights-section .slide-content.dataset-slide .spreadsheet-row.header-row {
        min-height: 30px;
    }
    
    .highlights-section .slide-content.dataset-slide .spreadsheet-row.header-row .cell {
        font-size: 12px;
        padding: 6px 12px;
    }
}

.highlights-section .slide-content.dataset-slide .cell {
    font-size: 14px;
    padding: 6px 12px;
}

.highlights-section .slide-content.dataset-slide .reasoning-cell {
    font-size: 12px;
    line-height: 1.4;
    padding: 6px 12px;
}

.highlights-section .slide-content.dataset-slide .image-cell {
    padding: 6px 10px;
}

.highlights-section .slide-content.dataset-slide .image-cell img {
    width: 100%;
    max-width: 60px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0;
}

/* Desktop: scale down content to fit viewport */
@media (min-width: 1024px) {
    .highlights-section .slide-content.dataset-slide .cell {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .highlights-section .slide-content.dataset-slide .reasoning-cell {
        font-size: 11px;
        line-height: 1.4;
        padding: 6px 12px;
    }
    
    .highlights-section .slide-content.dataset-slide .image-cell {
        padding: 6px 10px;
    }
    
    .highlights-section .slide-content.dataset-slide .image-cell img {
        max-width: 80px;
        border-radius: 6px;
        display: block;
        margin: 0;
    }
}

/* Larger desktops: slightly bigger */
@media (min-width: 1400px) {
    .highlights-section .slide-content.dataset-slide .cell {
        font-size: 14px;
        padding: 10px 14px;
    }
    
    .highlights-section .slide-content.dataset-slide .reasoning-cell {
        font-size: 12px;
        line-height: 1.6;
        padding: 10px 14px;
    }
    
    .highlights-section .slide-content.dataset-slide .image-cell img {
        max-width: 120px;
    }
}

.highlights-section .typing-text {
    display: inline;
    border-right: 2px solid #0071e3;
    animation: blink 0.7s step-end infinite;
    background: transparent !important;
    /* Force fix for regression */
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.highlights-section .label-cell {
    justify-content: center;
    padding: 6px 12px;
}

.highlights-section .label-badge {
    padding: 6px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 11px;
    opacity: 0;
    transform: scale(0.8);
    transition: 0.4s ease;
}

@media (min-width: 768px) {
    .highlights-section .label-badge {
        padding: 8px 16px;
        border-radius: 18px;
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .highlights-section .label-badge {
        padding: 6px 14px;
        font-size: 11px;
    }
}

.highlights-section .label-badge.cricket {
    background: linear-gradient(135deg, rgba(52, 199, 89, 0.25), rgba(48, 209, 88, 0.25));
    color: #1d8348;
    border: 1px solid rgba(52, 199, 89, 0.4);
}

.highlights-section .label-badge.fashion {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.25), rgba(255, 140, 0, 0.25));
    color: #d35400;
    border: 1px solid rgba(255, 149, 0, 0.4);
}

.highlights-section .data-row {
    opacity: 0;
    transform: translateX(-30px);
}

.highlights-section .data-row.show {
    opacity: 1;
    transform: translateX(0);
    transition: 0.6s ease;
}

.highlights-section .data-row.typing-complete .label-badge {
    opacity: 1;
    transform: scale(1);
}

/* Upload */
.highlights-section .upload-container {
    margin-top: 0;
    width: 60%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0);
    opacity: 1;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .highlights-section .upload-container {
        margin-top: 0;
        max-width: 100%;
    }
}

.highlights-section .upload-zone {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 8px;
    position: relative;
}

.highlights-section .upload-area {
    border: 2px dashed rgba(191, 90, 242, 0.4);
    border-radius: 10px;
    padding: 16px 14px;
    width: 100%;
    text-align: center;
    background: rgba(191, 90, 242, 0.06);
    transition: 0.4s ease;
    cursor: pointer;
}

@media (min-width: 768px) {
    .highlights-section .upload-zone {
        padding: 10px;
        border-radius: 14px;
    }
    
    .highlights-section .upload-area {
        padding: 18px 16px;
        border-radius: 12px;
    }
    
    .highlights-section .cloud-svg {
        width: 50px;
        height: 50px;
    }
    
    .highlights-section .upload-label {
        font-size: 13px;
    }
    
    .highlights-section .cloud-upload-icon {
        margin-bottom: 6px;
    }
}

@media (min-width: 1024px) {
    .highlights-section .upload-zone {
        padding: 10px;
        border-radius: 12px;
    }
    
    .highlights-section .upload-area {
        padding: 14px 16px;
        border-width: 2px;
    }
    
    .highlights-section .cloud-svg {
        width: 50px;
        height: 50px;
    }
    
    .highlights-section .cloud-upload-icon {
        margin-bottom: 6px;
    }
}

@media (max-width: 480px) {
    .highlights-section .upload-container {
        width: 100%;
    }

    .highlights-section .upload-area,
    .highlights-section .upload-success-msg {
        width: 100%;
    }
}

.highlights-section .upload-area.receiving {
    border-color: rgba(191, 90, 242, 0.9);
    background: rgba(191, 90, 242, 0.12);
    box-shadow: 0 10px 32px rgba(191, 90, 242, 0.25);
    animation: drop-glow 1.2s ease-in-out;
}

@keyframes drop-glow {
    0% {
        box-shadow: 0 6px 24px rgba(191, 90, 242, 0.1);
    }

    50% {
        box-shadow: 0 12px 40px rgba(191, 90, 242, 0.35);
    }

    100% {
        box-shadow: 0 6px 24px rgba(191, 90, 242, 0.15);
    }
}

.highlights-section .upload-area:hover {
    border-color: rgba(191, 90, 242, 0.6);
    background: rgba(191, 90, 242, 0.08);
}

.highlights-section .cloud-upload-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 8px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.highlights-section .cloud-upload-icon.receiving {
    animation: cloud-pulse 1.0s ease-in-out;
}

@keyframes cloud-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(191, 90, 242, 0.3));
    }

    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 8px 30px rgba(191, 90, 242, 0.6));
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 4px 20px rgba(191, 90, 242, 0.3));
    }
}

.highlights-section .cloud-svg {
    display: block;
    filter: drop-shadow(0 4px 20px rgba(191, 90, 242, 0.3));
    width: 50px;
    height: 50px;
}

@media (min-width: 1024px) {
    .highlights-section .cloud-svg {
        width: 60px;
        height: 60px;
    }
}

.highlights-section .cloud-svg path {
    fill: rgba(168, 85, 247, 0.25);
    stroke: rgba(168, 85, 247, 0.5);
}

.highlights-section .arrow-up {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce-up 1.5s ease-in-out infinite;
}

.highlights-section .arrow-up svg {
    width: 24px;
    height: 24px;
}

@media (min-width: 1024px) {
    .highlights-section .arrow-up {
        bottom: 15px;
    }
    
    .highlights-section .arrow-up svg {
        width: 40px;
        height: 40px;
    }
}

@keyframes bounce-up {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

.highlights-section .upload-label {
    font-size: 13px;
    color: #a855f7;
    font-weight: 500;
}

@media (min-width: 1024px) {
    .highlights-section .upload-label {
        font-size: 12px;
    }
}

.highlights-section .files-uploading {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
}

.highlights-section .files-uploading.active {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.highlights-section .uploading-file {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateX(-30px);
}

.highlights-section .file-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.highlights-section .file-emoji {
    font-size: 20px;
}

.highlights-section .file-title {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    flex: 1;
}

.highlights-section .file-status {
    font-size: 12px;
    color: #94a3b8;
}

.highlights-section .file-progress-bar {
    height: 4px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.highlights-section .file-progress-fill {
    height: 100%;
    background: #a855f7;
    width: 0;
    transition: width 0.1s linear;
}

.highlights-section .uploading-file.show {
    opacity: 1;
    transform: translateX(0);
    transition: 0.4s ease;
}

.highlights-section .uploading-file.uploading .file-progress-fill {
    width: 100%;
    transition: width 0.4s ease-in-out;
}

.highlights-section .file-complete-check {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: #16a34a;
    font-weight: 600;
    text-align: right;
}

.highlights-section .uploading-file.completed .file-complete-check {
    display: block;
    animation: fade-in 0.3s ease;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.highlights-section .upload-success-msg {
    margin-top: 12px;
    background: rgba(22, 163, 74, 0.15);
    border: 2px solid rgba(22, 163, 74, 0.4);
    border-radius: 10px;
    padding: 12px 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #16a34a;
    font-weight: 700;
    font-size: 13px;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex: 0 1 auto;
    min-height: 0;
}

.highlights-section .upload-success-msg.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (min-width: 1024px) {
    .highlights-section .upload-success-msg {
        margin-top: 12px;
        padding: 16px 20px;
        font-size: 16px;
        gap: 12px;
        border-radius: 14px;
    }
}

.highlights-section .spreadsheet-container.shrink-to-file {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border-radius: 18px;
    overflow: hidden;
}

.highlights-section .flying-folder {
    position: absolute;
    width: 88px;
    height: 72px;
    pointer-events: none;
    filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.18));
    will-change: transform, opacity, top, left;
    z-index: 15;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
}

.highlights-section .flying-folder svg {
    display: block;
    width: 88px;
    height: 72px;
}

.highlights-section .success-checkmark {
    font-size: 24px;
}

/* Dataset Card Upload Animation */
.highlights-section .dataset-card-upload {
    margin-top: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 2px dashed rgba(168, 85, 247, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(-60px) scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
}

.highlights-section .dataset-card-upload.dropping {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.highlights-section .dataset-card-icon {
    font-size: 48px;
    margin-bottom: 12px;
    animation: bounce-drop 0.6s ease-out;
}

@keyframes bounce-drop {
    0% {
        transform: translateY(-30px) scale(0.8);
        opacity: 0;
    }

    50% {
        transform: translateY(5px) scale(1.05);
    }

    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.highlights-section .dataset-card-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.highlights-section .dataset-upload-progress {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlights-section .dataset-upload-progress.active {
    opacity: 1;
}

.highlights-section .dataset-progress-bar {
    height: 6px;
    background: rgba(168, 85, 247, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.highlights-section .dataset-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #bf5af2);
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.4);
}

/* Model Training Card */
.highlights-section .model-train-card {
    margin-top: clamp(0.25rem, 0.5vh, 0.5rem);
    background: rgba(255, 255, 255, 0.8);
    border-radius: clamp(0.75rem, 1.2vw, 1.25rem);
    padding: clamp(0.75rem, 1.2vw, 1rem);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

.highlights-section .model-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 1.5vw, 1rem);
    flex: 0 1 auto;
    min-height: 0;
}

@media (min-width: 768px) {
    .highlights-section .model-grid {
        grid-template-columns: 1fr 1fr;
        gap: clamp(1rem, 2vw, 1.5rem);
    }
}

.highlights-section .model-card-section h4 {
    font-size: clamp(0.7rem, 1.1vh, 0.85rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    font-weight: 600;
}

.highlights-section .select-wrap {
    position: relative;
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.highlights-section .model-select {
    width: 100%;
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.75rem, 1.2vw, 1rem);
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: clamp(0.8rem, 1.2vh, 0.95rem);
    appearance: none;
    cursor: pointer;
    transition: 0.2s ease;
}

.highlights-section .model-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.highlights-section .select-options-preview {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-top: 8px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.highlights-section .select-options-preview.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.highlights-section .option-item {
    padding: 10px 16px;
    font-size: 14px;
    color: #475569;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: 0.2s;
}

.highlights-section .option-item:hover,
.highlights-section .option-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.highlights-section .option-hint {
    font-size: 12px;
    opacity: 0.7;
}

.highlights-section .slider-row {
    margin-bottom: 20px;
}

.highlights-section .slider-row label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
    margin-bottom: 10px;
}

.highlights-section .slider-row .numbers {
    font-family: monospace;
    color: #2563eb;
}

.highlights-section input[type=range] {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    appearance: none;
    outline: none;
}

.highlights-section input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    transition: 0.2s;
}

.highlights-section input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.highlights-section .estimates {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.highlights-section .pill {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.highlights-section .pill .value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    font-family: monospace;
}

.highlights-section .start-btn {
    width: 100%;
    padding: 14px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.highlights-section .start-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.highlights-section .train-toast {
    margin-top: 16px;
    font-size: 13px;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
    text-align: center;
}

.highlights-section .train-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.pulse {
    animation: pulse-anim 0.4s ease-out;
}

@keyframes pulse-anim {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Results Slide */
.highlights-section .single-results {
    margin-top: clamp(0.25rem, 0.5vh, 0.5rem);
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.highlights-section .meta-line {
    display: flex;
    justify-content: center;
    gap: clamp(0.4rem, 0.8vw, 0.6rem);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.highlights-section .badge {
    background: #f1f5f9;
    padding: clamp(0.25rem, 0.5vh, 0.4rem) clamp(0.5rem, 1vw, 0.75rem);
    border-radius: 20px;
    font-size: clamp(0.7rem, 1.1vh, 0.8rem);
    color: #475569;
    border: 1px solid #e2e8f0;
}

.highlights-section .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: clamp(0.5rem, 1vw, 0.75rem);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    flex-shrink: 0;
}

.highlights-section .kpi {
    background: white;
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    padding: clamp(0.5rem, 1vh, 0.75rem);
    text-align: center;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.highlights-section .kpi .label {
    font-size: clamp(0.65rem, 1vh, 0.8rem);
    color: #64748b;
    margin-bottom: clamp(0.25rem, 0.5vh, 0.4rem);
}

.highlights-section .kpi .value {
    font-size: clamp(1.2rem, 2vh, 1.5rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: clamp(0.4rem, 0.8vh, 0.6rem);
}

.highlights-section .kpi .bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.highlights-section .kpi .fill {
    height: 100%;
    background: #3b82f6;
    width: 0;
    transition: width 1s ease-out;
}

.highlights-section .spark-wrap {
    background: white;
    border-radius: clamp(0.5rem, 1vw, 0.75rem);
    padding: clamp(0.75rem, 1.5vh, 1rem);
    margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.highlights-section .spark-hdr {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}

.highlights-section .legend {
    display: flex;
    gap: 16px;
}

.highlights-section .t {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.highlights-section .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.highlights-section .train-dot {
    background: #3b82f6;
}

.highlights-section .val-dot {
    background: #f43f5e;
}

.highlights-section .sparkline {
    width: 100%;
    height: 120px;
    overflow: visible;
}

.highlights-section .sparkline path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
}

.highlights-section .sparkline .train {
    stroke: #3b82f6;
}

.highlights-section .sparkline .val {
    stroke: #f43f5e;
}

.highlights-section .cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.5s ease;
}

.highlights-section .cta-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.highlights-section .cta-btn.outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #475569;
}

.highlights-section .cta-btn.outline:hover {
    background: #f8fafc;
}

.highlights-section .cta-btn.primary {
    background: #3b82f6;
    border: none;
    color: white;
}

.highlights-section .cta-btn.primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Playground Slide */
.highlights-section .playground {
    margin-top: clamp(0.25rem, 0.5vh, 0.5rem);
    width: 100%;
    height: 100%;
    background: white;
    border-radius: clamp(0.75rem, 1.2vw, 1.25rem);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-height: 0;
}

.highlights-section .toolbar {
    padding: clamp(0.5rem, 1vh, 0.75rem) clamp(0.75rem, 1.5vw, 1rem);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    flex-shrink: 0;
}

.highlights-section .toolbar .col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.highlights-section .toolbar .label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.highlights-section .toolbar .sel {
    background: transparent;
    color: #1e293b;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.highlights-section .chat-window {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.highlights-section .messages {
    flex: 1;
    padding: clamp(0.75rem, 1.5vh, 1rem);
    overflow-y: visible;
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1vh, 0.75rem);
    min-height: 0;
}

/* Desktop: enable scrolling */
@media (min-width: 1024px) {
    .highlights-section .messages {
        overflow-y: auto;
    }
}

.highlights-section .msg {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s ease;
}

.highlights-section .msg.show {
    opacity: 1;
    transform: translateY(0);
}

.highlights-section .msg.user {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 4px;
}

/* Remove background for image-only user messages */
.highlights-section .msg.user.img-only {
    background: transparent;
    padding: 0;
}

.highlights-section .msg.bot {
    align-self: flex-start;
    background: #f1f5f9;
    color: #1e293b;
    border-bottom-left-radius: 4px;
    max-width: 80%;
}

.highlights-section .msg-img {
    width: 100%;
    max-width: 120px;
    border-radius: 8px;
    display: block;
}

.highlights-section .input-row {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
}

.highlights-section .message-input {
    flex: 1;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 12px 20px;
    color: #1e293b;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.highlights-section .placeholder {
    color: #64748b;
}

.highlights-section .send-icon {
    color: #3b82f6;
    width: 20px;
    height: 20px;
}

.highlights-section .upload-pill {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: not-allowed;
    transition: 0.2s;
}

.highlights-section .upload-pill.filled {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.highlights-section .upload-pill svg {
    width: 20px;
    height: 20px;
}

/* --- Slide 4: Deploy Model --- */
.deploy-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: clamp(0.5rem, 0.8vw, 0.75rem);
    padding: clamp(0.5rem, 1vw, 0.75rem);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.5rem, 1vh, 0.75rem);
    transition: all 0.3s ease;
    position: relative;
    min-height: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: visible;
    flex: 1;
}

/* Desktop: enable scrolling */
@media (min-width: 1024px) {
    .deploy-card {
        overflow-y: auto;
    }
}

/* Desktop: side-by-side layout with separate cards */
@media (min-width: 1024px) {
    .deploy-card {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(0.5rem, 1vw, 0.75rem);
        align-items: center;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .deploy-config {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: clamp(0.5rem, 1vh, 0.75rem);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .deploy-results-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(0.5rem, 1vh, 0.75rem);
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        padding: clamp(0.5rem, 1vh, 0.75rem);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    }
}

.deploy-config {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 0.8vh, 0.6rem);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 1 auto;
}

.deploy-config.sucked-in {
    opacity: 0;
    transform: scale(0.1) translateY(50px);
    filter: blur(10px);
}

.config-row {
    display: flex;
    flex-direction: column;
    gap: clamp(0.3rem, 0.6vh, 0.5rem);
}

.config-row label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #374151;
}

.provider-grid {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}

.provider-btn {
    flex: 1;
    height: 60px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 12px;
}

.provider-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.provider-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.provider-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ... existing code ... */

.deploy-action {
    margin-top: 8px;
}

.deploy-btn {
    width: 100%;
    padding: 12px;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.deploy-btn:hover {
    background: #1f2937;
}

.deploy-btn.loading .btn-text {
    opacity: 0;
}

.deploy-btn .btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.deploy-btn.loading .btn-loader {
    opacity: 1;
}

.deploy-btn .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.deploy-btn .spinner circle {
    opacity: 0.25;
    stroke-opacity: 1;
    stroke-dasharray: 40;
    stroke-dashoffset: 30;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.deploy-result {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: none;
    /* Hidden initially */
}

.deploy-result.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.terminal-header {
    background: #2d2d2d;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-header .dot.red {
    background: #ff5f56;
}

.terminal-header .dot.yellow {
    background: #ffbd2e;
}

.terminal-header .dot.green {
    background: #27c93f;
}

.terminal-header .title {
    margin-left: 8px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #9ca3af;
}

.terminal-body {
    padding: 16px;
    position: relative;
}

.terminal-body code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    color: #e5e7eb;
    line-height: 1.6;
    display: block;
}

.terminal-body .cmd {
    color: #facc15;
}

.terminal-body .url {
    color: #60a5fa;
}

.terminal-body .str {
    color: #a5d6a7;
}

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 4px;
    padding: 4px;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Dark mode adjustments */
.dark .deploy-card {
    background: #1f2937;
    border-color: #374151;
}

.dark .config-row label {
    color: #e5e7eb;
}

.dark .provider-btn {
    background: #111827;
    border-color: #374151;
}

.dark .provider-btn:hover {
    background: #1f2937;
    border-color: #4b5563;
}

.dark .provider-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.dark .deploy-btn {
    background: #3b82f6;
}

.dark .deploy-btn:hover {
    background: #2563eb;
}

.dark .provider-icon path[fill="#000000"] {
    fill: #ffffff;
}


.req-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.req-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.req-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #64748b;
}

.req-val {
    font-family: monospace;
    color: #3b82f6;
    font-weight: 600;
}

/* GPU Cluster Illusion */
.gpu-cluster-illusion {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 120px;
    position: relative;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
}

@media (min-width: 1024px) {
    .gpu-cluster-illusion {
        height: 150px;
        padding: 1rem;
    }
}

.gpu-cluster-illusion.show {
    display: flex;
    opacity: 1;
}

.cluster-core {
    display: flex;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.server-rack {
    width: 40px;
    height: 60px;
    background: #1e293b;
    border-radius: 4px;
    border: 1px solid #334155;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 4px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.server-light {
    width: 100%;
    height: 4px;
    background: #334155;
    border-radius: 2px;
}

.gpu-cluster-illusion.active .server-light {
    animation: blink 0.5s infinite alternate;
}

.gpu-cluster-illusion.active .server-rack:nth-child(1) .server-light {
    animation-delay: 0s;
}

.gpu-cluster-illusion.active .server-rack:nth-child(2) .server-light {
    animation-delay: 0.2s;
}

.gpu-cluster-illusion.active .server-rack:nth-child(3) .server-light {
    animation-delay: 0.4s;
}

@keyframes blink {
    from {
        background: #334155;
        box-shadow: none;
    }

    to {
        background: #4ade80;
        box-shadow: 0 0 5px #4ade80;
    }
}

/* Keep lights green after deployment is complete */
.gpu-cluster-illusion.deployed .server-light {
    background: #4ade80;
    box-shadow: 0 0 5px #4ade80;
}

.cluster-label {
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    animation: pulse-text 1.5s infinite;
}

/* Stop label pulsing when deployed */
.gpu-cluster-illusion.deployed .cluster-label {
    animation: none;
    opacity: 1;
    color: #047857;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3b82f6;
    border-radius: 50%;
    opacity: 0;
}

/* Dark mode adjustments */
.dark .req-label {
    color: #94a3b8;
}

.dark .server-rack {
    background: #0f172a;
    border-color: #1e293b;
}

.dark .cluster-label {
    color: #94a3b8;
}

/* ==========================================================================
   #MOBILE RESPONSIVE STYLES
   ========================================================================== */

/* Mobile, tablets and small screens (below desktop breakpoint) */
@media (max-width: 1023px) {
    /* Allow section to grow with content */
    .highlights-section {
        height: auto !important;
        min-height: auto !important;
        padding-bottom: 2rem !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

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

    .highlights-surface {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        max-width: 100% !important;
    }

    .highlights-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        overflow: visible !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Navigation tiles - horizontal on mobile */
    .navigation-tiles {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        margin-bottom: 1rem !important;
        height: auto !important;
    }

    .nav-tile {
        flex: 1 1 auto !important;
        min-width: 120px !important;
        /* Ensure consistent styling with desktop */
        background: rgba(123, 129, 142, 0.04) !important;
        border: 2px solid #000000 !important;
        border-radius: 999px !important;
    }

    .nav-tile:hover {
        background: rgba(149, 144, 144, 0.08) !important;
    }

    .nav-tile.active {
        background: #000000 !important;
        border-color: #000000 !important;
        color: #ffffff !important;
    }

    .nav-tile-label {
        font-size: 0.7rem !important;
        color: inherit !important;
    }

    .nav-tile.active .nav-tile-label {
        color: #ffffff !important;
    }

    /* Carousel card */
    .carousel-card {
        height: auto !important;
        min-height: auto !important;
        max-width: 100% !important;
        overflow: visible !important;
        padding: 0.75rem !important;
        box-sizing: border-box !important;
    }

    .carousel-container {
        height: auto !important;
        overflow: visible !important;
        max-width: 100% !important;
    }

    .carousel-track {
        max-width: 100% !important;
        overflow: visible !important;
    }

    /* Slides */
    .highlights-section .slide {
        min-height: auto !important;
        height: auto !important;
        padding: 0.75rem !important;
        max-width: 100% !important;
        overflow: visible !important;
    }

    .highlights-section .slide-content {
        max-width: 100% !important;
        overflow: visible !important;
        word-wrap: break-word !important;
    }

    /* Section title */
    .highlights-section .section-title {
        font-size: 3rem !important;
        word-wrap: break-word !important;
    }

    /* Slide description */
    .highlights-section .slide-description {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Spreadsheet */
    .highlights-section .spreadsheet-row {
        grid-template-columns: 60px 1fr 70px !important;
        min-height: auto !important;
        font-size: 0.6rem !important;
    }

    .highlights-section .spreadsheet-row.header-row {
        min-height: auto !important;
    }

    .highlights-section .spreadsheet-row.header-row .cell {
        font-size: 0.6rem !important;
        padding: 0.4rem !important;
    }

    .highlights-section .cell {
        font-size: 0.6rem !important;
        padding: 0.4rem !important;
    }

    .highlights-section .reasoning-cell {
        font-size: 0.5rem !important;
        padding: 0.4rem !important;
        line-height: 1.3 !important;
    }
    
    .highlights-section .typing-text.js-no-border {
        font-size: 1.4rem !important;
    }

    .highlights-section .slide-content.dataset-slide .spreadsheet-row {
        grid-template-columns: 60px 1fr 70px !important;
        min-height: auto !important;
    }

    .highlights-section .slide-content.dataset-slide .cell {
        font-size: 0.6rem !important;
        padding: 0.4rem !important;
    }

    .highlights-section .slide-content.dataset-slide .reasoning-cell {
        font-size: 0.5rem !important;
        padding: 0.4rem !important;
        line-height: 1.3 !important;
    }
    
    .highlights-section .slide-content.dataset-slide .typing-text.js-no-border {
        font-size: 0.5rem !important;
    }

    .highlights-section .slide-content.dataset-slide .image-cell img {
        max-width: 45px !important;
    }
    
    .highlights-section .slide-content.dataset-slide .image-cell {
        padding: 0.3rem !important;
    }

    .highlights-section .label-badge {
        font-size: 0.55rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    /* Model training card */
    .highlights-section .model-train-card {
        padding: 0.75rem !important;
        overflow: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .highlights-section .model-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .highlights-section .model-card-section {
        width: 100% !important;
        min-width: 0 !important;
    }

    .highlights-section .model-card-section h4 {
        font-size: 0.75rem !important;
        margin-bottom: 0.75rem !important;
        letter-spacing: 0.5px !important;
    }

    .highlights-section .model-select {
        font-size: 0.85rem !important;
        padding: 0.65rem 0.85rem !important;
        width: 100% !important;
    }

    .highlights-section .slider-row {
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .highlights-section .slider-row label {
        font-size: 0.75rem !important;
        width: 100% !important;
    }

    .highlights-section .slider-row input[type="range"] {
        width: 100% !important;
        height: 8px !important;
    }

    .highlights-section .slider-row .numbers {
        font-size: 0.8rem !important;
    }

    .highlights-section .estimates {
        width: 100% !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }

    .highlights-section .pill {
        font-size: 0.75rem !important;
        padding: 0.75rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .highlights-section .pill .value {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
    }

    .highlights-section .start-train,
    .highlights-section .start-btn {
        font-size: 0.9rem !important;
        padding: 0.85rem !important;
        width: 100% !important;
    }

    .highlights-section .train-toast {
        font-size: 0.75rem !important;
        padding: 0.75rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        line-height: 1.4 !important;
    }

    /* Results slide */
    .highlights-section .badge {
        font-size: 0.55rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    .highlights-section .kpi {
        padding: 0.75rem !important;
    }

    .highlights-section .kpi .label {
        font-size: 0.6rem !important;
    }

    .highlights-section .kpi .value {
        font-size: 0.9rem !important;
    }

    .highlights-section .spark-wrap {
        padding: 0.75rem !important;
    }

    .highlights-section .spark-hdr {
        font-size: 0.6rem !important;
    }

    .highlights-section .t {
        font-size: 0.55rem !important;
    }

    .highlights-section .cta-btn {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Playground */
    .highlights-section .playground {
        height: auto !important;
        min-height: 300px !important;
    }

    .highlights-section .toolbar {
        padding: 0.6rem 0.75rem !important;
    }

    .highlights-section .toolbar .label {
        font-size: 0.6rem !important;
    }

    .highlights-section .toolbar .sel {
        font-size: 0.65rem !important;
    }

    .highlights-section .message-bubble {
        font-size: 0.6rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    .highlights-section .message-bubble p,
    .highlights-section .message-bubble div {
        font-size: 0.6rem !important;
        line-height: 1.3 !important;
    }

    .highlights-section .message-input {
        font-size: 0.6rem !important;
        padding: 0.5rem 0.75rem !important;
    }

    /* Thinking section in playground - override inline styles */
    .highlights-section .playground div[style*="background: #dcfce7"] {
        padding: 0.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .highlights-section .playground div[style*="background: #dcfce7"] div[style*="font-family"] {
        font-size: 0.6rem !important;
        line-height: 1.3 !important;
    }

    .highlights-section .playground div[style*="Thinking"] span {
        font-size: 0.55rem !important;
    }

    /* Label badge in playground */
    .highlights-section .label-result,
    .highlights-section div[style*="background: #e9d5ff"] {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.6rem !important;
    }

    .highlights-section div[style*="background: #e9d5ff"] div {
        font-size: 0.65rem !important;
    }

    /* Deploy card */
    .highlights-section .deploy-card {
        padding: 0.75rem !important;
    }

    .highlights-section .config-row label {
        font-size: 0.6rem !important;
    }

    .highlights-section .deploy-btn {
        font-size: 0.7rem !important;
        padding: 0.6rem !important;
    }

    .highlights-section .terminal-body {
        font-size: 0.5rem !important;
        padding: 0.6rem !important;
        line-height: 1.3 !important;
    }

    .highlights-section .terminal-body code {
        font-size: 0.5rem !important;
    }

    .highlights-section .cluster-label {
        font-size: 0.65rem !important;
    }

    .highlights-section .req-label {
        font-size: 0.6rem !important;
    }

    .highlights-section .provider-btn {
        padding: 0.5rem !important;
    }

    .highlights-section .provider-icon {
        width: 30px !important;
        height: 30px !important;
    }

    /* Upload container */
    .highlights-section .upload-zone {
        padding: 0.4rem !important;
        border-radius: 0.6rem !important;
    }
    
    .highlights-section .upload-area {
        padding: 0.5rem 0.5rem !important;
        border-radius: 0.5rem !important;
    }
    
    .highlights-section .upload-label {
        font-size: 0.65rem !important;
    }

    .highlights-section .cloud-svg {
        width: 32px !important;
        height: 32px !important;
    }
    
    .highlights-section .cloud-upload-icon {
        margin-bottom: 0.15rem !important;
    }
    
    .highlights-section .arrow-up {
        bottom: 0.15rem !important;
    }
    
    .highlights-section .arrow-up svg {
        width: 14px !important;
        height: 14px !important;
    }

    .highlights-section .upload-success-msg {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.75rem !important;
        margin-top: 0.5rem !important;
        gap: 0.35rem !important;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Ensure no internal scrolling on small mobile devices */
    .highlights-section {
        overflow: visible !important;
        padding: 0.5rem 0 2rem !important;
    }

    .highlights-section .section-content {
        overflow: visible !important;
    }

    .highlights-surface {
        overflow: visible !important;
        padding: 0.4rem !important;
    }

    .highlights-grid {
        overflow: visible !important;
    }

    .carousel-card {
        overflow: visible !important;
    }

    .carousel-container {
        overflow: visible !important;
    }

    .carousel-track {
        overflow: visible !important;
    }

    .highlights-section .slide {
        overflow: visible !important;
    }

    .highlights-section .slide-content {
        overflow: visible !important;
    }

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

    /* Nav tiles */
    .nav-tile-label {
        font-size: 0.65rem !important;
    }

    .nav-tile {
        padding: 0.4rem 0.6rem !important;
    }

    /* Slide description */
    .highlights-section .slide-description {
        font-size: 0.65rem !important;
    }

    /* Spreadsheet - even smaller */
    .highlights-section .spreadsheet-row {
        grid-template-columns: 50px 1fr 60px !important;
        min-height: 80px !important;
    }

    .highlights-section .cell,
    .highlights-section .reasoning-cell {
        font-size: 0.55rem !important;
        padding: 0.4rem !important;
    }

    .highlights-section .slide-content.dataset-slide .image-cell img {
        max-width: 40px !important;
    }

    /* Model training card - extra small */
    .highlights-section .model-train-card {
        padding: 0.6rem !important;
    }

    .highlights-section .model-grid {
        gap: 0.75rem !important;
    }

    /* All card content */
    .highlights-section .model-card-section h4,
    .highlights-section .slider-row label,
    .highlights-section .pill,
    .highlights-section .badge,
    .highlights-section .kpi .label,
    .highlights-section .toolbar .label,
    .highlights-section .config-row label {
        font-size: 0.55rem !important;
    }

    .highlights-section .model-select,
    .highlights-section .toolbar .sel,
    .highlights-section .pill .value {
        font-size: 0.6rem !important;
    }

    .highlights-section .start-btn,
    .highlights-section .deploy-btn,
    .highlights-section .cta-btn {
        font-size: 0.65rem !important;
        padding: 0.5rem 0.6rem !important;
    }

    .highlights-section .kpi .value {
        font-size: 0.8rem !important;
    }

    .highlights-section .terminal-body {
        font-size: 0.5rem !important;
    }

    .highlights-section .train-toast {
        font-size: 0.55rem !important;
        line-height: 1.3 !important;
    }

    /* Ensure no horizontal overflow */
    .highlights-section .slide-content {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .highlights-section .model-train-card,
    .highlights-section .model-grid,
    .highlights-section .model-card-section {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
}

/* ==========================================================================
   #JAVASCRIPT STATE CLASSES - For dynamic behavior without inline styles
   ========================================================================== */

/* Spreadsheet and Upload Container States */
.highlights-section .spreadsheet-container.js-visible {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none;
    margin-bottom: 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
    min-height: auto;
}

.highlights-section .spreadsheet-container.js-reset {
    display: block;
    opacity: 1;
    transform: none;
    transition: none;
    position: static;
    z-index: auto;
    margin-bottom: 0;
    min-height: auto;
}

.highlights-section .upload-container.js-visible {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 2;
}

.highlights-section .upload-container.js-hidden {
    display: none !important;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    z-index: auto;
}

.highlights-section .upload-container.js-preparing {
    position: relative;
    display: block !important;
    opacity: 0;
    transform: translateY(18px);
    z-index: 5;
}

.highlights-section .upload-container.js-animating {
    display: block !important;
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 1;
    transform: translateY(0);
}

/* Spreadsheet Row States */
.highlights-section .spreadsheet-row.data-row.js-visible {
    opacity: 1 !important;
    transform: translateX(0) !important;
    display: grid !important;
}

/* Slide Content States */
.highlights-section .slide-content.js-relative {
    position: relative;
}

/* Flying Folder Animation */
.highlights-section .flying-folder {
    position: absolute;
    width: 80px;
    height: 64px;
    pointer-events: none;
    z-index: 100;
    will-change: transform, opacity, top, left;
}

.highlights-section .flying-folder svg {
    width: 100%;
    height: 100%;
}

/* Nav Tile Fill States */
.highlights-section .nav-tile-fill.js-reset {
    clip-path: inset(0 100% 0 0);
    animation: none;
}

.highlights-section .nav-tile-fill.js-full {
    animation: none;
    clip-path: inset(0 0 0 0);
}

.highlights-section .nav-tile-fill.js-hidden {
    animation: none;
    clip-path: inset(0 100% 0 0);
}

/* Track Transform */
.highlights-section #hlCarouselTrack.js-transform {
    /* Transform will be set via CSS variable */
    transform: translateX(var(--track-offset, 0));
}

/* Container Height Auto */
.highlights-section .carousel-container.js-auto-height {
    height: auto;
}

/* Typing Text States */
.highlights-section .typing-text.js-no-border {
    border-right: none;
    font-size: inherit !important;
}

/* Metrics Slide States */
.highlights-section .bar-fill.js-zero {
    width: 0%;
}

.highlights-section .cta-row.js-hidden {
    opacity: 0;
    transform: translateY(8px);
}

.highlights-section .cta-row.js-visible {
    opacity: 1;
    transform: translateY(0);
}

/* SVG Path States */
.highlights-section .loss-path.js-animated {
    transition: stroke-dashoffset 1.2s ease;
}

/* Playground States */
.highlights-section #hlPgThumb.js-inactive {
    opacity: 0.35;
    filter: grayscale(100%);
}

.highlights-section #hlPgThumb.js-active {
    opacity: 1;
    filter: none;
}

/* Deploy Slide States */
.highlights-section .deploy-config.js-visible {
    display: flex;
    opacity: 1;
    transform: none;
    margin-bottom: 12px;
}

.highlights-section .deploy-config.js-spaced {
    margin-bottom: 12px;
    opacity: 1;
    transform: none;
}

.highlights-section #hlGpuCluster.js-hidden {
    display: none;
    opacity: 0;
}

.highlights-section #hlGpuCluster.js-visible {
    display: flex;
}

.highlights-section #hlGpuCluster.js-faded {
    opacity: 0.3;
}

.highlights-section #hlGpuCluster.js-full {
    opacity: 1;
}

.highlights-section #hlDeployResult.js-hidden {
    display: none;
}

.highlights-section #hlDeployResult.js-visible {
    display: block;
}

/* Particle Animation */
.highlights-section .particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #60a5fa, #3b82f6);
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity, left, top;
}

.highlights-section .particle.js-animating {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Button Transform States */
.highlights-section .cta-btn.js-scale-down {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

.highlights-section .cta-btn.js-scale-normal {
    transform: scale(1);
}
