/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f1f18;
    --bg-darker: #0a1610;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-cream: #d4cdc0;
    --text-light: #eee9e0;
    --text-muted: rgba(212, 205, 192, 0.6);
    --accent: #6fbf94;
    --accent-dim: rgba(111, 191, 148, 0.15);
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-cream);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 32px;
}

h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--text-light);
    text-align: center;
    letter-spacing: -0.01em;
}

/* Particle Canvas */
#particle-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#page-content {
    position: relative;
    z-index: 1;
}

/* Hero (scroll spacer for particle animation — with overlaid content) */
.hero {
    height: 100vh;
    background: transparent;
    position: relative;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0 32px 60px;
    text-align: center;
    pointer-events: auto;
    z-index: 10;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 31, 24, 0.6) 30%, rgba(15, 31, 24, 0.9) 70%);
}

/* Email Capture — Hero */
.email-capture {
    max-width: 520px;
    margin: 32px auto 0;
}

.email-hook {
    font-size: 0.95rem;
    color: var(--text-cream);
    margin-bottom: 16px;
    line-height: 1.6;
}

.email-hook strong {
    color: var(--text-light);
}

.email-form {
    display: flex;
    gap: 10px;
    max-width: 480px;
    margin: 0 auto 10px;
}

.email-form input[type="email"] {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.92rem;
    outline: none;
    transition: all 0.25s ease;
}

.email-form input[type="email"]::placeholder {
    color: var(--text-muted);
}

.email-form input[type="email"]:focus {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 3px rgba(111, 191, 148, 0.15);
}

.btn-cta {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.btn-cta:hover {
    background: #8fd4b0;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(111, 191, 148, 0.3);
}

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

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 480px;
    margin: 12px auto 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.5;
    text-align: left;
}

.consent-label a {
    color: var(--accent);
    text-decoration: underline;
}

.consent-check {
    margin-top: 2px;
    accent-color: var(--accent);
    flex-shrink: 0;
}

.consent-error {
    color: var(--red);
}

.consent-error .consent-check {
    outline: 2px solid var(--red);
    outline-offset: 1px;
    border-radius: 2px;
}

.email-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.sub-count {
    color: var(--accent);
    font-weight: 500;
}

/* Email Success State */
.email-success {
    max-width: 480px;
    margin: 32px auto 0;
    text-align: center;
}

.success-icon {
    color: var(--accent);
    margin-bottom: 12px;
}

.success-text {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Chatbot Bonus (after email success) */
.chatbot-bonus {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(111, 191, 148, 0.2);
}

.bonus-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.btn-bonus {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Floating Chat Bubble */
.chat-fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: var(--accent);
    color: var(--bg-dark);
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 4px 24px rgba(111, 191, 148, 0.35);
    transition: all 0.25s ease;
}

.chat-fab:hover {
    background: #8fd4b0;
    transform: translateY(-2px);
    box-shadow: 0 6px 32px rgba(111, 191, 148, 0.45);
}

.chat-fab svg {
    flex-shrink: 0;
}

.chat-fab-label {
    white-space: nowrap;
}

/* Scroll Hint */
.scroll-hint {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.78rem;
    opacity: 0.6;
    animation: bobDown 2s ease-in-out infinite;
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* Secondary Email Section (mid-page) */
.email-section {
    padding: 64px 32px;
    text-align: center;
    background: var(--accent-dim);
    border-top: 1px solid rgba(111, 191, 148, 0.15);
    border-bottom: 1px solid rgba(111, 191, 148, 0.15);
}

.email-section-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.email-form-inline {
    max-width: 500px;
    margin: 0 auto 12px;
}

.tagline {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.divider {
    width: 48px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto 20px;
    opacity: 0.6;
}

.subtitle {
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 1.8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 13px 32px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: #c0392b;
    color: #fff;
}

.btn-primary:hover {
    background-color: #a93226;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(192, 57, 43, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid rgba(111, 191, 148, 0.3);
}

.btn-secondary:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

/* About / Topics */
.about {
    padding: 80px 32px;
    background: var(--bg-dark);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    max-width: 860px;
    margin: 0 auto;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
}

.topic-card {
    background: var(--bg-dark);
    padding: 44px 40px;
    transition: background-color 0.3s ease;
}

.topic-card:hover {
    background: var(--bg-card-hover);
}

.topic-card h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
}

.topic-card h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.topic-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Episode */
.episode {
    padding: 80px 32px;
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 auto 28px;
    padding-bottom: 56.25%;
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Listen / Platforms */
.listen {
    padding: 80px 32px;
    text-align: center;
    background: var(--bg-dark);
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.platform-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-cream);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.25s ease;
}

.platform-link:hover {
    background: var(--accent-dim);
    border-color: rgba(111, 191, 148, 0.3);
    color: var(--accent);
}

.platform-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.platform-link:hover svg {
    opacity: 1;
}

/* Contact */
.contact {
    padding: 80px 32px;
    text-align: center;
    background: var(--bg-darker);
    border-top: 1px solid var(--border-subtle);
}

.contact p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

/* Footer */
footer {
    padding: 28px 32px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* Legal Pages */
.legal {
    max-width: 720px;
    text-align: left;
}

.legal h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 32px 0 10px;
}

.legal p {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.legal ul {
    margin: 0 0 12px 24px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.legal li {
    margin-bottom: 6px;
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .hero {
        height: 100vh;
    }

    .hero-overlay {
        padding: 0 20px 40px;
    }

    .email-form {
        flex-direction: column;
    }

    .btn-cta {
        width: 100%;
    }

    .tagline {
        font-size: 1.7rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .topics-grid {
        grid-template-columns: 1fr;
    }

    .platforms {
        flex-direction: column;
        align-items: center;
    }

    .platform-link {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .chat-fab {
        padding: 14px;
        border-radius: 50%;
    }

    .chat-fab-label {
        display: none;
    }

    .about,
    .episode,
    .listen,
    .contact {
        padding: 56px 24px;
    }
}
