:root {
            /* Graphic Rule: Using an off-white 'Paper' base to reduce eye strain */
            --studio-paper: #fcfcfd;
            --studio-ink: #0a0a0b;
            --studio-glass: rgba(255, 255, 255, 0.75);
            --studio-border: rgba(0, 0, 0, 0.04);
            --studio-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
            --radius-pro: 24px;
        }

        * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }

        body {
            font-family: 'Inter', -apple-system, system-ui, sans-serif;
            background-color: var(--studio-paper);
            color: var(--studio-ink);
            margin: 0; padding: 0;
            padding-bottom: 120px; /* Space for the floating dock */
          overflow-x:hidden;
        }

        /* UI RULE: Progressive Blur Navigation */
        nav {
            padding: 24px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--studio-border);
            background: var(--studio-glass);
            backdrop-filter: blur(20px);
            position: sticky; top: 0; z-index: 1000;
        }

        .logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
        .logo span { opacity: 0.4; font-weight: 400; }

        .wrapper { max-width: 1300px; margin: 0 auto; padding: 40px 24px; }

        /* GRAPHIC RULE: Visual Hierarchy - The Hero Input */
        .hero-card {
            background: white;
            border-radius: var(--radius-pro);
            padding: 48px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            box-shadow: var(--studio-shadow);
            margin-bottom: 64px;
            border: 1px solid white;
        }

        .seed-display { display: flex; align-items: center; gap: 32px; }

        .color-orb {
            width: 96px; height: 96px;
            border-radius: 50%;
            border: 10px solid var(--studio-paper);
            box-shadow: 0 0 0 1px var(--studio-border);
            position: relative;
            transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .color-orb:hover { transform: scale(1.1) rotate(5deg); }

        input[type="color"] {
            position: absolute; opacity: 0;
            width: 100%; height: 100%; cursor: pointer;
        }

        .hex-code { font-size: 3rem; font-weight: 900; margin: 0; letter-spacing: -2px; }

        /* UX RULE: Grid Chunking (10 Categories) */
        .grid-header {
            font-size: 0.8rem; font-weight: 700; color: #888;
            margin-bottom: 24px; letter-spacing: 2px; text-transform: uppercase;
        }

        .system-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 32px;
        }

        .category-group { background: white; border-radius: 20px; padding: 8px; border: 1px solid var(--studio-border); }
        .group-title { padding: 16px; font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--studio-paper); }

        .swatch-item {
            height: 52px; display: flex; align-items: center; justify-content: space-between;
            padding: 0 20px; font-size: 0.75rem; cursor: pointer;
            transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            border-radius: 12px;
        }

        .swatch-item:hover { transform: scale(1.04); z-index: 2; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

        /* GRAPHIC RULE: Dynamic Gradient Section */
        .gradient-mesh {
            display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 64px;
        }

        .mesh-card {
            height: 240px; border-radius: var(--radius-pro);
            display: flex; align-items: flex-end; padding: 32px;
            color: white; font-weight: 700; font-size: 1.5rem;
            transition: 0.4s ease; cursor: pointer;
        }

        /* MOBILE UX: The Floating Interaction Dock */
        .dock {
            position: fixed; bottom: 32px; left: 50%;
            transform: translateX(-50%);
            background: var(--studio-ink);
            padding: 12px 24px;
            border-radius: 100px;
            display: flex; gap: 24px;
            align-items: center;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
            z-index: 2000;
        }

        .dock-btn { color: white; border: none; background: transparent; cursor: pointer; font-size: 0.8rem; font-weight: 600; }

        @media (max-width: 768px) {
            .hero-card { flex-direction: column; text-align: center; gap: 24px; padding: 32px; }
            .hex-code { font-size: 2.2rem; }
            .gradient-mesh { grid-template-columns: 1fr; }
        }

        #toast {
            position: fixed; top: 100px; left: 50%; transform: translateX(-50%) translateY(-100px);
            background: var(--studio-ink); color: white; padding: 12px 24px;
            border-radius: 12px; font-size: 0.9rem; transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
        }

footer{
  width:100vw;
  padding:10px;
  background-color: #d4d4d4 ;
  text-align:center;
  }
