/* ===================================================
   home.css — MyFit / Reference-inspired Home
   Compact layout, RTL, light/dark theme aware
   Existing page class hooks are preserved.
   =================================================== */

* { box-sizing: border-box; }

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
}

:root {
    --bg: #F6F7F5;
    --surface: #FFFFFF;
    --primary: #17211D;
    --accent: #7BAE3F;
    --accent-light: #DCECCB;
    --text: #17211D;
    --muted: #707873;
    --border: rgba(23, 33, 29, 0.075);
    --shadow: 0 8px 24px rgba(23, 33, 29, 0.06);
}

[data-theme="dark"] {
    --bg: #101412;
    --surface: #18201C;
    --primary: #F2F5F1;
    --accent: #9BCB55;
    --accent-light: #557C2E;
    --text: #F2F5F1;
    --muted: #929B95;
    --border: rgba(242, 245, 241, 0.075);
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

/* ================= SHARED / CONTAINER ================= */

.features-section > .container,
.popular-programs-section > .container,
.experts-section > .container,
.expert-videos-section > .container,
.progress-section > .container,
.articles-section > .container,
.how-it-works-section > .container,
.cta-section > .container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.section-heading {
    max-width: 620px;
    margin: 0 auto 20px;
    text-align: center;
}

.section-label {
    display: inline-block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
}

.section-heading h2 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: clamp(21px, 2.25vw, 28px);
    font-weight: 800;
    line-height: 1.35;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
}

.section-header-row .section-heading {
    margin: 0;
    text-align: right;
}

.section-link,
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: var(--accent);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    transition: transform .2s ease, color .2s ease;
}

.section-link:hover,
.view-all-btn:hover { color: var(--text); }
.section-link:hover i,
.view-all-btn:hover i { transform: translateX(-3px); }
.section-link i,
.view-all-btn i { font-size: 10px; transition: transform .2s ease; }

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    transition: gap .2s ease, color .2s ease;
}

.card-link:hover { gap: 9px; }

/* ================= HERO ================= */

.hero-section { width: 100%; background: var(--bg); }

.hero-desktop,
.hero-mobile {
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.hero-mobile { display: none; }

.hero-image {
    display: block;
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(6, 10, 8, .80) 0%,
        rgba(6, 10, 8, .63) 33%,
        rgba(6, 10, 8, .18) 68%,
        rgba(6, 10, 8, .05) 100%
    );
}

[data-theme="light"] .hero-overlay {
    background: linear-gradient(
        90deg,
        rgba(9, 14, 11, .73) 0%,
        rgba(9, 14, 11, .54) 35%,
        rgba(9, 14, 11, .15) 70%,
        rgba(9, 14, 11, .03) 100%
    );
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(6%, calc((100% - 1180px) / 2));
    right: auto;
    transform: translateY(-50%);
    width: min(470px, 42vw);
    z-index: 2;
    text-align: right;
}

.hero-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.hero-content h1 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(28px, 3.25vw, 42px);
    font-weight: 850;
    line-height: 1.28;
    letter-spacing: -.7px;
}

.hero-content h1 span {
    display: block;
    margin-top: 1px;
    color: var(--accent);
}

.hero-content p {
    max-width: 455px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, .80);
    font-size: 13px;
    line-height: 1.7;
}

.hero-btn,
.cta-content .btn-primary,
#problem-solution .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--accent);
    color: #132016;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.hero-btn:hover,
.cta-content .btn-primary:hover,
#problem-solution .btn-primary:hover {
    transform: translateY(-2px);
    opacity: .93;
}

/* ================= GOALS / FEATURES ================= */

.features-section {
    background: var(--bg);
    padding: 24px 0;
}

.hero-section + .features-section {
    padding: 26px 0 28px;
}

