:root {
    --color-bg: #ffffff;
    --color-text: #1c1640;
    --color-text-muted: #6b6484;
    --color-input-bg: #f6f3fd;
    --color-border: #e5dcfb;
    --color-primary: #5f35dc;
    --color-primary-hover: #4c2bc4;
    --color-primary-soft: #f2edff;
    --color-brand: #0d0b25;
    --color-accent-pink: #ec5aaa;
    --color-cta-gold-from: #ffd56e;
    --color-cta-gold-mid: #ffc04c;
    --color-cta-gold-to: #ffb33a;
    --color-error: #c1124a;
    --color-success: #197b3f;

    --radius-pill: 999px;
    --radius-card: 18px;

    --shadow-soft: 0 18px 40px rgba(40, 22, 90, 0.10);
    --shadow-cta-gold: 0 14px 30px rgba(255, 189, 63, 0.22);

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a { color: inherit; }

.app-shell {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background:
        radial-gradient(720px 360px at 50% -10%, rgba(125, 73, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #f5efff 0%, #ffffff 55%);
}

.screen {
    width: 100%;
    max-width: 420px;
    padding: 28px 24px 40px;
    background: #fff;
    box-shadow: var(--shadow-soft);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee9f7;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px auto 18px;
    text-decoration: none;
    color: var(--color-brand);
    line-height: 1;
}
.auth-brand img {
    display: none;
}
.auth-brand .v-brand__word {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.01em;
    color: inherit;
    display: inline-block;
    position: relative;
    line-height: 1;
}
.auth-brand .v-brand__word sup {
    font-size: 8px;
    font-weight: 400;
    position: absolute;
    top: -2px;
    right: 0;
    display: block;
    opacity: 0.9;
    letter-spacing: -0.05em;
    line-height: 1;
}

/* Alert Styles */
.alert {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.4;
    animation: fadeInDown 0.3s ease;
}
.alert--error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}
.alert-icon { font-size: 18px; }
.alert-content strong { display: block; margin-bottom: 2px; }
.alert-content p { margin: 0; opacity: 0.9; }

/* Snowy Hearts Animation */
.hearts-snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000; /* Ensure it's above other elements but not blocking */
    overflow: hidden;
}
.snow-heart {
    position: absolute;
    font-size: 14px;
    color: #ff69b4;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    transform: scale(0);
    animation: heartPop 3s ease-out forwards;
    filter: drop-shadow(0 0 8px rgba(255,105,180,0.4));
}
.snow-heart--white {
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.6));
}

@keyframes heartPop {
    0% {
        opacity: 0;
        transform: scale(0) translateY(0);
    }
    15% {
        opacity: 0.8;
        transform: scale(1.2) translateY(-10px);
    }
    30% {
        transform: scale(1) translateY(-15px);
    }
    80% {
        opacity: 0.6;
        transform: scale(1.1) translateY(-40px);
    }
    100% {
        opacity: 0;
        transform: scale(2) translateY(-60px);
    }
}

