/* ==========================================================================
   Nexus Rewards Group — landing page (minimal)
   Loaded after base.css
   ========================================================================== */

body { background: var(--paper); }

.kicker {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}
.link-arrow span { transition: transform .3s var(--ease-out); }
.link-arrow:hover span { transform: translateX(5px); }

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
    transition-delay: var(--d, 0ms);
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    background: rgba(251, 250, 247, .8);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    transition: border-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand-name { font-size: 1.02rem; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
    position: relative;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease;
}
.site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -4px;
    height: 1.5px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .3s var(--ease-out);
}
.site-nav a:not(.btn):hover,
.site-nav a.active { color: var(--ink); }
.site-nav a:not(.btn):hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.nav-sep { width: 1px; height: 18px; background: var(--line); }
.site-nav .btn { box-shadow: none; }

.nav-toggle { display: none; }

/* Hero
   ========================================================================== */
.hero { padding: 104px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero h1 {
    max-width: 15ch;
    margin-bottom: 28px;
    font-size: clamp(2.7rem, 6.4vw, 5.4rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.048em;
}
.hero h1 span { color: #a3aaa3; }
.lead { max-width: 36rem; margin-bottom: 36px; color: var(--muted); font-size: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Rotating badge */
.badge-wrap { position: relative; display: grid; place-items: center; width: 220px; height: 220px; contain: paint; }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: rotate 24s linear infinite; }
.badge-ring text { fill: var(--ink); font-size: 12.5px; font-weight: 700; letter-spacing: 3.4px; }
.badge-coin {
    width: 128px; height: 128px;
    border-radius: 50%;
    filter: drop-shadow(0 10px 16px rgba(20, 23, 20, .18));
    transition: transform .8s var(--ease-out);
}
.badge-wrap:hover .badge-coin { transform: rotateY(360deg); }
@keyframes rotate { to { transform: rotate(360deg); } }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 88px 0 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.hero-stats > div { padding: 28px 0 28px 28px; }
.hero-stats > div:first-child { padding-left: 0; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats dt { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.hero-stats dt .mini-coin { font-size: .9em; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }

/* Sections
   ========================================================================== */
.section { padding: 112px 0 0; }
.section-head { margin-bottom: 48px; }
.section h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -.038em;
}
.section-lead { max-width: 30rem; color: var(--muted); font-size: 1.1rem; }
.section-lead a { color: var(--ink); font-weight: 700; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Video */
.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--paper);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play {
    position: absolute;
    top: 50%; left: 50%;
    display: grid; place-items: center;
    width: 76px; height: 76px;
    margin: -38px 0 0 -38px;
    padding: 0 0 0 4px;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4);
    transition: transform .3s var(--ease-out), background-color .2s ease;
}
.video-play:hover { transform: scale(1.08); }
.video-play:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 4px; }
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }

/* Membership */
.price-card {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
}
.price-label { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.price { margin: 8px 0 28px; font-size: clamp(3.2rem, 6vw, 4.4rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.checks { margin: 0 0 32px; padding: 0; list-style: none; }
.checks li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-weight: 600;
}
.checks li::before {
    content: "";
    flex: none;
    width: 20px; height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7.5-8' fill='none' stroke='%230f5c3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Rewards */
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reward {
    padding: 40px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
}
.reward { display: flex; flex-direction: column; }
.reward h3 { margin: 20px 0 10px; font-size: 1.35rem; }
.reward p { margin: 0; color: var(--muted); }
.reward > p:not(:last-child) { margin-bottom: 32px; }
.reward > .link-arrow { margin-top: auto; align-self: flex-start; }
.reward-big { color: var(--green-800) !important; font-size: 5rem; font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.reward-big span { font-size: .55em; letter-spacing: 0; }
.reward-big small { display: block; margin-bottom: 8px; color: var(--muted); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.calc { margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.calc label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.calc-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.calc-input {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
    border-bottom: 2px solid var(--ink);
    transition: border-color .2s ease;
}
.calc-input:focus-within { border-color: var(--green-700); }
.calc-input span { font-size: 1.5rem; font-weight: 800; }
.calc-input input {
    width: 8ch;
    padding: 2px 0 6px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-result { margin: 0 !important; color: var(--muted); font-weight: 600; }
.calc-result strong { color: var(--green-800); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* About: feature grid */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: var(--line);
}
.features li { padding: 32px 28px; background: var(--white); }
.feature-icon {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: var(--green-50);
    color: var(--green-800);
}
.feature-icon .mini-coin { width: 28px; height: 28px; }
.features h3 { margin-bottom: 6px; font-size: 1.05rem; }
.features p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Rewards & awards panel */
.awards {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    align-items: center;
    margin-top: 24px;
    padding: 48px;
    border-radius: 24px;
    background: var(--green-900);
    color: rgba(255, 255, 255, .62);
}
.awards h3 { margin-bottom: 12px; color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.035em; }
.awards-intro p { margin-bottom: 28px; }
.awards .btn { box-shadow: none; }
.award-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 0; margin: 0; padding: 0; list-style: none; }
.award-list li { padding: 4px 28px; border-left: 1px solid rgba(255, 255, 255, .12); }
.award-list li:nth-child(odd) { padding-left: 0; border-left: 0; }
.award-list svg { width: 30px; height: 30px; margin-bottom: 18px; color: var(--amber-500); }
.award-list b { display: block; color: var(--white); font-size: 1.02rem; line-height: 1.3; }
.award-list small { display: block; margin-top: 6px; font-size: .85rem; line-height: 1.45; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; list-style: none; }
/* GIF-style loops */
.loop { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--white); aspect-ratio: 4 / 3; }
.loop video { display: block; width: 100%; height: 100%; object-fit: cover; }
.reward .loop { margin: -8px -8px 0; border-radius: 16px; }

.steps li { position: relative; }
.step-body { position: relative; margin-top: 28px; padding-top: 28px; }
.step-body::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--ink);
    transform-origin: 0 50%;
}
.js .steps li .step-body::before { transform: scaleX(0); transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + 200ms); }
.js .steps li.in .step-body::before { transform: scaleX(1); }
.step-no { display: block; margin-bottom: 20px; color: var(--green-800); font-size: .85rem; font-weight: 800; letter-spacing: .1em; }
.steps h3 { font-size: 1.35rem; margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    position: relative;
    padding: 22px 48px 22px 0;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.faq summary::before,
.faq summary::after {
    content: "";
    position: absolute;
    right: 6px; top: 50%;
    width: 14px; height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .3s var(--ease-out);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq-body { overflow: hidden; }
.faq-body p { margin: 0; padding: 0 48px 24px 0; color: var(--muted); }
.faq-body a { color: var(--ink); font-weight: 700; }

/* Closing CTA */
.cta { padding: 144px 0; }
.cta-inner { text-align: center; }
.cta h2 { margin-bottom: 16px; font-size: clamp(3rem, 9vw, 7rem); font-weight: 800; line-height: 1; letter-spacing: -.055em; }
.cta h2 span { color: var(--green-800); }
.cta p { margin-bottom: 36px; color: var(--muted); font-size: 1.15rem; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 32px; }

/* Footer
   ========================================================================== */
.site-footer { padding: 80px 0 32px; background: var(--green-900); color: rgba(255, 255, 255, .62); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.footer-logo .brand-name { color: var(--white); }
.footer-logo .brand-mark { color: var(--white); }
.footer-brand p { margin: 14px 0 0; max-width: 18rem; font-size: .95rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: .95rem; }
.footer-col h3 { margin-bottom: 8px; color: rgba(255, 255, 255, .4); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; word-break: break-word; transition: color .2s ease; }
.footer-col a:hover { color: var(--white); }

.footer-wordmark {
    margin: 64px 0 8px;
    color: rgba(255, 255, 255, .07);
    font-size: clamp(5.5rem, 24vw, 21rem);
    font-weight: 800;
    line-height: .78;
    letter-spacing: -.065em;
    user-select: none;
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .85rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 44px; height: 44px;
        padding: 0 12px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }
    .nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

    .site-nav {
        position: absolute;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 24px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
        transition: opacity .25s ease, transform .3s var(--ease-out), visibility 0s .3s;
    }
    .site-nav.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1rem; }
    .site-nav a:not(.btn)::after { display: none; }
    .nav-sep { display: none; }
    .site-nav .btn { margin-top: 18px; padding: .8rem; }
}

@media (max-width: 960px) {
    .badge-wrap { width: 170px; height: 170px; }
    .badge-coin { width: 100px; height: 100px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .hero-stats dt { font-size: 1.6rem; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .awards { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
    .hero { padding-top: 56px; }
    .hero-grid { grid-template-columns: 1fr; }
    .badge-wrap { display: none; }
    .lead { font-size: 1.08rem; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
    .hero-stats > div { padding: 20px 0 20px 16px; }
    .hero-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .hero-stats > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .hero-stats dt { font-size: 1.3rem; }
    .hero-stats dd { font-size: .78rem; }

    .section { padding-top: 80px; }
    .section-head { margin-bottom: 32px; }
    .reward-grid, .steps { grid-template-columns: 1fr; }
    .steps { gap: 40px; }
    .price-card, .reward { padding: 28px 24px; }
    .features li { padding: 24px 18px; }
    .awards { padding: 36px 24px; }
    .award-list li { padding: 0 0 0 16px; }
    .cta { padding: 104px 0; }
    .footer-top { gap: 32px 20px; }
    .footer-bottom { flex-direction: column; }
}
