/* ============================================
   HOMEPAGE RESPONSIVE STYLES - YC LEVEL
   Mobile-First Approach
   ============================================ */

/* Base Mobile Styles (320px+) */
.features-section {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    position: relative;
    padding: 3rem 1rem;
    overflow: hidden;
}

.features-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.features-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.features-content {
    width: 100%;
    text-align: center;
}

.hero-badge-features {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(94, 196, 213, 0.1);
    border: 1px solid rgba(94, 196, 213, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #5EC4D5;
    margin-bottom: 1.5rem;
}

.features-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.features-title .highlight {
    color: #5EC4D5;
}

.features-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #666666;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 100%;
}

.features-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.features-btn-primary,
.features-btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.features-btn-primary {
    background: #5EC4D5;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(94, 196, 213, 0.3);
}

.features-btn-primary:hover {
    background: #4AAFC0;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(94, 196, 213, 0.4);
}

.features-btn-secondary {
    background: white;
    color: #1a1a1a;
    border: 2px solid #e5e7eb;
}

.features-btn-secondary:hover {
    border-color: #5EC4D5;
    color: #5EC4D5;
}

.features-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(94, 196, 213, 0.2);
}

.features-stat {
    text-align: center;
}

.features-stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.features-stat-label {
    font-size: 0.875rem;
    color: #666666;
    font-weight: 500;
}

/* Video Section - Hidden on Mobile */
.features-visual {
    display: none;
}

/* Section Styles */
.minimal-section {
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #0a1a24 0%, #0f2a3a 100%);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 3rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.text-4xl {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.text-xl {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.6;
}

.max-w-4xl {
    max-width: 56rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.leading-relaxed {
    line-height: 1.75;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.minimal-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.minimal-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.minimal-card h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.minimal-card p {
    font-size: 1rem;
    color: #666666;
    line-height: 1.7;
}

/* Partners Section */
.logo-carousel-section {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.logo-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-track {
    display: flex;
    gap: 2rem;
    animation: scroll 30s linear infinite;
}

.logo-item {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
}

.logo-bg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-bg img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

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

/* News Section */
.news-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.news-carousel-track {
    display: flex;
    gap: 1.5rem;
    animation: scrollNews 40s linear infinite;
}

.news-card-item {
    flex-shrink: 0;
    width: 320px;
    height: 100%;
}

.news-card-item a {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card-minimal {
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.news-card-minimal:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #5EC4D5;
}

.news-card-minimal > .mb-4 {
    margin-bottom: 0;
}

.news-card-image-minimal {
    width: 100%;
    height: 200px;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: #f8fafb;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.news-card-image-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For logo/badge images that should be contained */
.news-card-image-minimal[style*="object-fit: contain"] img,
.news-card-image-minimal[style*="padding"] img {
    object-fit: contain;
    max-width: 80%;
    max-height: 80%;
}

/* Video Thumbnail Styles */
.video-thumbnail-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(135deg, #5EC4D5 0%, #4AAFC0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.video-thumbnail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.video-thumbnail-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.video-thumbnail-container img[style*="display: none"] {
    display: none !important;
}

.video-play-button {
    position: relative;
    z-index: 2;
    width: 64px;
    height: 64px;
    background: rgba(94, 196, 213, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.9);
}

.video-play-button i {
    margin-left: 3px;
}

.video-thumbnail-container:hover .video-play-button {
    background: rgba(94, 196, 213, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.news-card-content-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.news-card-minimal h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-minimal p {
    font-size: 0.9375rem;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5em;
}

.news-card-cta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

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

/* Section Spacing */
.py-20 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Responsive Breakpoints */

/* Tablet (640px+) */
@media (min-width: 640px) {
    .features-section {
        padding: 4rem 2rem;
    }
    
    .features-container {
        padding: 0 2rem;
    }
    
    .features-cta {
        flex-direction: row;
        width: auto;
    }
    
    .features-btn-primary,
    .features-btn-secondary {
        width: auto;
    }
    
    .minimal-section {
        padding: 5rem 2rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card-item {
        width: 360px;
    }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
    .features-section {
        padding: 6rem 2rem;
    }
    
    .features-content-wrapper {
        flex-direction: row;
        gap: 4rem;
        text-align: left;
    }
    
    .features-content {
        text-align: left;
        flex: 1;
    }
    
    .features-visual {
        display: block;
        flex: 1;
    }
    
    .features-stats {
        justify-content: flex-start;
        border-top: none;
        padding-top: 0;
    }
    
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .minimal-section {
        padding: 6rem 2rem;
    }
    
    .news-card-item {
        width: 380px;
    }
    
    .news-card-image-minimal {
        height: 220px;
    }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .features-section {
        padding: 8rem 2rem;
    }
    
    .features-content-wrapper {
        gap: 6rem;
    }
    
    .features-title {
        font-size: clamp(3rem, 6vw, 4.5rem);
    }
    
    .features-subtitle {
        font-size: clamp(1.125rem, 2vw, 1.5rem);
    }
    
    .minimal-section {
        padding: 8rem 2rem;
    }
    
    .news-card-item {
        width: 400px;
    }
    
    .news-card-image-minimal {
        height: 240px;
    }
}

/* Extra Large (1280px+) */
@media (min-width: 1280px) {
    .features-container,
    .container {
        max-width: 1280px;
    }
}

/* Video Styles */
.demo-video-container-inline {
    width: 100%;
    max-width: 100%;
}

.demo-video-wrapper-inline {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.demo-video-wrapper-inline video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Utility Classes */
.opacity-95 {
    opacity: 0.95;
}

.inline-flex {
    display: inline-flex;
}

.items-center {
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

.mt-auto {
    margin-top: auto;
}

/* Hide video on mobile */
@media (max-width: 767px) {
    .features-visual,
    .demo-video-container-inline,
    .features-visual-content {
        display: none !important;
    }
}
