/* Tutorial Layout Styles */
.tutorial-section {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}



/* Custom Light Theme Components */
:root {
    --purple: #7c3aed;
    --indigo: #4f46e5;
    --blue: #0ea5e9;
    --green: #10b981;
    --yellow: #f59e0b;
    --red: #ef4444;
    --muted: #6c757d;
    --border: #e9ecef;
    --bg-light: #f8f9fa;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.cards-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

@media (max-width: 991.98px) {
    .cards-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .cards-4 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.75rem;
    align-content: flex-start;
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.12);
    background: rgba(255, 255, 255, 0.95);
    border-color: #d0bdf0;
}

.card-icon {
    font-size: 1.15rem;
    margin: 0;
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.card h3,
.card h4 {
    font-size: 1rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.3;
    flex: 1;
}

.card p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
    width: 100%;
}

.info-box {
    background: #f8f9fa;
    border-left: 4px solid var(--purple);
    padding: 1.25rem;
    margin: 1.25rem 0;
    border-radius: 0 4px 4px 0;
}

.info-box.green {
    border-left-color: var(--green);
}

.info-box.blue {
    border-left-color: var(--blue);
}

.info-box.yellow {
    border-left-color: var(--yellow);
}

.info-box.red {
    border-left-color: var(--red);
}

.info-box p {
    margin: 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.6;
}

.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    font-size: 0.9rem;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: #212529;
    font-size: 0.9rem;
    vertical-align: top;
}

tr:hover td {
    background: #f8f9fa;
}

.code-block {
    background: #f8f9fa;
    border-left: 4px solid #0d6efd;
    border-radius: 6px;
    padding: 1.5rem;
    margin: 1.25rem 0;
    font-family: monospace;
    overflow-x: auto;
    font-size: 13.5px;
    color: #212529;
    line-height: 1.6;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 600;
    border-radius: 0.25rem;
    gap: 4px;
}

.badge-purple {
    background-color: #e0cffc;
    color: #551a8b;
    border: 1px solid #d0bdf0;
}

.badge-blue {
    background-color: #cfe2ff;
    color: #084298;
    border: 1px solid #b6d4fe;
}

