/* --- Features --- */
.features {
    padding: 120px 0 160px;
    display: flex;
    flex-direction: column;
    gap: 160px;}

.feature-row {
    display: flex;
    align-items: center;
    gap: 120px;}

.feature-row.reverse { flex-direction: row-reverse; }

.feature-media-placeholder {
    flex: 1.4;
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;}

@media (prefers-color-scheme: dark) {
    .feature-media-placeholder { box-shadow: var(--shadow-glow); }
}

.feature-media-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.1));
    z-index: 1;}

@media (prefers-color-scheme: dark) {
    .feature-media-placeholder::after {
        background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));}
}

.feature-media-icon {
    font-size: 4rem;
    opacity: 0.15;
    z-index: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);}

.feature-row:hover .feature-media-icon { transform: scale(1.1); }

.feature-row:hover .feature-media-placeholder {
    transform: translateY(-5px);
    border-color: var(--border-glow);}

.feature-content {
    flex: 1;
    padding: 20px 0;}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    display: inline-block;}

.feature-title {
    font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
    font-weight: 700;
    font-size: 3.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text-primary);}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1.35rem;
    line-height: 1.6;}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;}

.feature-card {
    background: #161621;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-lg);
    padding: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

@media (hover: hover) {
    .feature-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
    }
}

.feature-card .feature-icon {
    font-size: 2rem;
    margin-bottom: 20px;
    display: inline-block;}

.feature-card-title {
    font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
    color: var(--text-primary);}

.feature-card-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);}

.reveal.active {
    opacity: 1;
    transform: translateY(0);}

/* --- Info Panel --- */
.info-panel {
    background: #1c1c28;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 0 auto 32px;
    max-width: 640px;
    text-align: left;
}
.info-panel h3 {
    color: var(--text-primary);
    font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;}
.info-panel p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;}
.info-panel p:last-child { margin-bottom: 0; }
.info-panel ol {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 12px 0 16px 24px;}
.info-panel li { margin-bottom: 8px; }
.info-panel strong { color: var(--text-primary); }
.info-panel code {
    background: var(--code-bg);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    color: var(--code-text);
    border: 1px solid rgba(128, 128, 128, 0.1);
    display: inline-block;
    margin-top: 6px;}

/* --- Downloads --- */
.downloads { padding: 80px 0; }

.section-header {
    text-align: center;
    margin-bottom: 48px;}

.section-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--active-accent);
    margin-bottom: 12px;
    transition: color 0.4s ease;}

.section-title {
    font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;}

.download-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 640px;
    margin: 0 auto;}

.download-card {
    background: #161621;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (hover: hover) {
    .download-card:hover {
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
        transform: translateY(-2px);
    }
}

.download-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;}

.download-title {
    font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 6px;}

.download-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 20px;}

.download-version {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 12px;}

.download-btn {
    width: 100%;
    justify-content: center;}

.download-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;}

/* --- Feedback --- */
.feedback { padding: 80px 0; }

.feedback-card {
    background: #161621;
    border: none;
    box-shadow: none;
    border-radius: var(--radius-xl);
    padding: 56px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feedback-title {
    font-family: 'Google Sans Flex', 'Google Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;}

.feedback-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto 28px;
    line-height: 1.7;}

.feedback-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;}

.footer-text {
    color: var(--text-muted);
    font-size: 0.82rem;}

.footer-links {
    display: flex;
    gap: 20px;}

.footer-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;}

.footer-link:hover { color: var(--text-secondary); }

/* --- Status Badge --- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 24px;}

.status-badge--available {
    background: rgba(107, 223, 184, 0.1);
    color: var(--accent-green);
    border: 1px solid rgba(107, 223, 184, 0.2);}

.status-badge--soon {
    background: rgba(255, 184, 108, 0.1);
    color: var(--accent-warm);
    border: 1px solid rgba(255, 184, 108, 0.2);}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;}

.status-dot--green { background: var(--accent-green); }

.status-dot--amber { background: var(--accent-warm); }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Platform badge --- */
.platform-info {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;}

.platform-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: var(--text-muted);}

/* --- Author Credit --- */
.author-credit {
    padding: 80px 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;}

.author-credit-content {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    background: #161621;
    border: none;
    box-shadow: none;
    padding: 16px 32px;
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--active-accent);}

.author-credit-content a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;}

.author-credit-content a:hover { color: var(--active-accent); }

.heart-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.25em;
    color: #ff4a5a;
    margin: 0 4px;
    animation: heartbeat 1.5s infinite;}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .container { padding: 0 24px; }
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 0 50px;}
    .hero-content {
        align-items: center;
        text-align: center;}
    .hero-actions { justify-content: center; }

    .video-caption { text-align: center; }
    .feature-row, .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        align-items: stretch;}
    .feature-content { padding: 0; }
    .feature-grid { gap: 20px; }
    .feature-card { padding: 32px; }
    .feature-media-placeholder { width: 100%; }
    .feature-title { font-size: 1.8rem; }
    .diagram-placeholder {
        aspect-ratio: auto !important;
        height: auto !important;}
    .diagram-placeholder img {
        padding: 0 !important;
        height: auto !important;}
}

@media (max-width: 640px) {
    .download-cards { grid-template-columns: 1fr; }
    .feedback-card { padding: 40px 24px; }
    .nav-links { display: none; }
    .footer { flex-direction: column; text-align: center; }
}

.video-embed-card {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #161621;
    border: none;
    box-shadow: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.video-embed-card iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

@media (hover: hover) {
    .video-embed-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    }
}

.changelog-container { text-align: center; margin-top: 32px; }

.changelog-link {
    color: var(--active-accent);
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
    display: inline-block;
}

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

.section-label-icon { font-size: 1.1rem; vertical-align: middle; margin-right: 4px; }
.info-panel-icon { vertical-align: middle; margin-right: 6px; color: #f59e0b; }
.platform-icon { font-size: 1rem; margin-right: 4px; }
.feedback-title-icon { vertical-align: middle; margin-right: 8px; }
