/* ===== EARN HUB — BRAND WEBSITE STYLES ===== */

:root {
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #475569;
    --text-soft: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-soft: #eff6ff;
    --line: #e2e8f0;
    --radius: 14px;
    --shadow: 0 1px 3px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
    --shadow-lg: 0 24px 56px rgba(15,23,42,.1);
    --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Inter", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    padding-top: var(--nav-h);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; border: 0; background: none; }

.container {
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(1200px, 100% - 40px);
    margin: 0 auto;
    gap: 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--text);
    color: #fff;
    font-weight: 800;
    font-size: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s, background .15s;
}

.nav-links a:hover { color: var(--text); background: var(--bg-alt); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Download Button */
.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    transition: transform .2s, box-shadow .2s, background .2s;
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15,23,42,.18);
    background: #1e293b;
}

.btn-download:active { transform: translateY(0); }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

/* ===== DOWNLOAD MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15,23,42,.5);
    backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal-panel {
    position: relative;
    width: min(100%, 440px);
    padding: 32px;
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 12px; right: 14px;
    font-size: 24px;
    color: var(--text-soft);
    line-height: 1;
    padding: 4px 10px;
    border-radius: 8px;
}

.modal-close:hover { background: var(--bg-alt); }

.modal-panel h3 { margin-bottom: 4px; font-size: 22px; }
.modal-panel > p { color: var(--text-muted); margin-bottom: 20px; }

.download-options {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    transition: background .15s, transform .15s;
}

.download-card:hover { background: var(--accent-soft); transform: translateY(-1px); }

.dc-icon { font-size: 28px; color: var(--text); }
.dc-text { text-align: left; }
.dc-text small { display: block; font-size: 12px; color: var(--text-soft); }
.dc-text strong { font-size: 16px; }

.modal-direct a { color: var(--accent); font-weight: 500; font-size: 14px; }

/* ===== SECTIONS ===== */
.section { padding: 96px 0; }

.section-head {
    text-align: center;
    margin-bottom: 56px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .03em;
    margin-bottom: 18px;
}

.section h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; line-height: 1.2; }

/* ===== HERO ===== */
.hero { padding-bottom: 64px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.hero-copy .eyebrow { margin-bottom: 20px; }

.hero-copy h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 22px;
}

.highlight {
    background: linear-gradient(120deg, var(--accent), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-lead {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-cta-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 14px;
    background: var(--text);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    transition: transform .2s, box-shadow .2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15,23,42,.15);
}

.hero-stat {
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
}

.hero-stat strong { font-size: 20px; display: block; }

/* USD stat highlight */
.hero-stat-usd {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.hero-visual { display: flex; justify-content: center; }

.hero-dashboard-preview {
    width: 100%;
    max-width: 380px;
    padding: 24px;
    border-radius: 20px;
    background: var(--text);
    color: #fff;
    box-shadow: var(--shadow-lg);
    transform: rotate(-1deg);
}

.hd-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.hd-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.2); }
.hd-bar span:first-child { background: #ff5f57; }
.hd-bar span:nth-child(2) { background: #fdbc40; }
.hd-bar span:last-child { background: #33c748; }

.hd-balance { margin-bottom: 18px; }

.hd-balance small { display: block; font-size: 12px; color: rgba(255,255,255,.5); margin-bottom: 4px; }

.hd-balance strong { font-size: 28px; font-weight: 800; }

.hd-feed { display: grid; gap: 8px; }

.hd-feed-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.08);
    font-size: 13px;
    color: rgba(255,255,255,.8);
}

/* ===== CTA STRIPS (mid-section download prompts) ===== */
.cta-strip {
    margin-top: 48px;
    padding: 28px 32px;
    border-radius: var(--radius);
    background: var(--accent-soft);
    border: 1px solid rgba(37,99,235,.12);
}

.cta-strip-dark {
    background: var(--text);
    border-color: rgba(255,255,255,.06);
}

.cta-strip-dark .cta-strip-copy strong { color: #fff; }
.cta-strip-dark .cta-strip-copy span { color: rgba(255,255,255,.6); }

.cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-strip-copy strong { display: block; font-size: 17px; margin-bottom: 4px; }
.cta-strip-copy span { font-size: 14px; color: var(--text-muted); }

/* CTA button variants */
.btn-download-light {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
}

.btn-download-light:hover { background: #fff; box-shadow: var(--shadow); }

.cta-btn-accent {
    background: var(--accent);
    color: #fff;
}

.cta-btn-accent:hover { background: var(--accent-hover); box-shadow: 0 12px 28px rgba(37,99,235,.25); }

/* Hero download button */
.btn-download-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 14px;
    border: 1.5px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.btn-download-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,23,42,.08);
    border-color: var(--accent);
}

/* ===== FLOATING SIDE DOWNLOAD BUTTON ===== */
.float-download {
    position: fixed;
    right: 20px;
    bottom: 28px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 16px;
    background: var(--text);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 32px rgba(15,23,42,.2);
    transition: transform .2s, box-shadow .2s, padding .3s;
}

.float-download:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 14px 40px rgba(15,23,42,.28);
    padding-right: 22px;
}

.float-download-label { white-space: nowrap; }

@media (max-width: 768px) {
    .cta-strip-inner { flex-direction: column; text-align: center; }
    .cta-strip-inner .btn-download { width: 100%; justify-content: center; }
    .hero-cta-row { flex-direction: column; align-items: stretch; }
    .btn-download-hero { justify-content: center; }
    .float-download { right: 12px; bottom: 16px; padding: 12px 14px; }
    .float-download-label { display: none; }
}