/* Button Loading State */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
.btn-loading-content {
    display: none;
    align-items: center;
    gap: 8px;
}
.btn.is-loading .btn-text-content {
    display: none;
}
.btn.is-loading .btn-loading-content {
    display: flex;
}
.spinner-tiny {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Handling Enhancements */
.field-error {
    color: var(--color-error);
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    display: block;
    animation: fadeInDown 0.3s ease;
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.heading-xl {
    font-size: 32px;
    font-weight: 700;
    margin: 8px 0 6px;
    text-align: center;
    letter-spacing: -0.01em;
    color: var(--color-brand);
    font-family: var(--font-display);
}
.heading-lg {
    font-size: 26px;
    font-weight: 700;
    margin: 8px 0 6px;
    letter-spacing: -0.01em;
    color: var(--color-brand);
    font-family: var(--font-display);
}
.heading-accent {
    background: linear-gradient(105deg, #824cff 0%, #c751d8 46%, #ff5689 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.subheading {
    color: var(--color-text-muted);
    margin: 0 0 22px;
}
.text-center { text-align: center; }

/* Brand mark */
.brand-mark { text-align: center; margin: 8px 0 18px; }
.brand-logo { width: 108px; height: auto; }

/* Landing layout */
.landing {
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Buttons */
.btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 14px 18px;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    margin: 8px 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.btn--primary {
    background: linear-gradient(180deg, var(--color-cta-gold-from) 0%, var(--color-cta-gold-mid) 55%, var(--color-cta-gold-to) 100%);
    color: #171026;
    box-shadow: var(--shadow-cta-gold);
}
.btn--primary:hover { filter: brightness(1.03); }
.btn--primary:active { transform: translateY(1px); }
.btn--secondary {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}
.btn--purple {
    background: linear-gradient(135deg, #7a4dff 0%, var(--color-primary) 65%, #4c2bc4 100%);
    color: #fff;
    box-shadow: 0 12px 26px rgba(95, 53, 220, 0.28);
}
.btn--purple:hover { filter: brightness(1.04); }
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Social row (landing) */
.social-buttons { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 24px; }
.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-border);
    background: #fff;
    font: inherit;
    color: var(--color-text);
    cursor: pointer;
    width: 100%;
}
.social-btn[disabled] { color: var(--color-text-muted); }
.social-btn-label { flex: 1; text-align: center; font-weight: 500; }

.social-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
}
.social-icon--google { background: #fff; color: #ea4335; border: 1px solid var(--color-border); }
.social-icon--apple   { background: #000; }
.social-icon--facebook{ background: #1877f2; }
.social-icon--whatsapp{ background: #25d366; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--color-brand);
    text-transform: uppercase;
}
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--color-input-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-wrap:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(95, 53, 220, 0.14);
}
.input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 14px 8px;
    font: inherit;
    outline: none;
    width: 100%;
    min-width: 0;
}
.input-icon {
    color: var(--color-text-muted);
    margin-right: 8px;
    font-size: 16px;
    flex-shrink: 0;
}
.input-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 16px;
    padding: 4px 0 4px 8px;
}
.field-error {
    color: var(--color-error);
    font-size: 13px;
    padding-left: 14px;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    padding: 2px 0;
}
.checkbox a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.checkbox--inline { align-items: center; }
.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    margin-top: 1px;
}

/* Row helpers */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.link-pink {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}
.link-pink:hover { color: var(--color-primary-hover); }

.form-note {
    text-align: center;
    margin: 8px 0 0;
    font-size: 14px;
}
.form-note a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.divider {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.legal-links {
    margin-top: auto;
    padding-top: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 13px;
}
.legal-links a { color: var(--color-text-muted); text-decoration: none; }
.legal-divider { margin: 0 8px; }

.form-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.back-link {
    display: inline-grid;
    place-items: center;
    font-size: 18px;
    text-decoration: none;
    margin-bottom: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--color-brand);
    background: var(--color-primary-soft);
    transition: background 0.15s ease;
}
.back-link:hover { background: #e5dcfb; }

.heart-emoji { font-style: normal; }

.form-footnote {
    margin-top: auto;
    padding-top: 32px;
    text-align: center;
    font-size: 13px;
}

.social-circles {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 6px 0 18px;
}
.social-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--color-brand);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.social-circle:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

/* Flash messages */
.flash {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 14px;
}
.flash--success { background: #e6f7ee; color: var(--color-success); }
.flash--error   { background: #fde6ed; color: var(--color-error); }
.flash--info    { background: #eef2ff; color: #3742a0; }

/* Modern auth pages */
body.layout-auth {
    min-height: 100vh;
    color: #21182f;
    background:
        radial-gradient(800px 420px at 12% 8%, rgba(255, 198, 118, 0.28), transparent 62%),
        radial-gradient(760px 460px at 88% 0%, rgba(236, 90, 170, 0.2), transparent 60%),
        linear-gradient(135deg, #fff8f8 0%, #fbf4ff 46%, #f6fbff 100%);
}

.layout-auth > div,
.layout-auth main {
    min-height: 100vh;
}

.auth-modern {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, 520px);
    gap: 28px;
    padding: 28px;
    overflow: hidden;
}

.auth-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.4) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(135deg, rgba(0,0,0,0.6), transparent 64%);
}

.auth-story,
.auth-panel {
    position: relative;
    z-index: 1;
}

.auth-story {
    min-height: calc(100vh - 56px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    border-radius: 28px;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(16, 8, 34, 0.12), rgba(16, 8, 34, 0.74)),
        radial-gradient(circle at 22% 18%, rgba(255, 211, 110, 0.44), transparent 22%),
        url("../images/hero-match-photo.png") center / cover;
    box-shadow: 0 28px 70px rgba(58, 30, 88, 0.22);
}

.auth-story::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, rgba(36, 18, 64, 0.84) 0%, rgba(55, 21, 70, 0.28) 52%, rgba(255, 171, 107, 0.18) 100%);
}

