/* ====================================
   LANDING PAGE
   ==================================== */

.landing-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

/* Subtle background grid */
.landing-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    width: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hero Section */
.hero-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: calc(60px + 2rem); /* navbar height + padding so content never sits under navbar */
    position: relative;
    z-index: 5;
    min-height: calc(100vh - 60px); /* match navbar height */
    box-sizing: border-box;
}

.hero-content {
    max-width: 900px;
    animation: fadeIn 0.8s ease-out;
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: white;
    letter-spacing: -0.03em;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.header-login-button {
    justify-content: center;
    min-width: 132px;
    position: relative;
}

.header-maintenance-label {
    display: none;
}

.header-login-button:hover .header-login-label {
    display: none;
}

.header-login-button:hover .header-maintenance-label {
    display: inline;
}

.demo-video-section {
    padding-top: 0;
}

.video-placeholder-card {
    background: linear-gradient(180deg, rgba(13, 13, 15, 0.96), rgba(7, 7, 8, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: 0 28px 80px -45px rgba(0, 0, 0, 0.9);
    max-width: 980px;
    margin: 0 auto;
}

.video-placeholder-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.video-placeholder-eyebrow {
    margin: 0 0 0.4rem 0;
    color: #a1a1aa;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.video-placeholder-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.video-placeholder-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8;
    font-size: 0.85rem;
    white-space: nowrap;
}

.video-placeholder-frame {
    aspect-ratio: 16 / 9;
    width: 100%;
    border-radius: 18px;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(18, 18, 20, 0.95), rgba(7, 7, 8, 0.98));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    box-sizing: border-box;
}

.demo-video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: #000;
    display: block;
}

.video-placeholder-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    min-height: 84px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.video-placeholder-copy {
    max-width: 560px;
    margin: 0;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.7;
}

/* Section Styles */
.section-features,
.section-usage {
    padding: 100px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.2));
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* This centers the rows horizontally */
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto; /* Ensure the container itself is centered */
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 380px;
}

/* Refined Hover Effect */
.feature-card:hover {
    transform: translateY(-5px);
    border-color: #52525b; /* Zinc-600 */
    background: #27272a;   /* Zinc-800 */
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Icon Box for SVGs */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.feature-card:hover .icon-box {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin: 0 0 0.75rem 0;
    color: var(--text-main);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Usage Cases Specifics */
.case-card {
    background: transparent;
}

.case-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.case-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* Final CTA */
.final-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-main {
        justify-content: flex-start; /* don't center so content can't be pulled under navbar */
        padding-top: 5rem; /* 80px – clear space below 60px navbar on all small screens */
        padding-left: 1rem;
        padding-right: 1rem;
        min-height: auto;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-content .badge {
        margin-top: 0;
        margin-bottom: 1.25rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-top: 0;
    }

    .landing-nav {
        padding: 1rem;
    }

    .nav-actions .btn-nav.desktop-only {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero, .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .video-placeholder-header {
        flex-direction: column;
    }

    .video-placeholder-frame {
        min-height: 340px;
        padding: 1.5rem;
    }

    .header-login-button {
        min-width: auto;
    }
}

/* Extra small screens – more top clearance for notch/safe area */
@media (max-width: 480px) {
    .hero-main {
        padding-top: 5.5rem; /* 88px */
    }
}

/* Mobile Landscape Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-nav {
        padding: 0.75rem 1.5rem;
    }

    .hero-main {
        padding-top: 3rem;
        padding-bottom: 1rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 0.75rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
        line-height: 1.4 !important;
    }

    .cta-group {
        gap: 0.75rem;
    }

    .btn-hero,
    .btn-secondary {
        padding: 0.5rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .badge {
        font-size: 0.75rem !important;
        padding: 0.25rem 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .video-placeholder-frame {
        min-height: 280px;
    }
}