/* ===== FEATURES ===== */
.features { background: var(--surface); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    transition: transform .2s, box-shadow .2s;
}

.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.fc-icon { font-size: 28px; margin-bottom: 16px; }

.feature-card h3 { font-size: 18px; margin-bottom: 10px; }

.feature-card p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }

/* ===== STORY ===== */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.story-copy h2 { margin-bottom: 20px; }

.story-copy p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.story-stats > div {
    text-align: center;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.story-stats strong { display: block; font-size: 26px; color: var(--accent); }
.story-stats span { font-size: 13px; color: var(--text-soft); }

.story-visual { display: flex; justify-content: center; }

.sv-card {
    width: 100%;
    max-width: 360px;
    padding: 0 0 24px;
    border-radius: 20px;
    background: var(--text);
    color: #fff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.sv-card-header {
    display: flex;
    gap: 6px;
    padding: 14px 18px;
    background: rgba(255,255,255,.08);
}

.sv-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.3); }
.sv-dot:first-child { background: #ff5f57; }
.sv-dot:nth-child(2) { background: #fdbc40; }
.sv-dot:last-child { background: #33c748; }

.sv-card-body {
    display: grid;
    place-items: center;
    gap: 16px;
    padding: 32px 24px 0;
    text-align: center;
}

.sv-logo {
    width: 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 18px;
    background: var(--accent);
    font-weight: 800;
    font-size: 28px;
}

.sv-card-body p { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.6; }

/* ===== REGIONAL RATES ===== */
.rates { background: var(--surface); }

.section-sub {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 6px;
}

.rates-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rates-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 10px 16px;
    flex: 1;
    min-width: 240px;
    max-width: 420px;
    transition: border-color .2s;
}

.rates-search:focus-within {
    border-color: var(--accent);
}

.rates-search svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.rates-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
}

.rates-search input::placeholder {
    color: var(--text-muted);
}

.btn-rates-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s;
}

.btn-rates-toggle:hover,
.btn-rates-toggle[aria-expanded="true"] {
    background: var(--accent);
    color: #fff;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.rate-card {
    padding: 24px;
    border-radius: var(--radius);
    background: var(--bg);
    border: 1px solid var(--line);
    text-align: center;
    transition: transform .2s, box-shadow .2s;
}

.rate-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.rate-flag { font-size: 36px; margin-bottom: 8px; }

.rate-card h3 { font-size: 16px; margin-bottom: 2px; }

.rate-currency {
    display: block;
    font-size: 12px;
    color: var(--text-soft);
    margin-bottom: 14px;
}

.rate-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--line);
    margin-bottom: 6px;
}

.rate-row span { font-size: 12px; color: var(--text-muted); }
.rate-row strong { font-size: 14px; color: var(--accent); }

.rates-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 40px 0;
    font-size: 15px;
}

@media (max-width: 1200px) {
    .rates-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .rates-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .rates-toolbar { flex-direction: column; align-items: stretch; }
    .rates-search { max-width: none; }
    .rates-grid { grid-template-columns: 1fr; }
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-alt); }

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.testimonial-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 18px; font-style: italic; }

.testimonial-card footer strong { display: block; font-size: 15px; }
.testimonial-card footer span { font-size: 13px; color: var(--text-soft); }

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form label { display: grid; gap: 6px; }
.contact-form label span { font-size: 14px; font-weight: 600; color: var(--text-muted); }

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.contact-form button { justify-self: start; min-width: 160px; }

.contact-info { display: grid; gap: 16px; align-content: start; }

.contact-info-card {
    padding: 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
}

.contact-info-card h3 { font-size: 15px; margin-bottom: 6px; }

.contact-info-card p { color: var(--text-muted); font-size: 14px; }

.contact-info-card a { color: var(--accent); }

.social-links { display: flex; gap: 12px; margin-top: 4px; }

.social-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--bg-alt);
    font-weight: 600;
    font-size: 13px;
    transition: background .15s;
}

.social-links a:hover { background: var(--accent-soft); color: var(--accent); }

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 28px;
    background: var(--text);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-mark { background: var(--accent); margin-bottom: 12px; }
.footer-brand .logo-text { color: #fff; display: block; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 14px; }

.footer-links h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); margin-bottom: 14px; }

.footer-links a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    color: rgba(255,255,255,.7);
    transition: color .15s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero-grid, .story-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-visual, .story-visual { order: -1; }
    .hero-dashboard-preview, .sv-card { max-width: 320px; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }
    .container { width: min(100%, 100% - 32px); }

    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        flex-direction: column;
        padding: 12px 16px;
        background: rgba(255,255,255,.96);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--line);
        display: none;
    }

    .nav-links.is-open { display: flex; }

    .nav-links a { padding: 12px 14px; }

    .nav-toggle { display: flex; }

    .features-grid { grid-template-columns: 1fr; }
    .story-stats { grid-template-columns: 1fr; }
    .hero-cta-row { flex-direction: column; align-items: stretch; }
    .hero-cta-row .btn-primary { text-align: center; }
    .hero-stat { text-align: center; }
    .contact-form button { width: 100%; }
}

@media (max-width: 480px) {
    .hero-dashboard-preview { max-width: 100%; }
    .sv-card { max-width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