.hero-section + .features-section .features-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hero-section + .features-section .feature-card {
    position: relative;
    min-height: 172px;
    overflow: hidden;
    padding: 18px 16px;
    border: 0;
    border-radius: 12px;
    background-color: #152019;
    background-position: center;
    background-size: cover;
    text-align: right;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-section + .features-section .feature-card:nth-child(1) { background-image: url('../images/program-4.webp'); }
.hero-section + .features-section .feature-card:nth-child(2) { background-image: url('../images/program-3.webp'); }
.hero-section + .features-section .feature-card:nth-child(3) { background-image: url('../images/program-1.webp'); }
.hero-section + .features-section .feature-card:nth-child(4) { background-image: url('../images/program-2.webp'); }

.hero-section + .features-section .feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 11, 9, .05), rgba(7, 11, 9, .82));
}

.hero-section + .features-section .feature-card > * {
    position: relative;
    z-index: 1;
}

.hero-section + .features-section .feature-icon {
    width: auto;
    height: auto;
    margin: 0 0 7px;
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 22px;
    justify-content: flex-start;
}

.hero-section + .features-section .feature-card h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
}

.hero-section + .features-section .feature-card p { display: none; }

.hero-section + .features-section .feature-card .card-link {
    position: absolute;
    left: 14px;
    bottom: 16px;
    color: #fff;
}

/* Generic feature cards are used by FAQ too */
.features-section:not(:has(.hero-section)) .feature-card {
    background: var(--surface);
}

.feature-card {
    background: var(--surface);
    border-radius: 14px;
    padding: 18px 16px;
    border: 1px solid var(--border);
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 17px;
}

.feature-card h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ================= PROGRAMS ================= */

.popular-programs-section {
    background: var(--surface);
    padding: 30px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.program-card {
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.program-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.program-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.program-card:hover .program-image { transform: scale(1.035); }

.program-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 4px 7px;
    border-radius: 999px;
    background: var(--accent);
    color: #132016;
    font-size: 9px;
    font-weight: 800;
}

.program-content { padding: 12px; }

.program-category {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.program-content h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
}

.program-content p {
    min-height: 35px;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.program-meta {
    display: flex;
    justify-content: space-between;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
}

.program-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 4th program card becomes the reference CTA tile */
.programs-grid .program-card:nth-child(4) {
    display: flex;
    flex-direction: column;
    background: var(--accent-light);
    border-color: transparent;
}

.programs-grid .program-card:nth-child(4) .program-image-wrapper {
    display: none;
}

.programs-grid .program-card:nth-child(4) .program-content {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.programs-grid .program-card:nth-child(4) .program-content h3 {
    font-size: 17px;
}

.programs-grid .program-card:nth-child(4) .program-content p { min-height: auto; }

/* ================= QUICK START / HOW IT WORKS ================= */

.how-it-works-section {
    background: var(--bg);
    padding: 30px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.step-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 15px;
    text-align: center;
}

.step-number {
    position: absolute;
    top: 10px;
    left: 12px;
    color: var(--accent-light);
    font-size: 10px;
    font-weight: 800;
}

.step-icon {
    width: 42px;
    height: 42px;
    margin: 5px auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 17px;
}

.step-card h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.6;
}

#problem-solution .section-heading:last-child {
    margin-top: 18px;
    margin-bottom: 0;
}

/* ================= EXPERTS ================= */

.experts-section {
    background: var(--bg);
    padding: 30px 0;
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.expert-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.expert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.expert-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.expert-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.expert-verified {
    position: absolute;
    right: 9px;
    bottom: 9px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    color: var(--accent);
    font-size: 13px;
}

.expert-content { padding: 12px; }

.expert-type {
    display: block;
    margin-bottom: 4px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
}

.expert-content h3 {
    margin: 0 0 5px;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
}

.expert-content p {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}

.expert-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 10px;
}

.expert-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.expert-meta i { color: var(--accent); }

/* ================= PROGRESS ================= */

.progress-section {
    background: var(--bg);
    padding: 8px 0 30px;
}

.progress-wrapper {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 14px;
}

.progress-card,
.progress-promo {
    min-height: 170px;
    border-radius: 12px;
    overflow: hidden;
}

.progress-card {
    padding: 17px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.progress-title {
    margin: 0 0 13px;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

.progress-body {
    display: flex;
    align-items: center;
    gap: 18px;
}

.progress-ring-wrap {
    flex-shrink: 0;
    text-align: center;
}

.progress-ring {
    --percent: 0;
    width: 90px;
    height: 90px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 7px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--percent) * 3.6deg), var(--accent-light) 0);
}