.badge-green {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.badge-yellow {
    background-color: #fff3cd;
    color: #664d03;
    border: 1px solid #ffecb5;
}

.badge-red {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}

.badge-gray {
    background-color: #e2e3e5;
    color: #41464b;
    border: 1px solid #d3d6d8;
}



.checklist {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.checklist li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #495057;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li::before {
    content: '✓';
    color: var(--green);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.2;
}



.hero {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.hero h1 {
    color: #2c3e50;
    font-weight: 800;
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 800px;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: #7c3aed;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7c3aed;
    display: inline-block;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: #495057;
}

.tag.purple {
    background: #e0cffc;
    border-color: #d0bdf0;
    color: #551a8b;
}

.tag.blue {
    background: #cfe2ff;
    border-color: #b6d4fe;
    color: #084298;
}

.tag.green {
    background: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.tag.yellow {
    background: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

.hero-meta {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-meta-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-meta-item .value {
    font-weight: 600;
    color: #212529;
    font-size: 1.15rem;
    margin-top: 0.35rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #2c3e50;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #2c3e50;
}

p {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Syntax highlighting overrides for light theme */
.code-block .cm {
    color: #6c757d;
}

.code-block .kw {
    color: #0000ff;
}

.code-block .str {
    color: #a31515;
}

.code-block .num {
    color: #098658;
}

.code-block .fn {
    color: #795e26;
}

/* ========== NEW DESIGN SYSTEM COMPONENTS ========== */

/* Section Label (eyebrow text above h2) */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--purple);
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* Big Problem Statement */
.problem-headline {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e1e2e;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* North Star Metric */
.north-star {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-radius: 16px;
    padding: 2.5rem;
    color: #fff;
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.north-star::before {
    content: '⭐';
    position: absolute;
    font-size: 8rem;
    top: -2rem;
    right: -1rem;
    opacity: 0.08;
}

.north-star .ns-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.north-star .ns-metric {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.north-star .ns-desc {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Persona Cards */
.persona-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.persona-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.persona-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.persona-card-header {
    padding: 1.75rem 1.75rem 1.25rem;
    background: linear-gradient(135deg, #f8f5ff 0%, #eef2ff 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.persona-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}

.persona-info .name {
    font-size: 1.2rem;
    font-weight: 800;
    color: #1e1e2e;
    margin-bottom: 0.1rem;
}

.persona-info .role {
    font-size: 0.85rem;
    color: var(--purple);
    font-weight: 600;
}

.persona-info .meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.persona-card-body {
    padding: 1.5rem 1.75rem;
}

.persona-row {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.persona-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.persona-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.persona-tag {
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-light);
    border: 1px solid var(--border);
    color: #495057;
}

.persona-tag.red {
    background: #fff0f0;
    border-color: #fecaca;
    color: #991b1b;
}

.persona-tag.green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.persona-tag.purple {
    background: #f5f3ff;
    border-color: #ddd6fe;
    color: #5b21b6;
}

.persona-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: #495057;
    padding-left: 1rem;
    border-left: 3px solid var(--purple);
    line-height: 1.6;
}

/* User Journey Map - Modern Glassmorphism Redesign */
.journey-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    position: relative;
}

.jg-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jg-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.jg-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.jg-card.phase-discover::before {
    background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
}

.jg-card.phase-onboard::before {
    background: linear-gradient(90deg, #93c5fd, #3b82f6);
}

.jg-card.phase-create::before {
    background: linear-gradient(90deg, #86efac, #22c55e);
}

.jg-card.phase-publish::before {
    background: linear-gradient(90deg, #fcd34d, #f59e0b);
}

.jg-card.phase-measure::before {
    background: linear-gradient(90deg, #f9a8d4, #ec4899);
}

.jg-step-num {
    position: absolute;
    bottom: -15px;
    right: -5px;
    font-size: 6rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    font-family: monospace;
}

.jg-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.jg-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.jg-phase {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
}

.jg-card.phase-discover .jg-phase {
    background: #f5f3ff;
    color: #6d28d9;
}

.jg-card.phase-onboard .jg-phase {
    background: #eff6ff;
    color: #1d4ed8;
}

.jg-card.phase-create .jg-phase {
    background: #f0fdf4;
    color: #15803d;
}

.jg-card.phase-publish .jg-phase {
    background: #fffbeb;
    color: #b45309;
}

.jg-card.phase-measure .jg-phase {
    background: #fdf2f8;
    color: #be185d;
}

.jg-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e1e2e;
    margin: 0.5rem 0 0 0;
    position: relative;
    z-index: 1;
}

.jg-body {
    background: rgba(248, 250, 252, 0.7);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.jg-emotion {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.jg-pain {
    font-size: 0.85rem;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Competitor Matrix */
.competitor-table th {
    background: #f5f3ff;
    color: #5b21b6;
}

.competitor-table td.check-yes {
    color: #059669;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.competitor-table td.check-no {
    color: #dc2626;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.competitor-table td.check-partial {
    color: #d97706;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
}

.competitor-table tr.highlight-row td {
    background: #f5f3ff;
    font-weight: 600;
}

.competitor-table td:first-child {
    font-weight: 600;
    color: #2c3e50;
}

.competitor-table th:first-child {
    min-width: 200px;
}

/* MoSCoW Table */
.moscow-table tr.must-have td:first-child {
    border-left: 4px solid #dc2626;
}

.moscow-table tr.should-have td:first-child {
    border-left: 4px solid #d97706;
}

.moscow-table tr.could-have td:first-child {
    border-left: 4px solid #059669;
}

.moscow-table tr.wont-have td:first-child {
    border-left: 4px solid #9ca3af;
}

.moscow-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2em 0.6em;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
}

.moscow-badge.must {
    background: #fee2e2;
    color: #991b1b;
}

.moscow-badge.should {
    background: #fef3c7;
    color: #92400e;
}

.moscow-badge.could {
    background: #d1fae5;
    color: #065f46;
}

.moscow-badge.wont {
    background: #f3f4f6;
    color: #4b5563;
}

/* Decision Log */
.decision-log {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
}

.decision-log .dl-title {
    font-weight: 700;
    color: #92400e;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.decision-log p {
    margin: 0;
    font-size: 0.9rem;
    color: #78350f;
    line-height: 1.6;
}

/* Exec Summary Grid */
.exec-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.exec-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.exec-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.exec-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.exec-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.exec-card-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0;
}

.exec-card-value {
    font-size: 1rem;
    font-weight: 400;
    color: #1e1e2e;
    line-height: 1.5;
}

/* Pain Point Cards */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.pain-card {
    background: rgba(255, 249, 249, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(254, 202, 202, 0.9);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pain-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.12);
    background: rgba(255, 249, 249, 0.95);
}

.pain-card .pain-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.pain-card h3,
.pain-card h4 {
    color: #991b1b;
    font-size: 0.95rem;
    margin: 0 0 0.4rem;
}

.pain-card p {
    font-size: 0.875rem;
    color: #7f1d1d;
    margin: 0;
    line-height: 1.5;
}

/* Pricing Tiers */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.pricing-card.featured {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-color: transparent;
    color: #fff;
    transform: scale(1.02);
}

.pricing-tier {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.pricing-period {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    text-align: left;
    font-size: 0.9rem;
}

.pricing-features li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    gap: 0.5rem;
}

.pricing-card.featured .pricing-features li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

/* Grouped Sidebar */
.sidebar-group {
    margin-bottom: 0.25rem;
}

.sidebar-group-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0.5rem 1rem 0.35rem;
    margin-top: 0.75rem;
}

.sidebar-nav .nav-link {
    padding: .4rem 1rem .4rem 1.5rem;
    font-size: 13px;
}

.sidebar-nav .nav-group-link {
    color: #495057;
    padding: .4rem 1rem .4rem 1.5rem;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    display: block;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav .nav-group-link:hover,
.sidebar-nav .nav-group-link.active {
    color: #7c3aed;
    background-color: #f5f3ff;
}

/* Wireframe Image Display */
.wireframe-img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    margin: 1rem 0;
}

/* Callout variants */
.callout {
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.callout-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.callout-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.callout-content strong {
    display: block;
    margin-bottom: 0.25rem;
}

.callout.tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.callout.tip .callout-content {
    color: #166534;
}

.callout.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.callout.warning .callout-content {
    color: #92400e;
}

.callout.info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.callout.info .callout-content {
    color: #1e40af;
}

/* Metric Grid */
.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.metric-card .metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.metric-card .metric-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

/* AC (Acceptance Criteria) block inside FR items */
.fr-ac {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.fr-ac-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.fr-ac ul {
    margin: 0;
    padding-left: 1.2rem;
}

.fr-ac li {
    color: #495057;
    margin-bottom: 0.2rem;
}

/* Global Mobile Responsiveness Fixes */
@media (max-width: 991.98px) {
    .sidebar {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
        z-index: 10;
        display: block !important;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .flow-path,
    .sequence-timeline {
        margin-left: 0.5rem !important;
        padding-left: 1.5rem !important;
    }

    .db-table-header {
        padding: 1rem !important;
    }

    .db-schema-table th,
    .db-schema-table td {
        padding: 0.75rem 1rem !important;
    }

    .db-table-footer {
        padding: 1rem !important;
    }

    .arch-layer .arch-node {
        max-width: 100% !important;
    }

    .fr-item {
        flex-direction: column;
    }

    .fr-code {
        align-self: flex-start;
        margin-bottom: 0.5rem;
    }
}

.flow-path {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 100px;
    row-gap: 50px;
    column-gap: 0;
    padding: 1rem 125px; /* space for the curves */
    margin: 3rem 0;
    background: none;
    overflow: visible;
}

.flow-path::-webkit-scrollbar,
.flow-path::before {
    display: none;
}

.flow-path-step {
    background: var(--step-color, #7c3aed);
    border: none;
    border-radius: 0;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.2s ease;
    color: white;
    box-shadow: inset -1px 0 0 rgba(0,0,0,0.15), inset 1px 0 0 rgba(255,255,255,0.05); /* 3D joint separator */
}

/* Remove hover transform to prevent breaking the ribbon */
.flow-path-step:hover {
    filter: brightness(1.15);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2), inset -1px 0 0 rgba(0,0,0,0.1);
    z-index: 10;
}

/* Brand Color for Ribbon */
.flow-path-step {
    --step-color: #7c3aed;
}

/* Grid Placement for Snake (3 columns max 12 items) */
@media (min-width: 992px) {
    .flow-path-step:nth-child(1) { grid-area: 1 / 1; border-radius: 50px 0 0 50px; }
    .flow-path-step:nth-child(2) { grid-area: 1 / 2; }
    .flow-path-step:nth-child(3) { grid-area: 1 / 3; }
    
    .flow-path-step:nth-child(4) { grid-area: 2 / 3; }
    .flow-path-step:nth-child(5) { grid-area: 2 / 2; }
    .flow-path-step:nth-child(6) { grid-area: 2 / 1; }
    
    .flow-path-step:nth-child(7) { grid-area: 3 / 1; }
    .flow-path-step:nth-child(8) { grid-area: 3 / 2; }
    .flow-path-step:nth-child(9) { grid-area: 3 / 3; }
    
    .flow-path-step:nth-child(10) { grid-area: 4 / 3; }
    .flow-path-step:nth-child(11) { grid-area: 4 / 2; }
    .flow-path-step:nth-child(12) { grid-area: 4 / 1; }

    /* The Curved Connectors */
    .flow-path-step:nth-child(3)::after,
    .flow-path-step:nth-child(9)::after {
        content: '';
        position: absolute;
        right: -125px;
        top: 0;
        width: 125px;
        height: 250px;
        border: 100px solid var(--step-color);
        border-left: 0;
        border-radius: 0 125px 125px 0;
        box-sizing: border-box;
        z-index: -1;
    }

    .flow-path-step:nth-child(6)::after {
        content: '';
        position: absolute;
        left: -125px;
        top: 0;
        width: 125px;
        height: 250px;
        border: 100px solid var(--step-color);
        border-right: 0;
        border-radius: 125px 0 0 125px;
        box-sizing: border-box;
        z-index: -1;
    }

    .flow-path-step:last-child::after {
        display: none !important;
    }

    /* End Arrow */
    .flow-path-step:last-child::before {
        content: '';
        position: absolute;
        top: 0;
        width: 0; 
        height: 0; 
        border-top: 50px solid transparent; 
        border-bottom: 50px solid transparent;
        z-index: 2;
    }

    /* Right pointing arrow */
    .flow-path-step:last-child:nth-child(1)::before,
    .flow-path-step:last-child:nth-child(2)::before,
    .flow-path-step:last-child:nth-child(3)::before,
    .flow-path-step:last-child:nth-child(7)::before,
    .flow-path-step:last-child:nth-child(8)::before,
    .flow-path-step:last-child:nth-child(9)::before {
        right: -30px;
        left: auto;
        border-left: 30px solid var(--step-color);
        border-right: none;
    }

    /* Left pointing arrow */
    .flow-path-step:last-child:nth-child(4)::before,
    .flow-path-step:last-child:nth-child(5)::before,
    .flow-path-step:last-child:nth-child(6)::before,
    .flow-path-step:last-child:nth-child(10)::before,
    .flow-path-step:last-child:nth-child(11)::before,
    .flow-path-step:last-child:nth-child(12)::before {
        left: -30px;
        right: auto;
        border-right: 30px solid var(--step-color);
        border-left: none;
    }
}

/* Mobile Fallback (1 column) */
@media (max-width: 991px) {
    .flow-path {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
        grid-auto-rows: auto;
    }
    .flow-path-step {
        border-radius: 12px;
        height: auto;
        padding: 1.5rem;
        flex-direction: row;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .flow-path-step::after, .flow-path-step::before {
        display: none !important;
    }
}

.flow-path-icon {
    font-size: 1.4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    flex-shrink: 0;
    color: #7c3aed;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15), inset 0 -2px 4px rgba(124, 58, 237, 0.1);
    position: relative;
}

/* Subtle glow behind the icon */
.flow-path-icon::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    z-index: -1;
}

.flow-path-content {
    display: flex;
    flex-direction: column;
}

.flow-path-num {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #fde047; /* Bright gold accent */
    letter-spacing: 1.2px;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.flow-path-title {
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 3rem;
}

.nav-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
    border-color: #d0bdf0;
}

.nav-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.nav-card-icon {
    font-size: 1.25rem;
    background: #f8f9fa;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.nav-card-title {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.05rem;
}

.nav-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-card-list li {
    padding: 0.5rem 0;
    color: #495057;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    border-bottom: 1px dashed #f1f5f9;
}

.nav-card-list li:last-child {
    border-bottom: none;
}

.nav-card-list li::before {
    content: '↳';
    color: var(--purple);
    font-family: monospace;
    font-weight: bold;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 1px;
}

.nav-card-dashboard {
    grid-column: 1 / -1;
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 1.25rem 1.5rem;
}

.nav-card-dashboard .nav-card-header {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nav-card-dashboard .nav-card-title {
    color: #fff;
    font-size: 1.15rem;
}

.nav-card-dashboard .nav-card-icon {
    background: rgba(255, 255, 255, 0.2);
    border: none;
}

.db-table-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.db-table-header {
    background: #f8f9fa;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.db-table-icon {
    font-size: 1.25rem;
    background: #fff;
    border: 1px solid var(--border);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.db-table-name {
    font-weight: 700;
    color: var(--purple);
    font-size: 1.15rem;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.db-schema-wrap {
    overflow-x: auto;
}

.db-schema-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.db-schema-table th {
    text-align: left;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #cbd5e1;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.5px;
    background: #f8fafc;
}

.db-schema-table td {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: #495057;
    vertical-align: top;
}

.db-schema-table tr:last-child td {
    border-bottom: none;
}

.db-schema-table tr:hover {
    background: #f8fafc;
}

.db-col-name {
    font-weight: 600;
    color: #334155;
    font-family: monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.db-col-name .key-icon {
    color: #f59e0b;
    font-size: 0.85rem;
}

.db-col-type {
    color: #0284c7;
    font-family: monospace;
}

.db-col-props {
    font-size: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.db-col-props .badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    background: #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.db-col-props .badge.pk {
    background: #fef3c7;
    color: #b45309;
}

.db-col-props .badge.fk {
    background: #dbeafe;
    color: #1e40af;
}

.db-col-props .badge.unique {
    background: #e0e7ff;
    color: #4338ca;
}

.db-col-comment {
    color: #64748b;
    font-size: 0.85rem;
    font-style: italic;
}

.db-table-footer {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: #64748b;
}

.db-table-footer strong {
    color: #334155;
    margin-right: 0.5rem;
}

.db-table-footer code {
    background: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    color: #475569;
    border: 1px solid #e2e8f0;
    margin-right: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
}

.db-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.db-summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s, box-shadow 0.2s;
}

.db-summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.db-summary-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.db-summary-icon {
    color: var(--purple);
    font-size: 1.1rem;
}

.db-summary-title {
    font-family: monospace;
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.05rem;
}

.db-summary-desc {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.db-summary-cols {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.5;
    border: 1px solid #f1f5f9;
}

.arch-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.arch-node {
    background: #fff;
    border: 2px solid;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    z-index: 2;
    position: relative;
}

.arch-node-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.arch-node-modules {
    font-family: monospace;
    font-size: 0.85rem;
    color: #4f46e5;
    background: #e0cffc;
    padding: 0.35rem;
    border-radius: 4px;
    margin: 0.75rem 0;
    line-height: 1.4;
    font-weight: bold;
}

.arch-node-desc {
    font-size: 0.9rem;
    color: #6c757d;
}

.client-node {
    border-color: #0ea5e9;
}

.client-node .arch-node-title {
    color: #084298;
}

.api-node {
    border-color: #7c3aed;
}

.api-node .arch-node-title {
    color: #551a8b;
}

.db-node {
    border-color: #f59e0b;
}

.db-node .arch-node-title {
    color: #664d03;
}

.queue-node {
    border-color: #ef4444;
}

.queue-node .arch-node-title {
    color: #842029;
}

.storage-node {
    border-color: #10b981;
}

.storage-node .arch-node-title {
    color: #0f5132;
}

.worker-node {
    border-color: #ef4444;
}

.worker-node .arch-node-title {
    color: #842029;
}

.external-node {
    border-color: #6c757d;
    border-style: dashed;
}

.external-node .arch-node-title {
    color: #495057;
}

.arch-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 40px;
    justify-content: center;
    position: relative;
    width: 2px;
    background: #cbd5e1;
    margin: 0 auto;
}

.arch-arrow::after {
    content: '▼';
    position: absolute;
    bottom: -10px;
    color: #cbd5e1;
    font-size: 0.8rem;
}

.arch-arrow-label {
    position: absolute;
    left: 15px;
    background: #fff;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.arch-layer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.arch-layer .arch-node {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
}

@media (max-width: 768px) {
    .arch-layer {
        flex-direction: column;
        align-items: center;
    }
}

.sequence-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0 3rem;
}

.sequence-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

.sequence-step {
    position: relative;
    margin-bottom: 2rem;
}

.sequence-step:last-child {
    margin-bottom: 0;
}

.sequence-num {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--purple);
    color: #fff;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
    box-shadow: 0 0 0 6px #fff;
    z-index: 2;
}

.sequence-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sequence-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
}

.sequence-actions {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sequence-actions li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #495057;
}

.sequence-actions li:last-child {
    margin-bottom: 0;
}

.sequence-actions li::before {
    content: '↳';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    line-height: 1;
    top: 2px;
}

.sequence-step.success .sequence-num {
    background: var(--green);
}

.sequence-step.success .sequence-actions li::before {
    color: var(--green);
}

.sequence-step.failure .sequence-num {
    background: var(--red);
}

.sequence-step.failure .sequence-actions li::before {
    color: var(--red);
}

/* Refactored Inline Styles */
.problem-banner {
    background: #fff8f0;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.problem-banner-title {
    margin: 0;
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 600;
}

.problem-banner-text {
    margin: 0.25rem 0 0;
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.5;
}

.text-emerald {
    color: #34d399;
}

.text-green {
    color: var(--green);
}

.text-blue {
    color: var(--blue);
}

.text-main {
    color: var(--text);
}

.legend-text {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.persona-why-text {
    font-size: 0.875rem;
    color: #495057;
    margin: 0;
    line-height: 1.6;
}

.avatar-gradient-alt {
    background: linear-gradient(135deg, #0ea5e9, #10b981);
}

.list-unstyled-custom {
    list-style: none;
    padding: 0;
}

.arch-list-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}

.arch-list-item.border-0 {
    border-bottom: none;
}

.flow-path-wide {
    max-width: 100%;
}

.flow-path-step.step-error {
    border-color: #fecaca;
}

.flow-path-icon.icon-error {
    background: #fef2f2;
    border-color: #fecaca;
}

.flow-path-num.num-error {
    color: #ef4444;
}

.wireframe-caption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.callout-spaced {
    margin-bottom: 1.5rem;
}

.ac-meta {
    margin-top: 0.5rem;
}

.arch-arrow-tall {
    height: 30px;
}

.flex-col-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ==================================================
   Modern SaaS Hero Redesign (Linear / Stripe Inspired)
================================================== */
.hero-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .hero-modern {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.hero-modern-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

@media (max-width: 991px) {
    .hero-modern-left {
        align-items: center;
    }
}

.hero-badge-subtle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-modern h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #111827;
    letter-spacing: -0.02em;
    margin: 0;
}

.hero-modern-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #4b5563;
    max-width: 90%;
    margin: 0;
}

/* Modern Buttons */
.hero-modern-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .hero-modern-cta {
        justify-content: center;
    }
}

.btn-primary-modern,
.btn-secondary-modern,
.btn-outline-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary-modern {
    background: linear-gradient(180deg, #111827 0%, #000000 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #000;
}

.btn-primary-modern:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.btn-secondary-modern {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-secondary-modern:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827;
}

/* Feature & Tech Badges */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (max-width: 991px) {
    .hero-features {
        justify-content: center;
    }
}

.badge-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.badge-feature:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

@media (max-width: 991px) {
    .hero-tech {
        justify-content: center;
    }
}

.badge-tech {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 500;
    background: #ffffff;
}

/* Project Metrics (Left Column) */
.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
}

@media (max-width: 991px) {
    .hero-metrics-grid {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.hero-metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-metric-item .icon {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.hero-metric-item .label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.05em;
}

.hero-metric-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #111827;
}

/* Right Column Graphic */
.hero-modern-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-browser-mockup {
    position: relative;
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-browser-img {
    display: block;
    width: 100%;
    height: auto;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Floating Cards Over Image */
.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    transition: transform 0.2s ease;
}

.floating-card:hover {
    transform: scale(1.05);
}

.fc-1 {
    top: -20px;
    right: -20px;
    animation: float 5s ease-in-out infinite 1s;
}

.fc-2 {
    bottom: 40px;
    left: -30px;
    animation: float 7s ease-in-out infinite 0.5s;
}

.fc-3 {
    bottom: -20px;
    right: 20px;
    animation: float 6s ease-in-out infinite 2s;
}

@media (max-width: 991px) {
    .floating-card {
        display: none;
    }
}

.fc-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 14px;
}

.fc-icon.green {
    background: #dcfce7;
    color: #166534;
}

.fc-icon.purple {
    background: #f3e8ff;
    color: #6b21a8;
}

.fc-icon.blue {
    background: #dbeafe;
    color: #1e40af;
}

.fc-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
}

/* Problem Callout */
.problem-callout {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0 4rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    box-shadow: 0 4px 6px -1px rgba(252, 211, 77, 0.1);
}

@media (max-width: 768px) {
    .problem-callout {
        flex-direction: column;
        gap: 1rem;
    }
}

.problem-callout-icon {
    font-size: 2rem;
    line-height: 1;
}

.problem-callout-content h3 {
    color: #92400e;
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.problem-callout-content p {
    color: #b45309;
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
}

.problem-callout-content strong {
    color: #78350f;
}

/* Project Highlights Row */
.project-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 4rem;
}

.ph-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.2s;
}

.ph-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.ph-value {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.ph-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}