/* 02-navbar-hero.css - Navbar, hero, sections, page hero, cards, features page
 * Part of the Pulsar67 marketing stylesheet bundle.
 * Load order is defined in templates/layouts/_marketing_styles.html
 *
 * Hero system:
 * - Homepage: contained card hero (.p67-home-hero.p67-hero) with mockup visual
 * - Inner pages: flat map-backed hero (.p67-page-hero, .p67-contact-hero, etc.)
 */

/* ---------- Navbar ---------- */
.p67-navbar {
    background: rgba(244, 246, 248, 0.94);
    padding: .475rem 0;
    transition: background .25s ease, padding .25s ease, backdrop-filter .25s ease, border-color .25s ease, box-shadow .25s ease;
    border-bottom: 1px solid var(--p67-border);
}
.p67-navbar > .p67-container {
    position: relative;
}
.p67-navbar.p67-navbar-scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--p67-border);
    padding: .285rem 0;
}
.p67-navbar.p67-navbar-dashboard {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom-color: var(--p67-border);
    padding: .285rem 0;
}
.p67-brand img {
    display: block;
    height: 64px;
    transition: height .25s ease;
    max-height: 64px;
    width: auto;
}
.p67-navbar.p67-navbar-scrolled .p67-brand img,
.p67-navbar.p67-navbar-dashboard .p67-brand img {
    height: 53px;
}
.p67-navbar .p67-nav-link {
    color: var(--p67-text-muted);
    font-weight: 500;
    padding: .5rem .85rem !important;
    border-radius: 999px;
    transition: background .16s ease, color .16s ease;
}
.p67-navbar .p67-nav-link:hover,
.p67-navbar .p67-nav-link.active {
    background: rgba(90, 82, 184, 0.08);
    color: var(--p67-text);
}
.p67-nav-collapse {
    min-width: 0;
}
.p67-nav-links {
    margin-left: 0;
    margin-right: 0;
}
.p67-account-nav {
    margin-left: auto;
}
.p67-nav-profile {
    align-items: center;
    display: flex;
    margin-right: -.35rem;
}
.p67-profile-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 999px;
    box-shadow: none;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 3px;
    transition: background .15s ease, opacity .15s ease;
    width: 42px;
}
.p67-profile-toggle:hover,
.p67-profile-toggle:focus {
    background: transparent;
    box-shadow: none;
    opacity: .8;
}
.p67-profile-toggle.p67-menu-trigger::after {
    display: none;
}
.p67-profile-avatar {
    background: #eef2ff;
    border: 0;
    border-radius: 999px;
    color: var(--p67-text-dim);
    display: block;
    height: 34px;
    object-fit: cover;
    width: 34px;
}
.p67-profile-avatar-blank {
    align-items: center;
    background: #ffffff;
    color: #0b0f18;
    display: inline-flex;
    justify-content: center;
}
.p67-profile-avatar-blank i {
    font-size: 1.85rem;
    line-height: 1;
}
.p67-toggler {
    border: 1px solid var(--p67-border-strong);
    color: var(--p67-text);
    padding: .45rem .7rem;
    border-radius: 8px;
}
.p67-toggler:focus { box-shadow: 0 0 0 3px var(--p67-primary-soft); }

@media (min-width: 992px) {
    .p67-nav-collapse {
        justify-content: flex-end;
        position: static;
    }

    .p67-nav-links {
        left: 50%;
        position: absolute;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 2;
    }

    .p67-account-nav {
        position: relative;
        z-index: 3;
    }
}

/* ---------- Hero ---------- */
.p67-hero {
    position: relative;
    min-height: 50vh;
    padding: 7rem 0 3.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, var(--p67-bg) 48%, #eef3f6 100%);
}
.p67-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 39, 63, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 39, 63, 0.05) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .55;
    pointer-events: none;
    z-index: 0;
}
.p67-hero-row { min-height: calc(50vh - 7rem); }

.p67-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    background: var(--p67-primary-soft);
    border: 1px solid var(--p67-border);
    color: var(--p67-primary-dark);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    margin-bottom: .9rem;
}
.p67-eyebrow-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--p67-primary);
    box-shadow: 0 0 8px var(--p67-primary);
    animation: p67-dot-pulse 2s ease-in-out infinite;
}

