/* Modern Landing Page CSS - ProcessMapper Style */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #ffffff;
    --fg: #000000;
    --primary: #ff006e;
    --muted: #666666;
    --border: #e0e0e0;
    --card-bg: #fafafa;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode */
body.dark-mode {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #888888;
    --border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.05);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.navbar-logo {
    margin-right: auto;
    display: flex;
    align-items: center;
}

.navbar-logo .logo-img {
    height: 36px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-logo:hover .logo-img {
    transform: scale(1.05);
}

/* Navbar Logo Canvas Animation */
.navbar-logo-canvas {
    width: 40px;
    height: 40px;
    display: block;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.navbar-logo:hover .navbar-logo-canvas {
    transform: scale(1.1);
}

body.dark-mode .navbar {
    background: rgba(0, 0, 0, 0.8);
}

.nav-link {
    color: var(--fg);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.language-selector {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--fg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.language-btn:hover {
    background: var(--fg);
    color: var(--bg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #000000;
    min-width: 140px;
    display: none;
    flex-direction: column;
    z-index: 1000;
}

.language-dropdown.active {
    display: flex;
}

.language-option {
    background: transparent;
    border: none;
    padding: 10px 15px;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    color: #000000;
    font-family: 'JetBrains Mono', monospace;
    transition: background 0.2s ease;
}

.language-option:hover {
    background: #000000;
    color: #ffffff;
}

.lang-code {
    display: inline-block;
    background: #000000;
    color: #ffffff;
    padding: 2px 5px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-right: 8px;
}

.language-option:hover .lang-code {
    background: #ffffff;
    color: #000000;
}

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--fg);
    padding: 5px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

body.dark-mode .theme-toggle .sun-icon {
    display: none;
}

body.dark-mode .theme-toggle .moon-icon {
    display: block;
}

/* ==================== HERO ==================== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 60px;
    background: var(--bg);
}

.hero-container {
    max-width: 1400px;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.brand-title {
    font-family: 'VT323', monospace;
    font-size: 5rem;
    color: var(--primary);
    letter-spacing: 4px;
    margin-bottom: 0;
}

.pixel-title-canvas {
    height: 150px;
    flex: 1;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Pixel Title Container */
.brand-title-container {
    position: relative;
    width: 100%;
    height: 160px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Hero Logo Canvas (next to title) */
.hero-logo-canvas {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(0 0 4px rgba(255, 0, 110, 0.4));
}

body.dark-mode .hero-logo-canvas {
    filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.6));
}

#pixel-title-canvas {
    display: block;
    flex: 1;
    height: 100%;
    filter: drop-shadow(0 0 4px rgba(255, 0, 110, 0.4));
}

body.dark-mode #pixel-title-canvas {
    filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.6));
}

.hero-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--fg);
    max-width: 600px;
}

.hero-terminal {
    flex: 1;
    max-width: 550px;
}

