/* ═══════════════════════════════════════════════════════════════════════
   styles.css — AMaaS Labs Enterprise Evolution Platform
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-card: #1c2333;
    --bg-hover: #2d3548;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent: #7c8ef0;
    --accent-glow: rgba(124, 142, 240, 0.25);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border: #2d3548;
    --radius: 12px;
    --radius-sm: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: 0.25s ease;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ── Focus ── */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Typography ── */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 16px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* ── Animations ── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.5px;
    text-decoration: none;
}
.logo:hover {
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.logo span {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}
.nav-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-cta {
    background: var(--gradient);
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 13px;
    transition: var(--transition);
    box-shadow: 0 0 20px var(--accent-glow);
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 32px var(--accent-glow);
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        gap: 12px;
        border-top: 1px solid var(--border);
        margin-top: 12px;
    }
    .nav-links.open {
        display: flex;
    }
    .header-inner {
        flex-wrap: wrap;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
    padding: 120px 24px 80px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 142, 240, 0.08) 0%, transparent 70%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 6px 16px 6px 8px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}
.hero-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fb950;
    display: inline-block;
}

.hero h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px 48px;
    margin-bottom: 40px;
}
.stat {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}
.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-family: inherit;
}
.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 40px var(--accent-glow);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-trust-item {
    font-size: 13px;
    color: var(--text-secondary);
}
.hero-trust-item strong {
    color: var(--text-primary);
    display: block;
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   PLATFORM — Unified Vision
   ═══════════════════════════════════════════════════════════════════════ */
.platform-section {
    padding: 60px 24px;
    background: var(--bg-secondary);
}
.platform-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    max-width: 900px;
    margin: 32px auto 0;
}

.platform-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 20px;
    text-align: center;
    min-width: 180px;
    flex: 1;
    max-width: 220px;
    transition: var(--transition);
}
.platform-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}
.platform-card-arrow {
    min-width: 40px;
    flex: 0;
    background: none;
    border: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 20px;
}
.platform-card-arrow:hover {
    transform: none;
    border: none;
}
.platform-card-result {
    border-color: var(--accent);
}
.platform-icon {
    font-size: 32px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.platform-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.platform-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.platform-tag {
    display: inline-block;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-primary);
    color: var(--text-muted);
    padding: 2px 10px;
    border-radius: 40px;
    border: 1px solid var(--border);
    margin-top: 8px;
}
.platform-card-result .platform-tag {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 640px) {
    .platform-grid {
        flex-direction: column;
        gap: 12px;
    }
    .platform-card {
        max-width: 100%;
        width: 100%;
    }
    .platform-card-arrow {
        transform: rotate(90deg);
        padding: 4px 0;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   DIAGRAM
   ═══════════════════════════════════════════════════════════════════════ */
.diagram-section {
    padding: 60px 24px;
    background: var(--bg-primary);
}
.diagram-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}
.diagram-flow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 520px;
    margin: 32px auto 0;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.flow-node {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px 24px;
    text-align: center;
    width: 100%;
    transition: var(--transition);
}
.flow-node:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.flow-node-legacy {
    border-color: #f0883e;
}
.flow-node-primary {
    border-color: #667eea;
}
.flow-node-accent {
    border-color: #764ba2;
}
.flow-node-secondary {
    border-color: #3fb950;
}
.flow-node-outcomes {
    border-color: #f0883e;
}

.flow-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 4px;
}
.flow-node-legacy .flow-icon {
    color: #f0883e;
}
.flow-node-primary .flow-icon {
    color: #667eea;
}
.flow-node-accent .flow-icon {
    color: #764ba2;
}
.flow-node-secondary .flow-icon {
    color: #3fb950;
}
.flow-node-outcomes .flow-icon {
    color: #f0883e;
}

.flow-label {
    font-weight: 700;
    font-size: 15px;
}
.flow-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 6px;
}
.flow-tags span {
    font-size: 10px;
    background: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 40px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.badge {
    font-size: 9px;
    background: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 40px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.flow-arrow {
    color: var(--text-muted);
    font-size: 20px;
    padding: 4px 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   ENTERPRISE READY
   ═══════════════════════════════════════════════════════════════════════ */
.enterprise-section {
    padding: 60px 24px;
    background: var(--bg-secondary);
}
.enterprise-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.enterprise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto 32px;
}
.enterprise-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: center;
}
.enterprise-item i {
    font-size: 28px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.enterprise-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.enterprise-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.compliance-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.compliance-row span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════════════
   PRODUCT SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */
.product-section {
    padding: 80px 24px;
}
.product-section-alt {
    background: var(--bg-primary);
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.product-grid-reverse {
    direction: rtl;
}
.product-grid-reverse>* {
    direction: ltr;
}

.product-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    background: rgba(124, 142, 240, 0.1);
    padding: 4px 14px;
    border-radius: 40px;
    margin-bottom: 12px;
}

.product-info h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}
.product-info p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    margin-bottom: 24px;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 14px;
}
.feature-list li i {
    color: var(--accent);
    font-size: 14px;
}

