/* =========================================================
   HighPassCV - Home Page Styles
   This file styles only the home page content.
   Shared header and footer styles remain in their own files.
   ========================================================= */

:root {
    --home-primary: #002d62;
    --home-primary-dark: #001f44;
    --home-accent: #c5a059;
    --home-accent-hover: #d4b982;
    --home-text: #2f3744;
    --home-text-light: #667085;
    --home-white: #ffffff;
    --home-bg-light: #f4f7fa;
    --home-border: #e2e8f0;
    --home-success: #15803d;
    --home-heading-font: "Poppins", sans-serif;
    --home-body-font: "Inter", sans-serif;
    --home-container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--home-text);
    background: var(--home-white);
    font-family: var(--home-body-font);
    line-height: 1.65;
}

img {
    max-width: 100%;
}

main {
    display: block;
    overflow: hidden;
}

main .container {
    width: min(100% - 40px, var(--home-container));
    margin-inline: auto;
}

main h1,
main h2,
main h3 {
    margin-top: 0;
    color: var(--home-primary);
    font-family: var(--home-heading-font);
    line-height: 1.25;
}

main p {
    margin-top: 0;
}

main a {
    text-decoration: none;
}

.responsive-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.section-title {
    margin-bottom: 12px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
}

.section-subtitle {
    max-width: 760px;
    margin: 0 auto 48px;
    color: var(--home-text-light);
    font-size: 1.05rem;
    text-align: center;
}

/* =========================
   Shared Home Buttons
   ========================= */

main .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: var(--home-body-font);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

main .btn-primary {
    color: var(--home-primary);
    background: var(--home-accent);
    box-shadow: 0 10px 24px rgba(197, 160, 89, 0.24);
}

main .btn-primary:hover,
main .btn-primary:focus-visible {
    color: var(--home-primary);
    background: var(--home-accent-hover);
    box-shadow: 0 14px 30px rgba(197, 160, 89, 0.32);
    transform: translateY(-2px);
}

main .btn-secondary {
    color: var(--home-primary);
    border-color: var(--home-primary);
    background: transparent;
}

main .btn-secondary:hover,
main .btn-secondary:focus-visible {
    color: var(--home-white);
    background: var(--home-primary);
    transform: translateY(-2px);
}

main .btn-lg {
    min-height: 56px;
    padding: 15px 30px;
    font-size: 1rem;
}

main a:focus-visible {
    outline: 3px solid rgba(197, 160, 89, 0.45);
    outline-offset: 4px;
}

/* =========================
   Hero
   ========================= */

.hero {
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at 88% 18%, rgba(197, 160, 89, 0.15), transparent 27%),
        linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
    align-items: center;
    gap: clamp(42px, 6vw, 74px);
}

.hero-content {
    min-width: 0;
}

.hero-content h1 {
    margin-bottom: 24px;
    font-size: clamp(2.6rem, 5vw, 4rem);
    letter-spacing: -0.04em;
}

.hero-content .highlight {
    position: relative;
    display: inline-block;
    color: var(--home-accent);
    text-shadow: 0 8px 24px rgba(197, 160, 89, 0.18);
}

.hero-content .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.02em;
    height: 4px;
    border-radius: 999px;
    background: rgba(197, 160, 89, 0.9);
}

