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

        /* ─── DARK (default) ─── */
        :root,
        [data-theme="dark"] {
            --bg:        #0b0c15;
            --surface:   #121323;
            --surface2:  #181a41;
            --border:    rgba(255,255,255,.08);
            --text:      #f0f0f5;
            --muted:     #888;
            --nav-bg:    rgba(18,19,35,.88);
            --primary:      #46a8d0;
            --primary-dark: #318cb2;
            --green:     #10b981;
        }

        /* ─── LIGHT ─── */
        [data-theme="light"] {
            --bg:        #f5f7fa;
            --surface:   #ffffff;
            --surface2:  #e2e8f0;
            --border:    rgba(0,0,0,.09);
            --text:      #181a41;
            --muted:     #666;
            --nav-bg:    rgba(245,247,250,.88);
            --primary:      #46a8d0;
            --primary-dark: #318cb2;
            --green:     #059669;
        }

        html { scroll-behavior: smooth; }
        body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; min-height: 100vh; transition: background .25s, color .25s; }

        a { text-decoration: none; }

        /* ─── NAV ─── */
        .nav {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.1rem 2rem;
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            background: var(--nav-bg);
            backdrop-filter: blur(14px);
            z-index: 100;
            transition: background .25s;
        }
        .nav-logo {
            display: flex;
            align-items: center;
            gap: .6rem;
            font-weight: 900;
            font-size: 1.15rem;
            color: var(--text);
        }
        .nav-logo img {
            height: 36px;
            width: auto;
        }
        .nav-badge {
            font-size: .65rem;
            font-weight: 800;
            background: var(--primary);
            color: #fff;
            padding: .15rem .5rem;
            border-radius: 2rem;
            letter-spacing: .04em;
            text-transform: uppercase;
        }
        .nav-links { display: flex; gap: 1.75rem; }
        .nav-links a { color: var(--muted); font-size: .88rem; font-weight: 600; transition: color .2s; }
        .nav-links a:hover { color: var(--text); }

        @media (max-width:640px) {
            .nav-links { display: none; }
            .nav { padding: 1rem 1.25rem; }
        }

        /* ─── HERO ─── */
        .hero {
            text-align: center;
            padding: 5rem 1.5rem 3.5rem;
            position: relative;
            overflow: hidden;
        }
        .hero::before {
            content: '';
            position: absolute;
            top: -40%;
            left: 50%;
            transform: translateX(-50%);
            width: 700px;
            height: 700px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(70,168,208,.18) 0%, transparent 70%);
            pointer-events: none;
        }

        .hero-eyebrow {
            display: inline-flex;
            align-items: center;
            gap: .45rem;
            border: 1px solid rgba(70,168,208,.35);
            background: rgba(70,168,208,.1);
            border-radius: 2rem;
            padding: .38rem 1.1rem;
            font-size: .75rem;
            font-weight: 700;
            color: var(--primary);
            text-transform: uppercase;
            letter-spacing: .07em;
            margin-bottom: 1.5rem;
        }

        .hero h1 {
            font-size: clamp(2.2rem, 5.5vw, 3.75rem);
            font-weight: 900;
            line-height: 1.12;
            margin-bottom: 1.1rem;
            letter-spacing: -.02em;
        }
        .hero h1 em {
            font-style: normal;
            background: linear-gradient(135deg, var(--primary) 0%, #181a41 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        [data-theme="dark"] .hero h1 em {
            background: linear-gradient(135deg, var(--primary) 0%, #a2d2e8 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-sub {
            font-size: 1.05rem;
            color: var(--muted);
            max-width: 560px;
            margin: 0 auto 2.5rem;
            line-height: 1.75;
        }

        .hero-stats {
            display: flex;
            gap: 2.5rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        .hs { text-align: center; }
        .hs-num { font-size: 1.8rem; font-weight: 900; color: var(--primary); line-height: 1; }
        .hs-lbl { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: .2rem; }

        /* ─── FILTER ─── */
        .filter-row {
            display: flex;
            gap: .55rem;
            flex-wrap: wrap;
            justify-content: center;
            padding: 1.25rem 1rem 0;
        }
        .filter-btn {
            padding: .42rem 1.1rem;
            border-radius: 2rem;
            border: 1.5px solid var(--border);
            background: transparent;
            color: var(--muted);
            font-size: .82rem;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            transition: all .2s;
        }
        .filter-btn:hover,
        .filter-btn.active {
            background: var(--primary);
            border-color: var(--primary);
            color: #fff;
        }

        /* ─── GRID ─── */
        .grid-wrap {
            max-width: 1200px;
            margin: 2.5rem auto 5rem;
            padding: 0 1.5rem;
        }
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
            gap: 1.4rem;
        }

        /* ─── CARD ─── */
        .tool-card {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 1.2rem;
            padding: 1.6rem;
            display: flex;
            flex-direction: column;
            gap: .9rem;
            position: relative;
            overflow: hidden;
            transition: transform .25s, box-shadow .25s, border-color .25s;
        }
        .tool-card.active-card {
            cursor: pointer;
        }
        .tool-card.active-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 18px 45px rgba(0,0,0,.35);
            border-color: var(--card-accent, var(--primary));
        }
        .tool-card.active-card::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 2px;
            background: var(--card-accent, var(--primary));
            opacity: 0;
            transition: opacity .25s;
        }
        .tool-card.active-card:hover::after { opacity: 1; }

        /* coming soon overlay */
        .tool-card.coming {
            opacity: .55;
            filter: grayscale(.4);
        }
        .cs-ribbon {
            display: inline-flex;
            align-items: center;
            gap: .35rem;
            font-size: .68rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .06em;
            border-radius: 2rem;
            padding: .22rem .7rem;
            background: rgba(255,255,255,.06);
            color: var(--muted);
            border: 1px solid var(--border);
            white-space: nowrap;
        }

        .card-top {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: .5rem;
        }
        .card-icon {
            width: 50px;
            height: 50px;
            border-radius: .85rem;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.3rem;
            flex-shrink: 0;
            background: var(--icon-bg, rgba(70,168,208,.15));
            color: var(--card-accent, var(--primary));
        }
        .card-badge {
            padding: .2rem .65rem;
            border-radius: 2rem;
            font-size: .68rem;
            font-weight: 800;
            letter-spacing: .04em;
            text-transform: uppercase;
            white-space: nowrap;
            color: var(--card-accent);
            background: var(--badge-bg, rgba(70,168,208,.15));
            border: 1.5px solid var(--card-accent);
        }
        .card-title {
            font-size: 1.1rem;
            font-weight: 800;
            line-height: 1.3;
            color: var(--text);
        }
        .card-desc {
            font-size: .86rem;
            color: var(--muted);
            line-height: 1.65;
            flex: 1;
        }
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: .4rem;
        }
        .tag {
            font-size: .7rem;
            font-weight: 600;
            padding: .16rem .52rem;
            border-radius: 1rem;
            background: rgba(70,168,208,.1);
            color: var(--primary);
            border: 1px solid rgba(70,168,208,.2);
        }
        .card-cta {
            display: flex;
            align-items: center;
            gap: .4rem;
            font-size: .84rem;
            font-weight: 700;
            color: var(--card-accent, var(--primary));
            margin-top: .1rem;
        }
        .tool-card.active-card:hover .card-cta { text-decoration: underline; }
        .card.hidden { display: none; }

        /* ─── FOOTER ─── */
        .foot {
            border-top: 1px solid var(--border);
            padding: 3.5rem 2rem 0;
            color: var(--muted);
            font-size: .85rem;
        }
        .foot-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            gap: 3rem;
            flex-wrap: wrap;
            justify-content: space-between;
            padding-bottom: 3rem;
        }
        .foot-brand {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            max-width: 240px;
        }
        .foot-logo { display: inline-flex; }
        .foot-tagline {
            color: var(--muted);
            font-size: .84rem;
            line-height: 1.7;
        }
        .foot-cols {
            display: flex;
            gap: 3rem;
            flex-wrap: wrap;
        }
        .foot-col {
            display: flex;
            flex-direction: column;
            gap: .65rem;
            min-width: 120px;
        }
        .foot-col h4 {
            font-size: .72rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: .08em;
            color: var(--text);
            margin-bottom: .2rem;
        }
        .foot-col a {
            color: var(--muted);
            font-size: .84rem;
            transition: color .2s;
        }
        .foot-col a:hover { color: var(--primary); }
        .foot-bottom {
            max-width: 1100px;
            margin: 0 auto;
            padding: 1.25rem 0 2rem;
            border-top: 1px solid var(--border);
            text-align: center;
            font-size: .8rem;
        }
        .foot-bottom a { color: var(--primary); }
        @media(max-width:640px) {
            .foot-inner { flex-direction: column; gap: 2rem; }
            .foot-brand { max-width: 100%; }
        }

        /* ─── Theme Toggle ─── */
        .theme-toggle {
            background: var(--surface2);
            border: 1px solid var(--border);
            color: var(--text);
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: .95rem;
            transition: background .2s, border-color .2s, transform .2s;
            flex-shrink: 0;
        }
        .theme-toggle:hover {
            border-color: var(--primary);
            transform: rotate(20deg);
        }

        @media(max-width:500px) {
            .tools-grid { grid-template-columns: 1fr; }
            .hero { padding: 3.5rem 1rem 2.5rem; }
        }
