/* ── LANDING PAGE — Apes Together ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #080C0A;
    --bg2: #0D1210;
    --card: #0F1513;
    --card-hover: #141D19;
    --border: #1A2520;
    --accent: #00D9A5;
    --accent-dim: rgba(0,217,165,0.10);
    --accent-glow: rgba(0,217,165,0.25);
    --txt: #F0F4F2;
    --txt2: #9CA3AF;
    --muted: #6B7280;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--txt); line-height: 1.6; overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.asterisk { color: var(--accent); font-size: 0.6em; position: relative; top: -0.4em; margin-left: -0.25em; letter-spacing: -0.1em; }

/* ── NAV ── */
.lp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(8,12,10,0.88); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 12px 0;
}
.lp-nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--txt); }
.nav-brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--txt2); font-size: 0.88rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--txt); text-decoration: none; }
.btn-sm {
    background: var(--accent); color: #000; padding: 8px 20px; border-radius: 8px;
    font-weight: 700; font-size: 0.88rem; transition: all 0.2s;
}
.btn-sm:hover { opacity: 0.9; text-decoration: none; color: #000; }
.mobile-toggle { display: none; background: none; border: none; color: var(--txt); font-size: 1.5rem; cursor: pointer; padding: 4px; }

/* ── HERO ── */
.hero {
    padding: 130px 0 40px; text-align: center; position: relative; overflow: hidden;
    background: url('/static/images/hero-bg.png') center top / cover no-repeat;
}
/* Geometric CSS background shapes inspired by PrimeRev */
.hero-geo {
    position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero-geo .tri-1 {
    position: absolute; top: -180px; left: 50%; transform: translateX(-50%) rotate(15deg);
    width: 0; height: 0;
    border-left: 500px solid transparent; border-right: 500px solid transparent;
    border-bottom: 600px solid rgba(0,217,165,0.03);
}
.hero-geo .tri-2 {
    position: absolute; top: -140px; left: 50%; transform: translateX(-50%) rotate(-8deg);
    width: 0; height: 0;
    border-left: 400px solid transparent; border-right: 400px solid transparent;
    border-bottom: 500px solid rgba(0,217,165,0.025);
}
.hero-geo .line-1 {
    position: absolute; top: 60px; left: -5%; width: 45%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,217,165,0.15), transparent);
    transform: rotate(-12deg);
}
.hero-geo .line-2 {
    position: absolute; top: 100px; right: -5%; width: 40%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,217,165,0.12), transparent);
    transform: rotate(10deg);
}
.hero-geo .orb {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 700px; height: 420px;
    background: radial-gradient(ellipse, rgba(0,217,165,0.10) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--accent-dim); border: 1px solid rgba(0,217,165,0.2);
    border-radius: 100px; padding: 5px 16px;
    font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 24px;
    letter-spacing: 0.01em;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.6rem);
    font-weight: 900; line-height: 1.08; margin-bottom: 18px; letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem); color: var(--txt2);
    max-width: 560px; margin: 0 auto 28px; line-height: 1.65;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg {
    background: var(--accent); color: var(--bg);
    padding: 14px 30px; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
    border: none; cursor: pointer; transition: all 0.2s;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: 0 0 20px rgba(0,217,165,0.18);
}
.btn-lg:hover { opacity: 0.9; text-decoration: none; color: var(--bg); transform: translateY(-1px); box-shadow: 0 0 32px rgba(0,217,165,0.28); }
.btn-ghost {
    background: transparent; color: var(--txt);
    padding: 14px 30px; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
    border: 1px solid var(--border); cursor: pointer; transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── WAITLIST FORM ── */
#waitlist-anchor { scroll-margin-top: 80px; }
#waitlist { scroll-margin-top: 80px; }
.waitlist-form-wrap { margin-top: 0; }
.waitlist-form {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
    max-width: 480px; margin: 0 auto;
}
.waitlist-form input[type="email"] {
    flex: 1 1 220px; padding: 14px 18px; border-radius: 10px;
    border: 1px solid var(--border); background: var(--card);
    color: var(--txt); font-size: 0.95rem; font-family: inherit;
    outline: none; transition: border-color 0.2s;
    min-width: 0;
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 12px rgba(0,217,165,0.15); }
.waitlist-form button { flex-shrink: 0; white-space: nowrap; }
.waitlist-form button:disabled { opacity: 0.6; cursor: wait; }
.waitlist-msg { text-align: center; margin-top: 12px; font-size: 0.9rem; min-height: 1.4em; }
.wl-ok { color: var(--accent); font-weight: 600; }
.wl-err { color: #ef4444; font-weight: 600; }
.waitlist-proof {
    text-align: center; margin-top: 14px; font-size: 0.82rem; color: var(--muted);
    font-weight: 500; letter-spacing: 0.01em;
}

/* ── STATS BAR ── */
.stats-bar {
    display: flex; justify-content: center; gap: 40px; margin-top: 48px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item .val { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-item .lbl { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* ── MOCKUP (placeholder for dashboard screenshot) ── */
.mockup-wrap {
    margin-top: 56px; position: relative; z-index: 2; max-width: 860px; margin-left: auto; margin-right: auto;
}
.mockup-frame {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 20px; position: relative; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(0,217,165,0.06);
}
.mockup-frame img {
    width: 100%; border-radius: 10px; display: block;
}
.mockup-frame.has-img {
    background: transparent; border: none; padding: 0;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.mockup-frame.has-img img {
    border-radius: 14px;
}
/* If no image yet, show placeholder */
.mockup-placeholder {
    background: linear-gradient(135deg, var(--bg2) 0%, var(--card) 100%);
    border-radius: 10px; padding: 60px 24px; text-align: center;
    border: 1px dashed rgba(0,217,165,0.15);
}
.mockup-placeholder p { color: var(--muted); font-size: 0.85rem; }

/* Green glow behind mockup */
.mockup-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 80%; height: 80%;
    background: radial-gradient(ellipse, rgba(0,217,165,0.08) 0%, transparent 70%);
    pointer-events: none; z-index: -1;
}

/* ── TRUST BAR ── */
.trust-bar {
    padding: 40px 0; border-bottom: 1px solid var(--border); text-align: center; overflow: hidden;
}
.trust-bar .label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; font-weight: 600; }
.trust-logos {
    display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap;
    opacity: 0.5;
}
.trust-logos span { font-size: 0.9rem; font-weight: 700; color: var(--txt2); white-space: nowrap; }

/* ── SECTIONS ── */
section.lp-section { padding: 80px 0; }
.sec-label {
    font-size: 0.78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px;
}
.sec-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
    line-height: 1.12; margin-bottom: 14px; letter-spacing: -0.015em;
}
.sec-sub { font-size: 1rem; color: var(--txt2); max-width: 520px; line-height: 1.6; }
.sec-center { text-align: center; }
.sec-center .sec-sub { margin: 0 auto; }

/* ── AUDIENCE CARDS ── */
.audience-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.aud-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 32px; transition: border-color 0.3s, box-shadow 0.3s;
    position: relative; overflow: hidden;
}
.aud-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.aud-card:hover { border-color: rgba(0,217,165,0.3); box-shadow: 0 0 24px rgba(0,217,165,0.05); }
.aud-card:hover::before { opacity: 1; }
.aud-icon {
    width: 44px; height: 44px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px;
    background: var(--accent-dim);
}
.aud-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.aud-card .tagline { color: var(--txt2); margin-bottom: 18px; font-size: 0.9rem; }
.aud-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.aud-card ul li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.88rem; color: var(--txt2);
}
.aud-card ul li .ck { color: var(--accent); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ── QUOTE STRIP ── */
.quote-strip { padding: 48px 0; }
.quote-inner {
    max-width: 680px; margin: 0 auto; text-align: center;
    border-left: 3px solid var(--accent); padding-left: 24px;
}
.quote-inner p {
    font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 600; color: var(--txt);
    line-height: 1.55; font-style: italic;
}

/* ── HOW IT WORKS ── */
.hiw-bg {
    background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.tabs-row { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.tab-btn {
    padding: 9px 22px; border-radius: 8px; font-weight: 600; font-size: 0.88rem;
    cursor: pointer; border: 1px solid var(--border); background: transparent;
    color: var(--txt2); transition: all 0.2s;
}
.tab-btn.active { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.step {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px;
    padding: 28px 20px; text-align: center;
}
.step-n {
    width: 32px; height: 32px; border-radius: 50%; background: var(--accent-dim);
    color: var(--accent); font-weight: 800; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.step h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 0.82rem; color: var(--txt2); line-height: 1.5; }

/* ── INCOME CALCULATOR ── */
.calc-bg { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.calc-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 40px; max-width: 600px; margin: 36px auto 0; text-align: center;
    position: relative; overflow: hidden;
}
.calc-card::after {
    content: ''; position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
    width: 300px; height: 120px;
    background: radial-gradient(ellipse, rgba(0,217,165,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.slider-group { margin: 24px 0 20px; }
.slider-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.82rem; color: var(--txt2); }
.slider-label .v { color: var(--accent); font-weight: 700; }
input[type="range"] {
    -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
    background: var(--border); border-radius: 3px; outline: none;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--accent); cursor: pointer; box-shadow: 0 0 8px rgba(0,217,165,0.3);
}
input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
    cursor: pointer; border: none;
}
.calc-formula { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.calc-formula .op { color: var(--muted); font-size: 1rem; }
.calc-result { font-size: 2.4rem; font-weight: 900; color: var(--accent); margin: 16px 0 6px; }
.calc-result small { font-size: 0.45em; font-weight: 600; }
.calc-sub { color: var(--txt2); font-size: 0.9rem; }
.calc-note { margin-top: 16px; font-size: 0.78rem; color: var(--muted); }

/* ── SECTION WITH GEO BG ── */
.geo-bg-section {
    background: url('/static/images/cta-bg.png') center center / cover no-repeat;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}

/* ── WHY NOW / PROOF CARDS ── */
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.proof-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px;
}
.proof-card .qt { font-size: 0.9rem; font-style: italic; color: var(--txt2); margin-bottom: 14px; line-height: 1.6; }
.proof-card .src { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ── FAQ ── */
.faq-bg { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.faq-list { max-width: 680px; margin: 40px auto 0; }
.faq-item {
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 8px; overflow: hidden;
}
.faq-q {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 0.9rem;
    color: var(--txt); gap: 14px; transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    border: 1px solid var(--border); display: flex; align-items: center;
    justify-content: center; font-size: 1rem; color: var(--muted); transition: all 0.3s;
}
.faq-item.open .faq-q .icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 20px 16px; font-size: 0.88rem; color: var(--txt2); line-height: 1.6; }

/* ── CTA BANNER ── */
.cta-banner {
    padding: 80px 0; text-align: center; position: relative; overflow: hidden;
    background: url('/static/images/cta-bg.png') center center / cover no-repeat;
}
.cta-banner .cta-geo {
    position: absolute; inset: 0; pointer-events: none;
}
.cta-banner .cta-geo .t1 {
    position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%) rotate(8deg);
    width: 0; height: 0;
    border-left: 600px solid transparent; border-right: 600px solid transparent;
    border-top: 400px solid rgba(0,217,165,0.03);
}
.cta-banner .cta-geo .g1 {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 500px; height: 300px;
    background: radial-gradient(ellipse, rgba(0,217,165,0.08) 0%, transparent 70%);
}
.cta-banner-content { position: relative; z-index: 2; }
.cta-banner h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 900; margin-bottom: 14px;
}
.cta-banner p { font-size: 1.05rem; color: var(--txt2); margin-bottom: 32px; }

/* ── FOOTER ── */
.lp-footer { border-top: 1px solid var(--border); padding: 36px 0 28px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 28px; }
.footer-brand { max-width: 260px; }
.footer-brand .name { font-weight: 800; font-size: 1rem; margin-bottom: 6px; }
.footer-brand .tl { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.footer-cols { display: flex; gap: 36px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--txt2); margin-bottom: 7px; }
.footer-col a:hover { color: var(--txt); text-decoration: none; }
.footer-bottom {
    margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); text-align: center;
}
.footer-disc { font-size: 0.72rem; color: var(--muted); line-height: 1.6; max-width: 680px; margin: 0 auto 10px; }
.footer-copy { font-size: 0.74rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .audience-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: rgba(8,12,10,0.97);
        padding: 16px 24px; gap: 14px; border-bottom: 1px solid var(--border);
    }
    .hero { padding: 120px 0 30px; }
    .stats-bar { gap: 20px; }
    .stat-item .val { font-size: 1.3rem; }
    .footer-cols { flex-direction: column; gap: 20px; }
    .calc-card { padding: 28px 18px; }
}
@media (max-width: 480px) {
    .steps-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.9rem; }
    .cta-row { flex-direction: column; align-items: center; }
    .btn-lg, .btn-ghost { width: 100%; justify-content: center; }
    .waitlist-form { flex-direction: column; }
    .waitlist-form input[type="email"] { flex: 1 1 auto; }
    .waitlist-form button { width: 100%; justify-content: center; }
}
