/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;
    --secondary: #666666;
    --border: #e5e5e5;
    --bg: #ffffff;
    --bg-alt: #fafafa;
    --accent: #0066ff;
    --success: #00c853;
    --radius: 12px;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(250, 250, 250, 0.5) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(245, 245, 245, 0.3) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(250, 250, 250, 0.5) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(245, 245, 245, 0.3) 0px, transparent 50%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page Management */
.page {
    display: none;
    min-height: 100vh;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 40px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-logo {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--secondary);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.nav-back {
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-back:hover {
    background: var(--bg-alt);
    color: var(--primary);
}

/* Hero Section */
.hero-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #fafafa 0%, #f0f0f0 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease, float 3s ease-in-out infinite;
}

.city-text {
    display: none;
}

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    margin-bottom: 80px;
}

.hero-title {
    font-size: 64px;
    font-weight: 600;
    letter-spacing: -2px;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--secondary);
    margin-bottom: 8px;
    font-weight: 400;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-disclaimer {
    font-size: 14px;
    color: var(--secondary);
    font-style: italic;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn-large {
    padding: 18px 40px;
    font-size: 17px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
}

.btn-arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.btn-primary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.stat-item {
    text-align: center;
    padding: 24px 16px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: default;
}

.stat-item:hover {
    background: var(--bg-alt);
    transform: translateY(-2px);
}

.stat-value {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Section Headings */
.section-heading {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 60px;
}

/* How It Works */
.how-it-works {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    border-top: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.step-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius);
    background: var(--bg-alt);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.step-card:hover::before {
    opacity: 1;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 600;
    margin: 0 auto 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.step-card p {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    border-top: 1px solid var(--border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 24px;
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay p {
    font-size: 14px;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-alt);
    padding: 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

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

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--primary);
}

.author-name {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 2px;
}

.author-meta {
    font-size: 13px;
    color: var(--secondary);
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px;
    border-top: 1px solid var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.feature-item:hover {
    border-color: var(--border);
    background: var(--bg-alt);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.feature-item p {
    color: var(--secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 40px;
    text-align: center;
    border-top: 1px solid var(--border);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 18px;
    color: var(--secondary);
    margin-bottom: 32px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 60px 40px;
    border-top: 1px solid var(--border);
    color: var(--secondary);
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary {
    background: var(--bg);
    color: var(--primary);
    border: 1px solid var(--border);
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
}

/* Quiz Progress */
.quiz-progress {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 40px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 100%;
    transition: width 0.3s ease;
}

.progress-label {
    text-align: center;
    font-size: 13px;
    color: var(--secondary);
}

/* Quiz Section */
.quiz-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.quiz-container {
    background: var(--bg);
}

.quiz-header {
    text-align: center;
    margin-bottom: 48px;
}

.quiz-title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.quiz-subtitle {
    font-size: 18px;
    color: var(--secondary);
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.quiz-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.button-group .btn-secondary {
    flex: 0 0 auto;
}

.button-group .btn-primary {
    flex: 1;
}

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

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field input[type="email"] {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
    background: var(--bg);
}

.form-field input:focus {
    outline: none;
    border-color: var(--primary);
}

.radio-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.radio-option {
    position: relative;
    cursor: pointer;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-label {
    display: block;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    background: var(--bg);
}

.radio-option input[type="radio"]:checked + .radio-label {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.radio-option:hover .radio-label {
    border-color: var(--primary);
}

/* Loading State */
.loading-state {
    display: none;
    text-align: center;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-state.active {
    display: flex;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 14px;
    color: var(--secondary);
}

/* Results Section */
.results-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.match-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.match-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--success);
}

.match-score {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Profile Section */
.profile-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.profile-image {
    flex-shrink: 0;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
}

.profile-placeholder {
    width: 120px;
    height: 120px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.profile-meta {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-icon {
    display: inline-flex;
    color: var(--accent);
}

.profile-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Profile Gallery */
.profile-gallery {
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-grid img:hover {
    transform: scale(1.02);
}

/* Profile Details */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.detail-section {
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.section-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--secondary);
}

/* Q&A Container */
.qa-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qa-prompt {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.qa-response {
    font-size: 15px;
    line-height: 1.7;
    color: var(--secondary);
    margin: 0;
    padding-left: 16px;
    border-left: 3px solid var(--border);
}

/* Interests Tags */
.interests-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.interest-tag {
    padding: 8px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary);
}

/* Journey Timeline */
.journey-timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.timeline-dot {
    font-size: 24px;
    flex-shrink: 0;
}

.timeline-item strong {
    color: var(--primary);
    font-weight: 600;
}

.timeline-item div {
    color: var(--secondary);
    font-size: 15px;
    line-height: 1.6;
}

.match-reasons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-reasons li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--secondary);
}

.match-reasons li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 600;
}

.fun-fact-section {
    background: #fffbf0;
    border-color: #ffeaa7;
}

.fun-fact-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--primary);
}

/* Profile Testimonials */
.profile-testimonials {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-testimonial {
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.profile-testimonial:hover {
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.profile-testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.profile-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.profile-testimonial-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.profile-testimonial-relation {
    font-size: 12px;
    color: var(--secondary);
    font-style: italic;
}

.profile-testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--secondary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 8px;
}

/* Loading More */
.loading-more {
    text-align: center;
    padding: 48px 32px;
    border-top: 1px solid var(--border);
    margin-top: 32px;
}

.loading-more-text {
    font-size: 14px;
    color: var(--secondary);
    margin-top: 16px;
}

.subtle-hint {
    font-size: 12px;
    color: #999;
    margin-top: 8px;
    font-style: italic;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }

    .hero-section {
        padding: 80px 24px 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .stat-value {
        font-size: 40px;
    }

    .section-heading {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .how-it-works,
    .gallery-section,
    .testimonials-section,
    .features-section,
    .cta-section {
        padding: 60px 24px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

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

    .quiz-progress {
        padding: 0 24px;
    }

    .quiz-section {
        padding: 40px 24px;
    }

    .quiz-title {
        font-size: 32px;
    }

    .quiz-subtitle {
        font-size: 16px;
    }

    .radio-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .results-section {
        padding: 24px 24px 60px;
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .profile-name {
        font-size: 28px;
    }

    .profile-meta {
        justify-content: center;
    }

    .profile-tags {
        justify-content: center;
    }

    .detail-section,
    .profile-gallery {
        padding: 24px;
    }

    .photo-grid {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }

    .radio-options {
        grid-template-columns: 1fr;
    }

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

    .cta-section h2 {
        font-size: 28px;
    }
}