/* ── Terminal Visual ── */
.terminal {
    background: #0a0e14;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
}
.terminal-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.dot-red,
.dot-yellow,
.dot-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.dot-red {
    background: #ff5f57;
}
.dot-yellow {
    background: #ffbd2e;
}
.dot-green {
    background: #28c840;
}
.terminal-title {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 8px;
    font-family: var(--font);
}
.terminal-body {
    padding: 16px;
    color: #c9d1d9;
    white-space: pre-wrap;
    font-size: 12px;
    min-height: 160px;
}
.terminal-body .prompt {
    color: var(--accent);
}
.terminal-body .output {
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .product-grid-reverse {
        direction: ltr;
    }
    .product-grid-reverse>* {
        direction: ltr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   OUTCOMES
   ═══════════════════════════════════════════════════════════════════════ */
.outcomes-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}
.outcomes-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.outcomes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.outcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}
.outcome-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.outcome-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.outcome-card .icon {
    font-size: 28px;
    display: block;
    margin-bottom: 6px;
}
.outcome-card .label {
    font-size: 13px;
    font-weight: 600;
}

.outcome-detail {
    margin-top: 32px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    position: relative;
}
.outcome-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}
.outcome-close:hover {
    color: var(--text-primary);
}
#outcomeContent {
    color: var(--text-secondary);
    font-size: 14px;
}
#outcomeContent h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin-bottom: 8px;
}
.outcome-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}
.outcome-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 4px 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════════════════════════════════════
   DEMO
   ═══════════════════════════════════════════════════════════════════════ */
.demo-section {
    padding: 80px 24px;
    background: var(--bg-primary);
}
.demo-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.demo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.demo-editor {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
}
.demo-editor-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
}
.demo-file {
    font-weight: 600;
    color: var(--text-primary);
}
.demo-lang {
    background: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 40px;
    font-size: 10px;
}

.demo-editor textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-secondary);
    color: #c9d1d9;
    border: none;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    resize: vertical;
    min-height: 280px;
    outline: none;
    tab-size: 2;
}
.demo-editor textarea::selection {
    background: var(--accent-glow);
}
.demo-editor textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

.demo-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}
.demo-actions .btn {
    font-size: 12px;
    padding: 8px 16px;
}
.demo-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.demo-output {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.demo-output-header {
    display: flex;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
}
.demo-output-status {
    font-weight: 600;
    color: #3fb950;
}
.demo-output-status.error {
    color: #ff5f57;
}
.demo-output-status.progress {
    color: #f0883e;
}
.demo-output-body {
    flex: 1;
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #c9d1d9;
    min-height: 320px;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}
.demo-placeholder {
    color: var(--text-muted);
    text-align: center;
    padding: 40px 0;
}
.demo-placeholder i {
    font-size: 32px;
    display: block;
    margin-bottom: 12px;
    color: var(--border);
}
.demo-placeholder strong {
    color: var(--text-secondary);
}

.demo-progress-step {
    margin: 4px 0;
}
.demo-progress-label {
    display: inline-block;
    width: 120px;
    font-weight: 600;
}
.demo-progress-bar {
    display: inline-block;
    width: 120px;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
    vertical-align: middle;
    margin-left: 8px;
}
.demo-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

@media (max-width: 900px) {
    .demo-layout {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════════════════════ */
.philosophy-section {
    padding: 80px 24px;
    background: radial-gradient(ellipse at 50% 100%, rgba(124, 142, 240, 0.05) 0%, transparent 70%);
}
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.philosophy-content h2 {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
}
.philosophy-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto 16px;
}
.philosophy-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.pillar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
}
.pillar i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 8px;
}
.pillar h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.pillar p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   ASSESSMENT / UPLOAD
   ═══════════════════════════════════════════════════════════════════════ */
.assessment-section {
    padding: 80px 24px;
    background: var(--bg-secondary);
}
.assessment-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}
.assessment-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}
.assessment-sub {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.assessment-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.benefit {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
}
.benefit i {
    display: block;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 4px;
}

.upload-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 40px 20px;
    transition: var(--transition);
    cursor: pointer;
}
.upload-dropzone:hover {
    border-color: var(--accent);
}
.upload-dropzone i {
    font-size: 36px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.upload-dropzone p {
    font-size: 14px;
    margin-bottom: 4px;
}
.upload-formats {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}

.upload-status {
    margin-top: 12px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    min-height: 36px;
}
.upload-status.success {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
}
.upload-status.error {
    background: rgba(255, 87, 87, 0.15);
    color: #ff5f57;
}

.upload-progress {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-card);
    border-radius: 3px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}
