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

        :root {
            --white: #ffffff;
            --bg: #fafafa;
            --text: #1a1a2e;
            --text-secondary: #555566;
            --accent: #2c3e6b;
            --accent-light: #3d5a99;
            --accent-vivid: #4a72c4;
            --border: #e8e8ee;
            --card-bg: #ffffff;
            --card-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
            --card-shadow-hover: 0 2px 8px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
            --radius: 8px;
            --radius-lg: 12px;
            --max-width: 1080px;

            /* Tier colors */
            --tier-member: #6b7fa3;
            --tier-pro: #2c7a4b;
            --tier-elite: #8b5a00;
            --tier-founder: #5b1fa8;

            /* Category accent colors */
            --cat-business: #1e5799;
            --cat-creative: #7b2d8b;
            --cat-community: #1a7a4a;
            --cat-lifestyle: #a0430a;
            --cat-legal: #374151;
        }

        html { scroll-behavior: smooth; }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            color: var(--text);
            background: var(--bg);
            line-height: 1.7;
            font-size: 16px;
            -webkit-font-smoothing: antialiased;
        }

        /* ---- Header ---- */
        header {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 100;
            background: rgba(255,255,255,0.95);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid var(--border);
        }

        .header-inner {
            max-width: var(--max-width);
            margin: 0 auto;
            padding: 0 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 64px;
        }

        .logo {
            font-size: 1.1rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            color: var(--text);
            text-decoration: none;
        }

        .logo span {
            color: var(--accent-vivid);
            font-weight: 400;
            font-size: 0.9em;
            letter-spacing: 0.08em;
            margin-left: 0.4em;
        }

        nav {
            display: flex;
            gap: 2rem;
            align-items: center;
        }

        nav a {
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-secondary);
            text-decoration: none;
            letter-spacing: 0.03em;
            transition: color 0.2s;
        }

        nav a:hover { color: var(--text); }

        .nav-cta {
            background: var(--accent);
            color: var(--white) !important;
            padding: 0.45rem 1.1rem;
            border-radius: var(--radius);
            font-size: 0.82rem !important;
            font-weight: 600 !important;
            letter-spacing: 0.04em;
            transition: background 0.2s !important;
        }
        .nav-cta:hover { background: var(--accent-light) !important; color: var(--white) !important; }

        /* ---- Hero ---- */
        .hero {
            padding: 9rem 2rem 5.5rem;
            text-align: center;
            background: var(--white);
            border-bottom: 1px solid var(--border);
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--accent-vivid);
            background: rgba(74,114,196,0.08);
            border: 1px solid rgba(74,114,196,0.18);
            padding: 0.3rem 0.9rem;
            border-radius: 100px;
            margin-bottom: 1.75rem;
        }

        .hero h1 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.025em;
            line-height: 1.12;
            margin-bottom: 1.25rem;
        }

        .hero h1 em {
            font-style: normal;
            color: var(--accent-vivid);
        }

        .hero p {
            font-size: 1.15rem;
            color: var(--text-secondary);
            max-width: 560px;
            margin: 0 auto 2.5rem;
            font-weight: 400;
            line-height: 1.7;
        }

        .hero-actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            padding: 0.75rem 1.75rem;
            border-radius: var(--radius);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            letter-spacing: 0.02em;
            transition: all 0.2s;
            cursor: pointer;
            border: none;
        }

        .btn-primary {
            background: var(--accent);
            color: var(--white);
        }
        .btn-primary:hover {
            background: var(--accent-light);
            transform: translateY(-1px);
            box-shadow: 0 4px 16px rgba(44,62,107,0.22);
        }

        .btn-secondary {
            background: transparent;
            color: var(--accent);
            border: 1.5px solid var(--accent);
        }
        .btn-secondary:hover {
            background: rgba(44,62,107,0.05);
            transform: translateY(-1px);
        }

        .hero-stats {
            display: flex;
            gap: 2.5rem;
            justify-content: center;
            margin-top: 3.5rem;
            padding-top: 2.5rem;
            border-top: 1px solid var(--border);
            flex-wrap: wrap;
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.02em;
            line-height: 1;
        }

        .hero-stat-label {
            font-size: 0.78rem;
            color: var(--text-secondary);
            font-weight: 500;
            letter-spacing: 0.05em;
            margin-top: 0.35rem;
            text-transform: uppercase;
        }

        /* ---- Logged-in Banner ---- */
        .user-banner {
            background: linear-gradient(135deg, #1e3a6e 0%, #2c5aa0 100%);
            color: var(--white);
            padding: 1.5rem 2rem;
            display: none; /* shown via JS when logged in */
        }

        .user-banner.visible { display: block; }

        .user-banner-inner {
            max-width: var(--max-width);
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            flex-wrap: wrap;
        }

        .user-banner-left {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .user-avatar {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1.1rem;
            color: var(--white);
            flex-shrink: 0;
        }

        .user-greeting { font-size: 1rem; font-weight: 500; }
        .user-tier-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            background: rgba(255,255,255,0.18);
            padding: 0.2rem 0.65rem;
            border-radius: 100px;
            margin-left: 0.5rem;
        }

        .user-credits {
            font-size: 0.85rem;
            color: rgba(255,255,255,0.75);
            margin-top: 0.15rem;
        }

        .user-credits strong {
            color: #ffd580;
            font-weight: 700;
        }

        /* ---- Sections ---- */
        section { padding: 5rem 2rem; }

        .section-inner {
            max-width: var(--max-width);
            margin: 0 auto;
        }

        .section-label {
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.18em;
            text-transform: uppercase;
            color: var(--accent-vivid);
            margin-bottom: 0.85rem;
        }

        .section-title {
            font-size: clamp(1.5rem, 3vw, 2rem);
            font-weight: 700;
            color: var(--text);
            letter-spacing: -0.015em;
            line-height: 1.25;
            margin-bottom: 0.75rem;
        }

        .section-subtitle {
            font-size: 1.05rem;
            color: var(--text-secondary);
            max-width: 520px;
            line-height: 1.65;
        }

        /* ---- How It Works ---- */
        .how-section {
            background: var(--white);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .how-header {
            text-align: center;
            margin-bottom: 3.5rem;
        }

        .how-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        @media (max-width: 720px) {
            .how-grid { grid-template-columns: 1fr; gap: 1.5rem; }
        }

        .how-step {
            text-align: center;
            padding: 2rem 1.5rem;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            background: var(--bg);
            position: relative;
        }

        .how-step-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: var(--accent);
            color: var(--white);
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 1.25rem;
        }

        .how-step h3 {
            font-size: 1.05rem;
            font-weight: 600;
            color: var(--text);
            margin-bottom: 0.6rem;
            letter-spacing: -0.01em;
        }

        .how-step p {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.65;
        }

        .how-connector {
            display: none;
        }

        @media (min-width: 721px) {
            .how-grid {
                position: relative;
            }
            .how-grid::before, .how-grid::after {
                content: '';
                position: absolute;
                top: 58px;
                width: calc(33.33% - 3rem);
                height: 1px;
                background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
                opacity: 0.25;
            }
            .how-grid::before { left: calc(33.33% + 1rem); }
            .how-grid::after {
                left: calc(66.66% + 1rem);
                background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
            }
        }

        /* ---- Sites Grid ---- */
        .sites-section { background: var(--bg); }

        .category-group { margin-bottom: 3rem; }

        .category-label {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 0.72rem;
            font-weight: 700;
            letter-spacing: 0.16em;
            text-transform: uppercase;
            color: var(--text-secondary);
            margin-bottom: 1.25rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        .category-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            flex-shrink: 0;
        }

        .sites-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 1rem;
        }

        .site-card {
            background: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: var(--radius-lg);
            padding: 1.35rem 1.25rem;
            display: flex;
            flex-direction: column;
            gap: 0.85rem;
            transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
            text-decoration: none;
            color: inherit;
        }

        .site-card:hover {
            box-shadow: var(--card-shadow-hover);
            transform: translateY(-2px);
            border-color: rgba(74,114,196,0.25);
        }

        .site-card.visited {
            border-color: rgba(74,114,196,0.3);
            background: linear-gradient(135deg, #ffffff 0%, rgba(74,114,196,0.03) 100%);
        }

        .site-card-top {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .site-icon {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            flex-shrink: 0;
            font-style: normal;
        }

        .site-name {
            font-size: 0.92rem;
            font-weight: 600;
            color: var(--text);
            letter-spacing: -0.01em;
            line-height: 1.2;
        }

        .site-domain {
            font-size: 0.75rem;
            color: var(--text-secondary);
            font-weight: 400;
            margin-top: 0.1rem;
        }

        .site-desc {
            font-size: 0.82rem;
            color: var(--text-secondary);
            line-height: 1.55;
            flex: 1;
        }

        .site-card-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .visited-badge {
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            color: var(--accent-vivid);
            opacity: 0;
            transition: opacity 0.2s;
        }

        .site-card.visited .visited-badge { opacity: 1; }

        .site-visit-btn {
            font-size: 0.78rem;
            font-weight: 600;
            color: var(--accent);
            text-decoration: none;
            padding: 0.3rem 0.75rem;
            border: 1px solid rgba(44,62,107,0.2);
            border-radius: 6px;
            transition: all 0.2s;
            background: transparent;
            cursor: pointer;
        }

        .site-visit-btn:hover {
            background: var(--accent);
            color: var(--white);
            border-color: var(--accent);
        }

        /* ---- Rewards ---- */
        .rewards-section {
            background: var(--white);
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .rewards-layout {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: start;
        }

        @media (max-width: 768px) {
            .rewards-layout { grid-template-columns: 1fr; gap: 2.5rem; }
        }

        /* Tier ladder */
        .tier-ladder { display: flex; flex-direction: column; gap: 1rem; }

        .tier-row {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.1rem 1.25rem;
            border-radius: var(--radius-lg);
            border: 1px solid var(--border);
            background: var(--bg);
            transition: box-shadow 0.2s;
        }

        .tier-row.active {
            border-color: rgba(74,114,196,0.35);
            background: linear-gradient(135deg, #ffffff 0%, rgba(74,114,196,0.04) 100%);
            box-shadow: 0 2px 12px rgba(74,114,196,0.08);
        }

        .tier-icon {
            width: 38px;
            height: 38px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }

        .tier-info { flex: 1; }

        .tier-name {
            font-size: 0.9rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            margin-bottom: 0.2rem;
        }

        .tier-req {
            font-size: 0.77rem;
            color: var(--text-secondary);
            margin-bottom: 0.45rem;
        }

        .tier-perks {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }

        .tier-perks li {
            font-size: 0.78rem;
            color: var(--text-secondary);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }

        .tier-perks li::before {
            content: '';
            width: 5px;
            height: 5px;
            border-radius: 50%;
            background: currentColor;
            flex-shrink: 0;
            opacity: 0.4;
        }

        /* Logged-in rewards panel */
        .rewards-user-panel { display: none; }
        .rewards-user-panel.visible { display: block; }
        .rewards-anon-panel { display: block; }
        .rewards-anon-panel.hidden { display: none; }

        .credit-display {
            background: linear-gradient(135deg, #1e3a6e 0%, #2c5aa0 100%);
            border-radius: var(--radius-lg);
            padding: 2rem;
            color: var(--white);
            margin-bottom: 1.5rem;
        }

        .credit-label {
            font-size: 0.72rem;
            font-weight: 600;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            opacity: 0.7;
            margin-bottom: 0.5rem;
        }

        .credit-amount {
            font-size: 3rem;
            font-weight: 700;
            letter-spacing: -0.03em;
            line-height: 1;
            margin-bottom: 0.25rem;
        }

        .credit-unit {
            font-size: 1rem;
            font-weight: 400;
            opacity: 0.6;
        }

        .credit-tier-line {
            font-size: 0.85rem;
            opacity: 0.75;
            margin-top: 0.35rem;
        }

        .progress-section { margin-bottom: 1.5rem; }

        .progress-label {
            display: flex;
            justify-content: space-between;
            font-size: 0.8rem;
            color: var(--text-secondary);
            margin-bottom: 0.5rem;
            font-weight: 500;
        }

        .progress-bar {
            height: 8px;
            background: var(--border);
            border-radius: 100px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent) 0%, var(--accent-vivid) 100%);
            border-radius: 100px;
            transition: width 0.8s ease;
        }

        .activity-list { display: flex; flex-direction: column; gap: 0.6rem; }

        .activity-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem 1rem;
            background: var(--bg);
            border-radius: var(--radius);
            border: 1px solid var(--border);
        }

        .activity-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
        }

        .activity-text {
            flex: 1;
            font-size: 0.82rem;
            color: var(--text);
        }

        .activity-credits {
            font-size: 0.82rem;
            font-weight: 700;
            color: #2c7a4b;
        }

        /* ---- Footer ---- */
        footer {
            background: var(--text);
            color: rgba(255,255,255,0.65);
            padding: 3rem 2rem;
        }

        .footer-inner {
            max-width: var(--max-width);
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 3rem;
            align-items: start;
        }

        @media (max-width: 600px) {
            .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
        }

        .footer-logo {
            font-size: 1rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            color: var(--white);
            margin-bottom: 0.5rem;
        }

        .footer-tagline {
            font-size: 0.82rem;
            margin-bottom: 1rem;
            line-height: 1.55;
        }

        .footer-contact {
            font-size: 0.82rem;
            display: flex;
            flex-direction: column;
            gap: 0.25rem;
        }

        .footer-contact a {
            color: rgba(255,255,255,0.55);
            text-decoration: none;
            transition: color 0.2s;
        }

        .footer-contact a:hover { color: var(--white); }

        .footer-links {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            align-items: flex-end;
        }

        @media (max-width: 600px) {
            .footer-links { align-items: flex-start; }
        }

        .footer-links a {
            font-size: 0.8rem;
            color: rgba(255,255,255,0.5);
            text-decoration: none;
            transition: color 0.2s;
            letter-spacing: 0.03em;
        }

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

        .footer-bottom {
            max-width: var(--max-width);
            margin: 2rem auto 0;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(255,255,255,0.08);
            font-size: 0.75rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.75rem;
        }

        .footer-bottom span { opacity: 0.4; }

        .lucide { width: 1em; height: 1em; vertical-align: -0.125em; }

        .dmca-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.7rem;
            color: rgba(255,255,255,0.35);
            border: 1px solid rgba(255,255,255,0.12);
            padding: 0.2rem 0.6rem;
            border-radius: 4px;
        }

        /* ---- Mobile nav ---- */
        .mobile-menu-toggle {
            display: none;
            flex-direction: column;
            gap: 4px;
            padding: 6px;
            cursor: pointer;
            border: none;
            background: none;
        }

        .mobile-menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--text);
            border-radius: 2px;
            transition: all 0.2s;
        }

        @media (max-width: 640px) {
            .mobile-menu-toggle { display: flex; }
            nav { display: none; }
            nav.open {
                display: flex;
                flex-direction: column;
                position: fixed;
                top: 64px; left: 0; right: 0;
                background: var(--white);
                border-bottom: 1px solid var(--border);
                padding: 1.5rem 2rem;
                gap: 1.25rem;
            }
        }
