/* =========================================================
   LAYOUT.CSS - Structural Chassis and Responsiveness (Master)
   (Integrated Version - Base Layout + Hover Spotlight Engine)
   ========================================================= */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { width: 100%; max-width: 100%; overflow-x: clip; }
body { font-family: 'Inter', sans-serif; overflow-x: clip; width: 100%; max-width: 100%; transition: opacity 0.3s; color: inherit;}
img, video, canvas, svg { max-width: 100%; height: auto; }
/* Absolute/cover fills — do NOT force height:auto (breaks sol-micro + carousel). */
.sol-micro-media img,
.carousel-media img,
.carousel-img,
.xp-plate img,
.case-card img.cover-fill {
    max-width: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- CENTRAL NAVIGATION --- */
nav { position: fixed; top: 0; left: 0; width: 100%; background: #ffffff; padding: 20px 4%; display: flex; justify-content: space-between; align-items: center; z-index: 1000; border-bottom: 1px solid #e5e7eb; height: 80px; }
body[data-theme="dark"] nav { background: #0b1120; border-color: rgba(255,255,255,0.05); }

.logo-container { display: flex; align-items: center; cursor: pointer; }
.logo-container h1 { font-size: 1.4rem; font-weight: 900; color: #111827; letter-spacing: -1px; }
body[data-theme="dark"] .logo-container h1 { color: #ffffff; }
.logo-container h1 span { color: #2563eb; font-weight: 700; }

.nav-right { display: flex; align-items: center; gap: 30px; }
.nav-links-main { display: flex; gap: 25px; }
.nav-links-main a, .nav-links-legal a { text-decoration: none; font-size: 0.9rem; font-weight: 600; color: #374151; transition: 0.2s; cursor: pointer;}
body[data-theme="dark"] .nav-links-main a, body[data-theme="dark"] .nav-links-legal a { color: #94a3b8; }
.nav-links-main a:hover { color: #2563eb; }

.nav-links-legal { display: none; flex-direction: column; gap: 10px; margin-top: 20px; border-top: 1px solid #e5e7eb; padding-top: 15px;}
body[data-theme="dark"] .nav-links-legal { border-color: rgba(255,255,255,0.05); }

.theme-btn { background: transparent; border: none; font-size: 1.3rem; cursor: pointer; transition: 0.3s; color: inherit;}
.theme-btn:hover { transform: scale(1.15); }

.nav-cta { background: #111827; color: #ffffff; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; cursor: pointer; transition: 0.2s; letter-spacing: 1px;}
body[data-theme="dark"] .nav-cta { background: #ffffff; color: #111827; }
.nav-cta:hover { transform: translateY(-1px); }

.mobile-menu-btn { display: none; cursor: pointer; background: transparent; border: none; z-index: 1202;}
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background: #374151; margin-bottom: 5px; transition: 0.3s; border-radius: 2px;}
body[data-theme="dark"] .mobile-menu-btn span { background: #ffffff; }

/* 4.6.392: align with core — compact drawer on phone (was 280px + 1.1rem + huge padding) */
@media (max-width: 1024px) {
    .nav-right {
        position: fixed; top: 0; right: -100%;
        width: min(240px, 72vw); max-width: 78vw;
        height: 100vh; height: 100dvh;
        background: #ffffff; flex-direction: column; align-items: flex-start;
        padding: 72px 18px 20px; gap: 0;
        box-shadow: -12px 0 36px rgba(0,0,0,0.06);
        transition: right 0.35s ease; z-index: 1201; pointer-events: none;
        box-sizing: border-box; overflow-y: auto;
    }
    body[data-theme="dark"] .nav-right { background: #111827; }
    .nav-right.active { right: 0; pointer-events: auto; }
    .nav-links-main { flex-direction: column; gap: 0; width: 100%; }
    .nav-links-main a {
        font-size: 0.9rem; width: 100%; display: block;
        padding: 7px 0; line-height: 1.25;
        pointer-events: auto; cursor: pointer;
    }
    .nav-links-legal { display: flex; gap: 0; margin-top: 4px; padding-top: 10px; }
    .nav-links-legal a { font-size: 0.72rem; padding: 5px 0; pointer-events: auto; cursor: pointer; }
    .nav-cta {
        margin-top: 10px; width: 100%; padding: 10px 12px;
        font-size: 0.75rem; pointer-events: auto; box-sizing: border-box;
    }
    .theme-btn { position: absolute; top: 18px; left: 14px; font-size: 1.1rem; }
    .mobile-menu-btn { display: block; }
}
@media (max-width: 700px) {
    .nav-right { width: min(220px, 70vw); padding: 64px 14px 16px; }
    .nav-links-main a { font-size: 0.86rem; padding: 6px 0; }
    .nav-links-legal a { font-size: 0.68rem; }
    .nav-cta { padding: 9px 10px; font-size: 0.72rem; margin-top: 8px; }
}
@media (max-width: 400px) {
    .nav-right { width: min(200px, 66vw); padding: 60px 12px 14px; }
    .nav-links-main a { font-size: 0.82rem; padding: 5px 0; }
    .nav-cta { padding: 8px 10px; font-size: 0.7rem; }
}

/* --- MAIN BANNER (HERO) ELITE STRUCTURE --- */
.hero { min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 92px 5% 20px; position: relative; z-index: 1; gap: 12px; background: #ffffff; width: 100%; max-width: 100%; overflow-x: clip; box-sizing: border-box; }
.hero-tagline { font-size: 0.78rem; color: #111827; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; background: transparent; padding: 6px 14px; border-radius: 999px; border: 1px solid #111827; margin: 0; max-width: 100%; box-sizing: border-box; }
.hero h1 { font-size: clamp(1.35rem, 5.2vw, 2.65rem); max-width: min(920px, 100%); width: 100%; line-height: 1.15; letter-spacing: -0.03em; font-weight: 900; color: #111827; margin: 0; overflow-wrap: anywhere; word-break: break-word; white-space: normal; box-sizing: border-box; padding: 0 4px; }
.hero h1 span { color: inherit; display: inline; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.hero p { font-size: clamp(0.9rem, 2.6vw, 1.05rem); color: #111827; max-width: min(680px, 100%); width: 100%; line-height: 1.45; font-weight: 500; margin: 0; overflow-wrap: anywhere; box-sizing: border-box; }
.hero-prompt-box { display: flex; width: 100%; max-width: 800px; background: #ffffff; border: 1px solid #d1d5db; border-radius: 12px; padding: 8px; margin-top: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); transition: 0.3s; }
.hero-prompt-box:focus-within { border-color: #111827; box-shadow: 0 15px 50px rgba(0,0,0,0.12); }
.hero-prompt-box input { flex: 1; background: transparent; border: none; color: #111827; padding: 18px 25px; font-size: 1.1rem; outline: none; font-weight: 500; }
.hero-prompt-box button { background: #111827; color: #ffffff; border: none; padding: 0 40px; border-radius: 8px; font-weight: 900; text-transform: uppercase; font-size: 1rem; letter-spacing: 1px; cursor: pointer; transition: 0.3s; }
.hero-prompt-box button:hover { transform: scale(1.02); background: #000000; }

/* Pitch CTAs — black on white / white on black (no pastel blue mismatch) */
.hero-cta-row {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 10px 12px; width: 100%; max-width: 720px; margin: 4px auto 0;
}
.hero-cta-primary {
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    background: #111827; color: #ffffff !important; border: 1px solid #111827;
    padding: 12px 20px; border-radius: 999px;
    font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-cta-primary:hover { background: #000000; border-color: #000000; }
.hero-cta-secondary {
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
    background: #ffffff; color: #111827 !important;
    border: 1px solid #111827;
    padding: 12px 20px; border-radius: 999px;
    font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
    cursor: pointer; font-family: inherit;
}
.hero-cta-secondary:hover { background: #f3f4f6; }

body[data-theme="dark"] .hero { background: #05070d; }
body[data-theme="dark"] .hero-tagline { color: #f9fafb; border-color: #f9fafb; }
body[data-theme="dark"] .hero h1 { color: #f9fafb; }
body[data-theme="dark"] .hero p { color: #f9fafb; }
body[data-theme="dark"] .hero-cta-primary {
    background: #f9fafb; color: #05070d !important; border-color: #f9fafb;
}
body[data-theme="dark"] .hero-cta-primary:hover { background: #ffffff; }
body[data-theme="dark"] .hero-cta-secondary {
    background: transparent; color: #f9fafb !important; border-color: #f9fafb;
}
body[data-theme="dark"] .hero-cta-secondary:hover { background: rgba(255,255,255,0.08); }

@media (max-width: 600px) {
    .hero { padding: 84px 4% 16px; gap: 10px; min-height: 0; }
    .hero h1 { font-size: clamp(1.22rem, 6.4vw, 1.75rem); line-height: 1.15; }
    .hero-tagline { font-size: 0.62rem; letter-spacing: 0.1em; padding: 5px 12px; }
    .hero-cta-row { max-width: 100%; margin-top: 2px; }
    .hero-cta-primary, .hero-cta-secondary { width: 100%; text-align: center; box-sizing: border-box; }
    .hero-prompt-box { flex-direction: column; gap: 10px; background: transparent; border: none; box-shadow: none; padding: 0; max-width: 100%; }
    .hero-prompt-box input { width: 100%; background: #ffffff; border: 1px solid #d1d5db; border-radius: 12px; padding: 18px 25px; }
    .hero-prompt-box button { width: 100%; padding: 18px; border-radius: 12px; }
}

/* --- SHOWCASE AND PRICING --- */
.showcase-grid { padding: 36px 5% 48px; background: #f8fafc; width: 100%; max-width: 100%; overflow-x: clip; box-sizing: border-box; }
.section-title { text-align: center; font-size: clamp(1.35rem, 4.5vw, 2rem); margin-bottom: 10px; color: #111827; font-weight: 900; max-width: 100%; overflow-wrap: anywhere; }
.section-subtitle { text-align: center; font-size: clamp(0.9rem, 3vw, 1.05rem); color: #6b7280; margin: 0 auto 20px; max-width: 100%; overflow-wrap: anywhere; padding: 0 2px; box-sizing: border-box; }
.case-container { display: flex; flex-direction: column; gap: 40px; max-width: 1000px; margin: 0 auto; }
.case-card { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.case-card img { width: 100%; height: auto; }
.case-content { padding: 35px; }

.pricing-section { padding: 80px 5%; background: #ffffff; border-top: 1px solid #e5e7eb; width: 100%; overflow: hidden;}
.ppp-notice { text-align: center; color: #6b7280; font-size: 0.85rem; margin-bottom: 45px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; align-items: stretch; }
.price-card { background: #f9fafb; border: 1px solid #e5e7eb; border-top: 4px solid #d1d5db; padding: 35px 25px; border-radius: 12px; text-align: center; display: flex; flex-direction: column; min-height: 600px; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.price-card.popular { border-top-color: #2563eb; background: #ffffff; border-color: #bfdbfe; box-shadow: 0 20px 40px rgba(37,99,235,0.08); transform: scale(1.05); }
.popular-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #2563eb; color: #fff; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; padding: 6px 15px; border-radius: 20px; }
.p-name { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 2px; color: #4b5563; margin-bottom: 12px; font-weight: 900; }
.p-price { font-size: 2.8rem; font-weight: 900; color: #111827; margin-bottom: 20px; font-family: monospace; }
.p-price span { font-size: 1rem; color: #9ca3af; font-weight: normal; }
.p-limits { font-size: 0.85rem; color: #374151; font-weight: 800; background: #f3f4f6; padding: 12px; border-radius: 8px; margin-bottom: 25px; border: 1px solid #e5e7eb; }
.p-features { list-style: none; text-align: left; margin-bottom: 30px; flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.p-features li { font-size: 0.85rem; color: #4b5563; padding-left: 26px; position: relative; }
.p-features li::before { content: '✓'; position: absolute; left: 0; color: #10b981; font-weight: 900; }
.p-btn { width: 100%; padding: 14px; border-radius: 6px; border: 1px solid #d1d5db; background: transparent; color: #111827; font-weight: 800; cursor: pointer; text-transform: uppercase; font-size: 0.85rem; pointer-events: none; }
.price-card.popular .p-btn { background: #2563eb; color: #fff; border: none; }

/* =========================================================
   ORGANIC FRAGMENTED MANUAL (HOVER SPOTLIGHT ENGINE)
   ========================================================= */
.manual-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    z-index: 7999;
    opacity: 0;
    pointer-events: none !important; /* CLICKJACKING SHIELD */
    transition: opacity 0.25s ease;
}
.manual-overlay.active { opacity: 1; }

.manual-elevated {
    position: relative;
    z-index: 8000 !important;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.25) !important;
    transform: scale(1.01) translateY(-2px);
    background: #ffffff !important;
    transition: all 0.25s ease;
}
body[data-theme="dark"] .manual-elevated { background: #111827 !important; }

.manual-balloon {
    position: absolute;
    background: #ffffff;
    width: 320px;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    z-index: 8001;
    border: 1px solid #e5e7eb;
    text-align: left;
    pointer-events: none !important; /* CLICKJACKING SHIELD */
    animation: fadeInBalloon 0.2s ease-out;
}
body[data-theme="dark"] .manual-balloon { background: #1e293b; border-color: #334155; color: #f8fafc; }
@keyframes fadeInBalloon { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.manual-balloon-header { font-size: 1.1rem; font-weight: 900; color: #111827; margin-bottom: 4px; text-transform: uppercase; letter-spacing: -0.5px; }
body[data-theme="dark"] .manual-balloon-header { color: #ffffff; }
.manual-balloon-tag { font-size: 0.75rem; font-weight: 800; color: #2563eb; text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.manual-balloon-desc { font-size: 0.85rem; color: #4b5563; line-height: 1.5; margin-bottom: 0; }
body[data-theme="dark"] .manual-balloon-desc { color: #94a3b8; }
.manual-balloon-footer { font-size: 0.7rem; color: #9ca3af; margin-top: 12px; border-top: 1px solid #f1f5f9; padding-top: 8px; font-weight: 700; text-transform: uppercase; }
body[data-theme="dark"] .manual-balloon-footer { border-color: #334155; color: #64748b; }

/* SHOWCASE RESPONSIVENESS */
@media (max-width: 850px) {
    .showcase-grid { padding: 24px 4% 36px; }
    .price-grid { display: flex; flex-direction: column; width: 100% !important; }
    .price-card { min-height: auto; width: 100% !important; margin-bottom: 20px; }
    .manual-balloon { width: 90% !important; left: 5% !important; transform: none !important; position: fixed; bottom: 20px; top: auto !important; }
    .slider-tabs { width: 100%; max-width: 100%; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 6px; }
    .slider-tab { flex: 0 0 auto; white-space: nowrap; }
}