.progress-ring::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 50%;
    background: var(--surface);
}

.progress-ring span {
    position: relative;
    z-index: 1;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
}

.progress-goal {
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.progress-stats-row {
    flex: 1;
    display: flex;
}

.progress-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border-right: 1px solid var(--border);
    text-align: center;
}

.progress-stat:last-child { border-right: 0; }
.progress-stat i { color: var(--accent); font-size: 15px; }
.progress-stat strong { color: var(--text); font-size: 17px; font-weight: 850; }
.progress-stat span { color: var(--muted); font-size: 10px; line-height: 1.4; }

.progress-promo { position: relative; }

.progress-promo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.progress-promo-overlay {
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(180deg, rgba(11, 14, 12, .76), rgba(11, 14, 12, .16) 45%, rgba(11, 14, 12, .86));
}

.progress-promo-text {
    max-width: 230px;
    margin: 0;
    color: #F4F5F2;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.progress-promo-text span { display: block; color: var(--accent); }
.progress-promo-logo { align-self: flex-end; color: #F4F5F2; font-size: 13px; font-weight: 850; }

/* ================= ARTICLES ================= */

.articles-section {
    background: var(--surface);
    padding: 30px 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.article-card {
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.article-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
}

.article-content { padding: 12px; }
.article-category { display: block; margin-bottom: 5px; color: var(--accent); font-size: 10px; font-weight: 800; }
.article-content h3 { margin: 0 0 10px; color: var(--text); font-size: 14px; line-height: 1.5; }

/* ================= FAQ ================= */

#faq {
    background: var(--bg);
    padding: 30px 0;
}

#faq .features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#faq .feature-card {
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: none;
}

#faq .feature-card:hover { transform: none; box-shadow: none; }

#faq details { padding: 15px 16px; }
#faq summary {
    position: relative;
    padding-left: 26px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

#faq summary::-webkit-details-marker { display: none; }

#faq summary::before {
    content: "+";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
    transition: transform .2s ease;
}

#faq details[open] summary::before { transform: rotate(45deg); }

#faq details p {
    margin: 9px 0 0;
    padding-top: 9px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    line-height: 1.7;
}

/* ================= CTA ================= */

.cta-section {
    background: var(--primary);
    padding: 38px 0;
}

[data-theme="dark"] .cta-section { background: #0B100D; }

.cta-content {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.cta-content .section-label { color: var(--accent); }

.cta-content h2 {
    margin: 0 0 8px;
    color: #F4F6F2;
    font-size: clamp(21px, 2.6vw, 29px);
    font-weight: 800;
    line-height: 1.35;
}

.cta-content p {
    margin: 0 0 17px;
    color: rgba(244, 246, 242, .72);
    font-size: 13px;
}

/* ================= BACK TO TOP ================= */

.back-to-top {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 999;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: var(--accent);
    color: #132016;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { opacity: .88; }

/* ================= HERO ANIMATION ================= */

.hero-content .hero-label,
.hero-content h1,
.hero-content p,
.hero-content .hero-btn {
    opacity: 0;
    animation: heroTextReveal .75s cubic-bezier(.22, 1, .36, 1) forwards;
}

.hero-content .hero-label { animation-delay: .08s; }
.hero-content h1 { animation-delay: .17s; }
.hero-content p { animation-delay: .30s; }
.hero-content .hero-btn { animation-delay: .43s; }

@keyframes heroTextReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px) {
    .programs-grid,
    .experts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hero-content { left: 6%; width: min(450px, 46vw); }
}

@media (max-width: 992px) {
    .hero-section + .features-section .features-grid,
    .features-grid,
    .steps-grid,
    .programs-grid,
    .experts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .progress-wrapper { grid-template-columns: 1fr; }
    .hero-content { width: min(450px, 52vw); }
}

@media (max-width: 768px) {
    .features-section > .container,
    .popular-programs-section > .container,
    .experts-section > .container,
    .expert-videos-section > .container,
    .progress-section > .container,
    .articles-section > .container,
    .how-it-works-section > .container,
    .cta-section > .container {
        width: min(100% - 28px, 1180px);
    }

    .hero-desktop { display: none; }
    .hero-mobile { display: block; min-height: 390px; }
    .hero-mobile .hero-image { height: 390px; }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(7, 11, 9, .14), rgba(7, 11, 9, .32) 36%, rgba(7, 11, 9, .86) 100%);
    }

    .hero-content {
        top: auto;
        bottom: 28px;
        left: 18px;
        right: 18px;
        transform: none;
        width: auto;
        text-align: right;
    }

    .hero-content h1 { font-size: clamp(25px, 7vw, 34px); }
    .hero-content p { max-width: 100%; font-size: 12px; }

    .section-header-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-bottom: 15px;
    }

    .section-header-row .section-heading { text-align: right; }
    .progress-body { flex-direction: column; gap: 14px; }
    .progress-stats-row { width: 100%; }
}

