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

        :root {
            --teal: #00D4AA;
            --teal-dark: #00b892;
            --near-black: #222222;
            --white: #ffffff;
            --off-white: #F5F5F2;
            --gray: #888888;
            --border: #e0e0db;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'DM Sans', sans-serif;
            background: var(--off-white);
            color: var(--near-black);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ---- HEADER ---- */
        .site-header {
            background: var(--near-black);
            padding: 28px 24px 32px;
        }
        
        .header-inner {
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .header-flex {
          display: flex;
          align-items: flex-end;
          justify-content: space-between;
          gap: 16px;
          flex-wrap: wrap;
        }
        
        /* Back link */
        .back-link {
          display: inline-flex;
          align-items: center;
          gap: 6px;
          font-size: 0.9rem;
          font-weight: 500;
          color: #cccccc;
          text-decoration: none;
          transition: color 0.15s ease, transform 0.1s ease;
        }
        
        .back-link:hover {
          color: var(--teal);
          transform: translateX(-2px);
        }
        
        /* Arrow */
        .back-arrow {
          font-size: 1rem;
          line-height: 1;
        }
        
        /* Divider line */
        .header-divider {
          margin-top: 20px;
          height: 1px;
          width: 100%;
          background: rgba(255,255,255,0.08);
        }
        
        /* Title + logo inline and bottom-aligned */
        .header-title {
            font-family: 'Oswald', sans-serif;
            font-size: clamp(2.2rem, 5vw, 3.2rem);
            font-weight: 700;
            color: var(--white);
            letter-spacing: 0.01em;
            line-height: 1.1;
            margin-bottom: 10px;
        
            display: flex;
            align-items: flex-end; /* 🔥 THIS fixes your alignment */
            gap: 8px;
        }
        
        /* Logo wrapper */
        .header-logo {
            display: flex;
            align-items: flex-end;
        }
        
        /* Logo image */
        .header-logo img {
            height: 51px;
            width: auto;
            display: block; /* removes inline spacing issues */
        }
        
        /* "Labs" styling */
        .header-title span {
            color: var(--teal);
        }
        
        /* Tagline */
        .header-tagline {
            font-size: 1.05rem;
            color: #aaaaaa;
            font-weight: 400;
        }

        /* ---- CONTROLS ---- */
        .controls-bar {
            background: var(--white);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        }

        .controls-inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            flex-wrap: wrap;
            min-height: 60px;
        }

        .filter-tabs {
            display: flex;
            gap: 4px;
            flex-wrap: wrap;
            padding: 10px 0;
        }

        .filter-tab {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 6px 16px;
            border: 1.5px solid var(--border);
            border-radius: 100px;
            background: transparent;
            color: var(--near-black);
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
        }

        .filter-tab:hover {
            border-color: var(--teal);
            color: var(--teal);
        }

        .filter-tab.active {
            background: var(--teal);
            border-color: var(--teal);
            color: var(--near-black);
            font-weight: 600;
        }

        .sort-btn {
            font-family: 'DM Sans', sans-serif;
            font-size: 0.875rem;
            font-weight: 500;
            padding: 6px 16px;
            border: 1.5px solid var(--border);
            border-radius: 100px;
            background: transparent;
            color: var(--near-black);
            cursor: pointer;
            transition: all 0.15s ease;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .sort-btn:hover {
            border-color: var(--near-black);
        }

        .sort-btn.active {
            border-color: var(--near-black);
            background: var(--near-black);
            color: var(--white);
        }

        .sort-icon {
            font-size: 0.75rem;
            letter-spacing: -0.02em;
        }

        /* ---- MAIN ---- */
        main {
            flex: 1;
            max-width: 1200px;
            margin: 0 auto;
            width: 100%;
            padding: 40px 24px 60px;
        }

        .tool-count {
            font-size: 0.875rem;
            color: var(--gray);
            margin-bottom: 24px;
        }

        /* ---- GRID ---- */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 24px;
        }

        /* ---- CARD ---- */
        .tool-card {
            background: var(--white);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 1px 4px rgba(0,0,0,0.07);
            display: flex;
            flex-direction: column;
            transition: transform 0.18s ease, box-shadow 0.18s ease;
        }

        .tool-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 24px rgba(0,0,0,0.11);
        }

        .card-image-wrap {
            position: relative;
            height: 200px;
            overflow: hidden;
            background: linear-gradient(135deg, #1a4a42 0%, var(--near-black) 100%);
        }

        .card-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
        }

        .tool-card:hover .card-image {
            transform: scale(1.03);
        }

        .card-image-fallback {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, #0f3d35 0%, var(--near-black) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .card-image-fallback svg {
            opacity: 0.15;
            width: 80px;
            height: 80px;
        }

        /* Status badge */
        .status-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 100px;
            line-height: 1;
        }

        .badge-new {
            background: var(--teal);
            color: var(--near-black);
        }

        .badge-beta {
            background: #f59e0b;
            color: var(--white);
        }

        .badge-updated {
            background: #3b82f6;
            color: var(--white);
        }

        .badge-coming-soon {
            background: rgba(255,255,255,0.15);
            color: var(--white);
            border: 1px solid rgba(255,255,255,0.3);
        }
        
        .status-badge {
            position: absolute;
            top: 12px;
            left: 12px;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            padding: 4px 10px;
            border-radius: 100px;
            line-height: 1;
            display: inline-flex;
            align-items: flex-start;
            gap: 2px;
        }
        
        .status-label {
            display: inline-block;
        }
        
        .status-icon {
          display: inline-flex;
          width: 9px;
          height: 9px;
          margin-left: -1px;
          transform: translateY(-3px);
          flex-shrink: 0;
        }
        
        .status-icon svg {
          width: 150%;
          height: 150%;
          display: block;
        }
        /* Card body */
        .card-body {
            padding: 20px 22px;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .card-category {
            display: inline-block;
            font-size: 0.7rem;
            font-weight: 600;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--teal-dark);
            margin-bottom: 8px;
        }

        .card-name {
            font-family: 'Oswald', sans-serif;
            font-size: 1.3rem;
            font-weight: 600;
            color: var(--near-black);
            line-height: 1.2;
            margin-bottom: 10px;
        }

        .card-description {
            font-size: 0.9rem;
            line-height: 1.6;
            color: #555555;
            flex: 1;
            margin-bottom: 18px;
        }

        .card-meta {
            font-size: 0.75rem;
            color: var(--gray);
            margin-bottom: 16px;
            display: flex;
            gap: 12px;
        }

        .card-meta span::before {
            content: '';
        }

        /* Launch button */
        .card-footer {
            border-top: 1px solid var(--off-white);
            padding: 14px 22px;
        }

        .launch-btn {
            display: block;
            width: 100%;
            font-family: 'DM Sans', sans-serif;
            font-size: 0.9rem;
            font-weight: 600;
            text-align: center;
            padding: 11px 20px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            text-decoration: none;
            transition: background 0.15s ease, transform 0.1s ease;
            letter-spacing: 0.01em;
        }

        .launch-btn-active {
            background: var(--teal);
            color: var(--near-black);
        }

        .launch-btn-active:hover {
            background: var(--teal-dark);
            transform: translateY(-1px);
        }

        .launch-btn-soon {
            background: var(--off-white);
            color: var(--gray);
            cursor: default;
        }

        /* ---- EMPTY STATE ---- */
        .empty-state {
            text-align: center;
            padding: 80px 24px;
            color: var(--gray);
        }

        .empty-state p {
            font-size: 1rem;
        }

        /* ---- FOOTER ---- */
        .site-footer {
            background: var(--near-black);
            color: #aaaaaa;
            padding: 40px 24px;
        }

        .footer-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
        }

        .footer-logo img {
            height: 28px;
            width: auto;
            opacity: 0.9;
        }

        .footer-contact {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 24px;
            font-size: 0.9rem;
        }

        .footer-contact a {
            color: #aaaaaa;
            text-decoration: none;
            transition: color 0.15s ease;
        }

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

        .footer-divider {
            width: 100%;
            height: 1px;
            background: rgba(255,255,255,0.08);
        }

        .footer-copy {
            font-size: 0.8rem;
            color: #666666;
        }

        /* ---- RESPONSIVE ---- */
        @media (max-width: 640px) {
            .controls-inner {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
                padding: 8px 16px;
            }

            main {
                padding: 24px 16px 48px;
            }

            .tools-grid {
                grid-template-columns: 1fr;
            }

            .site-header {
                padding: 24px 16px 28px;
            }

            .footer-inner {
                padding: 0;
            }
        }

        @media (max-width: 900px) {
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }
