/* ================================================================
   KEBAHAGIAAN — MAIN STYLESHEET
   Mobile-first: 375px base → 768px tablet → 1100px desktop
================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS & RESET
---------------------------------------------------------------- */
:root {
    --bg: #0a0c12;
    --bg-alt: #0e1018;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --mint: #4ade80;
    --mint-dim: rgba(74, 222, 128, 0.12);
    --mint-glow: rgba(74, 222, 128, 0.25);
    --violet: #a78bfa;
    --violet-dim: rgba(167, 139, 250, 0.12);
    --rose: #fb7185;
    --rose-dim: rgba(251, 113, 133, 0.12);
    --amber: #fbbf24;

    --text-primary: #f0f2f8;
    --text-secondary: #8891a8;
    --text-muted: #55607a;

    --nav-height: 68px;

    --r-sm: 10px;
    --r-md: 20px;
    --r-lg: 32px;
    --r-pill: 9999px;

    --transition-fast: 0.18s ease;
    --transition-base: 0.28s ease;
    --transition-slow: 0.45s cubic-bezier(0.22, 1, 0.36, 1);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.55);
    --shadow-mint: 0 0 24px rgba(74, 222, 128, 0.18);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    background-color: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
    line-height: 1.25;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, var(--mint) 0%, var(--violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ----------------------------------------------------------------
   UTILITIES
---------------------------------------------------------------- */
.section {
    padding: 72px 0;
}

.section-container,
.hero-container,
.nav-container,
.stats-container,
.footer-container,
.join-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint);
    background: var(--mint-dim);
    padding: 5px 14px;
    border-radius: var(--r-pill);
    margin-bottom: 16px;
}

.section-title {
    font-size: 1.875rem;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    min-height: 50px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-pill {
    border-radius: var(--r-pill);
}

.btn-mint {
    background: var(--mint);
    color: #051a0a;
}

.btn-mint:hover,
.btn-mint:focus-visible {
    background: #6ee79a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-mint);
}

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    border-color: var(--mint);
    color: var(--mint);
    transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   GLASSMORPHISM CARD BASE
---------------------------------------------------------------- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: background var(--transition-base), box-shadow var(--transition-base), transform var(--transition-slow);
    box-shadow: var(--shadow-card);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-hover);
}

/* ----------------------------------------------------------------
   NAV
---------------------------------------------------------------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 12, 18, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.nav-container {
    display: flex;
    align-items: center;
    height: var(--nav-height);
    gap: 8px;
}

.nav-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-sparkle {
    color: var(--mint);
    font-size: 1.1em;
}

.nav-links {
    display: none;
    gap: 28px;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.desktop-cta {
    display: none;
    padding: 10px 22px;
    font-size: 0.875rem;
    min-height: 44px;
}

/* ---- Hamburger ---- */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5.5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--r-sm);
    transition: background var(--transition-fast);
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(255, 255, 255, 0.06);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transform-origin: center;
    transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}

.hamburger-btn.open .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.open .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-btn.open .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid transparent;
    transition: max-height var(--transition-slow), padding var(--transition-base), border-color var(--transition-base);
}

.mobile-menu.open {
    max-height: 360px;
    padding: 16px 20px 20px;
    border-top-color: var(--border);
}

.mobile-link {
    display: block;
    padding: 13px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--r-md);
    transition: background var(--transition-fast), color var(--transition-fast);
    min-height: 48px;
    display: flex;
    align-items: center;
}

.mobile-link:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.mobile-cta {
    margin-top: 8px;
    width: 100%;
    min-height: 50px;
}

/* ----------------------------------------------------------------
   HERO SECTION
---------------------------------------------------------------- */
.hero {
    padding-top: 60px;
    padding-bottom: 72px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: var(--r-pill);
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mint);
    width: fit-content;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    flex-shrink: 0;
    animation: livePulse 1.8s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}

.hero-title {
    font-size: 2.3rem;
    color: var(--text-primary);
    line-height: 1.18;
}

.hero-desc {
    font-size: 1.0rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-pill {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-left: -10px;
    flex-shrink: 0;
    background: var(--bg-alt);
}

.avatar-pill:first-child {
    margin-left: 0;
}

.av-1 { background: #1a2030; }
.av-2 { background: #1c2030; }
.av-3 { background: #18202e; }
.av-4 { background: #1e2234; }
.av-5 { background: #1a1e2c; }

.social-proof-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.social-proof-text strong {
    color: var(--text-primary);
}

/* ---- Hero Interactive Cards ---- */
.hero-interactive {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Mood Card */
.mood-card {
    padding: 24px;
}

.card-header {
    margin-bottom: 20px;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mint);
    display: block;
    margin-bottom: 6px;
}

.card-title {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Mood Grid */
.mood-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 12px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    transition: all var(--transition-base);
    cursor: pointer;
    min-height: 72px;
    position: relative;
    overflow: hidden;
}

.mood-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: inherit;
}

.mood-btn:hover {
    border-color: var(--mint);
    background: var(--mint-dim);
    transform: translateY(-2px);
}

.mood-btn.selected {
    border-color: var(--mint);
    background: var(--mint-dim);
    box-shadow: 0 0 0 1px var(--mint);
}

.mood-emoji {
    font-size: 1.5rem;
    line-height: 1;
}

.mood-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.mood-btn.selected .mood-label {
    color: var(--mint);
}

/* Mood Reply */
.mood-reply {
    margin-top: 16px;
    padding: 16px;
    background: rgba(74, 222, 128, 0.06);
    border: 1px solid rgba(74, 222, 128, 0.18);
    border-radius: var(--r-md);
    display: none;
    animation: replyFadeIn 0.35s var(--transition-slow);
}

.mood-reply.visible {
    display: block;
}

@keyframes replyFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mood-reply-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint);
    margin-bottom: 8px;
}

.mood-reply-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Affirmation Card */
.affirmation-card {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.affirmation-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.affirmation-icon {
    font-size: 1.1rem;
}

.affirmation-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--violet);
}

.affirmation-quote {
    font-size: 0.925rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    border-left: 2px solid var(--violet);
    padding-left: 14px;
    animation: affirmFade 0.4s ease;
}

@keyframes affirmFade {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}

.btn-text-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--violet);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    align-self: flex-start;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.btn-text-action:hover {
    opacity: 0.75;
}

/* ----------------------------------------------------------------
   STATS BAR
---------------------------------------------------------------- */
.stats-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--mint);
    line-height: 1;
    letter-spacing: -0.03em;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ----------------------------------------------------------------
   STORIES SECTION
---------------------------------------------------------------- */
.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

/* Featured story gets mint accent border */
.story-card.featured {
    border-color: rgba(74, 222, 128, 0.28);
    box-shadow: var(--shadow-card), 0 0 0 1px rgba(74, 222, 128, 0.12);
}

.story-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.mood-pill {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--r-pill);
}

.pill-violet {
    background: var(--violet-dim);
    color: var(--violet);
}

.pill-mint {
    background: var(--mint-dim);
    color: var(--mint);
}

.pill-rose {
    background: var(--rose-dim);
    color: var(--rose);
}

.story-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.story-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    border: none;
    padding: 0;
}

.story-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.story-author {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.story-actions {
    display: flex;
    gap: 8px;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    min-height: 36px;
}

.reaction-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-strong);
    color: var(--text-primary);
}

.reaction-btn.hugged {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--mint);
}

.reaction-emoji {
    font-size: 1em;
}

/* Story CTA Card */
.story-cta-card {
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--r-lg);
    padding: 32px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-base);
}

.story-cta-card:hover {
    border-color: var(--mint);
}

.cta-inner {
    text-align: center;
    max-width: 280px;
}

.cta-icon-bubble {
    font-size: 2rem;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.cta-card-title {
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-weight: 700;
}

.cta-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.65;
}

/* ----------------------------------------------------------------
   FEATURES SECTION
---------------------------------------------------------------- */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-row {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: background var(--transition-base);
}

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

.feature-icon-box {
    width: 60px;
    height: 60px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.box-mint { background: var(--mint-dim); border: 1px solid rgba(74, 222, 128, 0.2); }
.box-violet { background: var(--violet-dim); border: 1px solid rgba(167, 139, 250, 0.2); }
.box-rose { background: var(--rose-dim); border: 1px solid rgba(251, 113, 133, 0.2); }

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feature-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mint);
}

