/* ==========================================================================
   Noggie Stylesheet — Seamless Sky Blending & HD Full-Bleed Hero
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --brand-blue: #2486FF;
    --dark: #211C28;
    --gray-0: #FAF9FA;
    --gray-1: #EEEDF0;
    --gray-7: #8F859C;
    --gray-8: #736783;
    --gray-9: #433C4E;
    --white: #FFFFFF;
    --grass: #40C057;
    --grass-dark: #2B8A3E;
    --grass-light: #DCFCE7;

    /* Exact sampled top sky color from hero_scene.jpg */
    --sky: #8CD9FC;
    --sky-soft: #D7F2FF;

    --max: 1200px;
    --pad: clamp(20px, 4vw, 60px);
    --font: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --radius-xl: 36px;
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-pill: 9999px;

    --shadow-soft: 0 20px 40px -15px rgba(33, 28, 40, 0.07), 0 0 1px 1px rgba(33, 28, 40, 0.03);
    --shadow-hover: 0 30px 60px -15px rgba(33, 28, 40, 0.16), 0 0 1px 1px rgba(33, 28, 40, 0.06);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    background: var(--sky);
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--gray-0);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s ease var(--reveal-delay, 0s),
        transform .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0s),
        box-shadow .2s;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.challenges-grid .challenge-card:nth-child(1) {
    --reveal-delay: .05s;
}

.challenges-grid .challenge-card:nth-child(2) {
    --reveal-delay: .15s;
}

.challenges-grid .challenge-card:nth-child(3) {
    --reveal-delay: .25s;
}

.features-grid .feature-card:nth-child(1) {
    --reveal-delay: .05s;
}

.features-grid .feature-card:nth-child(2) {
    --reveal-delay: .15s;
}

.features-grid .feature-card:nth-child(3) {
    --reveal-delay: .25s;
}

.features-grid .feature-card:nth-child(4) {
    --reveal-delay: .35s;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    background-image: url('hero_bg.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding: clamp(3rem, 7vh, 6rem) var(--pad) clamp(2rem, 5vh, 4rem);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Single Unified Hero Flow - Floating free on artwork */
.hero-inner {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: clamp(0.5rem, 3vh, 2.5rem);
    background: none;
    border: none;
    box-shadow: none;
}

.hero-title {
    font-weight: 900;
    font-size: clamp(2.6rem, 6.2vw, 4.8rem);
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: #FFFFFF;
    margin-bottom: clamp(14px, 2vh, 22px);
}

.hero-title span {
    display: block;
    color: #FFFFFF;
    text-shadow:
        0 4px 24px rgba(0, 0, 0, 0.22),
        0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-sub {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 500;
    color: #FFFFFF;
    text-shadow:
        0 3px 18px rgba(0, 0, 0, 0.25),
        0 1px 4px rgba(0, 0, 0, 0.15);
    max-width: min(36rem, calc(100vw - 3rem));
    line-height: 1.5;
    margin-bottom: clamp(22px, 3vh, 32px);
}

/* App Store Badge Image */
.app-store-badge-link {
    display: inline-block;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), filter .25s;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.25));
    cursor: pointer;
}

.app-store-badge-img {
    height: clamp(46px, 5.5vw, 62px);
    width: auto;
    display: block;
}

.app-store-badge-link:hover {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 16px 35px rgba(0, 0, 0, 0.38));
}

.app-store-badge-link:active {
    transform: translateY(-1px) scale(0.98);
}

/* ==========================================================================
   Kinetic Brainrot Entrance Keyframes
   ========================================================================== */
@keyframes brainrotPop {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.65) rotate(-3.5deg);
        filter: blur(10px);
    }

    60% {
        opacity: 1;
        transform: translateY(-10px) scale(1.08) rotate(1.5deg);
        filter: blur(0);
    }

    80% {
        transform: translateY(3px) scale(0.97) rotate(-0.5deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
        filter: blur(0);
    }
}

