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

:root {
    --accent: #8b7fc7;
    --accent-light: #e8e4f0;
    --accent-dark: #6b5fa7;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #fafafa;
    --white: #ffffff;
    --border: #e8e4f0;
    --shadow: 0 4px 24px rgba(139, 127, 199, 0.12);
    --shadow-lg: 0 8px 40px rgba(139, 127, 199, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background blobs */
.page {
    position: relative;
    min-height: 100vh;
}

.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: #a78bfa;
    bottom: 100px;
    left: -80px;
    animation: float2 25s ease-in-out infinite;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #7c3aed;
    top: 50%;
    right: 20%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 60px) scale(1.1); }
    66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(60px, -40px) scale(1.15); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, 30px) scale(1.05); }
    66% { transform: translate(-20px, -50px) scale(0.9); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 0 32px;
    animation: fadeInUp 0.6s ease-out;
}

.emoji-icon {
    font-size: 56px;
    margin-bottom: 16px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.7;
}

/* QR Section */
.qr-section {
    animation: fadeInUp 0.6s ease-out 0.15s both;
}

.qr-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.qr-card:hover {
    box-shadow: var(--shadow-lg);
}

.qr-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
}

.qr-icon {
    font-size: 24px;
}

.qr-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.qr-container {
    display: inline-block;
    padding: 16px;
    background: white;
    border-radius: var(--radius-sm);
    border: 2px solid var(--accent-light);
    margin-bottom: 16px;
}

.qr-container canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-container img {
    display: block;
    width: 200px;
    height: 200px;
}

.qr-url {
    font-size: 0.8rem;
    color: var(--text-light);
    word-break: break-all;
    margin-bottom: 16px;
    padding: 8px 16px;
    background: var(--bg);
    border-radius: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.copy-btn:active {
    transform: translateY(0);
}

.copy-btn.copied {
    background: #48bb78;
}

/* URL Input */
.input-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.input-hint strong {
    color: var(--accent-dark);
}

.url-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.url-form input {
    padding: 14px 18px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-family: 'SF Mono', 'Fira Code', monospace;
    transition: border-color 0.2s;
    background: var(--bg);
}

.url-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(139, 127, 199, 0.12);
}

.btn-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.change-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.change-btn:hover {
    background: var(--bg);
    border-color: var(--accent);
    color: var(--accent-dark);
}

/* Info Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.card p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Device Info */
.device-info {
    margin-top: 32px;
    animation: fadeInUp 0.6s ease-out 0.45s both;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: var(--bg);
    border-radius: 8px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
}

/* Footer */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 32px 20px;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
        padding: 16px 20px;
    }

    .card-icon {
        font-size: 28px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .card h3 {
        margin-bottom: 2px;
    }

    .qr-container img {
        width: 180px;
        height: 180px;
    }

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

    .container {
        padding: 20px 16px;
    }
}