/* Terminal Box */
.terminal-box {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-button.red { background: #ff006e; }
.terminal-button.yellow { background: #ff006e; }
.terminal-button.green { background: #ff006e; }

.terminal-body {
    padding: 25px;
    min-height: 250px;
    font-family: 'JetBrains Mono', monospace;
    display: flex;
    align-items: flex-start;
}

.terminal-content {
    width: 100%;
}

.terminal-title {
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.6;
}

.terminal-cursor::after {
    content: '_';
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.terminal-link {
    color: #27c93f;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.terminal-link:hover {
    opacity: 0.8;
}

/* ==================== FEATURES ==================== */
.features {
    padding: 80px 40px;
    background: var(--bg);
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.steps-box {
    border: 1px solid var(--border);
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.steps-intro {
    text-align: center;
    font-weight: 600;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
}

.steps-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.step-number {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    color: var(--fg);
}

.step-item h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
}

.step-item p {
    color: var(--muted);
    font-size: 0.9rem;
}

.cta-box {
    background: #ffffff;
    color: #000000;
    padding: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 25px;
}

body.dark-mode .cta-box {
    background: #ffffff;
    color: #000000;
}

.cta-box-title {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    letter-spacing: 3px;
}

.cta-box-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    max-width: 400px;
    line-height: 1.6;
}

.btn-try-mapper {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.btn-try-mapper:hover {
    background: var(--primary);
}

/* Mapper Dropdown */
.mapper-dropdown {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
    position: relative;
}

.mapper-dropdown.active {
    max-height: 800px;
    opacity: 1;
    margin-top: 30px;
    padding: 30px;
    border: 2px solid var(--primary);
}

.close-mapper {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 1px solid #000000;
    color: #000000;
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-mapper:hover {
    background: #000000;
    color: #ffffff;
    transform: rotate(90deg);
}

.mapper-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #cccccc;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    background: rgba(0,0,0,0.02);
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.step-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #cccccc;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
}

.btn-add-step {
    background: transparent;
    border: 1px dashed #cccccc;
    padding: 10px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #666666;
    transition: all 0.2s ease;
}

.btn-add-step:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-analyze {
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 15px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: opacity 0.3s ease;
}

.btn-analyze:hover {
    opacity: 0.9;
}

.btn-analyze:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* AI Thinking Animation */
.ai-thinking {
    margin-top: 20px;
    text-align: center;
}

.ai-thinking-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 0, 110, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.ai-thinking-progress {
    width: 30%;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    animation: ai-thinking-slide 1.5s ease-in-out infinite;
}

@keyframes ai-thinking-slide {
    0% {
        transform: translateX(-100%);
    }
    50% {
        transform: translateX(250%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.ai-thinking-text {
    margin-top: 12px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    animation: ai-thinking-pulse 1.5s ease-in-out infinite;
}

@keyframes ai-thinking-pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

.mapper-results {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.05);
}

.mapper-results h3 {
    margin-bottom: 15px;
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--primary);
}

.analysis-result pre {
    background: #000000;
    color: #ffffff;
    padding: 15px;
    overflow-x: auto;
    font-size: 0.8rem;
}

/* ==================== SERVICES ==================== */
.services {
    padding: 100px 40px;
    background: var(--bg);
}

.services-container {
    max-width: 900px;
    margin: 0 auto;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 50px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    display: inline-block;
}

.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.service-item:hover {
    border-color: var(--primary);
}

.service-number {
    font-family: 'VT323', monospace;
    font-size: 1.8rem;
    color: var(--muted);
    min-width: 40px;
    transition: color 0.3s ease;
}

.service-item:hover .service-number {
    color: var(--primary);
}

.service-content h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.service-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--muted);
}

/* ==================== PROJECTS ==================== */
.projects {
    padding: 100px 40px;
    background: var(--bg);
}

.projects-container {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 0;
}

.project-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px;
    transition: all 0.2s ease;
    background: transparent;
}

body:not(.dark-mode) .project-card {
    border-color: rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    border-color: rgba(255, 0, 110, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

body:not(.dark-mode) .project-card:hover {
    background: rgba(0, 0, 0, 0.02);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.project-number {
    font-family: 'VT323', monospace;
    font-size: 1.5rem;
    color: var(--muted);
    transition: color 0.3s ease;
}

.project-card:hover .project-number {
    color: var(--primary);
}

.project-logo-canvas {
    width: 48px;
    height: 48px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.project-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-card > p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
    height: 48px;
}

.project-links {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.project-links a {
    color: var(--fg);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.project-links a:hover {
    color: var(--primary);
}

.link-arrow {
    font-family: 'JetBrains Mono', monospace;
}

.project-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted);
    display: inline-block;
}

body:not(.dark-mode) .project-status {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Status Legend */
.status-legend {
    margin-top: 64px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-badge {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.legend-desc {
    color: var(--muted);
    font-size: 11px;
}

@media (max-width: 768px) {
    .status-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 120px 40px;
    background: #ffffff;
    text-align: center;
}

body.dark-mode .cta-section {
    background: #ffffff;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'VT323', monospace;
    font-size: 3rem;
    color: #000000;
    margin-bottom: 20px;
}

.cta-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: #333333;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-cta-large {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 20px 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    transition: background 0.3s ease;
}

.btn-cta-large:hover {
    background: var(--primary);
}

.cta-badge {
    margin-top: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666666;
}

/* ==================== CONTACT ==================== */
.contact-section {
    padding: 100px 40px;
    background: var(--bg);
    text-align: center;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-description {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.contact-social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 200px;
    height: 180px;
    padding: 30px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--fg);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-social-link:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-social-link small {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: -5px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 50px 40px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-brand {
    font-family: 'VT323', monospace;
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.footer-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-right {
    text-align: right;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-social-link:hover {
    transform: scale(1.1);
}

.footer-copyright {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero-terminal {
        max-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 100px 20px 40px;
    }

    .brand-title {
        font-size: 3rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .legend-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .nav-link {
        font-size: 0.8rem;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .service-item {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==================== CVR ANALYSIS RESULTS ==================== */
.analysis-result {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 15px;
}

/* Pink Scrollbar */
.analysis-result::-webkit-scrollbar {
    width: 10px;
}

.analysis-result::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.analysis-result::-webkit-scrollbar-thumb {
    background: #ff69b4;
    border-radius: 5px;
}

.analysis-result::-webkit-scrollbar-thumb:hover {
    background: #ff1493;
}

/* Firefox scrollbar */
.analysis-result {
    scrollbar-width: thin;
    scrollbar-color: #ff69b4 #f1f1f1;
}

/* Action Buttons */
.analysis-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.btn-new-analysis,
.btn-download-analysis {
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.btn-new-analysis {
    background: #ff69b4;
    color: white;
}

.btn-new-analysis:hover {
    background: #ff1493;
    transform: translateY(-2px);
}

.btn-download-analysis {
    background: #1a1a1a;
    color: white;
}

.btn-download-analysis:hover {
    background: #333;
    transform: translateY(-2px);
}

.result-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.result-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Markdown Content Styling */
.ai-analysis-markdown .markdown-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #1a1a1a;
}

.ai-analysis-markdown .markdown-content h1 {
    font-size: 1.4rem;
    color: #000000;
    margin: 24px 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #000000;
}

.ai-analysis-markdown .markdown-content h2 {
    font-size: 1.2rem;
    color: #000000;
    margin: 20px 0 12px 0;
}

.ai-analysis-markdown .markdown-content h3 {
    font-size: 1.05rem;
    color: #1a1a1a;
    margin: 16px 0 10px 0;
}

.ai-analysis-markdown .markdown-content h4 {
    font-size: 0.95rem;
    color: #1a1a1a;
    margin: 14px 0 8px 0;
}

.ai-analysis-markdown .markdown-content hr.section-divider {
    border: none;
    border-top: 1px solid #333333;
    margin: 20px 0;
}

.ai-analysis-markdown .markdown-content li {
    margin-bottom: 6px;
    margin-left: 20px;
    color: #1a1a1a;
}

.ai-analysis-markdown .markdown-content strong {
    color: #000000;
    font-weight: 600;
}

.ai-analysis-markdown .markdown-content em {
    font-style: italic;
    color: #333333;
}

.ai-analysis-markdown .markdown-content p {
    color: #1a1a1a;
}

.result-section h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-section h5 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.result-section p {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #1a1a1a;
}

.result-section ul {
    margin-left: 20px;
    margin-bottom: 12px;
}

.result-section ul li {
    font-size: 0.85rem;
    margin-bottom: 4px;
    color: #1a1a1a;
}

/* Company Profile */
.company-profile .company-details p {
    margin-bottom: 6px;
    color: #1a1a1a;
}

/* CVR Intro */
.cvr-intro {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Process Cards */
.processes-grid {
    display: grid;
    gap: 12px;
}

.process-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.process-card h5 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.process-card p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 10px;
}

.maturity-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.maturity-manual {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.maturity-semi_automated {
    background: rgba(255, 180, 50, 0.2);
    color: #ffb432;
}

.maturity-automated {
    background: rgba(100, 255, 100, 0.2);
    color: #64ff64;
}

/* Opportunities */
.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.opportunity-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.process-tag {
    background: var(--primary);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.scores {
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
}

.impact-score {
    color: #ffd700;
}

.complexity-score {
    color: var(--muted);
}

.data-needed, .risk-notes {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

.risk-notes {
    color: #ff9800;
}

/* Actions */
.actions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    position: relative;
}

.action-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.action-quick-win .action-label {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.action-strategic .action-label {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.action-foundation .action-label {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.action-card p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Focus Section */
.focus-section {
    background: linear-gradient(135deg, rgba(255, 0, 110, 0.05), rgba(255, 0, 110, 0.02));
    border: 1px solid rgba(255, 0, 110, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.focus-opportunities, .focus-actions {
    margin-top: 20px;
}

.focus-opportunities h5, .focus-actions h5 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.focus-opp-card, .focus-action-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 12px;
}

.focus-opp-card h6, .focus-action-card h6 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.focus-opp-card p, .focus-action-card p {
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.opp-meta {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.opp-meta span {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
}

.impact-high { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.impact-medium { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.impact-low { background: rgba(158, 158, 158, 0.2); color: #9e9e9e; }

.complexity-low { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.complexity-medium { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.complexity-high { background: rgba(244, 67, 54, 0.2); color: #f44336; }

.data-req {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 8px;
}

.priority-badge {
    display: inline-block;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.priority-high .priority-badge { background: rgba(244, 67, 54, 0.2); color: #f44336; }
.priority-medium .priority-badge { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.priority-low .priority-badge { background: rgba(158, 158, 158, 0.2); color: #9e9e9e; }

/* Caveats */
.caveats {
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
}

.caveats h4 {
    color: #ff9800;
}

.caveats p {
    font-size: 0.85rem;
    color: var(--muted);
}

/* Scrollbar for results */
.analysis-result::-webkit-scrollbar {
    width: 6px;
}

.analysis-result::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 3px;
}

.analysis-result::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.analysis-result::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}
