/* --- Language toggle --- */
.lang-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    max-width: var(--layout-max);
    margin: 0 auto;
    padding: 0.75rem 2rem 0;
}

.lang-toggle {
    display: flex;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    overflow: hidden;
}

.lang-toggle button {
    background: transparent;
    border: none;
    color: var(--text-soft);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
}

.lang-toggle button.active {
    background: rgba(0, 122, 255, 0.2);
    color: var(--text-bright);
}

.lang-block { display: none; }
.lang-block.active { display: block; }

/* --- Shared content components --- */
.content-main {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 1rem 1.25rem 5rem;
}

.content-hero {
    background: linear-gradient(155deg, rgba(0, 122, 255, 0.12), rgba(255, 184, 77, 0.08));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

.content-hero--purple {
    background: linear-gradient(155deg, rgba(0, 122, 255, 0.12), rgba(88, 86, 214, 0.1));
}

.content-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 0.7rem;
}

.content-hero .tagline {
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.content-hero p { color: var(--text-soft); max-width: 760px; }

.content-meta {
    margin-top: 1rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.content-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem 1.1rem;
    margin-top: 1rem;
}

.content-section h2 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.content-section p + p { margin-top: 0.7rem; }
.content-section ul { margin: 0.65rem 0 0 1.15rem; color: var(--text-soft); }
.content-section li + li { margin-top: 0.35rem; }

.info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
}

.info-card strong {
    display: block;
    color: var(--primary-glow);
    margin-bottom: 0.35rem;
}

.info-card span { color: var(--text-soft); font-size: 0.95rem; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.triple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.triple-item {
    text-align: center;
    background: rgba(0, 122, 255, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem 0.75rem;
}

.triple-item .word { font-size: 1.35rem; font-weight: 800; color: var(--primary-glow); }
.triple-item .arrow { color: var(--text-soft); margin: 0.25rem 0; }
.triple-item .desc { color: var(--text-soft); font-size: 0.9rem; }

.quote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-top: 0.75rem;
    color: var(--text-soft);
    font-style: italic;
}

.cta-row {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.kpi {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
}

.kpi-title { color: var(--text-soft); font-size: 0.86rem; }
.kpi-value { margin-top: 0.25rem; font-weight: 700; }

.page-story .btn-primary,
.page-whitepaper .btn-primary {
    background: var(--primary);
    color: white;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

.page-story .btn-secondary,
.page-whitepaper .btn-secondary {
    border: 1px solid var(--border-subtle);
    color: var(--text-bright);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
}

/* --- SVG feature icons --- */
.feature-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(0, 122, 255, 0.12);
    color: var(--primary-glow);
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Brand mascot --- */
.brand-mascot {
    width: clamp(120px, 18vw, 180px);
    height: auto;
    filter: drop-shadow(0 12px 32px rgba(255, 184, 77, 0.25));
    animation: mascot-float 4s ease-in-out infinite;
    image-rendering: auto;
}

@keyframes mascot-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mascot-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 184, 77, 0.12);
    border: 1px solid rgba(255, 184, 77, 0.3);
    border-radius: 999px;
    padding: 0.35rem 0.85rem 0.35rem 0.45rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.mascot-badge img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
    transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .brand-mascot {
        animation: none;
    }
}
