/* ─── ClawBot Global Styles ─────────────────────────────────────── */

:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --accent: #2E7D32;
    --bg: #F9FBF9;
    --text: #1B2E1B;
    --text-secondary: #5A7A5A;
    --border: #E0E8E0;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(76, 175, 80, 0.08);
    --transition: all 0.3s ease;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ─── Navigation ─────────────────────────────────────────────────── */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border); padding: 12px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-emoji { font-size: 1.6rem; line-height: 1; }
.nav-brand h2 {
    font-size: 1.4rem; font-weight: 700; margin: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-nav { display: flex; gap: 24px; align-items: center; }
.nav-link {
    color: var(--text); text-decoration: none; font-weight: 500;
    padding: 8px 12px; border-radius: 8px; transition: var(--transition);
}
.nav-link:hover { color: var(--primary); }

/* ─── Dropdown ───────────────────────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-toggle {
    display: flex; align-items: center; gap: 8px; color: var(--text);
    text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px;
    background: transparent; border: none; cursor: pointer; transition: var(--transition);
    font-size: inherit; font-family: inherit;
}
.dropdown-toggle:hover { color: var(--primary); }
.dropdown-toggle i { font-size: 0.8em; transition: transform 0.3s ease; }
.nav-dropdown:hover .dropdown-toggle i { transform: rotate(180deg); }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; background: white;
    border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid var(--border); min-width: 320px; max-height: calc(100vh - 220px);
    overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25,0.46,0.45,0.94); z-index: 1001;
    margin-top: 8px; padding-bottom: 12px;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-header {
    padding: 16px 20px 12px; border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}
.challenge-text {
    font-size: 0.9em; font-weight: 600; color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.dropdown-item {
    display: flex; align-items: center; gap: 16px; padding: 14px 20px;
    color: var(--text); text-decoration: none; transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transform: translateX(4px); color: var(--primary);
}
.dropdown-item.current { background: var(--primary); color: white; }
.dropdown-item.current:hover { transform: translateX(0); }
.week-badge {
    display: flex; align-items: center; justify-content: center;
    min-width: 44px; height: 32px; background: var(--primary); color: white;
    border-radius: 6px; font-size: 0.8em; font-weight: 600; letter-spacing: 0.5px;
}
.dropdown-item.current .week-badge { background: rgba(255,255,255,0.2); }
.product-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.product-name { font-weight: 600; font-size: 0.95em; line-height: 1.2; }
.product-desc { font-size: 0.8em; opacity: 0.7; line-height: 1.2; }
.dropdown-item.current .product-desc { opacity: 0.9; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.landing-hero {
    min-height: 100vh; padding-top: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 40px 20px; text-align: center; color: white;
    position: relative; overflow: hidden;
}

/* Floating emojis */
.hero-floaters { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.floater {
    position: absolute; bottom: -60px; left: var(--x);
    font-size: var(--size); opacity: 0;
    animation: floatUp var(--duration) var(--delay) infinite ease-in;
}
@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    5% { opacity: 0.6; }
    50% { opacity: 0.4; }
    95% { opacity: 0; }
    100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

/* Mascot */
.hero-mascot {
    font-size: 5rem; margin-bottom: 16px; line-height: 1;
    animation: mascotBob 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
}
@keyframes mascotBob {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-12px) rotate(3deg); }
}

.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-content h1 { font-size: 3rem; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.hero-content .tagline { font-size: 1.2rem; opacity: 0.9; margin-bottom: 32px; line-height: 1.6; }
.hero-flow {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-bottom: 40px; flex-wrap: wrap; font-size: 1rem; font-weight: 500;
}
.hero-flow .step {
    background: rgba(255,255,255,0.15); padding: 8px 18px;
    border-radius: 50px; backdrop-filter: blur(4px);
}
.hero-flow .arrow { opacity: 0.6; }
.hero-cta {
    display: inline-block; background: white; color: var(--primary);
    padding: 16px 40px; border-radius: var(--radius); font-size: 1.1rem;
    font-weight: 700; text-decoration: none; transition: var(--transition);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.2); color: var(--primary-dark); }

/* ─── Features Showcase ──────────────────────────────────────────── */
.showcase-section { padding: 80px 20px; }
.showcase-container { max-width: 1100px; margin: 0 auto; }
.showcase-header { text-align: center; margin-bottom: 64px; }
.showcase-header h2 { font-size: 2rem; margin-bottom: 12px; }
.showcase-header p { color: var(--text-secondary); font-size: 1.1rem; }