.auth-story__brand,
.auth-story__content,
.auth-match-card,
.auth-story__quote {
    position: relative;
    z-index: 1;
}

.auth-story__brand {
    width: max-content;
    color: #ffffff;
    text-decoration: none;
}

.auth-story__brand .v-brand__word {
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;
    position: relative;
}

.auth-story__brand .v-brand__word sup {
    position: absolute;
    top: -2px;
    right: 0;
    font-size: 9px;
    font-weight: 400;
}

.auth-story__content {
    max-width: 610px;
    margin-top: auto;
    padding-bottom: 22px;
}

.auth-kicker {
    margin: 0 0 12px;
    color: #a64677;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 800;
}

.auth-story .auth-kicker {
    color: #ffe1a3;
}

.auth-story h1 {
    max-width: 680px;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.95;
    letter-spacing: 0;
}

.auth-story p:not(.auth-kicker) {
    max-width: 520px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.65;
}

.auth-match-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    padding: 10px 14px 10px 10px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.auth-match-card img {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
}

.auth-match-card span,
.auth-match-card strong {
    display: block;
}

.auth-match-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
}

.auth-match-card strong {
    color: #ffffff;
    font-size: 14px;
}

.auth-story__quote {
    align-self: flex-end;
    max-width: 310px;
    padding: 18px 20px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(16px);
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.25;
}

.auth-panel {
    align-self: center;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 24px 70px rgba(66, 36, 94, 0.13);
    backdrop-filter: blur(22px);
}

.auth-panel__top,
.field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.field-row-extra {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.auth-panel__top {
    margin-bottom: 28px;
}

.auth-switch,
.forgot-link {
    color: #7a2f7f;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.auth-switch {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff3f8;
    border: 1px solid #f6d8e7;
}

.auth-title {
    margin: 0;
    color: #21182f;
    font-family: var(--font-display);
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.02;
    letter-spacing: 0;
}

.auth-title span {
    background: linear-gradient(110deg, #7f44ef 0%, #d24692 48%, #f0a33b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-subtitle {
    margin: 14px 0 24px;
    max-width: 420px;
    color: #74677f;
    font-size: 15px;
    line-height: 1.65;
}

.auth-form {
    gap: 16px;
}

.auth-form .field-label {
    color: #38264a;
    letter-spacing: 0.06em;
}

.auth-form .input-wrap {
    min-height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border-color: #efe2ef;
    box-shadow: 0 10px 24px rgba(95, 53, 220, 0.05);
}

.auth-form .input-wrap:focus-within {
    border-color: #d24692;
    box-shadow: 0 0 0 4px rgba(210, 70, 146, 0.12);
}

.auth-form .input-icon {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    margin-right: 8px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #7f44ef, #d24692);
    font-size: 13px;
    font-weight: 800;
}

.auth-form .input-toggle {
    min-width: 44px;
    color: #7a2f7f;
    font-size: 12px;
    font-weight: 800;
}

.auth-check {
    color: #62566f;
    font-size: 13px;
    line-height: 1.45;
}

.auth-check input[type="checkbox"] {
    accent-color: #d24692;
}

.auth-submit {
    min-height: 54px;
    margin-top: 4px;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffd56e 0%, #ff9f57 34%, #ef5f9f 72%, #7f44ef 100%);
    color: #22142f;
    box-shadow: 0 18px 38px rgba(239, 95, 159, 0.25);
    font-weight: 800;
}

.auth-panel .alert {
    border-radius: 16px;
    margin-bottom: 20px;
}

.auth-panel .form-note {
    margin-top: 20px;
    color: #65596f;
}

@media (max-width: 900px) {
    .auth-modern {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .auth-story {
        min-height: 360px;
        padding: 26px;
    }

    .auth-story__quote {
        display: none;
    }

    .auth-panel {
        margin-top: -72px;
    }
}

@media (max-width: 560px) {
    .auth-modern {
        min-height: 100vh;
        display: block;
        padding: 0;
    }

    .auth-modern::before,
    .auth-story {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        max-width: none;
        border: 0;
        border-radius: 0;
        padding: 26px 20px 34px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: none;
    }

    .auth-panel__top {
        margin-bottom: 34px;
    }

    .auth-title {
        font-size: 38px;
    }
}

@media (min-width: 480px) {
    .app-shell { align-items: center; padding: 40px 0; }
    .screen {
        min-height: auto;
        border-radius: 24px;
        margin: 0 16px;
        padding: 32px 28px 36px;
    }
}

/* ==========================================================================
   Marketing layout (landing page)
   ========================================================================== */

body.layout-marketing {
    background: #fff;
    color: #1c1640;
    font-family: var(--font-body);
}

.layout-marketing .container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.flash--floating {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    max-width: 92vw;
}

/* ---------- Header ---------- */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 22px 0;
}
.site-header__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.16em;
    font-size: 14px;
}
.site-brand__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(236, 78, 196, 0.35));
}
.site-brand--footer { color: #1c1640; }

.site-nav {
    display: flex;
    gap: 28px;
    margin-left: 28px;
}
.site-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}
.site-nav a:hover { color: #fff; }

.site-header__actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px;
}
.link-muted {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}
.link-muted:hover { color: #fff; }

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.05s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    line-height: 1;
}
.btn-pill--lg {
    padding: 15px 28px;
    font-size: 15px;
}
.btn-pill--primary {
    background: linear-gradient(135deg, #f472b6 0%, #ec4ec4 55%, #c026d3 100%);
    color: #fff;
    box-shadow: 0 10px 24px -10px rgba(236, 78, 196, 0.65);
}
.btn-pill--primary:hover { transform: translateY(-1px); }
.btn-pill--ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.22);
    color: #fff;
    backdrop-filter: blur(6px);
}
.btn-pill--ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(192, 38, 211, 0.35), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(99, 102, 241, 0.35), transparent 60%),
        linear-gradient(180deg, #160f3a 0%, #0d0a26 100%);
    padding: 140px 0 90px;
}
.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.6;
    pointer-events: none;
}
.hero__orb--one {
    width: 320px; height: 320px;
    background: #ec4ec4;
    top: -80px; right: -60px;
}
.hero__orb--two {
    width: 260px; height: 260px;
    background: #7c3aed;
    bottom: -100px; left: -60px;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.hero__title {
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 22px;
    letter-spacing: -0.02em;
}
.hero__accent {
    background: linear-gradient(120deg, #f472b6 0%, #ec4ec4 50%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__lede {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 32px;
    max-width: 520px;
}
.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 34px;
}
.hero__trust {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}
.hero__avatars {
    display: flex;
}
.hero__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #160f3a;
    margin-left: -8px;
    display: inline-block;
}
.hero__avatar:first-child { margin-left: 0; }

