/* ════════════════════════════════════════════════════════════════
   PENELOPE INC. — SHARED DESIGN SYSTEM
   Every page includes this file. Change the palette once, here,
   and every page updates. Do not redefine these variables per-page.
   ════════════════════════════════════════════════════════════════ */

:root {
    --bg-deep: #030712;
    --bg-card: #0f172a;
    --bg-hover: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-orange: #dd5a12;
    --accent-orange-glow: rgba(221, 90, 18, 0.4);
    --accent-blue: #0ea5e9;
    --accent-green: #10b981;
    --border-color: rgba(255, 255, 255, 0.1);

    --ff-display: 'Space Grotesk', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --ff-mono: 'JetBrains Mono', monospace;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--ff-body);
    background-color: var(--bg-deep);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1350px; margin: 0 auto; padding: 0 2rem; }
.section-padding { padding: 8rem 0; }
.reveal { opacity: 0; transform: translateY(30px); transition: var(--transition); transition-duration: 0.8s; }
.reveal.active { opacity: 1; transform: translateY(0); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--accent-orange); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 1rem; display: block; }
.section-title { font-family: var(--ff-display); font-size: clamp(2.2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
.section-desc { color: var(--text-muted); max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, var(--accent-orange), #f97316);
    color: #fff; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; font-family: var(--ff-display);
    transition: var(--transition); border: 1px solid transparent; cursor: pointer;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px var(--accent-orange-glow); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: #fff; padding: 1rem 2rem; border-radius: 8px; font-weight: 600; font-family: var(--ff-display);
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.2); cursor: pointer;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); border-color: #fff; transform: translateY(-3px); }

/* ─── HEADER / MEGA MENU ─── */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(3, 7, 18, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand { font-family: var(--ff-display); font-size: 1.5rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; }
.brand img { width: 32px; height: 32px; border-radius: 50%; }

.desktop-nav { display: flex; gap: 2rem; height: 100%; }
.nav-item { position: relative; display: flex; align-items: center; height: 100%; font-family: var(--ff-display); font-weight: 500; font-size: 0.95rem; cursor: pointer; color: var(--text-muted); transition: color 0.3s; }
.nav-item:hover { color: #fff; }
.nav-item i { font-size: 0.7rem; margin-left: 6px; transition: transform 0.3s; }
.nav-item:hover i { transform: rotate(180deg); }

.mega-menu {
    position: absolute; top: 80px; left: 50%; transform: translateX(-50%) translateY(10px);
    width: 1000px; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(30px);
    border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); display: grid; gap: 2rem;
    grid-template-columns: 1fr 2fr;
}
.nav-item:hover .mega-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }

.mega-menu-sidebar h3 { font-family: var(--ff-mono); font-size: 0.8rem; color: var(--accent-orange); text-transform: uppercase; margin-bottom: 1rem; }
.mega-menu-sidebar p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1.5rem; }
.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.mega-link { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem; border-radius: 12px; transition: var(--transition); background: rgba(255,255,255,0.02); border: 1px solid transparent; }
.mega-link:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); transform: translateX(5px); }
.mega-icon { width: 40px; height: 40px; border-radius: 8px; background: rgba(221, 90, 18, 0.1); color: var(--accent-orange); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.mega-blue .mega-icon { background: rgba(14, 165, 233, 0.1); color: var(--accent-blue); }
.mega-text h4 { font-size: 1rem; color: #fff; margin-bottom: 0.2rem; font-family: var(--ff-display); }
.mega-text p { font-size: 0.8rem; color: var(--text-muted); }

.mobile-toggle { display: none; font-size: 1.5rem; color: #fff; background: none; border: none; cursor: pointer; }

@media (max-width: 1024px) {
    .desktop-nav { display: none; }
    .mobile-toggle { display: block; }

    .mobile-menu {
        position: fixed; inset: 0; background: rgba(3,7,18,0.98); z-index: 999;
        padding: 100px 2rem 2rem; display: flex; flex-direction: column; gap: 1.5rem;
        opacity: 0; pointer-events: none; transition: all 0.3s ease; backdrop-filter: blur(20px);
        overflow-y: auto;
    }
    .mobile-menu.active { opacity: 1; pointer-events: auto; }
    .mob-item { border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; }
    .mob-head { display: flex; justify-content: space-between; font-family: var(--ff-display); font-size: 1.3rem; font-weight: 600; cursor: pointer; }
    .mob-body { display: none; padding-top: 1rem; flex-direction: column; gap: 1rem; }
    .mob-body.open { display: flex; }
    .mob-body a { color: var(--text-muted); font-size: 1rem; }
}

/* ─── PAGE HERO (sub-pages, shorter than homepage hero) ─── */
.page-hero {
    padding: 11rem 0 5rem;
    background: linear-gradient(180deg, var(--bg-deep), var(--bg-card));
    border-bottom: 1px solid var(--border-color);
}
.page-hero .section-eyebrow { text-align: left; }
.page-hero h1 {
    font-family: var(--ff-display); font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; margin-bottom: 1.2rem; max-width: 780px;
}
.page-hero p.lede { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }

/* ─── GALLERY / LIGHTBOX (reused everywhere) ─── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.gallery-item { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--bg-card); border: 1px solid var(--border-color); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); opacity: 0.85; }
.gallery-item:hover img { opacity: 1; transform: scale(1.04); }

.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; backdrop-filter: blur(10px); }
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 12px; transform: scale(0.9); transition: transform 0.3s ease; }
.lightbox.active img { transform: scale(1); }
.lightbox-close { position: absolute; top: 2rem; right: 3rem; color: #fff; font-size: 3rem; cursor: pointer; transition: color 0.2s; }
.lightbox-close:hover { color: var(--accent-orange); }

/* ─── TELEMETRY / LIVE PROGRESS (suite pages) ─── */
.telemetry-strip { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.8rem 2rem; }
.telemetry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.telemetry-label { font-family: var(--ff-display); font-weight: 600; font-size: 1.1rem; }
.telemetry-status { font-family: var(--ff-mono); font-size: 0.72rem; letter-spacing: 1px; padding: 0.3rem 0.7rem; border-radius: 4px; border: 1px solid var(--border-color); text-transform: uppercase; }
.telemetry-status.status-development { color: var(--accent-blue); border-color: rgba(14,165,233,0.4); }
.telemetry-status.status-planning { color: var(--text-muted); }
.telemetry-status.status-testing { color: #fbbf24; border-color: rgba(251,191,36,0.4); }
.telemetry-status.status-complete { color: var(--accent-green); border-color: rgba(16,185,129,0.4); }
.telemetry-track { position: relative; height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px; overflow: hidden; }
.telemetry-fill { height: 100%; background: linear-gradient(90deg, var(--accent-orange), #f97316); border-radius: 4px; transition: width 0.6s ease; }
.telemetry-foot { display: flex; justify-content: space-between; margin-top: 0.8rem; font-family: var(--ff-mono); font-size: 0.8rem; color: var(--text-muted); }
.telemetry-pct { color: var(--text-main); }
.telemetry-degraded { color: #fbbf24; }
.telemetry-loading, .telemetry-empty { color: var(--text-muted); font-size: 0.95rem; padding: 1rem 0; }

/* ─── VALIDATION CTA ("we need you") ─── */
.validation-cta {
    background: linear-gradient(135deg, rgba(239,68,68,0.08), var(--bg-card) 60%);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 20px;
    text-align: center;
    padding: 4rem 3rem;
}
.validation-cta .section-eyebrow { color: #f87171; }
.validation-cta h2 { font-family: var(--ff-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; max-width: 780px; margin: 0 auto 1.2rem; }
.validation-cta p { color: var(--text-muted); max-width: 620px; margin: 0 auto 2rem; }

/* ─── FOOTER (shared, unchanged from homepage) ─── */
footer { background: #000; padding: 4rem 0 2rem; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand h2 { font-family: var(--ff-display); font-size: 1.5rem; margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 300px; }
.footer-col h4 { font-family: var(--ff-mono); font-size: 0.8rem; text-transform: uppercase; color: #fff; margin-bottom: 1.5rem; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent-orange); }
.footer-bottom { border-top: 1px solid var(--border-color); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.85rem; }

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

/* ─── FORMS (join, contact — shared styling) ─── */
.form-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem; max-width: 700px; margin: 0 auto; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-family: var(--ff-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.6rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; background: var(--bg-deep); border: 1px solid var(--border-color); border-radius: 8px;
    padding: 0.9rem 1rem; color: var(--text-main); font-family: var(--ff-body); font-size: 0.95rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent-orange); box-shadow: 0 0 0 3px rgba(221,90,18,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-status { margin-top: 1rem; font-family: var(--ff-mono); font-size: 0.85rem; }
.form-status.success { color: var(--accent-green); }
.form-status.error { color: #f87171; }

/* ─── SERVICE SHOWCASE BLOCKS (services hub) ─── */
.service-showcase {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    margin-bottom: 3rem;
    overflow: hidden;
    transition: var(--transition);
}
.service-showcase:hover { border-color: rgba(255,255,255,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.service-showcase.theme-orange { border-top: 3px solid var(--accent-orange); }
.service-showcase.theme-blue { border-top: 3px solid var(--accent-blue); }

.service-header { padding: 3rem; border-bottom: 1px solid var(--border-color); display: flex; align-items: flex-start; gap: 2rem; background: rgba(255,255,255,0.01); }
.service-header-icon { width: 64px; height: 64px; border-radius: 14px; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.theme-orange .service-header-icon { color: var(--accent-orange); background: rgba(221,90,18,0.1); border-color: rgba(221,90,18,0.2); }
.theme-blue .service-header-icon { color: var(--accent-blue); background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.2); }

.service-info h2 { font-family: var(--ff-display); font-size: 1.9rem; font-weight: 700; margin-bottom: 0.9rem; }
.service-info p { color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; max-width: 760px; margin-bottom: 1.2rem; }
.service-info ul.feature-list { margin: 0 0 1.4rem; padding-left: 1.1rem; color: var(--text-muted); font-size: 0.95rem; line-height: 1.9; }
.service-meta-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1.3rem; }
.service-meta-tags span { font-family: var(--ff-mono); font-size: 0.72rem; padding: 4px 11px; background: rgba(0,0,0,0.3); border: 1px solid var(--border-color); border-radius: 100px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.service-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.service-gallery { padding: 1.8rem 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; background: #000; }

@media (max-width: 900px) {
    .service-header { flex-direction: column; padding: 2rem; }
    .service-gallery { padding: 1.5rem; }
}

/* ─── LIVE LANDSCAPE (Lens.org patent dashboard embed) ─── */
.phi-landscape {
    background-color: var(--bg-milky-card);
    padding: 4rem 8%;
    margin: 0;
    border-radius: 0;
}
.phi-landscape-inner { max-width: 720px; margin: 0 auto; text-align: center; }

.phi-landscape-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.1);
    color: var(--blue-accent);
    font-family: var(--font-sans);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
    padding: 0.4rem 0.9rem; border-radius: 999px; margin-bottom: 1rem;
}

.phi-landscape-inner h2 {
    font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400;
    color: var(--navy-creamy-dark); margin: 0 0 0.7rem;
}
.phi-landscape-inner > p {
    color: var(--text-muted); font-size: 1.02rem; line-height: 1.7; margin: 0 0 2rem;
}

.phi-landscape-card {
    display: block; background-color: var(--bg-milky-white);
    border: 1px solid #E2E8F0; border-radius: 10px; padding: 1.6rem 1.8rem;
    text-decoration: none; color: inherit; transition: all 0.25s ease; text-align: left;
}
.phi-landscape-card:hover {
    border-color: var(--blue-accent); box-shadow: 0 10px 25px rgba(37,99,235,0.12);
    transform: translateY(-2px);
}
.phi-landscape-card-content { display: flex; align-items: flex-start; gap: 1.1rem; margin-bottom: 1.1rem; }
.phi-landscape-icon {
    flex-shrink: 0; width: 46px; height: 46px; border-radius: 8px;
    background: rgba(37, 99, 235, 0.1); display: flex; align-items: center; justify-content: center;
    color: var(--blue-accent);
}
.phi-landscape-card h3 { font-family: var(--font-sans); margin: 0 0 0.3rem; font-size: 1.1rem; font-weight: 600; color: var(--navy-creamy-dark); }
.phi-landscape-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); line-height: 1.5; }
.phi-landscape-cta { display: inline-block; font-size: 0.88rem; font-weight: 600; color: var(--blue-accent); }

.phi-landscape-attribution { margin-top: 1.6rem; font-size: 0.8rem; color: var(--text-muted); }
.phi-landscape-attribution a { color: var(--text-muted); text-decoration: underline; }
.phi-landscape-attribution a:hover { color: var(--blue-accent); }

