/* ============================================
   LANDING PAGE — HelloSoulmate!
   ============================================ */

.landing-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 40px;
}

/* ── Hero ── */
.hero {
    display: grid;
    grid-template-columns: 55fr 45fr;
    gap: 0;
    align-items: stretch;
    min-height: calc(100vh - 70px);
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-right: 60px;
    padding-bottom: calc(50vh - 192px);
}

.hero-left h1 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 22px;
    word-break: break-word;
}

.text-gradient {
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-left p {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-large {
    padding: 13px 26px;
    font-size: 0.975rem;
}

/* ── Hero right — big type ── */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    overflow: hidden;
    position: relative;
    gap: 48px;
    padding-bottom: calc(50vh - 192px);
}

.hero-bigtype {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    user-select: none;
}

.hero-bigtype span {
    display: block;
    font-size: clamp(52px, 8vw, 96px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

.hero-bigtype span:nth-child(1) {
    color: rgba(139, 92, 246, 0.2);
}

.hero-bigtype span:nth-child(2) {
    color: rgba(236, 72, 153, 0.13);
}

.hero-bigtype span:nth-child(3) {
    color: rgba(139, 92, 246, 0.09);
}

.hero-stats {
    display: flex;
    gap: 32px;
    align-items: flex-end;
}

.hero-stat-n {
    font-size: 1.9rem;
    font-weight: 800;
    color: #8b5cf6;
    line-height: 1;
}

.hero-stat-l {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.02em;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    margin: 48px 0 48px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 1.9rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.highlight-card {
    border: 1.5px solid var(--accent) !important;
    position: relative;
}

.badge-new {
    position: absolute;
    top: -11px;
    right: 18px;
    background: var(--accent);
    color: white;
    padding: 3px 11px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.bot-features-list {
    list-style: none;
    padding: 0;
    margin-top: 14px;
}

.bot-features-list li {
    margin-bottom: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.bot-features-list i {
    color: var(--success);
    margin-right: 8px;
    font-size: 0.78rem;
}

/* ── Demo section ── */
.demo-section {
    margin-bottom: 48px;
    padding: 2.5rem;
}

.demo-header {
    margin-bottom: 2rem;
}

.demo-header h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.2;
}

.demo-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.demo-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* Sliders */
.slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.slider-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    width: 88px;
    flex-shrink: 0;
    text-align: right;
}

.slider-track-wrap {
    flex: 1;
}

.demo-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    cursor: pointer;
}

.demo-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #1e293b;
    cursor: grab;
    transition: transform 0.15s;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.demo-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.demo-range::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid #1e293b;
}

.slider-val {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
    width: 26px;
    text-align: right;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* Match cards */
.match-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 0.875rem;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: border-color 0.35s ease, background 0.35s ease;
    will-change: transform;
    backface-visibility: hidden;
}

.match-card--active {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.06);
}

.match-avatar {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.match-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.match-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-city {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.match-pct-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ring-fill {
    transition: stroke-dashoffset 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.match-pct {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    position: relative;
    z-index: 1;
    font-variant-numeric: tabular-nums;
}

.match-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 12px;
    opacity: 0.6;
    line-height: 1.5;
}

/* ── CTA bottom ── */
.cta-bottom {
    margin-bottom: 2rem;
    border-radius: 1.25rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.cta-inner {
    text-align: center;
    padding: 4rem 2rem;
    background:
        linear-gradient(135deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(236, 72, 153, 0.06) 50%,
            rgba(139, 92, 246, 0.04) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.cta-inner h2 {
    font-size: clamp(1.4rem, 3.5vw, 2.1rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.cta-inner p {
    color: var(--text-muted);
    margin: 0 auto 2rem;
    max-width: 500px;
    font-size: 0.975rem;
    line-height: 1.65;
}

/* ── Transparent header on landing ── */
.page-landing .header {
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.page-landing .header.header--scrolled {
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

/* ── Tablet: 2 columns, no bigtype, stats on right ── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr auto;
        align-items: end;
        min-height: auto;
        padding: 48px 0;
        gap: 32px;
    }

    .hero-left {
        padding-right: 0;
        padding-bottom: 0;
        justify-content: flex-start;
    }

    .hero-btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-btns .btn {
        min-width: 220px;
        width: auto;
        text-align: center;
    }

    .hero-right {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: flex-end;
        padding-bottom: 0;
        gap: 0;
        overflow: visible;
        pointer-events: auto;
    }

    .hero-bigtype {
        display: none;
    }

    .hero-stats {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 20px;
    }

    .hero-stat-n {
        text-align: right;
    }
}

/* ── Mobile: 1 column, full-width buttons, stats centered below ── */
@media (max-width: 600px) {
    .hero {
        grid-template-columns: 1fr;
        align-items: start;
        padding: 36px 0 32px;
        gap: 28px;
    }

    .hero-btns {
        align-items: stretch;
    }

    .hero-btns .btn {
        width: 100%;
        min-width: unset;
    }

    .hero-right {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
        gap: 0;
    }

    .hero-stats {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center;
        gap: 40px;
    }

    .hero-stat-n {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 0 16px 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 40px 0 28px;
    }

    .demo-section {
        padding: 1.75rem;
    }

    .demo-body {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-bigtype span {
        font-size: clamp(40px, 13vw, 60px);
    }

    .demo-section {
        padding: 1.25rem;
    }

    .slider-label {
        width: 72px;
        font-size: 0.76rem;
    }

    .cta-inner {
        padding: 2.5rem 1.25rem;
    }

    .btn-large {
        padding: 12px 22px;
        font-size: 0.93rem;
    }
}

/* ============================================
   RESPONSIVE — landing.css (additions)
   ============================================ */

@media (max-width: 479px) {
    /* Hero buttons: 44px touch targets */
    .hero-btns .btn {
        min-height: 44px;
    }

    /* CTA buttons: 44px touch targets */
    .cta-inner .btn {
        min-height: 44px;
        width: 100%;
    }
}