:root {
    --bg: hsl(40, 33%, 98%);
    --fg: hsl(240, 20%, 12%);
    --card: #ffffff;
    --primary: #30aabf;
    --primary-fg: #ffffff;
    --primary-light: #e0f4f8;
    --primary-shadow: rgba(48, 170, 191, 0.3);
    --secondary: #64748b;
    --secondary-fg: #ffffff;
    --muted: hsl(40, 20%, 94%);
    --muted-fg: hsl(240, 10%, 46%);
    --accent: hsl(160, 50%, 48%);
    --accent-fg: #ffffff;
    --destructive: hsl(0, 84%, 60%);
    --border: hsl(40, 15%, 90%);
    --radius: 0.75rem;
    --coral-light: hsl(12, 90%, 95%);
    --violet-light: hsl(250, 80%, 96%);
    --mint-light: hsl(160, 60%, 94%);
    --amber-light: hsl(40, 90%, 94%);
    --blue-light: hsl(210, 80%, 95%);
    --teal-light: #e0f4f8;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
body { font-family: 'Nunito', sans-serif !important; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1,h2,h3,h4,h5,h6 { font-family: 'Nunito', sans-serif !important; line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input { cursor: pointer; font-family: 'Nunito', sans-serif !important; }
.container { max-width: 1152px; margin: 0 auto; padding: 0 1rem; }
.container-sm { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.text-center { text-align: center; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.25rem; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem; transition: all 0.2s; border: none; outline: none; white-space: nowrap; font-family: 'Nunito', sans-serif !important; }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 14px var(--primary-shadow); }
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--muted); }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.anim-fade-up { opacity: 0; animation: fadeUp 0.6s ease-out forwards; }
.anim-float { animation: float 6s ease-in-out infinite; }
.hover-lift { transition: all 0.3s ease-out; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 40px -12px rgba(0,0,0,0.12); }
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; border-bottom: 1px solid rgba(0,0,0,0.06); background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-brand { display: flex; align-items: center; gap: 0.5rem; }
.navbar-logo { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.navbar-logo img { width: 32px; height: 32px; }
.navbar-brand span { font-size: 1.25rem; font-weight: 700; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; }
.navbar-links a:hover { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.hero { position: relative; overflow: hidden; padding: 8rem 1rem 5rem; background: linear-gradient(135deg, #e0f4f8 0%, #f0f9ff 30%, #fff 60%, #ede9fe 100%); }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.7; }
.hero-blob-1 { top: 3rem; left: 0; width: 20rem; height: 20rem; background: rgba(48, 170, 191, 0.25); }
.hero-blob-2 { top: 8rem; right: 3rem; width: 16rem; height: 16rem; background: rgba(139, 92, 246, 0.2); animation-delay: 2s; }
.hero-blob-3 { bottom: 3rem; left: 30%; width: 18rem; height: 18rem; background: rgba(34, 197, 94, 0.15); animation-delay: 4s; }
.hero-content { position: relative; z-index: 1; }
.hero-logo { width: 120px; height: 120px; margin: 0 auto 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(48, 170, 191, 0.15); border: 1px solid rgba(48, 170, 191, 0.25); padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.875rem; font-weight: 600; margin-bottom: 1.5rem; color: var(--primary); }
.hero-badge svg { width: 16px; height: 16px; color: var(--primary); }
.hero h1 { font-size: 3rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 1.5rem; }
.hero h1 span { background: linear-gradient(135deg, #30aabf, #0d9488); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.125rem; color: var(--muted-fg); max-width: 640px; margin: 0 auto 2rem; }
.hero-trust { margin-top: 2rem; display: flex; align-items: center; justify-content: center; gap: 0.75rem; }
.hero-avatars { display: flex; }
.hero-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--card); margin-left: -10px; display: flex; align-items: center; justify-content: center; font-size: 0.625rem; font-weight: 700; color: #fff; }
.hero-avatar:first-child { margin-left: 0; }
.hero-trust-text { font-size: 0.8125rem; color: var(--muted-fg); }
.hero-trust-text strong { color: var(--fg); }
.section { padding: 4.5rem 1rem; }
.section-title { font-size: 1.875rem; font-weight: 800; margin-bottom: 1rem; }
.section-subtitle { color: var(--muted-fg); max-width: 560px; margin: 0 auto 2.5rem; }
.start-community-btn { margin-bottom: 2.5rem; font-size: 0.9375rem; padding: 0.75rem 1.75rem; }
.community-filter { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 2rem; }
.filter-pill { background: var(--card); border: 1px solid var(--border); border-radius: 9999px; padding: 0.5rem 1.25rem; font-size: 0.8125rem; font-weight: 600; color: var(--secondary); cursor: pointer; transition: all 0.2s; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.community-search-wrap { max-width: 440px; margin: 0 auto 2rem; position: relative; }
.community-search-wrap input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.75rem; border: 2px solid var(--border); border-radius: var(--radius); font-size: 0.9375rem; background: var(--card); outline: none; transition: border-color 0.2s; }
.community-search-wrap input:focus { border-color: var(--primary); }
.community-search-wrap i { position: absolute; left: 0.875rem; top: 50%; transform: translateY(-50%); font-size: 0.9375rem; color: var(--muted-fg); pointer-events: none; }
.no-results { text-align: center; padding: 4rem 1rem; color: var(--muted-fg); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.no-results-icon { width: 72px; height: 72px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; margin-bottom: 0.75rem; }
.no-results-icon i { font-size: 1.5rem; color: var(--muted-fg); opacity: 0.5; }
.no-results-title { font-size: 1.125rem; font-weight: 700; color: var(--fg); margin: 0; }
.no-results-text { font-size: 0.875rem; color: var(--muted-fg); margin: 0; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.community-card { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--card); border-radius: calc(var(--radius) + 8px); padding: 1.5rem; height: 100%; transition: all 0.3s; }
.community-card-wrap { transition: all 0.3s; }
.community-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.community-logo { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; }
.community-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.community-logo .logo-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
a.community-card { text-decoration: none; color: inherit; cursor: pointer; }
.community-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; transition: color 0.2s; }
.community-card:hover h3 { color: var(--primary); }
.community-card:hover { border-color: rgba(48, 170, 191, 0.2); }
.community-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; flex: 1; margin-bottom: 1rem; }
.community-card-footer { display: flex; align-items: center; justify-content: space-between; }
.community-members { display: flex; align-items: center; gap: 0.375rem; font-size: 0.875rem; color: var(--muted-fg); }
.community-members svg { width: 16px; height: 16px; }
/* Load more */
.load-more-wrap { text-align: center; margin-top: 2.5rem; }
.btn-load-more { padding: 0.75rem 2.5rem; font-size: 0.9375rem; gap: 0.5rem; min-width: 160px; }
.btn-load-more:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.footer { border-top: 1px solid var(--border); padding: 2.5rem 1rem 2rem; background: hsl(40, 20%, 96%); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.footer-left { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; transition: opacity 0.2s; }
.footer-brand:hover { opacity: 0.8; }
.footer-brand-logo { height: 28px; width: auto  ; border-radius: 6px; }
.footer-brand-name { font-size: 1.125rem; font-weight: 700; color: var(--fg); }
.footer-social { display: flex; align-items: center; gap: 0.5rem; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--muted); color: var(--muted-fg); transition: all 0.2s; }
.footer-social a:hover { background: var(--primary); color: var(--primary-fg); transform: translateY(-2px); }
.footer-social a i { font-size: 0.875rem; }
.footer-support { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1.125rem; border-radius: 2rem; background: var(--muted); color: var(--muted-fg); font-size: 0.875rem; font-weight: 600; transition: all 0.2s; }
.footer-support:hover { background: var(--primary); color: var(--primary-fg); transform: translateY(-1px); }
.footer-support i { font-size: 0.9375rem; }
.footer-divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.footer-bottom { text-align: center; }
.footer-bottom p { font-size: 0.8125rem; color: var(--muted-fg); }
.footer-bottom a { color: var(--primary); font-weight: 600; transition: opacity 0.2s; }
.footer-bottom a:hover { opacity: 0.8; }
.icon { display: inline-block; vertical-align: middle; flex-shrink: 0; }
/* Loading spinner */
.community-loading { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem; gap: 1rem; color: var(--muted-fg); }
.community-loading p { font-size: 0.9375rem; }
.community-loading-more { padding: 2rem 1rem; }
.loading-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Scroll to top */
.scroll-to-top { position: fixed; bottom: 2rem; right: 2rem; z-index: 1000; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-fg); display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; box-shadow: 0 4px 14px var(--primary-shadow); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s; transform: translateY(10px); }
.scroll-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-to-top:hover { transform: translateY(-2px); }
.scroll-to-top i { font-size: 1.125rem; }
@media (min-width: 768px) {
    .hero { padding: 10rem 1rem 6rem; }
    .hero h1 { font-size: 3.75rem; }
    .hero-logo { width: 160px; height: 160px; }
    .section { padding: 1rem 1rem; }
    .section-title { font-size: 2.25rem; }
}
@media (max-width: 991px) {
    .community-grid { grid-template-columns: repeat(2, 1fr); }
    .navbar-links { display: none; }
}
@media (max-width: 767px) {
    .community-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.25rem; }
    .hero-logo { width: 100px; height: 100px; }
    .footer-top { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-left { align-items: center; }
    .footer-support { width: auto; }
}
