:root {
    --grad:   linear-gradient(135deg, #22D3EE 0%, #A855F7 40%, #EC4899 70%, #F97316 100%);
    --purple: #A855F7;
    --bg:     #FFFFFF;
    --bg2:    #F8F8FA;
    --border: #E4E4E8;
    --text:   #111116;
    --text2:  #52526E;
    --muted:  #9898AE;
    --r:      7px;
    --r-sm:   5px;
}

/* ── WELCOME PAGE STYLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
.grad-text { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 200; height: 66px; display: flex; align-items: center; padding: 0 28px; justify-content: space-between; gap: 20px; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; background: transparent; border-bottom: 1px solid transparent; }
.navbar.scrolled { background: rgba(255,255,255,0.95); border-bottom-color: var(--border); box-shadow: 0 1px 12px rgba(0,0,0,0.06); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.nav-inner { max-width: 1160px; width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 900; font-size: 19px; letter-spacing: -0.4px; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.logo-tag { font-size: 8.5px; color: var(--muted); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--text2); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.btn-login { padding: 8px 18px; background: transparent; border: 1px solid var(--border); color: var(--text); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 13.5px; border-radius: var(--r); cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 5px; }
.btn-login:hover { background: var(--bg2); }
.btn-register { padding: 8px 18px; background: var(--text); color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; border-radius: var(--r); border: none; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 5px; }
.btn-register:hover { opacity: 0.85; }
.btn-login .label, .btn-register .label { display: inline; }
.btn-login .icon-only, .btn-register .icon-only { display: none; }
.hamburger { display: none; background: none; border: 1px solid var(--border); border-radius: var(--r-sm); width: 38px; height: 38px; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); font-size: 19px; }
.mobile-menu { display: none; position: fixed; top: 66px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 16px 24px 20px; flex-direction: column; gap: 2px; z-index: 199; box-shadow: 0 4px 14px rgba(0,0,0,0.07); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--text2); font-size: 14px; font-weight: 500; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-actions { display: flex; gap: 8px; margin-top: 12px; }
.mobile-actions a { flex: 1; text-align: center; }

/* ── HERO ── */
.hero { padding-top: 96px; padding-bottom: 0; padding-left: 28px; padding-right: 28px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; align-items: center; padding: 44px 0 44px; }
.hero-left { display: flex; flex-direction: column; gap: 0; }
.hero-eyebrow { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 7px; }
.hero-eyebrow::before { content: ''; display: inline-block; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; flex-shrink: 0; }
.hero h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 3.2vw, 44px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 12px; }
.hero-sub { font-size: 14.5px; color: var(--text2); line-height: 1.7; margin-bottom: 22px; max-width: 380px; }
.hero-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.btn-hero { padding: 10px 22px; background: var(--text); color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 13.5px; border-radius: var(--r); border: none; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-hero:hover { opacity: 0.82; }
.btn-hero-ghost { padding: 10px 22px; background: transparent; color: var(--text2); font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 13.5px; border-radius: var(--r); border: none; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-hero-ghost:hover { color: var(--text); }
.hero-right { display: flex; flex-direction: column; gap: 20px; }

/* ── SEARCH ── */
.search-wrap { position: relative; }
.search-wrap i.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; z-index: 1; }
.search-input { width: 100%; padding: 11px 13px 11px 38px; border: none; border-radius: var(--r); font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text); background: var(--bg2); outline: none; transition: background 0.2s, box-shadow 0.2s; }
.search-input:focus { background: white; box-shadow: 0 0 0 2px rgba(168,85,247,0.15), 0 0 0 1px var(--border); }
.search-input::placeholder { color: var(--muted); }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: white; border: 1px solid var(--border); border-radius: var(--r); box-shadow: 0 8px 28px rgba(0,0,0,0.1); z-index: 100; overflow: hidden; max-height: 280px; overflow-y: auto; }
.search-result-item { display: flex; align-items: center; gap: 11px; padding: 10px 14px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border); text-align: left; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg2); }
.sri-img { width: 34px; height: 34px; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.sri-info { flex: 1; min-width: 0; }
.sri-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sri-cat { font-size: 11px; color: var(--muted); margin-top: 1px; }
.sri-price { font-size: 11px; font-weight: 700; flex-shrink: 0; color: var(--text2); }
.search-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* ── STATS ── */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stat-item { background: white; padding: 16px 10px 14px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-icon { width: 32px; height: 32px; border-radius: var(--r-sm); background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--text2); }
.stat-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 18px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-label { font-size: 10px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── SHARED ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; gap: 14px; }
.section-header h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.section-header h2 span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.see-all { font-size: 13px; font-weight: 600; color: var(--text2); display: flex; align-items: center; gap: 3px; white-space: nowrap; flex-shrink: 0; transition: color 0.15s; }
.see-all:hover { color: var(--text); }

/* ── COMMUNITIES ── */
.communities-section { padding: 60px 0; }
.tabs-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-bottom: 22px; }
.tabs-wrapper::-webkit-scrollbar { display: none; }
.tabs { display: flex; align-items: center; gap: 6px; min-width: max-content; }
.tab { display: inline-flex; align-items: center; gap: 5px; padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: white; font-size: 13px; font-weight: 500; color: var(--text2); cursor: pointer; transition: all 0.15s; white-space: nowrap; font-family: 'Inter', sans-serif; }
.tab i { font-size: 13px; }
.tab:hover { background: var(--bg2); color: var(--text); }
.tab.active { background: var(--text); color: white; border-color: var(--text); font-weight: 600; }
.tab .count { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 3px; }
.tab.active .count { background: rgba(255,255,255,0.2); }
.tab:not(.active) .count { background: var(--bg2); color: var(--muted); }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.c-card { background: white; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.c-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); transform: translateY(-2px); }
.c-banner { height: 120px; position: relative; flex-shrink: 0; overflow: hidden; }
.c-banner img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.c-card:hover .c-banner img { transform: scale(1.04); }
.c-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%); }
.c-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--r-sm); font-size: 10.5px; font-weight: 600; background: rgba(0,0,0,0.4); color: white; backdrop-filter: blur(6px); font-family: 'Plus Jakarta Sans', sans-serif; z-index: 1; }
.c-price { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: var(--r-sm); font-size: 10.5px; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif; }
.c-price.free { background: rgba(255,255,255,0.92); color: #16A34A; }
.c-price.paid { background: rgba(255,255,255,0.92); color: var(--text); }
.c-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.c-creator { display: flex; align-items: center; gap: 8px; margin-top: -20px; }
.c-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; background: #374151; }
.c-creator-name { font-size: 12.5px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 4px; }
.c-creator-name i { font-size: 12px; color: var(--purple); }
.c-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px; font-weight: 700; color: var(--text); line-height: 1.35; }
.c-desc { font-size: 12.5px; color: var(--text2); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--border); margin-top: auto; }
.c-meta { display: flex; align-items: center; gap: 12px; }
.c-meta-item { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.c-meta-item strong { color: var(--text2); font-weight: 600; }
.btn-join { padding: 6px 13px; background: var(--text); color: white; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: 12px; border-radius: var(--r-sm); border: none; cursor: pointer; transition: opacity 0.15s; display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.btn-join:hover { opacity: 0.8; }

/* ── HOW IT WORKS ── */
.how-section { padding: 60px 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.step-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 22px; transition: box-shadow 0.15s; }
.step-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.step-num { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--text); display: flex; align-items: center; justify-content: center; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 16px; color: white; margin-bottom: 14px; }
.step-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14.5px; font-weight: 700; margin-bottom: 7px; }
.step-desc { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* ── FEATURES ── */
.features-section { padding: 60px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 24px; }
.feat-card { background: white; border: 1px solid var(--border); border-radius: var(--r); padding: 20px; transition: box-shadow 0.15s; }
.feat-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.feat-icon { width: 38px; height: 38px; border-radius: var(--r-sm); background: var(--bg2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 17px; margin-bottom: 12px; color: var(--text2); }
.feat-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; }
.feat-desc { font-size: 12.5px; color: var(--text2); line-height: 1.65; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 24px 28px; }
.footer-inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer p { font-size: 12.5px; color: var(--muted); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12.5px; color: var(--muted); transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-designer { font-size: 12px; color: var(--muted); }
.footer-designer span { font-weight: 600; color: var(--text2); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) { .features-grid { grid-template-columns: repeat(2, 1fr); } .cards-grid { grid-template-columns: repeat(2, 1fr); } .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 36px; } .hero-sub { max-width: 100%; } }
@media (max-width: 768px) { .nav-links { display: none; } .hamburger { display: inline-flex; } .btn-login .label, .btn-register .label { display: none; } .btn-login .icon-only, .btn-register .icon-only { display: inline; } .btn-login, .btn-register { padding: 8px 11px; } .hero { padding-left: 20px; padding-right: 20px; } .container { padding: 0 20px; } .cards-grid { grid-template-columns: 1fr; } .steps-grid { grid-template-columns: 1fr; } .features-grid { grid-template-columns: repeat(2, 1fr); } .section-header { flex-direction: column; align-items: flex-start; } footer { padding: 20px; } .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } .hero-actions { flex-direction: column; width: 100%; } .btn-hero { width: 100%; justify-content: center; } .hero-stats { grid-template-columns: repeat(2, 1fr); } }