/* phone mockup */
.hero__visual {
    display: flex;
    justify-content: center;
    position: relative;
    min-height: 540px;
}
.hero-heart {
    position: absolute;
    top: -10px;
    right: 20px;
    width: 28px;
    height: 28px;
    color: rgba(244, 114, 182, 0.85);
}
.hero-heart svg { width: 100%; height: 100%; }

.phone {
    position: relative;
    width: 280px;
    height: 560px;
    background: linear-gradient(180deg, #2a1c5b 0%, #15102f 100%);
    border-radius: 44px;
    padding: 10px;
    box-shadow:
        0 40px 70px -20px rgba(0, 0, 0, 0.65),
        0 0 0 2px rgba(255, 255, 255, 0.06) inset;
    transform: rotate(-3deg);
    z-index: 1;
}
.phone__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 22px;
    background: #0a0820;
    border-radius: 14px;
    z-index: 3;
}
.phone__screen {
    position: relative;
    height: 100%;
    background: #1a1240;
    border-radius: 34px;
    overflow: hidden;
}
.phone__photo {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(10, 6, 35, 0.55) 75%, rgba(10, 6, 35, 0.85) 100%),
        radial-gradient(circle at 50% 38%, #fce7f3 0%, #f9a8d4 22%, #c084fc 55%, #5b21b6 100%);
}
.phone__photo::before {
    content: '';
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 38%, #fef3c7 0%, #fbcfe8 70%, #f472b6 100%);
    box-shadow: 0 0 30px rgba(244, 114, 182, 0.35);
}
.phone__photo::after {
    content: '';
    position: absolute;
    top: calc(32% + 70px);
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 220px;
    border-radius: 80px 80px 40px 40px;
    background: linear-gradient(180deg, #fef3c7 0%, #fbcfe8 100%);
    opacity: 0.8;
}

.phone__overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 70px;
    z-index: 2;
}
.profile-overlay {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: 18px;
    padding: 14px 14px 12px;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45);
}
.profile-overlay__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.profile-overlay__head h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    color: #1c1640;
}
.profile-overlay__score {
    background: linear-gradient(135deg, #f472b6, #ec4ec4);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}
.profile-overlay__bio {
    font-size: 11.5px;
    color: #61567f;
    margin: 0 0 10px;
    line-height: 1.45;
}
.profile-overlay__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.profile-overlay__tags span {
    background: #f1edff;
    color: #5b21b6;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
}

.phone__dock {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}
.phone__dock-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Floating "Why you're a match" card */
.match-aside-float {
    position: absolute;
    right: 0;
    top: 24%;
    width: 200px;
    background: #fff;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.45);
    z-index: 2;
    transform: rotate(3deg);
}
.match-aside-float__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ece8f7;
}
.match-aside-float__logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ec4ec4, #7c3aed);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 13px;
    flex-shrink: 0;
}
.match-aside-float__title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #1c1640;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.match-aside-float__sub {
    margin: 1px 0 0;
    font-size: 11px;
    color: #8a82a8;
}
.match-aside-float ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.match-aside-float li {
    font-size: 11px;
    color: #4b3f7a;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}
.match-aside-float li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f472b6, #ec4ec4);
}
.match-aside-float li::after {
    content: '';
    position: absolute;
    left: 2.5px;
    top: 7px;
    width: 5px;
    height: 3px;
    border-left: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(-45deg);
}

