/* Gainzbook public homepage - scoped under .home-page so nothing here leaks
   into /blog, /exercises, /strength-levels or /calculators, which share
   .blog-theme's palette and container but not this layout. Reuses
   --blog-blue/--blog-green (blog.css) rather than inventing a new palette. */

.home-page {
    --home-blue: var(--blog-blue, #00b7fe);
    --home-green: var(--blog-green, #00ffc8);
    --home-ink: #edf3ff;
    --home-muted: rgba(237, 243, 255, .68);
    --home-border: rgba(255, 255, 255, .10);
}

.home-page a {
    color: inherit;
}

.home-section {
    padding: 130px 0;
    position: relative;
}

@media (max-width: 991.98px) {
    .home-section { padding: 88px 0; }
}

@media (max-width: 575.98px) {
    .home-section { padding: 64px 0; }
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(0, 183, 254, .08);
    border: 1px solid rgba(0, 183, 254, .22);
    color: #bff3ff;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.home-eyebrow i { color: var(--home-green); }

/* ---------- Buttons (extend .blog-btn-primary/outline for hero-scale CTAs) ---------- */
.home-btn-lg {
    padding: 14px 30px;
    font-size: 1.05rem;
    min-height: 52px;
}

.home-reassurance {
    color: rgba(237, 243, 255, .5);
    font-size: .88rem;
    margin-top: 14px;
}

.home-tertiary-link {
    color: var(--home-muted);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.home-tertiary-link i { transition: transform .2s ease; }
.home-tertiary-link:hover { color: #fff; }
.home-tertiary-link:hover i { transform: translateX(3px); }

/* ===================================================================
   Hero
   =================================================================== */
.home-hero {
    padding: 72px 0 120px;
    position: relative;
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .home-hero { padding: 48px 0 72px; }
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: -10% -10% auto -10%;
    height: 620px;
    background:
        radial-gradient(760px 420px at 80% 10%, rgba(0, 183, 254, .12), transparent 60%),
        radial-gradient(620px 420px at 8% 5%, rgba(0, 255, 200, .07), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.01em;
    max-width: 760px;
    margin-bottom: 22px;
}

.home-hero .home-lead {
    color: var(--home-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 600px;
    line-height: 1.55;
    margin-bottom: 32px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

@media (max-width: 575.98px) {
    .home-hero-actions { flex-direction: column; align-items: stretch; }
    .home-hero-actions .blog-btn-primary,
    .home-hero-actions .blog-btn-outline { width: 100%; }
}

.home-hero-visual {
    position: relative;
    margin-top: 56px;
    text-align: center;
}

.home-hero-visual::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(0, 183, 254, .16), transparent 62%);
    filter: blur(50px);
    z-index: 0;
}

.home-hero-visual img {
    position: relative;
    z-index: 1;
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
}

/* ===================================================================
   Intro statement - single centred idea, no imagery
   =================================================================== */
.home-intro {
    text-align: center;
    padding: 90px 0 40px;
}

.home-intro .home-eyebrow { margin-bottom: 18px; }

.home-intro h2 {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    font-weight: 800;
    max-width: 780px;
    margin: 0 auto 16px;
}

.home-intro p {
    color: var(--home-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin: 0 auto;
}

/* ===================================================================
   Alternating showcase sections
   =================================================================== */
.home-showcase-inner {
    display: flex;
    align-items: center;
    gap: 72px;
}

.home-showcase-inner.is-reverse { flex-direction: row-reverse; }

@media (max-width: 991.98px) {
    .home-showcase-inner,
    .home-showcase-inner.is-reverse {
        flex-direction: column;
        gap: 40px;
    }
}

.home-showcase-copy { flex: 1 1 0; min-width: 0; }
.home-showcase-visual { flex: 1 1 0; min-width: 0; width: 100%; }

.home-showcase h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
}

.home-showcase p.home-lead {
    color: var(--home-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 540px;
    margin-bottom: 24px;
}

.home-benefit-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.home-benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 7px 0;
    color: #dbe4f3;
}

.home-benefit-list i {
    color: var(--home-green);
    margin-top: 5px;
    flex: none;
}

/* ---------- Device frames ---------- */
.home-device-frame {
    position: relative;
    border-radius: 24px;
}

.home-device-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}

/* Browser-chrome frame for flat screenshots (e.g. strength-level.png) that
   have no device bezel baked into the image itself. */
.home-browser-frame {
    position: relative;
    border-radius: 20px;
    padding: 10px;
    background: linear-gradient(180deg, rgba(20, 27, 46, .9), rgba(10, 15, 28, .92));
    border: 1px solid var(--home-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}

.home-browser-frame::before {
    content: "";
    position: absolute;
    inset: -18px -18px auto -18px;
    height: 60%;
    background: radial-gradient(60% 100% at 50% 0%, rgba(0, 183, 254, .16), transparent 70%);
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

.home-browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 10px;
    position: relative;
    z-index: 1;
}

.home-browser-chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
}

.home-browser-frame img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ===================================================================
   Strength Levels - flagship section
   =================================================================== */
.home-strength-section { padding: 150px 0; }

@media (max-width: 991.98px) {
    .home-strength-section { padding: 88px 0; }
}

.home-strength-section .home-showcase-copy { flex: 1.1 1 0; }

.home-level-card {
    position: absolute;
    right: -6%;
    bottom: -8%;
    width: min(300px, 62%);
    background: linear-gradient(180deg, rgba(20, 27, 46, .96), rgba(10, 15, 28, .98));
    border: 1px solid rgba(0, 255, 200, .22);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, .55);
    padding: 18px 20px;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .home-level-card {
        position: static;
        width: 100%;
        margin-top: -24px;
    }
}

.home-level-card .home-level-exercise {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--home-muted);
    margin-bottom: 2px;
}

.home-level-card .home-level-weight {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.home-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 200, .12);
    color: var(--home-green);
    border: 1px solid rgba(0, 255, 200, .3);
    border-radius: 999px;
    padding: 4px 12px;
    font-weight: 800;
    font-size: .8rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.home-level-delta {
    color: var(--home-green);
    font-weight: 700;
    font-size: .88rem;
    margin: 10px 0 4px;
}

.home-level-track {
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    margin: 10px 0 8px;
}

.home-level-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--home-blue), var(--home-green));
    transition: width .9s cubic-bezier(.16, 1, .3, 1);
}

