@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --bg-primary: #1e2128;
    --bg-secondary: #282c34;
    --text-primary: #f0f2f5;
    --text-secondary: #a8b0bd;
    --border: #3d4450;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.45);
    --radius: 12px;
    --site-max: 1120px;
    --site-wide: 1200px;
    --nav-height: 64px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: #7ec8f7; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

/* ── Hub navigation (neutral LyraDisplay) ── */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.site-nav-inner {
    max-width: var(--site-wide);
    margin: 0 auto;
    padding: 0 1.25rem;
    min-height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none !important;
    color: var(--text-primary) !important;
}

.site-brand img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.site-brand span {
    font-weight: 700;
    font-size: 1.1rem;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.55em 1em;
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid var(--border) !important;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary) !important;
    transition: background 0.2s, transform 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    color: #fff !important;
}

.site-main { width: 100%; }

.site-container {
    max-width: var(--site-max);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.page-hero {
    padding: 3.5rem 0 1.5rem;
    text-align: center;
}

.page-hero h1 {
    margin: 0 0 0.75rem;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.page-hero p {
    margin: 0 auto;
    max-width: 560px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ── Product grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.35rem;
    padding: 1.5rem 0 3.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.product-card-top {
    flex: 1;
    text-decoration: none !important;
    color: inherit !important;
    display: flex;
    flex-direction: column;
}

.product-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    padding: 1rem 1.15rem;
    min-height: 72px;
}

.product-card-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

.product-card-brand {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    flex: 1;
    min-width: 120px;
}

.product-card-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.product-card-by {
    font-size: 0.68rem;
    font-weight: 500;
    opacity: 0.75;
}

.product-card-body {
    padding: 1.65rem 1.15rem 1rem;
    flex: 1;
}

.product-card-body .type-badge {
    display: inline-flex;
    margin-top: 0.15rem;
}

.product-card-body p {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    opacity: 0.88;
}

.product-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55em 1em;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.product-card-btn:hover {
    transform: translateY(-1px);
}

.type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28em 0.65em;
    border-radius: 20px;
    font-size: 0.72em;
    font-weight: 600;
    width: fit-content;
}

/* ── Status Ops card (matches ops.lyradisplay.com marketing) ── */
.product-card--ops {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #292929;
    border: 1px solid #4a4a4a;
}

.product-card--ops .product-card-header {
    background: linear-gradient(135deg, #990000, #148FCC);
}

.product-card--ops .product-card-name,
.product-card--ops .product-card-by {
    color: #fff;
}

.product-card--ops .product-card-body p {
    color: #adb5bd;
}

.product-card--ops .type-badge {
    background: #4a4a4a;
    color: #f8f9fa;
    border: 1px solid #5a5a5a;
}

.product-card--ops .product-card-btn--primary {
    background: #148FCC;
    border: 1.5px solid #148FCC;
    color: #fff !important;
}

.product-card--ops .product-card-btn--primary:hover {
    background: #0f6fa0;
    border-color: #0f6fa0;
    color: #fff !important;
}

.product-card--ops .product-card-btn--demo {
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid #4a4a4a;
    color: #f8f9fa !important;
}

.product-card--ops .product-card-btn--demo:hover {
    background: rgba(20, 143, 204, 0.2);
    border-color: #148FCC;
    color: #fff !important;
}

.product-card-mock--ops {
    display: flex;
    gap: 0.35rem;
    margin-left: auto;
}

.mock-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2em 0.45em;
    border-radius: 6px;
    color: #fff;
}

.mock-pill--up { background: #198754; }
.mock-pill--warn { background: #ffc107; color: #1a1a1a; }

/* ── Color Scope card (matches scope.lyradisplay.com marketing) ── */
.product-card--scope {
    font-family: 'Inter', Arial, sans-serif;
    background: #1a1d22;
    border: 1px solid #3c414b;
}

.product-card--scope .product-card-header {
    background: #25282f;
    border-bottom: 2px solid #7ec8f7;
}

.product-card--scope .product-card-name {
    color: #d8d9db;
}

.product-card--scope .product-card-by {
    color: #a0a3a8;
}

.product-card--scope .product-card-body p {
    color: #a0a3a8;
}

.product-card--scope .type-badge {
    background: #2a2e36;
    color: #7ec8f7;
    border: 1px solid #3c414b;
}

.product-card--scope .product-card-btn--primary {
    background: #4b5e85;
    border: 1.5px solid #7ec8f7;
    color: #fff !important;
}

.product-card--scope .product-card-btn--primary:hover {
    background: #5f75a8;
    color: #fff !important;
}

.product-card--scope .product-card-btn--demo {
    background: rgba(126, 200, 247, 0.1);
    border: 1.5px solid #3c414b;
    color: #7ec8f7 !important;
}

.product-card--scope .product-card-btn--demo:hover {
    background: rgba(126, 200, 247, 0.2);
    border-color: #7ec8f7;
    color: #fff !important;
}

.product-card-mock--scope {
    display: flex;
    gap: 0.3rem;
    margin-left: auto;
}

.mock-scope {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    opacity: 0.85;
}

.mock-scope--cyan { background: rgba(126, 200, 247, 0.35); border: 1px solid #7ec8f7; }
.mock-scope--magenta { background: rgba(224, 64, 251, 0.25); border: 1px solid #e040fb; }
.mock-scope--green { background: rgba(74, 222, 128, 0.25); border: 1px solid #4ade80; }

/* ── Projector card (matches projector.lyradisplay.com marketing) ── */
.product-card--projector {
    font-family: 'Inter', Arial, sans-serif;
    background: #0f172a;
    border: 1px solid #334155;
}

.product-card--projector .product-card-header {
    background: #1e293b;
    border-bottom: 2px solid #3b82f6;
}

.product-card--projector .product-card-name {
    color: #d1d5db;
}

.product-card--projector .product-card-by {
    color: #94a3b8;
}

.product-card--projector .product-card-body p {
    color: #94a3b8;
}

.product-card--projector .type-badge {
    background: #334155;
    color: #60a5fa;
    border: 1px solid #475569;
}

.product-card--projector .product-card-btn--primary {
    background: #2563eb;
    border: 1.5px solid #3b82f6;
    color: #fff !important;
}

.product-card--projector .product-card-btn--primary:hover {
    background: #3b82f6;
    color: #fff !important;
}

.product-card--projector .product-card-btn--demo {
    background: rgba(59, 130, 246, 0.12);
    border: 1.5px solid #334155;
    color: #60a5fa !important;
}

.product-card--projector .product-card-btn--demo:hover {
    background: rgba(59, 130, 246, 0.22);
    border-color: #3b82f6;
    color: #fff !important;
}

.product-card-mock--projector {
    display: flex;
    gap: 2px;
    margin-left: auto;
    width: 72px;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #334155;
}

.mock-col {
    flex: 1;
    background: rgba(59, 130, 246, 0.15);
}

.mock-col--preview {
    flex: 1.2;
    background: #000;
}

/* ── Footer ── */
.site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.site-footer a {
    color: #7ec8f7;
    font-weight: 600;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Contact page (unchanged patterns) ── */
.contact-section {
    padding: 2rem 0 4rem;
}

.contact-panel {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 5px solid #7ec8f7;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-panel-icon {
    font-size: 2rem;
    color: #7ec8f7;
    margin-bottom: 0.75rem;
}

.contact-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
}

.contact-panel p {
    margin: 0 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-email {
    display: block;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    text-decoration: none !important;
}

.contact-email:hover {
    color: #7ec8f7 !important;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75em 1.5em;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    background: #4b5e85 !important;
    border: 1.5px solid #7ec8f7 !important;
    color: #fff !important;
    transition: background 0.2s, transform 0.2s;
}

.contact-btn:hover {
    background: #5f75a8 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.nav-btn.is-active {
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1.35rem;
    }
}

@media (max-width: 640px) {
    .site-nav-inner {
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.65rem;
        padding: 0.75rem 1rem;
        min-height: auto;
    }

    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-brand span {
        font-size: 1rem;
    }

    .site-nav-links {
        flex: 1 1 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 0.45rem;
    }

    .nav-btn {
        font-size: 0.85em;
        padding: 0.5em 0.85em;
    }

    .site-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .page-hero h1 {
        font-size: clamp(1.55rem, 7vw, 1.85rem);
    }

    .page-hero {
        padding: 2rem 0 1rem;
    }

    .page-hero p {
        font-size: 0.95rem;
    }

    .product-card-mock {
        display: none;
    }

    .product-card-actions {
        flex-direction: column;
    }

    .product-card-btn {
        justify-content: center;
        width: 100%;
    }

    .product-card-header {
        flex-wrap: wrap;
    }

    .contact-panel {
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 1.5rem 1.15rem;
    }
}