@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-success: #10b981;
    --input-bg: rgba(15, 23, 42, 0.6);
}

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

body {
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 20px;
}


.container {
    width: 100%;
    max-width: 1000px;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.utm-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.utm-toggle:hover {
    background: rgba(99, 102, 241, 0.15);
}

.utm-fields {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.utm-fields.active {
    max-height: 600px;
    margin-top: 10px;
}

.preview-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed var(--glass-border);
}

#qrcode {
    background: white;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

#qrcode img {
    display: block;
}

.final-url-box {
    width: 100%;
    background: var(--input-bg);
    padding: 12px;
    border-radius: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.btn {
    flex: 1;
    padding: 14px;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pulse {
    animation: pulse 2s infinite;
}

.top-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
}

.top-logo img {
    max-width: 250px;
    height: auto;
}



.app-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

#footer {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
}

a {
    color: white;
    text-decoration: none;
}


@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}


@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 32px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .preview-section {
        padding: 24px;
    }

    #qrcode {
        padding: 16px;
    }
}



@media (max-width: 768px) {

    body {
        padding: 12px;
    }

    .top-logo img {
        max-width: 180px;
    }

    .container {
        padding: 20px;
        border-radius: 18px;
    }

    .header h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .header p {
        font-size: 1rem;
    }

    input {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .utm-toggle {
        font-size: 0.95rem;
    }

    .preview-section {
        padding: 20px;
    }

    #qrcode {
        padding: 14px;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* SEO Section Styles */
.seo-section {
    width: 100%;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.seo-container {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.seo-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(to right, #818cf8, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.faq-item h3 {
    font-size: 1.2rem;
    color: #818cf8;
    margin-bottom: 12px;
    font-weight: 600;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-item a {
    color: #c084fc;
    font-weight: 600;
    border-bottom: 1px dashed rgba(192, 132, 252, 0.4);
    transition: all 0.3s ease;
}

.faq-item a:hover {
    color: #818cf8;
    border-bottom-color: #818cf8;
}

@media (max-width: 768px) {
    .seo-container {
        padding: 30px 20px;
    }

    .seo-section h2 {
        font-size: 1.6rem;
    }

    .faq-item {
        padding: 20px;
    }

    .faq-item h3 {
        font-size: 1.1rem;
    }
}