/* BoSonar Website — Style Guide */

:root {
    --bg: #1a1a2e;
    --bg-card: #16213e;
    --bg-detail: #1f2937;
    --accent: #0f9b8e;
    --accent-hover: #14b8a6;
    --text: #eaeaea;
    --text-muted: #a0a0a0;
    --gold: #D4A017;
}

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

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* --- Header / Nav --- */
header {
    background: rgba(31, 41, 55, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--accent);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.brand-bo { color: var(--text); }
.brand-sonar { color: var(--accent); }

.nav-links {
    flex: 1;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    align-items: center;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    border-left: 1px solid var(--text-muted);
    margin-left: 0.5rem;
    padding-left: 1rem;
}

.lang-label {
    font-size: 0.9rem;
    margin-right: 0.2rem;
}

.lang-switch a {
    color: var(--text-muted);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.lang-switch a.active {
    color: var(--text);
    background: var(--accent);
}

/* --- CTA Button --- */
.cta-btn {
    background: var(--accent);
    color: var(--bg) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.15s;
}

.cta-btn:hover { background: var(--accent-hover); }

/* --- Main --- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    flex: 1;
    width: 100%;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-sub {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0;
}

/* --- Intro --- */
.intro {
    text-align: center;
    padding: 0 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Features (Screenshots) --- */
.features {
    padding: 3rem 0;
}

.features h2 {
    text-align: center;
    color: var(--accent);
    margin-bottom: 2rem;
}

.screenshot-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.screenshot-card {
    text-align: center;
    width: calc((100% - 8rem) / 5);
    min-width: 150px;
    max-width: 280px;
}

.screenshot-card img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 0.75rem;
}

.screenshot-card h3 {
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.screenshot-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Tablet Section --- */
.tablet-section {
    padding: 3rem 0;
    text-align: center;
}

.tablet-section h2 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.tablet-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.tablet-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.tablet-showcase img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* --- Desktop Section --- */
.desktop-section {
    padding: 3rem 0;
    text-align: center;
}

.desktop-section h2 {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.desktop-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.desktop-showcase {
    max-width: 700px;
    margin: 0 auto 2rem;
}

.desktop-showcase img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    cursor: zoom-in;
}

.desktop-cta {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    display: inline-block;
}

/* --- FAQ --- */
.faq { padding: 2rem 0; }

.faq h1 {
    color: var(--accent);
    margin-bottom: 2rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    color: var(--text);
}

.faq-item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
}

/* --- Legal --- */
.legal {
    padding: 2rem 0;
}

.legal h1 {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.legal h2 {
    color: var(--accent);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal p {
    margin-bottom: 0.75rem;
}

.legal hr {
    border: none;
    border-top: 1px solid var(--accent);
    margin: 2.5rem 0;
}

/* --- Post-Shutdown Update callout (warning amber) --- */
.post-shutdown-update {
    margin: 1.5rem 0 2.5rem;
    padding: 1.5rem 1.8rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.04));
    border: 2px solid rgba(245, 158, 11, 0.55);
    border-radius: 12px;
}

.post-shutdown-update h2 {
    color: rgb(245, 158, 11);
    margin-top: 0;
    margin-bottom: 1rem;
}

.post-shutdown-update h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
}

.post-shutdown-update ul {
    margin: 0.5rem 0 1rem 1.5rem;
}

.post-shutdown-update li {
    margin-bottom: 0.4rem;
}

.post-shutdown-update .historical-note {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(245, 158, 11, 0.35);
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    background: var(--bg-detail);
    border-top: 1px solid var(--accent);
    padding: 1.5rem;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Lightbox --- */
.screenshot-card img,
.tablet-showcase img {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    cursor: zoom-out;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 95vw;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 8px;
}

/* --- Shutdown page --- */
.code-block {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #93c5fd;
    overflow-x: auto;
    white-space: pre;
    margin: 0.8rem 0 1.2rem;
}

.inline-hint {
    margin: 1.2rem 0;
    padding: 0.8rem 1rem;
    background: rgba(20, 184, 166, 0.06);
    border-left: 3px solid var(--accent-hover);
    border-radius: 0 6px 6px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.inline-hint a {
    color: var(--accent-hover);
    font-weight: 600;
    margin-left: 0.3rem;
}

.inline-hint a:hover {
    text-decoration: underline;
}

.shutdown-cta {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(15, 155, 142, 0.18), rgba(20, 184, 166, 0.08));
    border: 2px solid var(--accent-hover);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 0 30px rgba(20, 184, 166, 0.25);
}

.shutdown-cta h2 {
    margin-bottom: 0.5rem;
    color: #fff;
}

.shutdown-cta p {
    margin-bottom: 1.2rem;
    color: var(--text);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-sub { font-size: 1.1rem; }
    nav { flex-wrap: wrap; }
    .nav-links { order: 3; width: 100%; justify-content: center; }
    .cta-btn { width: 100%; text-align: center; display: block; }
    .screenshot-grid { gap: 1rem; }
    .screenshot-card { width: calc((100% - 1rem) / 2); min-width: 0; max-width: 100%; }
    .screenshot-card h3 { font-size: 0.9rem; }
    .screenshot-card p { font-size: 0.8rem; }
}

@media (max-width: 480px) {
    .screenshot-card { width: 100%; max-width: 350px; }
}

/* --- Beta CTA Button --- */
.cta-beta {
    background: #22c55e !important;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
    animation: beta-pulse 2s ease-in-out infinite;
}
.cta-beta:hover {
    background: #16a34a !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}
@keyframes beta-pulse {
    0%, 100% { box-shadow: 0 0 12px rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 24px rgba(34, 197, 94, 0.7); }
}

/* --- Beta Sticky Card (Desktop only) --- */
.beta-sticky {
    position: fixed;
    top: 90px;
    right: 1.5rem;
    width: 300px;
    background: linear-gradient(135deg, #1a2744, #16213e);
    border: 1px solid rgba(34, 197, 94, 0.5);
    border-radius: 12px;
    padding: 1.2rem 1.2rem 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.15);
    z-index: 100;
    text-align: center;
}
.beta-sticky-close {
    position: absolute;
    top: 0.3rem;
    right: 0.6rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem 0.4rem;
}
.beta-sticky-close:hover { color: var(--text); }
.beta-sticky-badge {
    display: inline-block;
    background: #22c55e;
    color: #fff;
    font-weight: 900;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
}
.beta-sticky-title {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
    font-weight: 700;
}
.beta-sticky-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 0.9rem;
}
.beta-sticky-cta {
    display: inline-block;
    padding: 0.9rem 1rem;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.2;
}
.beta-sticky-cta .cta-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
}
.beta-sticky-cta .cta-subtext {
    display: block;
    font-size: 0.72rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.35;
    margin-top: 0.55rem;
    opacity: 0.92;
}
.beta-sticky-note {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-style: italic;
    margin-top: 0.7rem;
    margin-bottom: 0;
}

/* Hide sticky card on smaller screens (no space) */
@media (max-width: 1100px) {
    .beta-sticky { display: none; }
}

/* --- Beta Bottom Bar (Mobile) --- */
.beta-bottombar {
    display: none;
}

@media (max-width: 1100px) {
    .beta-bottombar {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a2744, #16213e);
        border-top: 2px solid #22c55e;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4), 0 0 20px rgba(34, 197, 94, 0.2);
        z-index: 150;
        transition: all 0.3s ease;
    }

    .beta-bottombar-toggle {
        position: absolute;
        top: -22px;
        right: 1rem;
        background: #22c55e;
        border: 2px solid #1a2744;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        cursor: pointer;
        color: #fff;
        font-size: 0.8rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }

    .beta-bottombar-arrow {
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .beta-bottombar.collapsed .beta-bottombar-arrow {
        transform: rotate(180deg);
    }

    .beta-bottombar-collapsed-content {
        display: none;
        padding: 0.7rem 1rem;
        text-align: center;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        font-size: 0.9rem;
    }

    .beta-bottombar-collapsed-content a {
        color: #22c55e;
        font-weight: bold;
        text-decoration: none;
    }

    .beta-bottombar-mini-badge {
        background: #22c55e;
        color: #fff;
        font-weight: 900;
        font-size: 0.65rem;
        padding: 0.15rem 0.5rem;
        border-radius: 3px;
        letter-spacing: 1px;
    }

    .beta-bottombar-expanded-content {
        display: none;
        padding: 1.2rem 1rem 1rem;
        text-align: center;
    }

    .beta-bottombar-badge {
        display: inline-block;
        background: #22c55e;
        color: #fff;
        font-weight: 900;
        font-size: 0.7rem;
        padding: 0.15rem 0.6rem;
        border-radius: 4px;
        letter-spacing: 1.5px;
        margin-bottom: 0.5rem;
    }

    .beta-bottombar-title {
        color: #fff;
        font-size: 1rem;
        margin: 0 0 0.4rem;
    }

    .beta-bottombar-desc {
        color: var(--text-muted);
        font-size: 0.82rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .beta-bottombar-cta {
        display: inline-block;
        padding: 0.75rem 1.5rem;
        line-height: 1.2;
    }
    .beta-bottombar-cta .cta-label {
        display: block;
        font-size: 1rem;
        font-weight: 700;
    }
    .beta-bottombar-cta .cta-subtext {
        display: block;
        font-size: 0.75rem;
        font-weight: 400;
        font-style: italic;
        line-height: 1.35;
        margin-top: 0.5rem;
        opacity: 0.92;
    }

    /* Toggle states */
    .beta-bottombar.collapsed .beta-bottombar-collapsed-content {
        display: flex;
    }

    .beta-bottombar:not(.collapsed) .beta-bottombar-expanded-content {
        display: block;
    }

    /* Push footer up so it's not hidden behind the bar */
    footer {
        padding-bottom: 4rem;
    }
}

/* Hero subtitle link */
.hero-sub-link {
    color: var(--accent-hover);
    text-decoration: underline;
    text-decoration-color: rgba(20, 184, 166, 0.4);
    text-underline-offset: 3px;
}
.hero-sub-link:hover {
    text-decoration-color: var(--accent-hover);
}

/* ====== Beta Landing Page ====== */
.beta-landing {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding-top: 0.5rem;
    padding-bottom: 1rem;
}
.beta-landing h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-top: 0.3rem;
    margin-bottom: 0.5rem;
}
.beta-landing .intro-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.beta-features {
    text-align: left;
    display: inline-block;
    margin: 0 auto 0.8rem;
}
.beta-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.beta-features li {
    padding: 0.3rem 0;
    font-size: 1.05rem;
}
.beta-features li::before {
    content: "\2713\00a0";
    color: var(--accent-hover);
    font-weight: bold;
    margin-right: 0.3rem;
}
.beta-cta-block {
    margin: 1rem 0 0.8rem;
}
.beta-seeking {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
}
.beta-big-cta {
    display: inline-block;
    padding: 1.3rem 2.5rem !important;
    border-radius: 14px;
    max-width: 34rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
}
.beta-big-cta .cta-label {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
}
.beta-big-cta .cta-subtext {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    margin-top: 0.75rem;
    opacity: 0.92;
    letter-spacing: 0;
}
.beta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.nav-beta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-weight: 600;
}
.nav-beta:hover {
    background: var(--accent-hover);
}
.beta-links {
    margin-top: 0.8rem;
    padding-top: 0;
    border-top: none;
}
.beta-links a {
    color: var(--accent-hover);
    text-decoration: none;
    font-size: 0.9rem;
}
.beta-links a:hover {
    text-decoration: underline;
}
.beta-link-sep {
    margin: 0 0.8rem;
    color: var(--text-muted);
    opacity: 0.4;
}
.beta-disclaimer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    line-height: 1.5;
    text-align: center;
}
