:root {
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.8);
    --accent-primary: #06b6d4;
    --accent-secondary: #3b82f6;
    --accent-glow: rgba(6, 182, 212, 0.4);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border-glass: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --success: #10b981;
    --error: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: radial-gradient(circle at 50% 50%, #0f172a 0%, #020617 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s infinite alternate;
}

.orb-1 {
    top: -10%;
    right: -5%;
}

.orb-2 {
    bottom: -10%;
    left: -5%;
    animation-delay: -5s;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-50px, 50px) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

/* Hero Section */
.hero-section {
    transition: all 0.5s ease;
}

.logo-area {
    margin-bottom: 4rem;
}

.logo-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px var(--accent-glow));
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -2px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    padding: 0.3rem 0.8rem;
    border-radius: 99px;
    vertical-align: middle;
    margin-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    -webkit-text-fill-color: white;
    font-weight: 700;
    box-shadow: 0 0 20px var(--accent-glow);
}

.logo-area p {
    color: var(--text-dim);
    font-size: 1.4rem;
    font-weight: 300;
}

/* Input Group */
.clone-input-wrapper {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clone-input-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.1);
}

.input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.2);
}

.input-icon {
    color: var(--text-secondary);
    font-size: 1.2rem;
    padding: 0 1rem;
}

input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 1rem 0;
    outline: none;
    min-width: 0;
}

.action-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px -5px var(--accent-glow);
}

.action-btn:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 15px 30px -5px var(--accent-glow);
    filter: brightness(1.1);
}

.input-icon {
    color: var(--accent-primary);
    font-size: 1.4rem;
    padding: 0 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

input[type="url"] {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    padding: 1.2rem 0;
    outline: none;
    min-width: 0;
    font-weight: 400;
}

input[type="url"]::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.features-pill {
    display: flex;
    justify-content: center;
    gap: 3rem;
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: 1rem;
}

.features-pill span {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.3s ease;
}

.features-pill span:hover {
    color: var(--text-main);
}

.features-pill i {
    color: var(--accent-primary);
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

/* Loading Section */
.loading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.loader-circle {
    position: relative;
    width: 150px;
    height: 150px;
    margin-bottom: 2rem;
}

svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.bg {
    stroke: var(--card-bg);
}

.fg {
    stroke: var(--accent-color);
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.loader-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--text-secondary);
}

.terminal-log {
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 1rem;
    width: 100%;
    max-width: 500px;
    font-family: 'Consolas', monospace;
    text-align: left;
    height: 150px;
    overflow-y: auto;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.log-line {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

/* Result Section */
.result-section {
    animation: slideUp 0.5s ease;
}

.success-header {
    margin-bottom: 2rem;
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #10b981;
    font-size: 3rem;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.verification-container {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.comparison-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-wrapper {
    position: relative;
    width: 250px;
    height: 150px;
    /* fixed aspect ratio roughly */
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-color);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* or contain */
    opacity: 0.8;
}

.img-label {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.lg-accent {
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}

.vs-badge {
    background: var(--bg-darker);
    padding: 0.5rem;
    border-radius: 50%;
    font-weight: bold;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

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

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-secondary);
    margin-top: 2rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 600px) {
    .comparison-card {
        flex-direction: column;
    }

    .image-wrapper {
        width: 100%;
    }

    .actions-grid {
        flex-direction: column;
    }
}