.feature-heading {
    font-size: 1.15rem;
    color: var(--text-primary);
    font-weight: 700;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   COMMUNITY SECTION
---------------------------------------------------------------- */
.community-layout {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.community-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.community-info .section-title {
    text-align: left;
    font-size: 1.875rem;
}

.community-info .section-subtitle {
    text-align: left;
}

.community-points {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.community-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.point-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mint-dim);
    border: 1.5px solid rgba(74, 222, 128, 0.25);
    color: var(--mint);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.community-points strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.community-points p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Community Cards Grid */
.community-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.community-card {
    padding: 22px 24px;
}

.card-avatar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.city-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.comm-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.comm-city {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comm-quote {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-style: italic;
}

/* ----------------------------------------------------------------
   JOIN / CTA SECTION
---------------------------------------------------------------- */
.join-section {
    background: linear-gradient(160deg, rgba(74, 222, 128, 0.05) 0%, rgba(167, 139, 250, 0.06) 100%);
}

.join-container {
    max-width: 680px;
}

.join-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.join-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--mint);
    background: var(--mint-dim);
    padding: 5px 16px;
    border-radius: var(--r-pill);
}

.join-title {
    font-size: 1.875rem;
    color: var(--text-primary);
    max-width: 500px;
    line-height: 1.25;
}

.join-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 460px;
}

.join-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 480px;
}

.join-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid var(--border-strong);
    border-radius: var(--r-pill);
    color: var(--text-primary);
    outline: none;
    min-height: 52px;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

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

.join-input:focus {
    border-color: var(--mint);
    background: rgba(74, 222, 128, 0.04);
}

.join-btn {
    width: 100%;
    min-height: 52px;
    font-size: 0.95rem;
}

.join-privacy {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    line-height: 1.5;
}

.lock-small {
    font-size: 0.9em;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.footer {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    padding-top: 60px;
    padding-bottom: 0;
}

.footer-container {
    max-width: 1140px;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 300px;
}

.footer-links-group {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-col {
    min-width: 140px;
}

.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-list a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
    display: block;
    min-height: 24px;
}

.footer-list a:hover {
    color: var(--text-secondary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 20px;
    margin: 0 -20px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* ================================================================
   TABLET: min-width 768px
================================================================ */
@media (min-width: 768px) {

    .section {
        padding: 88px 0;
    }

    /* Nav */
    .nav-links {
        display: flex;
    }

    .desktop-cta {
        display: inline-flex;
    }

    .hamburger-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }

    /* Hero */
    .hero {
        padding-top: 80px;
        padding-bottom: 96px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-actions {
        flex-direction: row;
    }

    .hero-actions .btn {
        width: auto;
    }

    /* Stats: 4 columns */
    .stats-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2.6rem;
    }

    /* Section titles */
    .section-title {
        font-size: 2.2rem;
    }

    .join-title {
        font-size: 2.2rem;
    }

    /* Stories: 2-column */
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Community Cards: 2 columns */
    .community-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Join Form: row */
    .join-form {
        flex-direction: row;
        align-items: center;
    }

    .join-input {
        flex: 1;
        min-width: 0;
    }

    .join-btn {
        width: auto;
        flex-shrink: 0;
    }

    /* Footer Top: row */
    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-brand {
        max-width: 280px;
    }
}

/* ================================================================
   DESKTOP: min-width 1100px
================================================================ */
@media (min-width: 1100px) {

    /* Section containers */
    .section-container,
    .hero-container,
    .nav-container,
    .stats-container,
    .footer-container,
    .join-container {
        padding: 0 40px;
    }

    .join-container {
        max-width: 720px;
    }

    /* Hero: 2 column grid */
    .hero-container {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr;
        gap: 56px;
        align-items: center;
    }

    .hero-title {
        font-size: 3.4rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    .hero-interactive {
        align-self: start;
        position: sticky;
        top: calc(var(--nav-height) + 24px);
    }

    /* Section titles */
    .section-title {
        font-size: 2.4rem;
    }

    /* Features: alternating rows */
    .feature-row {
        flex-direction: row;
        align-items: center;
        gap: 40px;
        padding: 36px 40px;
    }

    .feature-reverse {
        flex-direction: row-reverse;
    }

    .feature-icon-box {
        width: 72px;
        height: 72px;
        font-size: 1.9rem;
    }

    .feature-text {
        gap: 10px;
    }

    .feature-heading {
        font-size: 1.3rem;
    }

    .feature-desc {
        font-size: 0.95rem;
        max-width: 520px;
    }

    /* Community Section: 2 columns */
    .community-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: start;
    }

    .community-info {
        position: sticky;
        top: calc(var(--nav-height) + 32px);
    }

    /* Footer bottom */
    .footer-bottom {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ================================================================
   FOCUS / ACCESSIBILITY
================================================================ */
:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
