* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.6);
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-dim: rgba(255, 255, 255, 0.35);
    --accent-1: #667eea;
    --accent-2: #f093fb;
    --accent-gradient: linear-gradient(135deg, #667eea, #f093fb);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0f;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* ============ BACKGROUND ============ */
#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.35;
    background:
        radial-gradient(circle at 20% 20%, #667eea 0%, transparent 40%),
        radial-gradient(circle at 80% 60%, #f093fb 0%, transparent 40%);
    filter: blur(100px);
}

/* ============ CONTAINER ============ */
.container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ NAVBAR ============ */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-icon { font-size: 1.4rem; }

.logo-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.nav-cta {
    padding: 10px 18px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.4);
    border-radius: 10px;
    color: #a8b4ff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: rgba(102, 126, 234, 0.25);
    transform: translateY(-1px);
}

/* ============ HERO ============ */
.hero-section {
    text-align: center;
    padding: 60px 0 80px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    font-weight: 500;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 12px #00ff88;
    animation: pulseDot 2s ease infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.main-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 36px;
}

.main-subtitle strong { color: var(--text); font-weight: 600; }
.main-subtitle em { color: #a8b4ff; font-style: normal; font-weight: 500; }

.hero-cta { margin-bottom: 40px; }

.btn-primary-hero {
    display: inline-block;
    padding: 18px 40px;
    background: var(--accent-gradient);
    color: white;
    text-decoration: none;
    border-radius: 100px;
    font-size: 1.05rem;
    font-weight: 700;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Inter', sans-serif;
}

.btn-primary-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 18px 50px rgba(102, 126, 234, 0.55);
}

.hero-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 12px;
}

/* ============ STATS ============ */
.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 500px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat { text-align: center; }

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: var(--border);
}

/* ============ SECTION BLOCKS ============ */
.section-block {
    padding: 80px 0;
    text-align: center;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #a8b4ff;
    margin-bottom: 16px;
}

.section-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-subheading {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto 40px;
}

/* ============ STEPS ============ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.step-card {
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    transition: all 0.3s;
    text-align: left;
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: rgba(102, 126, 234, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.step-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.06);
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.step-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ FEATURES ============ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 48px;
}

.feature-card {
    padding: 28px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: left;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 147, 251, 0.4);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 14px;
}

.feature-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============ CREATE FORM ============ */
.create-block { padding-bottom: 60px; }

.form-card {
    max-width: 620px;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.form-section { margin-bottom: 28px; }

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.optional-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 50%;
    font-size: 0.75rem;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

/* Inputs */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    margin-bottom: 10px;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

textarea { resize: vertical; min-height: 60px; }

input::placeholder, textarea::placeholder { color: #555; }

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
    cursor: pointer;
}

.row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* Fetch row */
.fetch-row { display: flex; gap: 8px; }
.fetch-row input { flex: 1; margin-bottom: 0; }

.btn-secondary {
    padding: 14px 20px;
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid var(--accent-1);
    color: #a8b4ff;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    font-family: inherit;
}

.btn-secondary:hover { background: rgba(102, 126, 234, 0.25); }

.hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Photo upload */
.photo-upload {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-align: center;
    transition: all 0.3s;
    overflow: hidden;
    padding: 8px;
}

.photo-preview:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: scale(1.05);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hobbies */
.hobby-categories {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hobby-category {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hobby-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hobby-chip {
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
    user-select: none;
}

.hobby-chip:hover {
    border-color: var(--accent-1);
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.hobby-chip.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.gallery-add {
    aspect-ratio: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 2px dashed var(--border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    transition: all 0.3s;
}

.gallery-add:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    background: rgba(102, 126, 234, 0.05);
}

.gallery-add span {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
}

.gallery-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    animation: fadeIn 0.3s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 60, 60, 0.9);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.gallery-item:hover .gallery-remove { opacity: 1; }

/* Links */
.link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.link-row input { flex: 1; margin-bottom: 0; }

.link-row .remove-link {
    width: 44px;
    background: rgba(255, 60, 60, 0.15);
    border: 1px solid rgba(255, 60, 60, 0.4);
    color: #ff6b6b;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.link-row .remove-link:hover { background: rgba(255, 60, 60, 0.25); }

.btn-add {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    font-family: inherit;
}

.btn-add:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

/* Theme picker */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.theme-card {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s;
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.theme-card.selected .theme-preview {
    border-color: var(--accent-1);
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transform: scale(1.05);
}

.theme-soft { background: linear-gradient(135deg, #667eea, #f093fb); }
.theme-neon { background: linear-gradient(135deg, #0a0a0f, #ff0080, #00ffff); }
.theme-beige { background: linear-gradient(135deg, #f5f0e8, #e8dcc8); }

.theme-card span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Primary button */
.btn-primary {
    width: 100%;
    padding: 18px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    font-family: 'Inter', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(102, 126, 234, 0.55);
}

/* ============ FAQ ============ */
.faq-list {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
}

.faq-item summary {
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    content: '−';
    color: var(--accent-1);
}

.faq-item p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item summary::-webkit-details-marker { display: none; }

/* ============ FOOTER ============ */
.site-footer {
    text-align: center;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border);
    margin-top: 60px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.footer-bottom {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #a8b4ff;
    text-decoration: none;
    font-weight: 600;
}

.footer-bottom a:hover { text-decoration: underline; }

.heart { display: inline-block; animation: beat 1.5s ease infinite; }

@keyframes beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .navbar { padding: 16px 20px; }
    .nav-links { gap: 12px; }
    .nav-link { display: none; }
    .nav-cta { padding: 8px 14px; font-size: 0.8rem; }

    .hero-section { padding: 40px 0 60px; }
    .stats-row {
        gap: 20px;
        padding: 20px 16px;
        flex-wrap: nowrap;
    }
    .stat-num { font-size: 1.2rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-divider { height: 24px; }

    .section-block { padding: 60px 0; }
    .steps-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .form-card { padding: 24px 20px; border-radius: 20px; }
    .row-2 { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .theme-preview { height: 60px; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .main-title { font-size: 1.9rem; }
    .btn-primary-hero { padding: 16px 32px; font-size: 1rem; }
}