.page-hero {
    position: relative;
    overflow: hidden;
    padding: 8rem 0 5rem;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.page-hero--dark {
    background:
        radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.22), transparent 32%),
        radial-gradient(circle at 82% 24%, rgba(14, 165, 233, 0.16), transparent 28%),
        linear-gradient(180deg, #07111f 0%, #0f172a 54%, #111827 100%);
    color: #f8fafc;
}

.page-hero--dark::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 78%);
}

.page-hero--light {
    background:
        radial-gradient(circle at 15% 18%, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at 85% 82%, rgba(16, 185, 129, 0.1), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 70%, #eef2ff 100%);
}

.page-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.page-hero-content {
    max-width: 640px;
}

.page-eyebrow,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.8rem;
    border-radius: var(--r-full);
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-hero--dark .page-eyebrow,
.page-hero--dark .page-kicker {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero--light .page-eyebrow,
.page-hero--light .page-kicker {
    background: rgba(37, 99, 235, 0.08);
    color: var(--brand-text);
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.page-title {
    font-size: clamp(2.8rem, 5vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 1.25rem;
}

.page-hero--dark .page-title {
    color: #f8fafc;
}

.page-summary {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--text-secondary);
    max-width: 60ch;
}

.page-hero--dark .page-summary {
    color: rgba(226, 232, 240, 0.78);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 2rem;
}

.page-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 2rem;
}

.metric-tile {
    padding: 1rem 1.1rem;
    border-radius: var(--r-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.page-hero--light .metric-tile {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
}

.metric-value {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: inherit;
}

.metric-label {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: inherit;
    opacity: 0.75;
}

.page-panel,
.content-card,
.content-panel,
.demo-panel,
.story-card,
.results-card {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.page-hero--dark .page-panel {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(148, 163, 184, 0.18);
}

.page-hero-visual {
    position: relative;
    z-index: 1;
}

.page-panel {
    padding: 1.5rem;
}

.stack-list {
    display: grid;
    gap: 0.9rem;
}

.stack-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.05rem;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.page-hero--light .stack-item {
    background: rgba(248, 250, 252, 0.88);
}

.stack-item i,
.stack-item svg {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--brand);
}

.stack-item strong {
    display: block;
    color: inherit;
    margin-bottom: 0.2rem;
}

.stack-item span {
    color: inherit;
    opacity: 0.78;
    line-height: 1.55;
}

.page-section {
    padding: 5.5rem 0;
}

.page-section--muted {
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.page-section--dark {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: #f8fafc;
}

.section-shell {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-shell--left {
    max-width: none;
    margin-left: 0;
    text-align: left;
}

.section-shell h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 0.9rem;
}

.page-section--dark .section-shell h2,
.page-section--dark .section-shell p,
.page-section--dark .section-shell .section-kicker {
    color: #f8fafc;
}

.section-shell p {
    color: var(--text-secondary);
    font-size: 1.06rem;
    line-height: 1.75;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

.content-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-card,
.story-card,
.results-card {
    padding: 1.5rem;
}

.story-card h3,
.content-card h3,
.results-card h3 {
    margin-bottom: 0.55rem;
}

.story-card p,
.content-card p,
.results-card p {
    color: var(--text-secondary);
}

.card-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border-radius: 0.95rem;
    color: var(--brand);
    background: rgba(37, 99, 235, 0.1);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--r-full);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.12);
}

.demo-shell {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.demo-nav,
.role-nav {
    display: grid;
    gap: 0.75rem;
}

.demo-tab,
.role-chip {
    width: 100%;
    padding: 1rem 1.05rem;
    border-radius: var(--r-lg);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.demo-tab strong,
.role-chip strong {
    display: block;
    margin-bottom: 0.22rem;
    color: var(--text-primary);
}

.demo-tab span,
.role-chip span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.5;
}

.demo-tab.is-active,
.role-chip.is-active {
    border-color: rgba(37, 99, 235, 0.32);
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.demo-panel,
.role-pane {
    display: none;
    padding: 1.5rem;
}

.demo-panel.is-active,
.role-pane.is-active {
    display: block;
}

.demo-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.demo-panel-header p {
    margin: 0;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.72rem;
    border-radius: var(--r-full);
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    color: var(--brand);
}

.timeline-steps {
    display: grid;
    gap: 0.85rem;
}

.timeline-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    align-items: start;
}

.timeline-step-number {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
}

.timeline-step strong {
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-step p {
    margin: 0;
    color: var(--text-secondary);
}

.feature-checklist-clean {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.feature-checklist-clean li {
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: var(--text-secondary);
}

.feature-checklist-clean i {
    color: var(--success);
    margin-top: 0.18rem;
}

.help-search-results {
    display: none;
    margin-top: 1rem;
    text-align: left;
}

.help-search-results.is-active {
    display: block;
}

.results-card {
    padding: 1rem;
}

.help-results-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.9rem;
}

.help-results-header p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.help-search-items {
    display: grid;
    gap: 0.75rem;
}

.help-result-card {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.05rem;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s var(--ease);
}

.help-result-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.11);
}

.help-result-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.85rem;
    background: rgba(37, 99, 235, 0.18);
    color: #bfdbfe;
}

.help-result-body {
    min-width: 0;
}

.help-result-body strong {
    display: block;
    color: #f8fafc;
    margin-bottom: 0.2rem;
}

.help-result-body p {
    margin: 0 0 0.5rem;
    color: rgba(226, 232, 240, 0.74);
    line-height: 1.55;
}

.help-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.help-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.55rem;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.74rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.help-empty-state {
    padding: 1rem 1.1rem;
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.75);
}

.screenshot-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.screenshot-card {
    padding: 1rem;
    border-radius: var(--r-xl);
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.screenshot-card img {
    width: 100%;
    border-radius: var(--r-lg);
    display: block;
}

.screenshot-card strong {
    display: block;
    margin: 0.9rem 0 0.3rem;
}

.screenshot-card span {
    display: block;
    color: var(--text-secondary);
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .page-hero-grid,
    .demo-shell,
    .content-grid--3 {
        grid-template-columns: 1fr;
    }

    .page-hero-content {
        max-width: none;
    }

    .page-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .page-hero {
        padding: 7rem 0 4rem;
    }

    .page-title {
        font-size: 2.6rem;
    }

    .page-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .content-grid--2,
    .screenshot-wall {
        grid-template-columns: 1fr;
    }

    .demo-panel-header,
    .help-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
