/* ==========================================================================
   DeepMatch — Landing page (Shuffle-inspired)
   ========================================================================== */

.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
}

/* ------------------------- Nav ------------------------- */
.home-nav {
    position: relative;
    z-index: 20;
    padding: 20px 24px 12px;
}

@media (min-width: 1024px) {
    .home-nav {
        padding: 24px 64px 12px;
    }
}

.home-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.home-logo svg {
    color: var(--primary);
}

.home-logo-text {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.home-nav-links {
    display: none;
    align-items: center;
    gap: 32px;
}

@media (min-width: 768px) {
    .home-nav-links {
        display: flex;
    }
}

.home-nav-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.home-nav-links a:hover {
    color: var(--text);
}

.home-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.home-nav-theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    transition: var(--transition);
}

    .home-nav-theme:hover {
        color: var(--text);
        border-color: var(--border-hover);
    }

    .home-nav-theme .theme-icon-sun {
        display: none;
    }

    .home-nav-theme .theme-icon-moon {
        display: block;
    }

[data-theme="dark"] .home-nav-theme .theme-icon-sun {
    display: block;
}

[data-theme="dark"] .home-nav-theme .theme-icon-moon {
    display: none;
}

.home-nav-signin {
    display: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .home-nav-signin {
        display: inline-block;
    }
}

.home-nav-signin:hover {
    color: var(--text);
}

.home-btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--cta-bg);
    color: var(--cta-text);
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: var(--transition);
}

.home-btn-dark:hover {
    color: var(--cta-text);
    opacity: 0.9;
}

.home-btn-rose {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid transparent;
    box-shadow: 0 6px 20px var(--btn-glow);
    transition: var(--transition);
}

.home-btn-rose:hover {
    background: var(--primary-hover);
    color: #fff;
    box-shadow: 0 12px 28px var(--btn-glow);
    transform: translateY(-1px);
}

.home-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-hover);
    background: transparent;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.home-btn-outline:hover {
    color: var(--text);
    border-color: var(--text-inactive);
    background: var(--surface-hover);
}

/* ------------------------- Sections ------------------------- */
.home-section {
    position: relative;
    padding: 72px 24px;
}

@media (min-width: 1024px) {
    .home-section {
        padding: 96px 64px;
    }
}

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

/* ------------------------- Hero ------------------------- */
.home-hero {
    overflow: hidden;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 1024px) {
    .home-hero-grid {
        grid-template-columns: 5fr 7fr;
        gap: 32px;
    }
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: var(--primary-soft);
    margin-bottom: 28px;
}

.home-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.home-badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-strong);
}

.home-hero-title {
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 22px;
}

.home-hero-title em {
    font-style: normal;
    color: var(--primary);
}

.home-hero-desc {
    max-width: 480px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.home-hero-cta {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 52px;
}

@media (min-width: 640px) {
    .home-hero-cta {
        flex-direction: row;
    }
}

.home-hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.home-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.home-stat-value {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

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

.home-stat-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
}

/* Hero illustration: concentric circles */
.home-hero-art {
    position: relative;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.home-circle-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-brand-soft);
    opacity: 0.9;
}

.home-circle-1 {
    position: absolute;
    inset: 28px;
    border: 1px solid var(--hero-ring);
    border-radius: 50%;
}

.home-circle-2 {
    position: absolute;
    inset: 64px;
    border: 1px solid var(--hero-ring);
    border-radius: 50%;
    opacity: 0.85;
}

.home-circle-3 {
    position: absolute;
    inset: 100px;
    border: 1px solid var(--hero-ring);
    border-radius: 50%;
    opacity: 0.7;
}

.home-circle-core {
    position: absolute;
    inset: 132px;
    background: var(--surface);
    border-radius: 50%;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-circle-core svg {
    color: var(--primary);
}

.home-match-card {
    position: absolute;
    top: 40px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: homeFloat 5s ease-in-out infinite;
}

.home-match-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-brand);
    flex-shrink: 0;
}

