/* KYRO Landing Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-purple: #8b5cf6;
    --color-blue: #3b82f6;
    --color-pink: #ec4899;
    --color-green: #10b981;
    --color-orange: #f97316;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-light: #e2e8f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Logo Section */
.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-svg-container {
    display: flex;
    align-items: center;
    margin-left: -8px; /* Negative space for overlap */
}

.logo-svg {
    width: 24px;
    height: 28px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    white-space: nowrap;
}

/* CTA and Auth Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-signin {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: white;
}

.nav-signin:hover {
    background: #f97316;
    color: white;
    border-color: #f97316;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.2);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.4);
    color: white;
}

.nav-brand {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s;
}

.nav-brand:hover {
    color: #f97316;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    text-align: left;
    max-width: 700px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    text-align: left;
}

.hero-cta {
    margin-top: 0;
    text-align: left;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(249, 115, 22, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.5);
    color: white;
    text-decoration: none;
}

/* Volume Control */
.volume-control {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 4;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.volume-control:hover {
    background: white;
    transform: scale(1.05);
}

.volume-control.muted {
    opacity: 0.6;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Content Sections */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-how,
.section-capabilities,
.section-products {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--text-dark);
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* How It Works Section */
.how-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.how-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.how-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-light);
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.capability-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    cursor: pointer;
    transition: transform 0.3s;
    display: flex;
    align-items: stretch;
}

.capability-card:hover {
    transform: translateY(-8px);
}

.card-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.card-gradient.purple { background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(124, 58, 237, 0.8)); }
.card-gradient.blue { background: linear-gradient(135deg, rgba(59, 130, 246, 0.8), rgba(37, 99, 235, 0.8)); }
.card-gradient.pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.8), rgba(219, 39, 119, 0.8)); }
.card-gradient.green { background: linear-gradient(135deg, rgba(16, 185, 129, 0.8), rgba(5, 150, 105, 0.8)); }
.card-gradient.orange { background: linear-gradient(135deg, rgba(249, 115, 22, 0.8), rgba(234, 88, 12, 0.8)); }

.card-title-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 50%, transparent 100%);
    z-index: 2;
    transition: opacity 0.3s;
}

.capability-card:hover .card-title-bottom {
    opacity: 0;
}

.card-title-bottom h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.93);
    padding: 2.5rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-overlay::-webkit-scrollbar {
    width: 5px;
}

.card-overlay::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.card-overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
}

.card-overlay::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.capability-card:hover .card-overlay {
    opacity: 1;
}

.capability-card:hover .card-gradient {
    opacity: 0.3;
}

.card-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-overlay p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f97316, #ea580c);
}

.product-icon img {
    width: 32px;
    height: 32px;
}

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

.product-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-text {
        text-align: left;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .hero-cta {
        text-align: left;
    }
    
    .how-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .capability-card {
        height: 380px;
    }
    
    .card-title-bottom h3 {
        font-size: 1.25rem;
    }
    
    .card-overlay {
        padding: 2rem 1.5rem;
    }
    
    .card-overlay h3 {
        font-size: 1.25rem;
    }
    
    .card-overlay p {
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .volume-control {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .capability-card {
        height: 400px;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1280px) {
    .capabilities-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .capability-card {
        height: 420px;
    }
}

@media (min-width: 1281px) {
    .capabilities-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }
}

/* Utility Classes */
.rounded-image {
    border-radius: 24px;
}

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

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Intersection Observer Classes */
.fade-in-view {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.fade-in-view.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Recommended For You Section */
.section-recommended {
    padding: 5rem 0;
    background: var(--bg-light);
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.recommended-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.recommended-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.recommended-card.blue:hover {
    border-color: var(--color-blue);
}

.recommended-card.purple:hover {
    border-color: var(--color-purple);
}

.recommended-card.pink:hover {
    border-color: var(--color-pink);
}

.recommended-card.green:hover {
    border-color: var(--color-green);
}

.recommended-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.recommended-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommended-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.recommended-card.blue h3 {
    color: var(--color-blue);
}

.recommended-card.purple h3 {
    color: var(--color-purple);
}

.recommended-card.pink h3 {
    color: var(--color-pink);
}

.recommended-card.green h3 {
    color: var(--color-green);
}

@media (max-width: 768px) {
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .recommended-grid {
        grid-template-columns: 1fr;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Navbar Responsive Styles */
@media (max-width: 640px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .nav-signin {
        padding: 8px 12px;
        font-size: 0.8125rem;
    }
    
    .nav-cta {
        padding: 8px 16px;
        font-size: 0.8125rem;
    }
    
    .logo-svg-container {
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .nav-signin span {
        display: none;
    }
    
    .nav-signin::before {
        content: "Sign In";
    }
    
    .nav-cta {
        padding: 8px 14px;
    }
}