#progressText {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 36px;
}

.spinner {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}
.spinner i {
    margin-right: 8px;
}

.assessment-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 24px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.assessment-trust span {
    font-size: 12px;
    color: var(--text-muted);
}
.assessment-trust i {
    color: var(--accent);
    margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════════════════ */
.faq-section {
    padding: 80px 24px;
    background: var(--bg-primary);
}
.faq-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px 0;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: var(--transition);
}
.faq-question:hover {
    color: var(--accent);
}
.faq-question:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.faq-question i {
    color: var(--text-muted);
    transition: transform 0.2s;
    flex-shrink: 0;
}
.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 0 0 0;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 0 16px 0;
}
.faq-answer p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    padding: 32px 24px;
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.footer-brand .logo-icon {
    width: 28px;
    height: 28px;
    font-size: 13px;
}
.footer-brand p {
    font-size: 12px;
    color: var(--text-muted);
    width: 100%;
    margin-top: 2px;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--text-primary);
    text-decoration: none;
}
.footer-trust {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-trust a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-trust a:hover {
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-legal {
    text-align: right;
    font-size: 12px;
    color: var(--text-muted);
    width: 100%;
}
.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-legal a:hover {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        text-align: center;
    }
    .footer-trust {
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .hero h1 {
        font-size: 28px;
    }
    .hero-sub {
        font-size: 16px;
    }
    .hero-stats {
        gap: 16px 24px;
    }
    .stat-number {
        font-size: 22px;
    }
    .product-info h2 {
        font-size: 24px;
    }
    .philosophy-content h2 {
        font-size: 28px;
    }
    .demo-editor textarea {
        min-height: 180px;
        font-size: 12px;
    }
    .assessment-card {
        padding: 24px 16px;
    }
    .outcomes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .assessment-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    .platform-card {
        min-width: 140px;
    }
}
/* ═══════════════════════════════════════════════════════════════════════
   WHY CHOOSE AMAAS
   ═══════════════════════════════════════════════════════════════════════ */
.why-section {
    padding: 60px 24px;
    background: var(--bg-primary);
}
.why-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 8px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}
.why-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    text-align: center;
}
.why-item i {
    font-size: 28px;
    color: var(--accent);
    display: block;
    margin-bottom: 8px;
}
.why-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}
.why-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════════════
   TRUST LOGOS
   ═══════════════════════════════════════════════════════════════════════ */
.logos-section {
    padding: 40px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.logos-label {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}
.logo-item {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    opacity: 0.7;
    transition: var(--transition);
}
.logo-item:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════
   BOTTOM CTA
   ═══════════════════════════════════════════════════════════════════════ */
.cta-section {
    padding: 60px 24px;
    background: var(--bg-primary);
}
.cta-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    text-align: center;
}
.cta-card h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}
.cta-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 24px;
}
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
/* ──────────────────────────────────────────────────────────────
   DEMO — Interactive BDL Demo
   ────────────────────────────────────────────────────────────── */

.demo-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    max-width: 660px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.demo-selector label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.demo-select {
    flex: 1;
    min-width: 160px;
    padding: 8px 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
}

.demo-select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.demo-file-info {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ── BDL Source Display ── */
.bdl-source {
    padding: 16px 20px;
    background: var(--bg-primary);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.8;
    color: #c9d1d9;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    tab-size: 2;
}

.bdl-line {
    padding: 0 4px;
    border-left: 2px solid transparent;
}

.bdl-line:hover {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: var(--accent);
}

.hl-keyword {
    color: #ff7b72;
    font-weight: 600;
}

.hl-string {
    color: #a5d6ff;
}

.hl-attr {
    color: #d2a8ff;
}

.hl-comment {
    color: #8b949e;
    font-style: italic;
}

.hl-concept {
    color: #f0883e;
    font-weight: 500;
}

/* ── Demo File Stats ── */
.demo-file-stats {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
    background: var(--bg-primary);
    padding: 2px 10px;
    border-radius: 40px;
}

/* ── Demo Output Scroll ── */
.demo-output-body {
    font-size: 12px;
    line-height: 1.6;
    max-height: 420px;
    overflow-y: auto;
}

.demo-output-body .hl-keyword {
    color: #ff7b72;
}

.demo-output-body .hl-string {
    color: #a5d6ff;
}

/* ── Responsive Demo ── */
@media (max-width: 640px) {
    .demo-selector {
        flex-direction: column;
        align-items: stretch;
    }
    .demo-select {
        min-width: 100%;
    }
    .demo-file-info {
        text-align: center;
    }
    .bdl-source {
        font-size: 12px;
        max-height: 280px;
        padding: 12px 16px;
    }
}
/* Opportunity Button - For CSP compliance */
.opportunity-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.opportunity-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}
.opportunity-btn i {
    margin-right: 8px;
}