/* Showcase row: phone + text side by side */
.showcase-row {
    display: grid; grid-template-columns: 300px 1fr; gap: 56px;
    align-items: center; margin-bottom: 80px;
}
.showcase-row.reverse { grid-template-columns: 1fr 300px; }
.showcase-row.reverse .phone-mockup { order: 2; }
.showcase-row.reverse .showcase-text { order: 1; }

/* Phone mockup */
.phone-mockup { display: flex; justify-content: center; }
.phone-frame {
    width: 260px; border-radius: 28px; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
    background: #f5f5f5; position: relative;
}
.phone-frame img {
    width: 100%; height: auto; display: block;
}

/* Showcase text */
.showcase-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; padding: 6px 16px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 16px;
}
.showcase-badge i { font-size: 0.8rem; }
.showcase-text h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.showcase-text > p { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.showcase-list { list-style: none; padding: 0; }
.showcase-list li {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 6px 0; color: var(--text); font-size: 0.95rem; line-height: 1.5;
}
.showcase-list li i { color: var(--primary); margin-top: 4px; font-size: 0.8rem; flex-shrink: 0; }

/* Stats banner */
.stats-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 20px; padding: 48px 40px; color: white;
    margin-top: 16px;
}
.stats-banner-text { text-align: center; margin-bottom: 36px; }
.stats-banner-text h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.stats-banner-text p { opacity: 0.9; font-size: 1rem; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-card {
    text-align: center; background: rgba(255,255,255,0.12);
    border-radius: 14px; padding: 24px 16px;
    backdrop-filter: blur(4px);
}
.stat-number { font-size: 2rem; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; opacity: 0.85; }

/* ─── Download Section ──────────────────────────────────────────── */
.download-section { padding: 80px 20px; background: white; }
.download-container { max-width: 800px; margin: 0 auto; }
.download-cards {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
.download-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 40px 28px 32px; border-radius: var(--radius);
    border: 2px solid var(--border); background: var(--bg);
    text-decoration: none; color: var(--text); transition: var(--transition);
}
.download-card:hover {
    border-color: var(--primary); transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.12); color: var(--text);
}
.download-card-icon {
    width: 64px; height: 64px; border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin-bottom: 16px;
}
.download-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.download-card > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 20px; }
.download-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: white; padding: 10px 24px;
    border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    transition: var(--transition);
}
.download-card:hover .download-btn { background: var(--primary-dark); }
.download-note {
    display: flex; align-items: center; gap: 6px; margin-top: 16px;
    font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4;
}
.download-note i { color: var(--primary); flex-shrink: 0; }
.download-fallback {
    text-align: center; color: var(--text-secondary); font-size: 0.95rem;
}
.download-fallback a { font-weight: 600; text-decoration: underline; }

/* ─── Waitlist Section ───────────────────────────────────────────── */
.waitlist-section { padding: 80px 20px; background: white; }
.waitlist-container { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 2rem; margin-bottom: 8px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; }

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

/* Waitlist left side */
.waitlist-intro h3 { font-size: 1.5rem; margin-bottom: 16px; }
.waitlist-intro p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }
.waitlist-perks-list { list-style: none; padding: 0; }
.waitlist-perks-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0; color: var(--text);
}
.waitlist-perks-list li i { color: var(--primary); font-size: 1.1rem; width: 24px; text-align: center; }

/* Waitlist form */
.waitlist-form-card {
    background: var(--bg); border-radius: var(--radius); padding: 32px;
    border: 1px solid var(--border);
}
.form-header { margin-bottom: 24px; }
.form-header h3 { font-size: 1.3rem; margin-bottom: 4px; }
.form-header p { color: var(--text-secondary); font-size: 0.9rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit;
    transition: var(--transition); background: white;
}
.form-group input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,148,136,0.1); }

