@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&display=swap');

:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent: #10b981; /* Sleek Green */
    --accent-hover: #059669;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --warning-bg: rgba(239, 68, 68, 0.1);
    --warning-border: rgba(239, 68, 68, 0.3);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- NAV --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-sizing: border-box;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.logo .wordmark-img {
    height: 50px;
    width: auto;
    display: block;
}

.version {
    font-size: 0.8rem;
    color: var(--accent);
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-inline-start: 5px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-inline-end: 20px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-cta {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Baloo 2', -apple-system, sans-serif;
    font-weight: 700;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--glass-bg);
    border-color: var(--text-muted);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    background: radial-gradient(circle at center, #1a1a1a 0%, var(--bg-color) 70%);
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
}

p.subhead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-family: 'Baloo 2', -apple-system, sans-serif;
    font-weight: 700;
    font-size: 1.65rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.main-cta {
    background-color: var(--text-main);
    color: var(--bg-color);
}

.main-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}

.secondary-cta {
    background-color: var(--glass-bg);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.secondary-cta:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* --- SECTIONS --- */
.section {
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features-section {
    background-color: var(--bg-secondary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
    margin-top: 40px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 12px;
    text-align: start;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0;
}

/* --- VIRAL LOOP SECTION --- */
.viral-section {
    background-color: var(--bg-color);
    text-align: center;
}

.viral-container {
    max-width: 600px;
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.viral-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: start;
    margin-top: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.input-group input, .input-group select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--accent);
}

.privacy-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 10px;
}

.viral-result {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

#viral-url {
    width: 100%;
    padding: 12px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    color: var(--accent);
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box;
    font-family: monospace;
}

.share-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.share-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.share-ico { width: 18px; height: 18px; flex: 0 0 auto; }

.whatsapp { background-color: #25D366; }
.whatsapp:hover { background-color: #128C7E; }
.email { background-color: #4B5563; }
.email:hover { background-color: #374151; }
.copy { background-color: #374151; }
.copy:hover { background-color: #1F2937; }

/* --- DISCLAIMER SECTION --- */
.disclaimer-section {
    background-color: var(--bg-secondary);
}

.disclaimer-box {
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 30px;
    border-radius: 12px;
    color: #e5e7eb;
    box-sizing: border-box;
}

.disclaimer-box h3 {
    color: #e5e7eb;
    margin-top: 0;
}

/* Troubleshooting accordion — one open at a time via <details name="troubleshoot"> */
.disclaimer-box details {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 14px 0;
}
.disclaimer-box details:first-of-type { border-top: none; padding-top: 6px; }
.disclaimer-box summary {
    cursor: pointer;
    font-weight: 600;
    color: #e5e7eb;
}
.disclaimer-box details p { margin: 10px 0 0; color: #cbd5e1; }

.disclaimer-box ul {
    padding-inline-start: 20px;
    margin-bottom: 0;
}

.disclaimer-box li {
    margin-bottom: 10px;
}

/* --- FOOTER --- */
.footer {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--bg-color);
    border-top: 1px solid var(--glass-border);
}

.footer h2 {
    font-size: 3rem;
}

.footer-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* --- MODAL --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close-btn {
    color: var(--text-muted);
    float: inline-end;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    inset-inline-end: 20px;
    top: 15px;
}

.close-btn:hover {
    color: var(--text-main);
}

/* --- THEATRICAL OVERLAY (Animation) --- */
#theatrical-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

#theatrical-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Manual close button — hidden until 3s after the overlay opens (no auto-close). */
.demo-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 28px;
    line-height: 44px;
    text-align: center;
    cursor: pointer;
    display: none;
    z-index: 1001;
    transition: background 0.2s ease;
}
.demo-close:hover { background: rgba(255, 255, 255, 0.3); }
.demo-close.show { display: block; }

.mock-window {
    width: 700px;
    max-width: 90%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message-block {
    font-family: monospace;
    font-size: 1.05rem;
    color: #d1d5db;
    line-height: 1.5;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.response-block {
    background: transparent;
    border-inline-start: 2px solid #555;
    display: none;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 1.1rem;
    background-color: white;
    animation: blink 1s step-end infinite;
    vertical-align: bottom;
}

@keyframes blink { 50% { opacity: 0; } }

.token {
    color: var(--accent);
    font-weight: bold;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
}

.flash-green {
    animation: green-flash 0.6s ease-out;
}

@keyframes green-flash {
    0% { box-shadow: inset 0 0 0 2px var(--accent); background: rgba(16, 185, 129, 0.2); }
    100% { box-shadow: inset 0 0 0 0 transparent; background: transparent;}
}

.label {
    color: #6b7280; 
    font-size: 0.75rem; 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 1px;
    font-family: sans-serif;
}

/* one-page smooth scroll + anchor offset (added v0.1.3) */
html { scroll-behavior: smooth; }
section[id], div[id] { scroll-margin-top: 80px; }

/* --- install-button icon (masked eyes) --- */
.cta-btn, .nav-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-eyes { height: 1.15em; width: auto; flex: 0 0 auto; }

/* --- Chrome glyph (store button) --- */
.chrome-logo { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: middle; margin-inline-end: 8px; }

/* --- Trust strip (hero) --- */
.trust-strip { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; margin-top: 30px; }
.trust-item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; text-align: center; }
.trust-item svg { width: 26px; height: 26px; stroke: var(--accent); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.trust-item span { font-size: 0.82rem; color: #cbd5e1; font-weight: 600; line-height: 1.3; }

/* --- inline brand name: the REAL wordmark SVG, color-adaptive ({{B}} token) --- */
.brand-word { display: inline-block; height: 1.37em; vertical-align: -0.37em; margin: 0 2px; }
.brand-word svg { height: 100%; width: auto; display: block; }

/* --- section hint under headings --- */
.section-hint { color: var(--text-muted); font-size: 0.9rem; margin: 6px 0 0; opacity: 0.85; display: none; } /* mobile-only: on desktop the hover already shows a card is clickable */

/* --- clickable cards (open detail popup) --- */
.feature-card.clickable { cursor: pointer; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.feature-card.clickable:hover { transform: translateY(-4px); border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.06); }
.feature-card.clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- detail modal --- */
#detail-modal .modal-content { text-align: center; max-width: 460px; }
.detail-icon { font-size: 2.6rem; margin-bottom: 6px; }
.detail-example {
    background: rgba(0,0,0,0.5); border: 1px solid var(--glass-border); border-radius: 8px;
    padding: 14px 16px; margin: 16px 0 0; font-family: monospace; font-size: 0.95rem;
    color: #cbd5e1; white-space: pre-wrap; text-align: start; line-height: 1.7;
}

/* --- scroll-snap between sections (gentle) --- */
html { scroll-snap-type: y proximity; }
.hero, .section, .footer { scroll-snap-align: start; }

/* --- fade/slide-in on scroll (only when JS is on) --- */
.reveal-on .hero, .reveal-on .section, .reveal-on .footer {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-on .hero.visible, .reveal-on .section.visible, .reveal-on .footer.visible {
    opacity: 1; transform: none;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .section-hint { display: block; }
    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    .nav-links a {
        margin-inline-end: 10px;
        font-size: 0.9rem;
    }
    h1 {
        font-size: 2.8rem;
    }
    p.subhead {
        font-size: 1.1rem;
    }
    .hero {
        padding-top: 120px; /* Leave room for taller nav */
        height: auto;
        min-height: 100vh;
    }
    .mock-window {
        width: 95%;
        padding: 15px;
    }
    .message-block {
        font-size: 0.9rem;
        padding: 10px;
    }
    .trust-strip {
        gap: 20px;
    }
    .trust-item {
        width: 45%; /* Two per row on small screens */
    }
    .section {
        padding: 60px 20px;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .footer h2 {
        font-size: 2rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}


/* --- WHY IT MATTERS section --- */
.why-section { text-align: center; }
.why-eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--glass-border); border-radius: 999px; padding: 6px 14px; margin-bottom: 22px; background: var(--glass-bg); }
.why-title { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; margin: 0 auto 20px; max-width: 760px; font-weight: 800; letter-spacing: -.5px; }
.why-title .hl { color: var(--accent); }
.why-lead { font-size: 19px; color: #cfcfcf; max-width: 680px; margin: 0 auto 8px; }
.why-kicker { font-size: 19px; max-width: 680px; margin: 16px auto 0; color: var(--text-main); font-weight: 600; }
.why-viz { margin: 44px auto 0; max-width: 1040px; }
.why-viz svg { width: 100%; height: auto; display: block; }
.why-cap { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
.why-see { display: inline-block; margin-top: 26px; color: var(--accent); background: none; border: none; border-bottom: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.why-see:hover { border-bottom-color: var(--accent); }

/* Beta badge next to the wordmark — remove this rule + the .beta-badge span to graduate out of beta */
.beta-badge { align-self: flex-start; margin-top: 4px; font-size: 11px; font-weight: 700; color: #10b981;
  border: 1px solid rgba(16,185,129,.5); background: rgba(16,185,129,.12); padding: 2px 7px; border-radius: 999px;
  letter-spacing: .06em; text-transform: lowercase; line-height: 1.4; }


/* --- Nav layout (desktop) + mobile hamburger --- */
.nav-links { display: inline-flex; align-items: center; margin-inline-start: auto; }
.nav-actions { display: inline-flex; align-items: center; gap: 12px; margin-inline-start: 18px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-main); font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 6px; }
.cta-short { display: none; }
@media (max-width: 768px) {
  .navbar { flex-direction: row; padding: 12px 16px; gap: 0; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 2px; margin: 0; padding: 8px 16px 14px; background: #050505; border-bottom: 1px solid var(--glass-border);
    display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 0; padding: 11px 0; font-size: 1rem; width: 100%; }
  .nav-actions { margin-inline-start: 0; gap: 8px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-cta { padding: 7px 12px; font-size: 0.85rem; }
  .logo .wordmark-img { height: 32px; }
  .navbar .logo .logo-mark { height: 34px !important; width: 34px !important; }
  .hero { padding-top: 84px; }
}
