/**
 * Holos AI - Modern Redesign & Component Overrides (2026)
 * File: css/redesign.css
 */

/* =========================================================================
   1. Header: Logo, Clean 400-Weight Action Buttons & Transparent Theme Toggle
   ========================================================================= */
.site-header .brand-logo span {
    font-size: 1.35rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

.site-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header .nav-text-btn {
    font-size: 0.92rem !important;
    font-weight: 400 !important;
    color: var(--text-primary);
    background: transparent;
    padding: 6px 14px;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.site-header .nav-text-btn:hover {
    color: var(--accent-primary);
    background: rgba(242, 139, 79, 0.08);
}

/* =========================================================================
   2. Section Titles & Subtitles: Calm Proportions
   ========================================================================= */
.section-title,
.features-section-top .section-title,
.showcase-section .section-title {
    font-size: clamp(1.5rem, 2.5vw, 1.85rem) !important;
    font-weight: 500 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 8px !important;
    color: var(--text-primary);
    text-align: center;
}

.section-subtitle {
    font-size: 0.96rem !important;
    color: var(--text-secondary, #657D92);
    max-width: 620px;
    margin: 0 auto 36px !important;
    line-height: 1.6;
    text-align: center;
}

/* =========================================================================
   3. Editorial Bento Grid: 5 Feature Cards (Warm/Misty Soft Tint)
   ========================================================================= */
.feature-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}

.bento-card {
    background: var(--bento-card-bg, rgba(255, 255, 255, 0.72));
    border: 1px solid var(--bento-card-border, var(--border-subtle));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    min-height: 210px;
}

.bento-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
    background: var(--bento-card-hover, var(--bento-card-bg));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.bento-card-hero {
    grid-column: 1 / -1;
    background: var(--bento-card-bg, rgba(255, 255, 255, 0.72));
    border: 1px solid var(--bento-card-border, var(--border-subtle));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 36px 32px;
}

.bento-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.bento-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bento-card-eyebrow {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent-primary);
}

.bento-card-title {
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px;
    line-height: 1.35;
}

.bento-card-hero .bento-card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.bento-card-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.bento-card-hero .bento-card-desc {
    font-size: 0.98rem;
    max-width: 680px;
}

.bento-card-footer {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.bento-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #FFFFFF !important;
    background: var(--accent-primary) !important;
    border: none;
    padding: 8px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--accent-primary-glow);
}

.bento-demo-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .feature-bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card-hero {
        grid-column: 1;
        padding: 28px 22px;
    }
    .bento-card {
        padding: 24px 20px;
    }
}

/* =========================================================================
   4. Lightweight Download Modal
   ========================================================================= */
.download-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.download-modal-overlay.active, .download-modal-overlay.show {
    display: flex !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.download-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.download-modal-window {
    position: relative;
    z-index: 2;
    background: var(--bg-elevated, #FFFFFF);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 34px 28px 28px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal-overlay.active .download-modal-window,
.download-modal-overlay.show .download-modal-window {
    transform: scale(1);
}

.download-modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.download-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.download-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.download-modal-subtitle {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0 0 20px;
    line-height: 1.5;
}

.download-qr-box {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 12px;
    display: inline-block;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.download-qr-box img {
    display: block;
    width: 170px;
    height: 170px;
}

.download-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.download-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 18px;
    border-radius: 9999px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 400;
    transition: all 0.2s ease;
    cursor: pointer;
}

.download-modal-btn.play-btn {
    background: var(--bg-primary, #F4F6F8);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
}

.download-modal-btn.play-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

.download-modal-btn.apk-btn {
    background: var(--accent-primary);
    color: #FFFFFF;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px var(--accent-primary-glow);
}

.download-modal-btn.apk-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* =========================================================================
   5. Interactive Demo Stepper & Guarantees
   ========================================================================= */
.demo-mode-navbar-side {
    display: none;
}

.demo-stepper-control-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 2px;
}

.demo-play-all-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    background: rgba(242, 139, 79, 0.1);
    border: 1px solid rgba(242, 139, 79, 0.3);
    border-radius: 50%;
    color: var(--accent-primary, #F28B4F);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 4px rgba(242, 139, 79, 0.08);
}

.demo-play-all-pill svg {
    margin-left: 1.5px; /* optical center for play triangle */
}

.demo-play-all-pill:hover {
    background: rgba(242, 139, 79, 0.22);
    border-color: var(--accent-primary, #F28B4F);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(242, 139, 79, 0.18);
}

.demo-play-all-pill.active {
    background: linear-gradient(135deg, #F28B4F 0%, #FF5E3A 100%);
    border-color: #FF5E3A;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(242, 139, 79, 0.35);
}

.demo-modes-stack {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 30px;
}

.demo-modes-stack::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 10px;
    bottom: 10px;
    width: 1px;
    background: var(--border-subtle, rgba(59, 153, 214, 0.2));
}

.demo-mode-item {
    position: relative;
    cursor: pointer;
    padding: 14px 16px;
    margin: 2px 0;
    border-radius: 12px;
    transition: background-color 0.2s ease;
}

.demo-mode-item::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 20px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--border-subtle, rgba(59, 153, 214, 0.35));
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.demo-mode-item:hover {
    background: var(--bg-elevated, rgba(59, 153, 214, 0.05));
}

.demo-mode-item-title {
    font-size: 0.98rem;
    font-weight: 500;
    margin: 0;
    color: var(--text-secondary, #52667a);
}

.demo-mode-item-desc {
    display: none;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary, #52667a);
    margin: 8px 0 0;
}

.demo-mode-item.active {
    background: var(--bg-elevated, #ffffff);
    box-shadow: 0 1px 3px rgba(20, 60, 90, 0.08);
}

.demo-mode-item.active::before {
    background: var(--accent-primary, #1F6FB2);
    box-shadow: 0 0 0 4px rgba(31, 111, 178, 0.14);
}

.demo-mode-item.active .demo-mode-item-title {
    color: var(--accent-primary, #1F6FB2);
}

.demo-mode-item.active .demo-mode-item-desc {
    display: block;
}

.demo-guarantee-stack {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-subtle, rgba(59, 153, 214, 0.14));
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.demo-guarantee-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted, #7a8ca0);
}

.demo-guarantee-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--text-muted, #9db2c6);
}

/* =========================================================================
   6. Footer: 400-Weight Links & Typography
   ========================================================================= */
.site-footer a {
    font-weight: 400 !important;
}

.site-footer h5 {
    font-weight: 500 !important;
}

.site-footer .copyright {
    font-weight: 400 !important;
}

.footer-brand {
    max-width: 640px !important;
}

.footer-brand p {
    font-weight: 400 !important;
    white-space: nowrap;
}

@media (max-width: 860px) {
    .footer-brand p {
        white-space: normal;
    }
}