/* Platform picker */
.platform-picker { margin-bottom: 20px; }
.platform-picker label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.9rem; }
.platform-buttons { display: flex; gap: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.platform-btn {
    flex: 1; padding: 10px 16px; background: white; border: none;
    font-family: inherit; font-size: 0.9rem; font-weight: 500;
    cursor: pointer; transition: var(--transition); color: var(--text-secondary);
    border-right: 1px solid var(--border);
}
.platform-btn:last-child { border-right: none; }
.platform-btn:hover { background: #f0fdfa; color: var(--primary); }
.platform-btn.active { background: var(--primary); color: white; }

/* Submit button */
.submit-btn {
    width: 100%; padding: 14px 24px; background: var(--primary);
    color: white; border: none; border-radius: 8px; font-size: 1rem;
    font-weight: 600; font-family: inherit; cursor: pointer;
    transition: var(--transition); display: flex; align-items: center;
    justify-content: center; gap: 10px;
}
.submit-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.submit-btn.loading { pointer-events: none; }

.form-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 12px; font-size: 0.8rem; color: var(--text-secondary);
}

/* Success / Error messages */
.success-message {
    text-align: center; padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}
.success-message .success-icon { font-size: 3rem; color: var(--primary); margin-bottom: 16px; }
.success-message h3 { font-size: 1.5rem; margin-bottom: 8px; }
.success-message p { color: var(--text-secondary); }
.success-message.celebrate .success-icon { animation: bounce 0.6s ease; }

.error-message {
    background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
    padding: 12px 16px; margin-bottom: 16px; color: #991b1b;
    display: flex; align-items: center; gap: 8px; font-size: 0.9rem;
}
.error-message i { color: #dc2626; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes bounce { 0%,100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ─── Footer ─────────────────────────────────────────────────────── */
.landing-footer { border-top: 1px solid var(--border); padding: 40px 20px; background: white; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.footer-brand h3 { font-size: 1.2rem; margin-bottom: 6px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; }
.social-links { margin-top: 16px; display: flex; gap: 15px; }
.social-links a { color: #666; font-size: 1.2rem; transition: color 0.3s ease; text-decoration: none; }
.social-links a:hover { color: var(--primary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-separator { height: 1px; background: var(--border); margin-bottom: 20px; }
.footer-bottom { text-align: center; color: var(--text-secondary); font-size: 0.85rem; }

/* ─── Mobile Navigation ─────────────────────────────────────────── */
.hamburger { display: none; cursor: pointer; padding: 8px; background: none; border: 1px solid var(--border); border-radius: 8px; }
.hamburger i { font-size: 1.2rem; color: var(--text); }
.mobile-nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9999; }
.mobile-nav-overlay.show { display: block; }
.mobile-nav-drawer {
    position: fixed; top: 0; right: -320px; width: 300px; height: 100vh;
    background: white; box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    z-index: 10000; transition: right 0.3s ease; overflow-y: auto;
}
.mobile-nav-drawer.show { right: 0; }
.mobile-nav-drawer-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
}
.mobile-nav-drawer-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--text); }
.mobile-nav-close { background: none; border: none; font-size: 1.5rem; color: #64748b; cursor: pointer; }
.mobile-nav-links { padding: 0.5rem 1rem; }
.mobile-nav-links a {
    display: block; padding: 0.85rem 1rem; color: var(--text); text-decoration: none;
    font-size: 1rem; font-weight: 500; border-radius: 8px; transition: background 0.2s;
}
.mobile-nav-links a:hover { background: #f1f5f9; }
.mobile-nav-section-title {
    padding: 1rem 1rem 0.5rem; font-size: 0.75rem; font-weight: 600;
    color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em;
}
.mobile-product-link {
    display: flex !important; align-items: center; gap: 0.75rem;
}
.mobile-product-link .week-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem;
    font-weight: 700; background: var(--primary); color: white;
}
.mobile-product-link .product-info { display: flex; flex-direction: column; }
.mobile-product-link .product-name { font-weight: 600; font-size: 0.95rem; }
.mobile-product-link .product-desc { font-size: 0.8rem; color: #94a3b8; }

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content .tagline { font-size: 1rem; }
    .hero-cta { padding: 14px 32px; font-size: 1rem; }
    .section-nav { display: none; }
    .download-cards { grid-template-columns: 1fr; gap: 16px; }
    .waitlist-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-content { flex-direction: column; gap: 24px; }
    .footer-links { flex-wrap: wrap; gap: 16px; }

    /* Showcase responsive */
    .showcase-row,
    .showcase-row.reverse { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .showcase-row.reverse .phone-mockup { order: 0; }
    .showcase-row.reverse .showcase-text { order: 0; }
    .showcase-text h3 { font-size: 1.4rem; }
    .showcase-list li { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-banner { padding: 36px 24px; }
}

@media (max-width: 480px) {
    .hero-mascot { font-size: 3.5rem; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-flow { flex-direction: column; gap: 8px; }
    .hero-flow .arrow { transform: rotate(90deg); }
    .form-grid { grid-template-columns: 1fr; }
    .platform-buttons { flex-direction: column; }
    .platform-btn { border-right: none; border-bottom: 1px solid var(--border); }
    .platform-btn:last-child { border-bottom: none; }

    .phone-frame { width: 220px; }
    .showcase-row { margin-bottom: 56px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-number { font-size: 1.5rem; }
    .stats-banner-text h3 { font-size: 1.3rem; }
}
