/* ==================================== */
/* 01. Main Layout & Separators */
/* ==================================== */

main {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-separator {
    height: 1px;
    background-color: var(--divider-color);
    margin: 1rem 0;
    width: 100%;
    max-width: min(90%, 1000px);
}

/* ==================================== */
/* 02. Navigation & Sidebar */
/* ==================================== */

/* The placeholder itself is sticky, so both the desktop and mobile bar stay on top */
#nav-placeholder {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 50;
}

/* --- Shared bar styles --- */
nav.full-width-nav,
.mobile-nav-bar {
    width: 100%;
    background: rgba(13, 13, 13, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

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

.nav-image {
    height: 2.25rem;
    width: auto;
}

/* --- Full-width navigation bar (desktop, shown from 768px) --- */
nav.full-width-nav {
    display: none;
    min-height: 4rem;
}

.nav-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    position: relative;
    color: var(--subtle-text-color);
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

/* Current page: thin accent underline */
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--primary-color);
}

/* --- Mobile navigation bar (hidden from 768px) --- */
.mobile-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
    padding: 0 20px;
}

.mobile-nav-bar .openbtn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.75rem;
    line-height: 1;
    padding: 0.25rem;
    cursor: pointer;
}

/* --- Sidebar --- */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.sidebar-overlay.open {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    height: 100%;
    width: 280px;
    max-width: 80vw;
    overflow-y: auto;
    background-color: var(--dark-background);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4.5rem 0 2rem;
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
}

.sidebar.open {
    transform: translateX(0);
    visibility: visible;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
}

.sidebar a {
    display: block;
    padding: 0.85rem 1.75rem;
    font-size: 1.1rem;
    color: var(--subtle-text-color);
    text-align: left;
    border-left: 3px solid transparent;
    transition: color 0.2s, background-color 0.2s;
}

.sidebar a:hover {
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar a.active {
    color: var(--text-color);
    border-left-color: var(--primary-color);
}

.sidebar .closebtn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 2rem;
    color: var(--subtle-text-color);
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
}

.sidebar .closebtn:hover {
    color: var(--text-color);
}

/* ==================================== */
/* 03. Hero & Content Sections */
/* ==================================== */

