/* Variables & Setup */
:root {
    --bg-color: #0c0c0e;
    --bg-secondary: #141418;
    --bg-glass: rgba(12, 12, 14, 0.7);
    --bg-glass-heavy: rgba(12, 12, 14, 0.9);

    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    --text-muted: #5f5f66;

    --primary-color: #26cnd;
    /* Cyan */
    --primary-color: #1ccdd6;
    --primary-hover: #17b0b8;
    --secondary-color: #e62828;
    /* Red */
    --accent-glow: rgba(28, 205, 214, 0.5);
    --secondary-glow: rgba(230, 40, 40, 0.5);

    --border-color: rgba(255, 255, 255, 0.1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);

    --max-width: 1200px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Glassmorphism Utilities */
.glassmorphism {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glassmorphism-dark {
    background: var(--bg-glass-heavy);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
}

.hover-up {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-up:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    border-color: rgba(240, 246, 252, 0.2);
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    font-family: var(--font-sans);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 700;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Layout Utilities */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 100px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease, border-bottom 0.3s ease;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: var(--bg-glass-heavy);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.logo-accent {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.mobile-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px auto;
    transition: all 0.3s ease;
}

.mobile-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    padding: 100px 24px 24px;
    flex-direction: column;
    gap: 24px;
    z-index: 99;
}

.mobile-links.active {
    display: flex;
}

.mobile-links a:not(.btn) {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    min-height: auto;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(230, 40, 40, 0.15);
    color: var(--secondary-color);
    border: 1px solid rgba(230, 40, 40, 0.3);
    box-shadow: 0 0 10px rgba(230, 40, 40, 0.2);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 auto 40px;
    max-width: 600px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    /* Gives a resolved height so the carousel container can use height: 100% */
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 1100px;
}

.visual-wrapper {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.browser-dots {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 8px;
}

.browser-dots span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.browser-dots span:nth-child(1) {
    background-color: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background-color: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background-color: #27c93f;
}

.placeholder-graphic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.hero-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.5;
}

.blur-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.blur-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary-color);
    bottom: 100px;
    left: -100px;
}

/* Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    border-radius: 16px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.icon-blue {
    background: rgba(28, 205, 214, 0.1);
    color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(28, 205, 214, 0.1);
}

.icon-purple {
    background: rgba(230, 40, 40, 0.1);
    color: var(--secondary-color);
    box-shadow: inset 0 0 10px rgba(230, 40, 40, 0.1);
}

.icon-cyan {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.icon-pink {
    background: rgba(28, 205, 214, 0.1);
    color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(28, 205, 214, 0.1);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* Compatibility */
.compatibility-content {
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 60px;
    align-items: center;
}

.comp-text h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.comp-text p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.0625rem;
}

.check-icon {
    color: #10b981;
}

.cta-box {
    padding: 40px;
    border-radius: 16px;
    text-align: center;
}

.cta-box h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
}

.footer-brand {
    max-width: 300px;
}

.brand-tagline {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.link-group h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 40px;
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .compatibility-content {
        grid-template-columns: 1fr;
        padding: 40px 24px;
        gap: 40px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

/* =============================================
   Carousel Component
   ============================================= */

/* 3.2 Carousel Container — fills hero-visual which has a resolved height */
.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background-color: #050507;
}

/* 3.3 Carousel Track — flex row, same size as container */
.carousel-track {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* 3.4 Carousel Slides */
.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: #050507;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.carousel-slide .yt-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Direct iframe children (when embedded in HTML without wrapper) */
.carousel-slide iframe,
.carousel-slide .yt-placeholder iframe,
.carousel-slide .yt-placeholder>div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* 3.5 Navigation Arrows */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 20;
    padding: 0;
}

.carousel-btn:hover {
    background: rgba(28, 205, 214, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 12px var(--accent-glow);
}

.carousel-btn--prev {
    left: 12px;
}

.carousel-btn--next {
    right: 12px;
}

/* 3.5 Indicator Dots */
.carousel-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, width 0.25s ease;
}

.carousel-dot.active {
    background: var(--primary-color);
    width: 22px;
    border-radius: 4px;
    box-shadow: 0 0 8px var(--accent-glow);
}

/* Responsive: hide arrows on small screens */
@media (max-width: 600px) {
    .carousel-btn {
        display: none;
    }
}