.home-level-next {
    color: var(--home-muted);
    font-size: .82rem;
}

.home-level-next strong { color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .home-level-fill { transition: none; }
}

/* ===================================================================
   Workout > reward loop
   =================================================================== */
.home-loop {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
    max-width: 1080px;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .home-loop { flex-direction: column; gap: 22px; }
}

.home-loop-step {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 0 6px;
}

.home-loop-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #04121f;
    background: linear-gradient(135deg, var(--home-blue), var(--home-green));
    box-shadow: 0 10px 26px rgba(0, 183, 254, .22);
}

.home-loop-label {
    font-weight: 700;
    font-size: .92rem;
    color: #fff;
}

.home-loop-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(237, 243, 255, .28);
    font-size: 1.1rem;
    flex: 0 0 auto;
    padding-top: 18px;
}

@media (max-width: 767.98px) {
    .home-loop-arrow { transform: rotate(90deg); padding-top: 0; }
}

/* ===================================================================
   Chip rows (programs, tools)
   =================================================================== */
.home-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--home-border);
    color: #dbe4f3;
    font-weight: 600;
    font-size: .92rem;
    transition: border-color .18s ease, color .18s ease, transform .18s ease;
}

.home-chip:hover {
    border-color: rgba(0, 183, 254, .5);
    color: #fff;
    transform: translateY(-2px);
}

.home-chip i { color: var(--home-blue); }

/* ===================================================================
   Personalisation strip
   =================================================================== */
.home-pillar-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.home-pillar {
    padding: 10px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--home-border);
    font-weight: 700;
    font-size: .92rem;
    color: var(--home-ink);
}

/* ===================================================================
   Final CTA
   =================================================================== */
.home-final-cta {
    position: relative;
    text-align: center;
    padding: 90px 40px;
    border-radius: 28px;
    background:
        radial-gradient(700px 360px at 50% 0%, rgba(0, 183, 254, .14), transparent 65%),
        linear-gradient(180deg, rgba(15, 21, 38, .92), rgba(8, 13, 24, .96));
    border: 1px solid var(--home-border);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .home-final-cta { padding: 56px 22px; }
}

.home-final-cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.home-final-cta p {
    color: var(--home-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 30px;
}

.home-final-cta .home-hero-actions { justify-content: center; }

/* ===================================================================
   Scroll reveal - progressive enhancement, off by default with reduced motion
   =================================================================== */
.home-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .5s ease, transform .5s ease;
}

.home-reveal.is-visible {
    opacity: 1;
    transform: none;
}

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

/* Section headings shared across showcase blocks */
.home-page h2 { color: #fff; }

/* ===================================================================
   Cookie banner (homepage-only - see cookie consent script)
   =================================================================== */
.home-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    padding: 16px 0;
    background: rgba(8, 12, 20, .95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: #edf3ff;
    font-size: .92rem;
}

.home-cookie-banner[hidden] { display: none; }
