/* ============================================================================
   WarehousePlanner Online v10.0.0 — Public Pre-Login Enterprise Portal Styles
   Aligned with CubeMaster Online & RouteBuilder Online Maritime Executive Shell
   ============================================================================ */

.pub-shell {
    width: 100%; height: 100vh; overflow-y: auto; overflow-x: hidden;
    background: #f8fafc; color: #1e293b; display: flex; flex-direction: column;
}
.pub-nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(6, 29, 34, 0.94); backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,0.09); color: #fff;
    padding: 0 24px; height: 62px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.pub-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; color: #fff; flex-shrink: 0; }
.pub-brand-name { font-family: 'Outfit', sans-serif; font-size: 16.5px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pub-brand-name b { color: #34d399; }
.pub-brand-domain { font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 600; color: #6ee7b7; opacity: 0.88; letter-spacing: 0.03em; }
.pub-ver-pill { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: rgba(52,211,153,0.16); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.35); }

.pub-nav-links { display: flex; align-items: center; gap: 3px; min-width: 0; overflow-x: auto; }
.pub-link {
    border: none; background: transparent; color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 600;
    padding: 7px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.pub-link:hover { color: #fff; background: rgba(255,255,255,0.09); }
.pub-link.active { color: #fff; background: #059669; }
.pub-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.pub-btn-ghost {
    border: 1px solid rgba(255,255,255,0.24); background: rgba(255,255,255,0.06); color: #fff;
    padding: 7px 13px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.pub-btn-ghost:hover { background: rgba(255,255,255,0.15); }
.pub-btn-primary {
    border: none; background: linear-gradient(135deg, #059669, #0891b2); color: #fff;
    padding: 8px 15px; border-radius: 8px; font-size: 12.5px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
    box-shadow: 0 4px 14px rgba(5,150,105,0.32);
}
.pub-btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Hero */
.pub-hero {
    background: radial-gradient(circle at 18% 18%, #0d4b42 0%, #062124 55%, #031215 100%);
    color: #fff; padding: 54px 28px 56px; position: relative; overflow: hidden;
}
.pub-container { max-width: 1220px; margin: 0 auto; width: 100%; }
.pub-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.pub-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 99px;
    background: rgba(52,211,153,0.14); border: 1px solid rgba(52,211,153,0.35); color: #6ee7b7;
    font-size: 11px; font-weight: 800; letter-spacing: 0.05em; margin-bottom: 16px;
}
.pub-hero h1 { color: #fff; font-size: 40px; font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 16px; }
.pub-hero h1 span { color: #34d399; }
.pub-hero-lead { color: #cbd5e1; font-size: 15.5px; line-height: 1.65; margin: 0 0 24px; max-width: 560px; }
.pub-hero-cta { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; margin-bottom: 24px; }
.pub-stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.pub-stat strong { display: block; font-family: 'Outfit', sans-serif; font-size: 22px; color: #34d399; }
.pub-stat span { font-size: 11px; color: #94a3b8; }

.pub-hero-visual {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(110,231,183,0.24);
    border-radius: 16px; padding: 10px; box-shadow: 0 24px 56px rgba(0,0,0,0.45);
}

/* Browser-framed Real Screenshot Showcases & Lightbox */
.pub-shot-browser, .pub-inline-shot {
    border-radius: 12px; overflow: hidden; border: 1px solid rgba(148,163,184,0.28);
    background: #0b1f26; box-shadow: 0 14px 36px rgba(2,12,18,0.28); cursor: zoom-in;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pub-inline-shot { background: #fff; border-color: #cbd5e1; box-shadow: 0 12px 28px rgba(15,23,42,0.10); }
.pub-shot-browser:hover, .pub-inline-shot:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(2,12,18,0.36); }
.pub-shot-chrome {
    display: flex; align-items: center; gap: 6px; padding: 8px 12px;
    background: #06181e; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.pub-shot-chrome.compact { background: #0f242c; padding: 7px 11px; }
.pub-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.pub-dot.r { background: #f87171; } .pub-dot.y { background: #fbbf24; } .pub-dot.g { background: #34d399; }
.pub-shot-url {
    margin-left: 6px; font-family: 'JetBrains Mono', monospace; font-size: 10.5px; color: #cbd5e1;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1;
}
.pub-shot-pill {
    font-family: 'JetBrains Mono', monospace; font-size: 9.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 99px; background: rgba(16,185,129,0.20);
    color: #6ee7b7; border: 1px solid rgba(52,211,153,0.40); white-space: nowrap;
}
.pub-shot-img-wrap { position: relative; overflow: hidden; background: #eef2f7; }
.pub-shot-img-wrap img { display: block; width: 100%; height: auto; }
.pub-shot-zoom-hint {
    position: absolute; bottom: 10px; right: 10px;
    padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 700;
    background: rgba(6, 24, 30, 0.84); color: #fff; border: 1px solid rgba(255,255,255,0.18);
    opacity: 0; transition: opacity 0.16s ease; pointer-events: none;
    display: inline-flex; align-items: center; gap: 5px;
}
.pub-shot-browser:hover .pub-shot-zoom-hint,
.pub-inline-shot:hover .pub-shot-zoom-hint,
.pub-gal-media:hover .pub-shot-zoom-hint { opacity: 1; }

.pub-shot-kpi-strip {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px 12px;
    background: rgba(6, 24, 30, 0.96); border-top: 1px solid rgba(255,255,255,0.08);
}
.pub-shot-kpi-strip strong { display: block; font-family: 'Outfit', sans-serif; font-size: 12.5px; color: #34d399; }
.pub-shot-kpi-strip span { display: block; font-size: 10px; color: #94a3b8; }

/* Interactive 6-Tab Gallery Grid */
.pub-gal-grid { display: grid; grid-template-columns: 1.42fr 0.88fr; gap: 22px; align-items: center; }
.pub-gal-media {
    position: relative; border-radius: 12px; overflow: hidden; cursor: zoom-in;
    border: 1px solid rgba(110,231,183,0.28); background: #eef2f7;
    box-shadow: 0 14px 36px rgba(0,0,0,0.38);
}
.pub-gal-media img { display: block; width: 100%; height: auto; }
.pub-gal-badge {
    position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 99px;
    font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700;
    background: rgba(6, 24, 30, 0.88); color: #6ee7b7; border: 1px solid rgba(52,211,153,0.45);
}
.pub-gal-copy { display: flex; flex-direction: column; }
.pub-gal-copy h3 { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.25; margin: 0 0 10px; }
.pub-gal-copy p { color: #cbd5e1; font-size: 13.5px; line-height: 1.65; margin: 0 0 14px; }
.pub-gal-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pub-gal-bullets li { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: #e2e8f0; line-height: 1.45; }
.pub-gal-bullets li i { color: #34d399; margin-top: 2px; flex-shrink: 0; }

/* Feature Split Spotlights */
.pub-spotlight-stack { display: flex; flex-direction: column; gap: 36px; margin-top: 40px; }
.pub-spotlight-row {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; align-items: center;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 24px;
    box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}
.pub-spotlight-row.rev { grid-template-columns: 1.1fr 0.9fr; }
.pub-spotlight-row h3 { font-size: 21px; font-weight: 800; color: #0f172a; margin: 10px 0; line-height: 1.25; }
.pub-spotlight-row p { font-size: 13.5px; color: #475569; line-height: 1.68; margin: 0; }

/* Full-Screen Image Lightbox */
.pub-lightbox {
    position: fixed; inset: 0; z-index: 9999; background: rgba(3, 14, 20, 0.86);
    backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 22px;
}
.pub-lightbox-box {
    max-width: 94vw; max-height: 92vh; display: flex; flex-direction: column;
    border-radius: 14px; overflow: hidden; background: #07191d; border: 1px solid rgba(110,231,183,0.35);
    box-shadow: 0 30px 70px rgba(0,0,0,0.65);
}
.pub-lightbox-hdr {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 16px; color: #fff; font-weight: 700; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.pub-lightbox-close {
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; font-size: 15px;
}
.pub-lightbox-close:hover { background: rgba(239,68,68,0.8); border-color: #ef4444; }
.pub-lightbox-box img { max-width: 94vw; max-height: calc(92vh - 52px); object-fit: contain; display: block; background: #eef2f7; }

/* Sections */
.pub-section { padding: 56px 28px; }
.pub-section.alt { background: #ffffff; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.pub-sec-hdr { text-align: center; max-width: 740px; margin: 0 auto 34px; }
.pub-sec-hdr h2 { font-size: 29px; font-weight: 800; color: #0f172a; margin-bottom: 10px; }
.pub-sec-hdr p { font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6; }

.pub-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.pub-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 20px; }
.pub-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.pub-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 22px;
    box-shadow: 0 4px 14px rgba(15,23,42,0.04); transition: transform 0.16s, box-shadow 0.16s;
}
.pub-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,23,42,0.08); }
.pub-card-icon {
    width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(5,150,105,0.11); color: #059669; font-size: 18px; margin-bottom: 12px;
}
.pub-card h3 { font-size: 16.5px; font-weight: 800; color: #0f172a; margin-bottom: 8px; }
.pub-card p { font-size: 13px; color: #475569; line-height: 1.6; margin: 0; }

/* Ecosystem 4-Pillar Banner */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.eco-card {
    background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 16px; text-align: left;
}
.eco-card.active-prod { border-color: #059669; background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%); }

/* Interactive Showcase Tabs */
.gal-tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.gal-tab {
    border: 1px solid #cbd5e1; background: #fff; color: #334155; padding: 8px 15px; border-radius: 99px;
    font-size: 12.5px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px;
}
.gal-tab.active { background: #059669; color: #fff; border-color: #059669; }
.gal-frame {
    background: #07191d; border-radius: 16px; padding: 18px; border: 1px solid #164e4a;
    color: #fff; box-shadow: 0 20px 44px rgba(6,29,34,0.22);
}

/* FAQ Accordion */
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 11px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
    width: 100%; border: none; background: #fff; padding: 15px 18px; text-align: left;
    font-size: 14px; font-weight: 700; color: #0f172a; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-a { padding: 0 18px 15px; font-size: 13px; color: #475569; line-height: 1.65; }

/* Footer */
.pub-footer { background: #061d22; color: #94a3b8; padding: 42px 28px 26px; margin-top: auto; }
.pub-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 26px; margin-bottom: 28px; }
.pub-footer h4 { color: #fff; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.pub-footer a, .pub-footer button.ft-link {
    display: block; color: #94a3b8; text-decoration: none; background: none; border: none;
    padding: 3px 0; font-size: 12.5px; cursor: pointer; text-align: left;
}
.pub-footer a:hover, .pub-footer button.ft-link:hover { color: #34d399; }
.pub-footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding-top: 18px; display: flex; justify-content: space-between; font-size: 12px; flex-wrap: wrap; gap: 10px; }

@media (max-width: 960px) {
    .pub-hero-grid, .eco-grid, .pub-footer-grid, .pub-gal-grid, .pub-spotlight-row, .pub-spotlight-row.rev { grid-template-columns: 1fr; }
    .pub-stat-row, .pub-shot-kpi-strip { grid-template-columns: 1fr 1fr; }
    .pub-hero h1 { font-size: 30px; }
}