.pop-in {
    opacity: 0;
    animation: brainrotPop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.pop-delay-1 {
    animation-delay: 0.08s;
}

.pop-delay-2 {
    animation-delay: 0.24s;
}

.pop-delay-3 {
    animation-delay: 0.44s;
}

.pop-delay-4 {
    animation-delay: 0.64s;
}

.pop-delay-5 {
    animation-delay: 0.84s;
}

/* ---------- ABOUT SECTION (Blended with Soft Gradient) ---------- */
.about {
    background: var(--gray-0);
    padding: clamp(4.5rem, 8vw, 7rem) var(--pad);
    text-align: center;
}

.about-copy {
    max-width: 38rem;
    margin: 0 auto;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 500;
    line-height: 1.6;
    color: var(--gray-9);
}

.about-copy p+p {
    margin-top: 1.25rem;
}

/* ---------- CHALLENGES SECTION ---------- */
.challenges-section {
    background: var(--white);
    padding: clamp(5rem, 9vw, 8rem) var(--pad);
    border-top: 1px solid var(--gray-1);
    border-bottom: 1px solid var(--gray-1);
}

.section-head {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto 4rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--dark);
}

.section-head p {
    margin-top: 1rem;
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--gray-8);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: var(--max);
    margin: 0 auto;
}

.challenge-card {
    background: var(--gray-0);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.challenge-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(255, 255, 255, 0.95);
    background: var(--white);
}

.challenge-sticker-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.challenge-sticker {
    max-width: 140px;
    max-height: 140px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.challenge-card:hover .challenge-sticker-wrap {
    transform: scale(1.08);
}

.challenge-title {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 8px;
}

.challenge-desc {
    font-size: 0.98rem;
    color: var(--gray-8);
    line-height: 1.55;
}

/* ---------- FEATURES ---------- */
.features-section {
    background: var(--gray-0);
    padding: clamp(5rem, 9vw, 8rem) var(--pad);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: var(--max);
    margin: 0 auto;
}

@media (max-width: 800px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(33, 28, 40, 0.12);
}

.feature-card-media {
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-1);
}

.feature-img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card-media:hover .feature-img-full {
    transform: scale(1.03);
}

.feature-icon-box {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--grass-light);
    color: var(--grass-dark);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 1rem;
    color: var(--gray-8);
    line-height: 1.6;
}

/* ---------- TIME CALCULATOR ---------- */
.calc-section {
    background: var(--white);
    padding: clamp(5rem, 9vw, 8rem) var(--pad);
    border-top: 1px solid var(--gray-1);
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
}

.calc-card {
    background: var(--gray-0);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.slider-val {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--grass-dark);
}

.reclaim-slider {
    width: 100%;
    height: 10px;
    background: #E2E8F0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
    margin-bottom: 30px;
    cursor: pointer;
}

.reclaim-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--grass);
    box-shadow: 0 4px 10px rgba(64, 192, 87, 0.5);
    cursor: pointer;
    transition: transform 0.15s;
}

.reclaim-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-stat-row {
    background: var(--white);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-title {
    font-weight: 600;
    color: var(--gray-9);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark);
}

.stat-value.red {
    color: #E11D48;
}

.potential-alert {
    background: var(--grass-light);
    border: 1px solid rgba(64, 192, 87, 0.3);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 20px;
}

.potential-head {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--grass-dark);
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.potential-text {
    font-size: 0.95rem;
    color: #14532D;
    font-weight: 600;
}

/* Reviews */
.reviews-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-box {
    background: var(--gray-0);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.review-stars {
    color: #F59E0B;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.review-quote {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--dark);
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-7);
}

/* ---------- FAQ ---------- */
.faq-section {
    background: var(--gray-0);
    padding: clamp(5rem, 9vw, 8rem) var(--pad);
}

.faq-stack {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-question {
    padding: 22px 26px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-answer {
    padding: 0 26px 22px;
    font-size: 1rem;
    color: var(--gray-8);
    line-height: 1.6;
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--white);
    border-top: 1px solid var(--gray-1);
    padding: 40px var(--pad);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-name {
    font-weight: 900;
    font-size: 1.2rem;
    color: var(--dark);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--gray-7);
}

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

.footer-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-8);
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--grass-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .challenges-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .calc-layout {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}