.home-match-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.home-match-sub {
    font-size: 12px;
    color: var(--text-muted);
}

.home-match-note {
    position: absolute;
    bottom: 40px;
    left: 0;
    max-width: 200px;
    font-size: 13px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px;
    box-shadow: var(--shadow-md);
    animation: homeFloat 6s ease-in-out 1s infinite;
}

@keyframes homeFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ------------------------- Features ------------------------- */
.home-features {
    background: var(--surface-hover);
}

.home-features-head {
    max-width: 560px;
    margin-bottom: 56px;
}

.home-section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.home-section-title {
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 14px;
}

.home-section-desc {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
}

.home-feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .home-feature-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .home-feature-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.home-feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    padding: 32px;
    transition: var(--transition);
}

.home-feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.home-feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 24px;
}

.home-feature-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.home-feature-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

/* ------------------------- Story / testimonial ------------------------- */
.home-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    align-items: center;
}

@media (min-width: 1024px) {
    .home-story-grid {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
    }
}

.home-story-visual {
    position: relative;
}

.home-story-photo {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--surface-hover);
}

.home-story-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-testimonial {
    position: absolute;
    bottom: -24px;
    right: -8px;
    max-width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px;
    box-shadow: var(--shadow-xl);
}

.home-testimonial-stars {
    display: flex;
    gap: 4px;
    color: var(--warning);
    margin-bottom: 8px;
}

.home-testimonial-quote {
    font-size: 14px;
    color: var(--text);
    font-style: italic;
    line-height: 1.6;
}

.home-testimonial-author {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.home-story-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
}

.home-story-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.home-story-check {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.home-story-item span {
    color: var(--text);
    font-size: 15px;
}

.home-story-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.home-story-link:hover {
    color: var(--primary-hover);
}

.home-story-link svg {
    transition: transform 0.2s ease;
}

.home-story-link:hover svg {
    transform: translateX(4px);
}

/* ------------------------- CTA ------------------------- */
.home-cta {
    background: var(--cta-bg);
    color: var(--cta-text);
    text-align: center;
}

.home-cta-inner {
    max-width: 720px;
    margin: 0 auto;
}

.home-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 28px;
}

.home-cta-badge svg {
    color: var(--primary);
}

.home-cta-badge-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--cta-text);
    opacity: 0.9;
}

.home-cta-title {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cta-text);
    margin-bottom: 20px;
}

.home-cta-desc {
    font-size: 17px;
    color: var(--cta-muted);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
}

.home-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

@media (min-width: 640px) {
    .home-cta-buttons {
        flex-direction: row;
    }
}

.home-btn-white-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 26px;
    border-radius: var(--radius-full);
    border: 1px solid var(--cta-border);
    background: transparent;
    color: var(--cta-text);
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition);
}

.home-btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--cta-text);
}

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

.home-footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

@media (min-width: 768px) {
    .home-footer-inner {
        flex-direction: row;
    }
}

.home-footer-links {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-footer-links a {
    font-size: 14px;
    color: var(--text-muted);
}

.home-footer-links a:hover {
    color: var(--text);
}

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

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1024px) {
    .home-hero-grid {
        gap: 40px;
    }

    .home-match-card {
        top: 12px;
        right: 4px;
    }

    .home-match-note {
        bottom: 12px;
    }
}

@media (max-width: 480px) {
    .home-nav {
        padding: 16px 16px 8px;
    }

    .home-nav-inner {
        flex-wrap: wrap;
        row-gap: 10px;
    }

    .home-nav-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 640px) {
    .home-section {
        padding: 56px 20px;
    }

    .home-hero-title {
        font-size: 36px;
    }

    .home-hero-stats {
        gap: 18px;
    }

    .home-stat-value {
        font-size: 24px;
    }

    .home-testimonial {
        position: static;
        max-width: none;
        margin-top: 18px;
        box-shadow: var(--shadow-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-match-card,
    .home-match-note {
        animation: none;
    }
}