.hero-section {
    padding: 40px 20px 10px;
    width: 100%;
    max-width: min(90%, 1000px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    max-width: 22%;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    margin-bottom: 1rem;
}

/* Animated logo on the Zenos page */
.logo-video {
    display: block;
    max-width: 60%;
    margin: 2.125rem auto 1.5rem;
    border-radius: 50%;
}

.hero-subline {
    margin-top: 0.5rem;
    max-width: 720px;
}

.content-section {
    padding: 0.625rem 1.25rem 1.25rem;
    max-width: min(90%, 1000px);
    width: 100%;
}

/* ==================================== */
/* 04. Buttons & Calls to Action */
/* ==================================== */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.cta-button,
.notify-container button {
    background-color: var(--primary-color);
    color: #000;
    font-weight: bold;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button {
    display: inline-block;
    margin: 0.5rem 0 1rem;
    padding: 0.9rem 2.2rem;
}

.cta-button:hover,
.cta-button:focus-visible,
.notify-container button:hover {
    transform: scale(1.05);
    background-color: var(--primary-hover-color);
}

.cta-secondary {
    color: var(--primary-color);
    font-weight: bold;
    padding: 0.9rem 0.5rem;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
    text-decoration: underline;
}

/* ==================================== */
/* 05. Cards with expandable details */
/* ==================================== */

.card-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(145deg, var(--card-background) 0%, #111 100%);
    border: 1px solid var(--card-border-color);
    border-left: 4px solid var(--card-border-color);
    padding: 1.8rem 2.5rem;
    margin: 1.5rem 0;
    border-radius: 12px;
    box-shadow: 0 0 15px var(--card-shadow-color);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
    box-shadow: 0 0 25px var(--card-shadow-color), 0 0 5px var(--primary-color);
    transform: translateY(-3px);
}

.card h3 {
    color: var(--text-color);
    font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: 0.05em;
    width: fit-content;
}

.card li {
    position: relative;
    padding-left: 2.2rem; /* room for the bullet */
    margin-bottom: 0.15rem;
    line-height: 1.6;
    color: var(--subtle-text-color);
    font-size: 1.1rem;
    text-align: left;
    transition: color 0.2s ease;
}

/* Chevron bullet */
.card li::before {
    content: '\203A';
    position: absolute;
    left: 0;
    top: 0;
    height: 0.8em;
    line-height: 1.6;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    color: var(--primary-color);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover, keyboard focus and tap all highlight the item */
.card li:hover,
.card li:focus-visible {
    color: var(--text-color);
}

.card li:hover::before,
.card li:focus-visible::before {
    transform: translateX(4px);
    color: var(--text-color);
}

/* Details are collapsed by default and expand on hover/focus */
.details-content {
    margin-top: 0;
    margin-left: 1.5rem;
    padding: 12px 18px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out,
                opacity 0.4s ease-out,
                margin-top 0.4s ease-out;
    text-align: justify;
    overflow-wrap: break-word;
}

.has-details:hover .details-content,
.has-details:focus .details-content {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.8em;
}

/* ==================================== */
/* 06. Feature Grid */
/* ==================================== */

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 1rem 0 2rem;
    text-align: left;
}

.feature {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 3px solid var(--primary-color);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.feature h3 {
    font-size: clamp(1.15rem, 1rem + 0.4vw, 1.3rem);
    margin: 0 0 0.5rem;
    color: var(--text-color);
}

.feature p {
    max-width: none;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Numbered step labels (Zenos page) */
.step-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==================================== */
/* 07. Roadmap Timeline */
/* ==================================== */

.timeline {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    border-left: 2px solid var(--primary-color);
}

.timeline li {
    position: relative;
    padding: 1rem 0 2.5rem 2.5rem;
    transition: padding-left 0.2s ease;
}

.timeline li:hover {
    padding-left: 2.75rem;
}

/* Dot on the line; future events are grey */
.timeline li::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 1.2rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--card-background);
    border: 2px solid var(--card-background);
    box-shadow: 0 0 0 3px rgba(0, 216, 255, 0.1);
    transition: all 0.2s ease;
}

/* Completed events: filled blue dot */
.timeline li.done::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Next event: blue ring */
.timeline li.next::before {
    border-color: var(--primary-color);
}

.timeline li:hover::before {
    width: 18px;
    height: 18px;
    left: -11px;
    box-shadow: 0 0 12px rgba(0, 216, 255, 0.4);
}

.timeline-date {
    display: block;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.02em;
}

.timeline-status {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.05rem 0.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 400;
    vertical-align: 0.1em;
}

.timeline li.done .timeline-status {
    color: #000;
    background-color: var(--primary-color);
}

.timeline-text {
    color: var(--subtle-text-color);
    line-height: 1.7;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.timeline li:hover .timeline-text {
    color: var(--text-color);
}

/* ==================================== */
/* 08. Pull Quote */
/* ==================================== */

.pull-quote {
    max-width: 700px;
    margin: 1rem auto 2rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 0 10px 10px 0;
    color: var(--text-color);
    font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem);
    font-weight: 700;
    line-height: 1.5;
    text-align: left;
}

/* ==================================== */
/* 09. Signup Form */
/* ==================================== */

.notify-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.notify-container form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

.notify-container input[type="email"] {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 1rem;
    background-color: #333;
    color: var(--text-color);
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notify-container button {
    padding: 1rem 2.5rem;
    border: none;
    cursor: pointer;
}

/* Must follow the :hover rule so a disabled button does not grow */
.notify-container button:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.form-status {
    margin-top: 1rem;
    min-height: 1.5em;
    text-align: center;
    color: var(--subtle-text-color);
}

/* ==================================== */
/* 10. Footer */
/* ==================================== */

.site-footer {
    width: 100%;
    margin-top: 3rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--divider-color);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--primary-color);
}

.site-footer p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* ==================================== */
/* 11. Utilities */
/* ==================================== */

/* Visually hidden but still read by screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================================== */
/* 12. Desktop Overrides (768px and up) */
/* ==================================== */

@media (min-width: 768px) {
    .mobile-nav-bar {
        display: none;
    }

    nav.full-width-nav {
        display: flex;
    }

    .logo-video {
        max-width: 50%;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================================== */
/* 13. Mobile Overrides (up to 767px) */
/* ==================================== */

@media (max-width: 767px) {
    /* Use the full screen width; the 90% caps stacked with padding left very narrow text */
    .hero-section,
    .content-section {
        max-width: 100%;
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-section {
        padding-top: 1rem;
    }

    .section-separator {
        max-width: calc(100% - 2.5rem);
        margin: 0.5rem 0;
    }

    .logo-video {
        max-width: 55%;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .feature-grid {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature {
        padding: 1rem 1.15rem;
    }

    .pull-quote {
        margin: 1rem 0 1.5rem;
        padding: 1rem 1.15rem;
    }

    /* Stack the call-to-action buttons and make them easy to tap */
    .hero-actions {
        flex-direction: column;
        gap: 0.25rem;
    }

    .hero-actions .cta-button {
        width: 100%;
        max-width: 320px;
        margin-bottom: 0;
        text-align: center;
    }

    .card {
        padding: 1.25rem;
    }

    .timeline li {
        padding: 0.75rem 0 1.75rem 1.75rem;
    }

    .timeline li:hover {
        padding-left: 1.75rem;
    }

    .site-footer {
        margin-top: 2rem;
    }
}