@media (max-width: 560px) {
    .features-section,
    .popular-programs-section,
    .experts-section,
    .progress-section,
    .articles-section,
    #faq,
    .how-it-works-section { padding: 24px 0; }

    .hero-section + .features-section .features-grid,
    .features-grid,
    .steps-grid,
    .programs-grid,
    .experts-grid,
    .articles-grid,
    #faq .features-grid { grid-template-columns: 1fr; }

    .hero-section + .features-section .feature-card { min-height: 160px; }
    .programs-grid .program-card:nth-child(4) .program-content { min-height: 190px; }
    .progress-stats-row { flex-direction: column; }
    .progress-stat { min-height: 52px; border-right: 0; border-bottom: 1px solid var(--border); }
    .progress-stat:last-child { border-bottom: 0; }
    .cta-section { padding: 32px 0; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-content .hero-label,
    .hero-content h1,
    .hero-content p,
    .hero-content .hero-btn { opacity: 1; animation: none; transform: none; }
    .feature-card,
    .program-card,
    .expert-card,
    .article-card { transition: none; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
html { scrollbar-color: var(--muted) var(--bg); }

/* ================= HERO QUICK LINKS ================= */
.hero-quick-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.hero-quick-card {
    position: relative;
    min-width: 0;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 11px 10px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    background: rgba(17, 28, 24, .76);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.06);
    overflow: hidden;
    transform: translateY(0);
    transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.hero-quick-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.11) 48%, transparent 66%);
    transform: translateX(120%);
    transition: transform .55s ease;
    pointer-events: none;
}

.hero-quick-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,.30);
    background: rgba(18, 32, 27, .88);
    box-shadow: 0 16px 34px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.08);
}

.hero-quick-card:hover::before { transform: translateX(-120%); }

.hero-quick-primary {
    border-color: rgba(155,203,85,.65);
    background: linear-gradient(180deg, rgba(123,174,63,.95), rgba(93,143,45,.93));
    color: #132016;
    box-shadow: 0 14px 30px rgba(123,174,63,.22), inset 0 1px 0 rgba(255,255,255,.18);
}

.hero-quick-primary:hover {
    background: linear-gradient(180deg, rgba(145,193,77,.98), rgba(102,157,49,.96));
}

.hero-quick-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.06);
    color: currentColor;
    font-size: 13px;
}

.hero-quick-primary .hero-quick-icon {
    border-color: rgba(19,32,22,.12);
    background: rgba(255,255,255,.12);
}

.hero-quick-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    width: 100%;
}