.btn-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------- Generic section ---------- */
.section {
    padding: 90px 0;
}
.section--steps   { background: #f8f7fc; }
.section--features { background: #ffffff; }
.section--stories { background: #f8f7fc; }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ec4ec4;
    font-weight: 700;
    font-size: 12px;
    margin: 0 0 12px;
}
.section__title {
    font-size: clamp(26px, 3.4vw, 38px);
    margin: 0;
    letter-spacing: -0.01em;
    font-weight: 800;
    color: #1c1640;
}

/* ---------- Steps ---------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.step-card {
    background: #fff;
    border-radius: 20px;
    padding: 26px 22px;
    text-align: center;
    box-shadow: 0 10px 30px -20px rgba(28, 22, 64, 0.2);
    border: 1px solid #ece8f7;
}
.step-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    margin: 0 auto 18px;
}
.step-card__icon--pink   { background: linear-gradient(135deg, #f472b6, #ec4ec4); }
.step-card__icon--purple { background: linear-gradient(135deg, #c084fc, #7c3aed); }
.step-card__icon--indigo { background: linear-gradient(135deg, #818cf8, #4f46e5); }

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1c1640;
}
.step-card p {
    font-size: 14px;
    color: #61567f;
    margin: 0;
    line-height: 1.55;
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature-card {
    background: #fff;
    border: 1px solid #ece8f7;
    border-radius: 20px;
    padding: 28px 24px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -24px rgba(124, 58, 237, 0.35);
}
.feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 18px;
    background:
        linear-gradient(135deg, #f1edff 0%, #fdeaf7 100%);
    position: relative;
}
.feature-card__icon::after {
    content: '';
    position: absolute;
    inset: 12px;
    background: linear-gradient(135deg, #ec4ec4, #7c3aed);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    border-radius: 6px;
}
.feature-card__icon[data-icon="heart"]::after  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 21s-7-4.5-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6c-2.5 4.5-9.5 9-9.5 9z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 21s-7-4.5-9.5-9A5.5 5.5 0 0 1 12 6a5.5 5.5 0 0 1 9.5 6c-2.5 4.5-9.5 9-9.5 9z'/></svg>"); }
.feature-card__icon[data-icon="spark"]::after  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2l1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2zm6 12l1 2.8L22 18l-3 1.2L18 22l-1-2.8L14 18l3-1.2L18 14z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2l1.8 5.2L19 9l-5.2 1.8L12 16l-1.8-5.2L5 9l5.2-1.8L12 2zm6 12l1 2.8L22 18l-3 1.2L18 22l-1-2.8L14 18l3-1.2L18 14z'/></svg>"); }
.feature-card__icon[data-icon="chat"]::after   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M4 4h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H8l-4 4V6a2 2 0 0 1 2-2z'/></svg>"); }
.feature-card__icon[data-icon="coach"]::after  { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3 0-8 1.5-8 4.5V21h16v-2.5C20 15.5 15 14 12 14z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0 2c-3 0-8 1.5-8 4.5V21h16v-2.5C20 15.5 15 14 12 14z'/></svg>"); }
.feature-card__icon[data-icon="shield"]::after { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2l8 4v6c0 5-3.5 9.3-8 10-4.5-.7-8-5-8-10V6l8-4z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 2l8 4v6c0 5-3.5 9.3-8 10-4.5-.7-8-5-8-10V6l8-4z'/></svg>"); }
.feature-card__icon[data-icon="lock"]::after   { -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6 10V8a6 6 0 0 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h8V8a4 4 0 0 0-8 0v2z'/></svg>"); mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6 10V8a6 6 0 0 1 12 0v2h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h1zm2 0h8V8a4 4 0 0 0-8 0v2z'/></svg>"); }

.feature-card h3 {
    font-size: 18px;
    margin: 0 0 8px;
    font-weight: 700;
    color: #1c1640;
}
.feature-card p {
    font-size: 14.5px;
    color: #61567f;
    margin: 0 0 14px;
    line-height: 1.55;
}
.learn-more {
    color: #ec4ec4;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.learn-more:hover { color: #c026d3; }

/* ---------- Stories ---------- */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.story-card {
    background: #fff;
    border: 1px solid #ece8f7;
    border-radius: 20px;
    padding: 28px 24px;
    box-shadow: 0 10px 30px -22px rgba(28, 22, 64, 0.25);
}
.story-card__quote {
    font-size: 15px;
    color: #2c2554;
    line-height: 1.6;
    margin: 0 0 20px;
}
.story-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.story-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
}
.story-card__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #1c1640;
}
.story-card__meta {
    font-size: 12px;
    color: #8a82a8;
    margin: 2px 0 0;
}

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(700px 350px at 90% 110%, rgba(192, 38, 211, 0.45), transparent 60%),
        radial-gradient(600px 300px at 5% -20%, rgba(99, 102, 241, 0.35), transparent 60%),
        linear-gradient(135deg, #1d1547 0%, #2a1c5b 100%);
    color: #fff;
    padding: 70px 0;
}
.cta-band__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    pointer-events: none;
}
.cta-band__orb--one { width: 240px; height: 240px; background: #ec4ec4; top: -60px; right: -40px; }
.cta-band__orb--two { width: 200px; height: 200px; background: #7c3aed; bottom: -80px; left: 10%; }
.cta-band__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.cta-band h2 {
    font-size: clamp(24px, 3.2vw, 34px);
    margin: 0 0 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.78);
    max-width: 620px;
    margin: 0 auto 26px;
    font-size: 16px;
    line-height: 1.55;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #f8f7fc;
    color: #4b4470;
    padding: 56px 0 28px;
}
.site-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    align-items: start;
}
.site-footer__tag {
    margin: 14px 0 0;
    color: #6c618f;
    font-size: 14px;
    max-width: 280px;
    line-height: 1.55;
}
.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.site-footer__cols h4 {
    font-size: 13px;
    font-weight: 700;
    color: #1c1640;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
}
.site-footer__cols a {
    display: block;
    color: #6c618f;
    text-decoration: none;
    font-size: 14px;
    padding: 4px 0;
}
.site-footer__cols a:hover { color: #ec4ec4; }

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid #ece8f7;
    font-size: 13px;
    color: #8a82a8;
}
.site-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero { padding: 130px 0 70px; }
    .hero__inner { grid-template-columns: 1fr; gap: 48px; }
    .hero__visual { order: 1; min-height: 560px; }
    .phone { width: 260px; height: 520px; }
    .match-aside-float { right: -10px; top: 18%; width: 180px; }

    .steps-grid    { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stories-grid  { grid-template-columns: 1fr; }

    .site-footer__inner { grid-template-columns: 1fr; gap: 32px; }
    .site-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .site-nav { display: none; }
    .site-header__actions { margin-left: auto; }
    .section { padding: 64px 0; }
    .steps-grid, .features-grid { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; }
    .hero__title { font-size: 34px; }
    .match-aside-float {
        position: static;
        transform: none;
        margin: 20px auto 0;
    }
    .hero__visual { flex-direction: column; align-items: center; }
}