/* Hidden utility - For CSP compliance */
.hidden {
    display: none;
}

/* Outcome badges - for app.js */
.outcome-badge {
    background: var(--bg-primary);
    border-color: var(--accent);
    color: var(--accent);
    border: 1px solid;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    display: inline-block;
}

/* Outcome description - for app.js */
.outcome-description {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Reports Access */
.reports-access {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.reports-access h3 {
    font-size: 16px;
    color: #1b3a5c;
    margin-bottom: 4px;
}
.reports-access h3 i {
    color: #667eea;
}
.reports-access p {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.reports-access .btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access .btn-primary {
    background: #667eea;
    color: white;
}
.reports-access .btn-primary:hover {
    background: #5a6fd6;
}
.reports-access .btn-secondary {
    background: #28a745;
    color: white;
}
.reports-access .btn-secondary:hover {
    background: #218838;
}
.reports-access .info-box {
    margin-top: 12px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffca28;
}
.reports-access .info-box p {
    font-size: 12px;
    color: #7a5c00;
    margin: 0;
}
.reports-access .info-box a {
    color: #667eea;
    font-weight: 600;
}
@media (max-width: 600px) {
    .reports-access .btn {
        width: 100%;
        justify-content: center;
    }
}
/* Reports Access Section */
.reports-access {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.reports-access-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.reports-access-title {
    font-size: 16px;
    color: #1b3a5c;
    margin-bottom: 4px;
}
.reports-access-title i {
    color: #667eea;
}
.reports-access-sub {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.reports-access-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.reports-access-buttons .btn-camunda {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-camunda:hover {
    background: #5568d6;
}
.reports-access-buttons .btn-java {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-java:hover {
    background: #1e7e34;
}
.reports-access-note {
    margin-top: 12px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffca28;
}
.reports-access-note p {
    font-size: 12px;
    color: #7a5c00;
    margin: 0;
}
.reports-access-note a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.reports-access-note a:hover {
    text-decoration: underline;
}

/* ===== Reports Access Section ===== */
.reports-access {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.reports-access-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.reports-access-title {
    font-size: 16px;
    color: #1b3a5c;
    margin-bottom: 4px;
}
.reports-access-title i {
    color: #667eea;
}
.reports-access-sub {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.reports-access-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.reports-access-buttons .btn-camunda {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-camunda:hover {
    background: #5568d6;
}
.reports-access-buttons .btn-java {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-java:hover {
    background: #1e7e34;
}
.reports-access-note {
    margin-top: 12px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffca28;
}
.reports-access-note p {
    font-size: 12px;
    color: #7a5c00;
    margin: 0;
}
.reports-access-note a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.reports-access-note a:hover {
    text-decoration: underline;
}

/* ===== Reports Access Section ===== */
.reports-access {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.reports-access-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.reports-access-title {
    font-size: 16px;
    color: #1b3a5c;
    margin-bottom: 4px;
}
.reports-access-title i {
    color: #667eea;
}
.reports-access-sub {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.reports-access-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.reports-access-buttons .btn-camunda {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-camunda:hover {
    background: #5568d6;
}
.reports-access-buttons .btn-java {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-java:hover {
    background: #1e7e34;
}
.reports-access-note {
    margin-top: 12px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffca28;
}
.reports-access-note p {
    font-size: 12px;
    color: #7a5c00;
    margin: 0;
}
.reports-access-note a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.reports-access-note a:hover {
    text-decoration: underline;
}

/* ===== Reports Access Section ===== */
.reports-access {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fc;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}
.reports-access-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.reports-access-title {
    font-size: 16px;
    color: #1b3a5c;
    margin-bottom: 4px;
}
.reports-access-title i {
    color: #667eea;
}
.reports-access-sub {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
}
.reports-access-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.reports-access-buttons .btn-camunda {
    background: #667eea;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-camunda:hover {
    background: #5568d6;
}
.reports-access-buttons .btn-java {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.reports-access-buttons .btn-java:hover {
    background: #1e7e34;
}
.reports-access-note {
    margin-top: 12px;
    padding: 12px;
    background: #fff8e1;
    border-radius: 6px;
    border-left: 4px solid #ffca28;
}
.reports-access-note p {
    font-size: 12px;
    color: #7a5c00;
    margin: 0;
}
.reports-access-note a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}
.reports-access-note a:hover {
    text-decoration: underline;
}