.hero-quick-copy strong {
    display: block;
    overflow: hidden;
    color: currentColor;
    font-size: 11px;
    line-height: 1.55;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-quick-copy small {
    display: none;
}

.hero-quick-arrow {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 10px;
    opacity: .78;
    transition: transform .25s ease, opacity .25s ease;
}

.hero-quick-card:hover .hero-quick-arrow {
    transform: translateX(-4px);
    opacity: 1;
}

/* ================= POLISH ANIMATIONS ================= */
.hero-image {
    transform: scale(1.012);
    animation: heroImageBreath 14s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes heroImageBreath {
    from { transform: scale(1.012); }
    to { transform: scale(1.035); }
}

.hero-quick-card {
    opacity: 0;
    animation: heroCardIn .72s cubic-bezier(.22,1,.36,1) forwards;
}

.hero-quick-card:nth-child(1) { animation-delay: .52s; }
.hero-quick-card:nth-child(2) { animation-delay: .63s; }
.hero-quick-card:nth-child(3) { animation-delay: .74s; }

@keyframes heroCardIn {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal-section {
    opacity: .01;
    transform: translateY(16px);
    transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1);
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-section.is-visible .feature-card,
.reveal-section.is-visible .program-card,
.reveal-section.is-visible .expert-card,
.reveal-section.is-visible .article-card,
.reveal-section.is-visible .step-card {
    animation: cardRise .6s cubic-bezier(.22,1,.36,1) both;
}

.reveal-section.is-visible .feature-card:nth-child(1),
.reveal-section.is-visible .program-card:nth-child(1),
.reveal-section.is-visible .expert-card:nth-child(1),
.reveal-section.is-visible .article-card:nth-child(1),
.reveal-section.is-visible .step-card:nth-child(1) { animation-delay: .05s; }

.reveal-section.is-visible .feature-card:nth-child(2),
.reveal-section.is-visible .program-card:nth-child(2),
.reveal-section.is-visible .expert-card:nth-child(2),
.reveal-section.is-visible .article-card:nth-child(2),
.reveal-section.is-visible .step-card:nth-child(2) { animation-delay: .11s; }

.reveal-section.is-visible .feature-card:nth-child(3),
.reveal-section.is-visible .program-card:nth-child(3),
.reveal-section.is-visible .expert-card:nth-child(3),
.reveal-section.is-visible .article-card:nth-child(3),
.reveal-section.is-visible .step-card:nth-child(3) { animation-delay: .17s; }

.reveal-section.is-visible .feature-card:nth-child(4),
.reveal-section.is-visible .program-card:nth-child(4),
.reveal-section.is-visible .expert-card:nth-child(4),
.reveal-section.is-visible .article-card:nth-child(4),
.reveal-section.is-visible .step-card:nth-child(4) { animation-delay: .23s; }

@keyframes cardRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.progress-ring {
    animation: progressGlow 3s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(123,174,63,0)); }
    50% { filter: drop-shadow(0 0 9px rgba(123,174,63,.18)); }
}

/* ================= RESPONSIVE HERO QUICK LINKS ================= */
@media (max-width: 992px) {
    .hero-quick-links { gap: 8px; }
    .hero-quick-card { min-height: 76px; padding: 10px; }
    .hero-quick-copy strong { font-size: 10px; }
    .hero-quick-icon { width: 25px; height: 25px; flex-basis: 25px; font-size: 12px; }
}

@media (max-width: 768px) {
    .hero-desktop { display: none; }
    .hero-mobile {
        display: block;
        min-height: 560px;
    }
    .hero-mobile .hero-image { height: 560px; }

    .hero-content {
        top: 42%;
        left: 6%;
        right: 6%;
        width: auto;
        max-width: none;
    }

    .hero-content h1 { font-size: clamp(25px, 7vw, 34px); }
    .hero-content p { max-width: 100%; font-size: 12px; }

    .hero-quick-links {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 13px;
    }

    .hero-quick-card {
        min-height: 58px;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 9px;
        padding: 8px 11px;
    }

    .hero-quick-copy strong {
        white-space: normal;
        font-size: 11px;
        line-height: 1.45;
    }

    .hero-quick-arrow {
        left: 12px;
        bottom: auto;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-image,
    .hero-quick-card,
    .reveal-section,
    .progress-ring,
    .reveal-section.is-visible .feature-card,
    .reveal-section.is-visible .program-card,
    .reveal-section.is-visible .expert-card,
    .reveal-section.is-visible .article-card,
    .reveal-section.is-visible .step-card {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