.p67-hero-title {
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.p67-gradient-text {
    background: linear-gradient(120deg, var(--p67-primary) 0%, var(--p67-primary-dark) 50%, var(--p67-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: p67-gradient-shift 6s ease-in-out infinite;
}
.p67-hero-sub {
    font-size: 1.1rem;
    color: var(--p67-text-muted);
    max-width: 540px;
    margin-bottom: 1.5rem;
}
.p67-hero-cta {
    display: flex;
    align-items: center;
    gap: .85rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.p67-hero-stats {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.p67-hero-stats > div:not(.p67-hero-stats-divider) {
    display: flex;
    flex-direction: column;
}
.p67-hero-stats strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    color: var(--p67-text);
    line-height: 1;
}
.p67-hero-stats span {
    font-size: .82rem;
    color: var(--p67-text-muted);
    margin-top: .25rem;
}
.p67-hero-stats-divider {
    width: 1px;
    height: 32px;
    background: var(--p67-border-strong);
}

.p67-hero-scroll {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.p67-hero-scroll a {
    width: 26px; height: 42px;
    border: 2px solid var(--p67-border-strong);
    border-radius: 8px;
    display: flex; justify-content: center;
    padding-top: 8px;
}
.p67-hero-scroll span {
    width: 3px; height: 8px;
    background: var(--p67-primary);
    border-radius: 2px;
    animation: p67-scroll-dot 2s ease-in-out infinite;
}

/* ---------- Sections ---------- */
.p67-section {
    padding: 4rem 0;
    position: relative;
}
.p67-section-alt {
    background: var(--p67-bg-2);
    border-top: 1px solid var(--p67-border);
    border-bottom: 1px solid var(--p67-border);
}
.p67-section-head {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}
.p67-section-title {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin: .6rem 0 .75rem;
    line-height: 1.2;
}
.p67-section-sub {
    font-size: 1.05rem;
    color: var(--p67-text-muted);
    line-height: 1.6;
}

/* ---------- Page hero (smaller hero for sub-pages) ---------- */
.p67-page-hero {
    position: relative;
    padding: 7rem 0 2.75rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--p67-bg) 64%, #f2f6fa 100%);
    border-bottom: 1px solid var(--p67-border);
    overflow: hidden;
    text-align: center;
}
.p67-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 39, 63, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 39, 63, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}
.p67-page-hero > .p67-container { position: relative; z-index: 1; }
.p67-page-hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: .5rem 0 .75rem;
    text-wrap: balance;
}
.p67-page-hero p {
    font-size: 1.05rem;
    color: var(--p67-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Cards (features) ---------- */
.p67-feature {
    background: var(--p67-surface);
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius-lg);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 1px 2px rgba(28, 39, 63, 0.04);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
    position: relative;
}
.p67-feature:hover {
    border-color: var(--p67-primary);
    background: var(--p67-surface-2);
    box-shadow: 0 14px 32px rgba(28, 39, 63, 0.08);
    transform: translateY(-2px);
}
.p67-feature-icon {
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--p67-primary-soft);
    color: var(--p67-primary-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.p67-feature h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}
.p67-feature p {
    color: var(--p67-text-muted);
    margin: 0;
    font-size: .95rem;
}

/* Feature card with clickable title that expands to whole card surface.
   Keeps the anchor text short (just the h3) while preserving "click anywhere" UX. */
.p67-feature-link { position: relative; }
.p67-feature-link h3 a {
    color: inherit;
    text-decoration: none;
}
.p67-feature-link h3 a:hover { color: var(--p67-primary-dark); }
.p67-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.p67-feature-link p { position: relative; z-index: 0; }

/* ---------- Feature row (flat, non-card list style) ---------- */
.p67-feature-row {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    padding: 1rem 0;
}
.p67-feature-row-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: var(--p67-primary-soft);
    color: var(--p67-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}
.p67-feature-row-body { min-width: 0; }
.p67-feature-row-body h3 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    color: var(--p67-text);
    line-height: 1.3;
}
.p67-feature-row-body p {
    color: var(--p67-text-muted);
    font-size: .95rem;
    margin: 0;
    line-height: 1.6;
}

/* ---------- Features page ---------- */
.p67-features-hero .p67-container {
    max-width: 980px;
}
.p67-feature-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.p67-feature-hero-link {
    display: grid;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius);
    background: rgba(255, 255, 255, .82);
    color: var(--p67-text);
    text-align: left;
}
.p67-feature-hero-link span,
.p67-plan-fit-label {
    color: var(--p67-primary-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.p67-feature-hero-link strong {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.02rem;
    line-height: 1.25;
}
.p67-feature-guide,
.p67-command-panel,
.p67-ops-card,
.p67-plan-fit-card {
    background: var(--p67-surface);
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius-lg);
}
.p67-feature-guide {
    position: sticky;
    top: 6rem;
    padding: 1.5rem;
}
.p67-feature-guide h2,
.p67-command-panel h3,
.p67-ops-card h3,
.p67-plan-fit-card h3 {
    font-size: 1.25rem;
    margin: .6rem 0 .75rem;
}
.p67-feature-guide p,
.p67-command-panel p,
.p67-ops-card p,
.p67-plan-fit-card p {
    color: var(--p67-text-muted);
    margin-bottom: 0;
}
.p67-check-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: grid;
    gap: .7rem;
}
.p67-check-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    color: var(--p67-text);
    line-height: 1.45;
}
.p67-check-list i {
    color: var(--p67-primary-2);
    margin-top: .2rem;
}
.p67-workload-list {
    display: grid;
    gap: 1rem;
}
.p67-workload-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem;
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius-lg);
    background: var(--p67-surface);
}
.p67-workload-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--p67-radius);
    background: rgba(53, 111, 209, 0.1);
    color: var(--p67-primary-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.p67-workload-row h3 {
    font-size: 1.17rem;
    margin-bottom: .4rem;
}
.p67-workload-row p {
    color: var(--p67-text-muted);
    margin-bottom: .85rem;
}
.p67-feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}
.p67-feature-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: .28rem .65rem;
    border: 1px solid var(--p67-border);
    border-radius: 999px;
    background: var(--p67-surface-2);
    color: var(--p67-text-muted);
    font-size: .8rem;
    font-weight: 700;
}
.p67-feature-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius-lg);
    background: var(--p67-surface);
}
.p67-feature-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}
.p67-feature-table th,
.p67-feature-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--p67-border);
    text-align: left;
    vertical-align: top;
}
.p67-feature-table th {
    color: var(--p67-text);
    background: var(--p67-bg-2);
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.p67-feature-table td {
    color: var(--p67-text-muted);
    font-size: .94rem;
}
.p67-feature-table td strong {
    color: var(--p67-text);
}
.p67-feature-table tr:last-child td {
    border-bottom: 0;
}
.p67-command-panel {
    padding: 1.25rem;
    margin-top: 1.5rem;
}
.p67-command-list {
    display: grid;
    gap: .65rem;
    margin: 1rem 0;
}
.p67-command-list code {
    display: block;
    padding: .75rem .85rem;
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius);
    background: var(--p67-portal);
    color: #eef2ff;
    overflow-wrap: anywhere;
}
.p67-launch-steps {
    display: grid;
    gap: 1rem;
}
.p67-launch-step {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--p67-border);
}
.p67-launch-step:first-child {
    padding-top: 0;
}
.p67-launch-step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.p67-launch-step > span {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p67-primary-soft);
    color: var(--p67-primary-dark);
    font-weight: 800;
}
.p67-launch-step h3 {
    font-size: 1.12rem;
    margin-bottom: .35rem;
}
.p67-launch-step p {
    margin-bottom: 0;
    color: var(--p67-text-muted);
}
.p67-plan-fit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}
.p67-plan-fit-card {
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.2rem;
}
.p67-plan-fit-card-primary {
    border-color: rgba(90, 82, 184, .38);
    box-shadow: 0 10px 30px rgba(90, 82, 184, .08);
}
.p67-plan-fit-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .45rem;
}
.p67-plan-fit-card li {
    color: var(--p67-text-muted);
    font-size: .9rem;
    padding-top: .45rem;
    border-top: 1px solid var(--p67-border);
}
.p67-feature-action-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}
.p67-feature-action-row p {
    margin: 0;
    color: var(--p67-text-muted);
}
.p67-ops-card {
    height: 100%;
    padding: 1.5rem;
}
.p67-ops-card .p67-link-arrow {
    display: inline-flex;
    margin-top: 1rem;
    align-items: center;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .p67-feature-guide {
        position: static;
    }
    .p67-plan-fit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767.98px) {
    .p67-feature-hero-grid,
    .p67-plan-fit-grid {
        grid-template-columns: 1fr;
    }
    .p67-workload-row {
        grid-template-columns: 1fr;
    }
    .p67-feature-table-wrap {
        overflow: visible;
        border: 0;
        background: transparent;
    }
    .p67-feature-table,
    .p67-feature-table tbody,
    .p67-feature-table tr,
    .p67-feature-table td {
        display: block;
        width: 100%;
        min-width: 0;
    }
    .p67-feature-table thead {
        display: none;
    }
    .p67-feature-table tr {
        padding: 1rem;
        margin-bottom: 1rem;
        border: 1px solid var(--p67-border);
        border-radius: var(--p67-radius-lg);
        background: var(--p67-surface);
    }
    .p67-feature-table tr:last-child {
        margin-bottom: 0;
    }
    .p67-feature-table td {
        border-bottom: 0;
        padding: .45rem 0;
    }
    .p67-feature-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: .18rem;
        color: var(--p67-primary-dark);
        font-size: .68rem;
        font-weight: 800;
        letter-spacing: .04em;
        text-transform: uppercase;
    }
    .p67-feature-table td:first-child {
        padding-top: 0;
    }
    .p67-feature-table td:first-child::before {
        display: none;
    }
    .p67-feature-table td:first-child strong {
        display: block;
        font-size: 1.05rem;
    }
}

