:root {
            --background: #101118;
            --foreground: #E0E0E0;
            --muted-foreground: #9E9E9E;
            --accent: #af43cd;
            --accent-foreground: #101118;
            --card: #1C1C22;
            --border: #33333D;
        }

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

        html {
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--background);
            color: var(--foreground);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2.5rem;
            width: 100%;
            max-width: 1280px;
            margin: 0 auto;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            font-size: 1.25rem;
            font-weight: 600;
            text-decoration: none;
            color: var(--foreground);
        }
        
        .logo-image {
            height: 32px;
            width: auto;
        }

        .github-link {
            color: var(--muted-foreground);
            transition: color 0.2s ease-in-out;
        }

        .github-link:hover {
            color: var(--foreground);
        }

        .github-icon {
            width: 24px;
            height: 24px;
        }

        main {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 1rem;
        }

        .hero {
            margin-bottom: 2.5rem;
        }

        .hero h1 {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 700;
            line-height: 1.2;
            margin-bottom: 1rem;
        }

        .hero .accent-text {
            color: var(--accent);
            text-shadow: 0 0 4px var(--accent), 0 0 8px var(--accent);
        }

        .hero p {
            font-size: 1.125rem;
            color: var(--muted-foreground);
            max-width: 700px;
            margin: 0 auto;
        }

        .badges {
            display: flex;
            gap: 1rem;
            justify-content: center;
            margin-top: 1.5rem;
        }

        .badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            background-color: rgba(197, 159, 255, 0.1);
            color: var(--accent);
            border: 1px solid rgba(197, 159, 255, 0.2);
            font-size: 0.875rem;
            font-weight: 500;
        }

        .badge svg {
            width: 16px;
            height: 16px;
        }

        #drop-zone {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 480px;
            min-height: 280px;
            padding: 2rem;
            border: 2px dashed var(--border);
            border-radius: 12px;
            background-color: var(--card);
            cursor: pointer;
            transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
        }

        #drop-zone:hover {
            border-color: var(--accent);
            background-color: rgba(197, 159, 255, 0.05);
        }

        #imageInput {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            cursor: pointer;
        }

        .drop-icon {
            width: 52px;
            height: 52px;
            padding: 12px;
            border-radius: 50%;
            background-color: rgba(197, 159, 255, 0.1);
            color: var(--accent);
            margin-bottom: 1rem;
        }

        #drop-zone h3 {
            font-size: 1.125rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: var(--foreground);
        }

        #drop-zone p {
            font-size: 0.875rem;
            color: var(--muted-foreground);
            margin-bottom: 1rem;
        }

        .privacy-note {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.75rem;
            color: var(--muted-foreground);
        }

        .privacy-note svg {
            width: 12px;
            height: 12px;
        }

        .process-button {
            background-color: var(--accent);
            color: white;
            padding: 0.8rem 2rem;
            border-radius: 8px;
            border: none;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 1.5rem;
            transition: transform 0.2s ease, background-color 0.2s ease;
        }
        .process-button:hover:not(:disabled) {
            transform: translateY(-2px);
        }
        .process-button:disabled {
            background-color: var(--border);
            color: var(--muted-foreground);
            cursor: not-allowed;
            transform: none;
        }

        .status-message {
            margin-top: 1.5rem;
            font-weight: 500;
            color: var(--muted-foreground);
        }

        .image-progress-container {
            margin-top: 1rem;
            width: 100%;
            max-width: 480px;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
            text-align: left;
        }
        
        .download-area {
            margin-top: 1rem;
            padding: 1rem;
            background-color: var(--card);
            border-radius: 8px;
            display: none;
        }

        .download-area a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
        }

        .content-section {
            text-align: left;
            max-width: 700px;
            width: 100%;
            margin: 3rem auto 0;
            padding: 2rem;
            background-color: var(--card);
            border-radius: 12px;
        }
        
        .content-section h2 {
            font-size: 1.75rem;
            margin-bottom: 1.5rem;
            text-align: center;
        }

        .content-section h3 {
            font-size: 1.25rem;
            margin-top: 1.5rem;
            margin-bottom: 0.5rem;
            color: var(--foreground);
        }

        .content-section p, .content-section li {
            color: var(--muted-foreground);
            line-height: 1.6;
        }
        
        .content-section p:not(:last-child) {
            margin-bottom: 1rem;
        }

        .steps-list {
            list-style: none;
            padding-left: 0;
            counter-reset: steps-counter;
        }

        .steps-list li {
            counter-increment: steps-counter;
            margin-bottom: 1rem;
            padding-left: 2.5rem;
            position: relative;
        }

        .steps-list li::before {
            content: counter(steps-counter);
            position: absolute;
            left: 0;
            top: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 50%;
            background-color: var(--accent);
            color: white;
            font-weight: bold;
            font-size: 0.875rem;
        }


        footer {
            padding: 4rem 1rem 2rem;
            text-align: center;
            color: var(--muted-foreground);
            font-size: 0.875rem;
            width: 100%;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 1.5rem;
            flex-wrap: wrap;
            margin-bottom: 1rem;
        }

        .footer-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
            color: var(--muted-foreground);
        }

        .footer-link svg {
            width: 16px;
            height: 16px;
        }

        .image-progress-item {
            background-color: var(--card);
            border: 1px solid var(--border);
            padding: 0.75rem 1rem;
            border-radius: 8px;
            font-size: 0.9rem;
            display: grid;
            grid-template-columns: 1fr auto;
            grid-template-rows: auto auto;
            gap: 0.25rem 1rem;
            align-items: center;
        }
        
        .progress-label {
            grid-column: 1 / 2;
            grid-row: 1 / 2;
            color: var(--foreground);
            font-weight: 500;
        }
        
        .progress-bar {
            grid-column: 1 / 2;
            grid-row: 2 / 3;
            background-color: var(--background);
            height: 8px;
            border-radius: 4px;
            overflow: hidden;
        }
        
        .progress-bar-inner {
            width: 0;
            height: 100%;
            background-color: var(--accent);
            border-radius: 4px;
            transition: width 0.3s ease-in-out;
        }
        
        .progress-percentage {
            grid-column: 2 / 3;
            grid-row: 1 / 3;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--accent);
            justify-self: end;
        }
        