/* === /assets/css/home.css === */
/* QRCard Pro — Landing page (Light Premium) */

.home-body {
    min-height: 100vh;
    background: var(--bg);
    overflow-x: hidden;
    color: var(--text);
}

/* ── Navigation ── */
.home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.home-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.home-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.home-logo i { font-size: 26px; color: var(--primary); }
.home-logo span { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }

.home-nav-links { display: flex; gap: 10px; }

/* ── Hero ── */
.hero {
    padding: 120px 24px 60px;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: #C7D2FE;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text);
    animation: fadeInUp 0.6s ease forwards;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #818CF8, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

/* ── Sections ── */
.section {
    padding: 60px 24px;
    position: relative;
}

.section-alt {
    background: var(--surface);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.step-header {
    text-align: center;
    margin-bottom: 40px;
}

.step-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── Creator Layout ── */
.creator-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.creator-form {
    flex: 1;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.creator-preview {
    flex: 0 0 380px;
    position: sticky;
    top: 80px;
}

.preview-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

#livePreview {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Home photo upload ── */
.home-photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-photo-preview {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.home-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-photo-controls {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.home-photo-controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    background: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.home-photo-controls label:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Home social rows ── */
.home-social-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.home-social-platform {
    width: 140px;
    height: 40px;
    padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    outline: none;
    flex-shrink: 0;
}
.home-social-platform:focus { border-color: var(--primary); }

.home-social-platform option {
    background: var(--surface);
    color: var(--text);
}

.home-social-url {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    background: var(--surface);
    color: var(--text);
    outline: none;
}
.home-social-url::placeholder { color: var(--text-muted); }
.home-social-url:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* ── CTA Box ── */
.cta-box {
    background: linear-gradient(135deg, var(--primary), #A78BFA);
    border-radius: var(--radius-xl);
    padding: 50px 36px;
    text-align: center;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.cta-box::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(60px);
    top: -50px;
    right: -50px;
}

.cta-qr-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 28px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-box .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.cta-box .btn-primary:hover {
    background: #f0f0f0;
    color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.cta-box .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.cta-box .btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
    color: #fff;
}

.cta-hint {
    margin-top: 18px;
    font-size: 13px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.cta-hint i { color: #86EFAC; }

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.08);
}

.feature-card i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 14px;
    display: block;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Footer ── */
.home-footer {
    padding: 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--text);
}
.footer-brand i { color: var(--primary); font-size: 20px; }

.home-footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 30px; }
    .hero-subtitle { font-size: 15px; }

    .creator-layout { flex-direction: column; }

    .creator-preview {
        flex: auto;
        position: static;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .home-photo-upload {
        flex-direction: column;
        text-align: center;
    }

    .home-social-row { flex-direction: column; }
    .home-social-platform { width: 100%; }

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

    .cta-box { padding: 36px 20px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { width: 100%; }

    .footer-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}