.hero-content p {
    max-width: 620px;
    margin-bottom: 34px;
    color: var(--home-text-light);
    font-size: 1.1rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-image {
    min-width: 0;
}

.hero-shadow {
    border: 1px solid rgba(0, 45, 98, 0.08);
    box-shadow: 0 28px 60px rgba(0, 45, 98, 0.16);
}

/* =========================
   Evidence Cards
   ========================= */

.statistics-section {
    padding: 88px 0;
    background: var(--home-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    min-height: 100%;
    padding: 34px 28px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.stat-card:hover {
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: 0 20px 42px rgba(0, 45, 98, 0.1);
    transform: translateY(-6px);
}

.pie-chart,
.stat-badge {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 104px;
    height: 104px;
    margin-bottom: 24px;
    border: 3px solid rgba(197, 160, 89, 0.72);
    border-radius: 50%;
    color: var(--home-primary);
    background:
        radial-gradient(circle, #ffffff 58%, transparent 59%),
        conic-gradient(var(--home-accent) 0 70%, #dfe7ef 70% 100%);
    box-shadow: 0 12px 24px rgba(197, 160, 89, 0.16);
    font-family: var(--home-heading-font);
    font-size: 1.15rem;
    font-weight: 700;
}

.pie-chart::after {
    content: none;
}

.pie-chart span,
.stat-badge span {
    position: relative;
    z-index: 1;
}

.stat-badge.danger {
    border-color: rgba(0, 45, 98, 0.18);
    color: var(--home-white);
    background: var(--home-primary);
    box-shadow: 0 12px 24px rgba(0, 45, 98, 0.18);
}

.target-badge {
    border-color: rgba(197, 160, 89, 0.72);
    color: var(--home-primary);
    background: rgba(197, 160, 89, 0.14);
    box-shadow: 0 12px 24px rgba(197, 160, 89, 0.16);
}

.target-goal-image {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.fit-pie {
    background:
        radial-gradient(circle, #ffffff 58%, transparent 59%),
        conic-gradient(var(--home-success) 0 82%, #dfe7ef 82% 100%);
}

.stat-card h3 {
    margin-bottom: 14px;
    font-size: 1.28rem;
}

.stat-card > p {
    margin-bottom: 22px;
    color: var(--home-text-light);
    font-size: 0.96rem;
}

.source-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    color: var(--home-primary);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.45;
}

.source-link:hover {
    color: #9b7836;
}

.source-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-top: auto;
}

/* =========================
   Product Preview
   ========================= */

.video-section {
    padding: 88px 0;
    background: var(--home-bg-light);
}

.video-wrapper {
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 10px;
    border: 1px solid rgba(0, 45, 98, 0.1);
    border-radius: 24px;
    background: var(--home-white);
    box-shadow: 0 25px 55px rgba(0, 45, 98, 0.14);
}

.video-wrapper img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* =========================
   Steps
   ========================= */

.steps {
    padding: 88px 0;
    background: var(--home-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.step-card {
    min-width: 0;
    padding: 34px 28px;
    border: 1px solid var(--home-border);
    border-radius: 20px;
    background: var(--home-bg-light);
    text-align: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.step-card:hover {
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: 0 18px 36px rgba(0, 45, 98, 0.09);
    transform: translateY(-6px);
}

.step-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 18px;
    color: var(--home-primary);
    background: rgba(197, 160, 89, 0.24);
    font-size: 1.65rem;
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.18rem;
}

.step-card p {
    margin-bottom: 0;
    color: var(--home-text-light);
    font-size: 0.95rem;
}

/* =========================
   Product Benefits
   ========================= */

.converter-feature {
    padding: 90px 0;
    color: var(--home-white);
    background:
        radial-gradient(circle at 12% 20%, rgba(197, 160, 89, 0.14), transparent 24%),
        var(--home-primary);
}

.converter-feature .container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(42px, 6vw, 72px);
}

.feature-image,
.feature-content {
    min-width: 0;
}

.feature-shadow {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.3);
}

.feature-content h2 {
    margin-bottom: 28px;
    color: var(--home-white);
    font-size: clamp(2rem, 4vw, 2.65rem);
}

.feature-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-content li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.86);
}

.feature-content li:last-child {
    margin-bottom: 0;
}

.feature-content li i {
    flex: 0 0 auto;
    margin-top: 5px;
    color: var(--home-accent);
    font-size: 1.05rem;
}

.feature-content strong {
    color: var(--home-white);
}

/* =========================
   Final CTA
   ========================= */

.final-cta {
    padding: 90px 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.14), transparent 42%),
        var(--home-white);
    text-align: center;
}

.final-cta .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta h2 {
    margin-bottom: 18px;
    font-size: clamp(2.1rem, 4vw, 3rem);
}

.final-cta p {
    max-width: 650px;
    margin-bottom: 30px;
    color: var(--home-text-light);
    font-size: 1.06rem;
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 1024px) {
    .hero {
        padding-top: 205px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        max-width: 820px;
        text-align: center;
    }

    .hero-content p {
        margin-inline: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image {
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .stats-grid,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stats-grid .stat-card:last-child,
    .steps-grid .step-card:last-child {
        grid-column: 1 / -1;
        width: min(100%, 560px);
        justify-self: center;
    }

    .converter-feature .container {
        grid-template-columns: 1fr;
        max-width: 820px;
    }

    .feature-image {
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .feature-content {
        text-align: center;
    }

    .feature-content li {
        text-align: left;
    }
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 700px) {
    main .container {
        width: min(100% - 28px, var(--home-container));
    }

    .hero {
        padding: 270px 0 64px;
    }

    .hero .container {
        gap: 38px;
    }

    .hero-content h1 {
        margin-bottom: 20px;
        font-size: clamp(2rem, 10vw, 2.8rem);
    }

    .hero-content p {
        margin-bottom: 28px;
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    main .btn,
    main .btn-lg {
        width: 100%;
    }

    .statistics-section,
    .video-section,
    .steps,
    .converter-feature,
    .final-cta {
        padding-block: 66px;
    }

    .section-subtitle {
        margin-bottom: 34px;
        font-size: 0.98rem;
    }

    .stats-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid .stat-card:last-child,
    .steps-grid .step-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .stat-card,
    .step-card {
        padding: 30px 22px;
    }

    .source-links {
        flex-direction: column;
        align-items: center;
    }

    .video-wrapper {
        padding: 6px;
        border-radius: 18px;
    }

    .feature-content h2 {
        font-size: 2rem;
    }

    .final-cta p {
        font-size: 1rem;
    }
}

/* =========================
   Very Small Screens
   ========================= */

@media (max-width: 390px) {
    .hero {
        padding-top: 285px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .stat-card,
    .step-card {
        padding-inline: 18px;
    }
}

/* =========================
   Reduced Motion
   ========================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}