:root{
    --bg:#f7f4f1;
    --surface:rgba(255,255,255,.75);
    --surface-solid:#ffffff;

    --text:#151515;
    --muted:#6f6f6f;

    --accent:#ff5c8a;
    --accent-light:#ffe3ec;

    --border:rgba(0,0,0,.06);

    --shadow:
        0 10px 30px rgba(0,0,0,.08);

    --radius:28px;

    --transition:
        0.45s cubic-bezier(.22,.61,.36,1);
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    background:var(--bg);
    color:var(--text);
    font-family:'Manrope',sans-serif;
    overflow-x:hidden;
}

#cursorGlow{
    position:fixed;
    width:320px;
    height:320px;
    border-radius:50%;

    background:
        radial-gradient(
            circle,
            rgba(255,92,138,.18),
            transparent 70%
        );

    pointer-events:none;

    z-index:1;

    transform:translate(-50%,-50%);

    filter:blur(70px);

    transition:
        transform .08s linear;
}

.navbar{
    position:fixed;

    top:0;
    left:0;

    width:100%;

    z-index:1000;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:24px 80px;

    backdrop-filter:blur(16px);

    background:
        rgba(247,244,241,.75);

    border-bottom:
        1px solid rgba(0,0,0,.04);
}

.logo{
    font-size:1rem;
    font-weight:800;
    letter-spacing:.03em;
}

.navbar nav{
    display:flex;
    gap:40px;
}

.navbar a{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
    transition:var(--transition);
}

.navbar a:hover{
    color:var(--accent);
}

.hero{
    min-height:100vh;

    display:flex;
    align-items:center;
    justify-content:space-between;

    padding:
        140px 8vw
        80px;

    position:relative;
}

.hero-bg{
    position:absolute;
    inset:0;

    background:
    radial-gradient(
        circle at 20% 20%,
        rgba(255,92,138,.10),
        transparent 40%
    );

    pointer-events:none;
}

.hero-content{
    max-width:620px;
    z-index:2;
}

.hero-label{
    display:inline-block;

    margin-bottom:18px;

    color:var(--accent);

    font-weight:700;

    letter-spacing:.08em;

    text-transform:uppercase;

    font-size:.8rem;
}

.hero h1{
    font-size:clamp(2.4rem,8vw,5.5rem);
    line-height:1.05;
    font-weight:800;
    margin-bottom:24px;
}

.hero p{
    font-size:1.05rem;
    line-height:1.8;
    color:var(--muted);

    max-width:550px;
}

.hero-stats{
    display:flex;
    flex-wrap:wrap;
    gap:28px;
    margin-top:32px;
}

.hero-stat{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.hero-stat strong{
    font-size:1.8rem;
    font-weight:800;
    line-height:1;
    color:var(--text);
}

.hero-stat span{
    font-size:.82rem;
    color:var(--muted);
    font-weight:600;
}

.primary-btn{
    margin-top:36px;

    border:none;

    cursor:pointer;

    padding:
        16px 30px;

    border-radius:999px;

    background:var(--accent);

    color:white;

    font-weight:700;

    transition:var(--transition);

    box-shadow:
        0 10px 25px
        rgba(255,92,138,.25);
}

.primary-btn:hover{
    transform:
        translateY(-4px);
}

.hero-visual{
    position:relative;

    width:480px;
    height:520px;
}

.floating-card{
    position:absolute;

    overflow:hidden;

    background:white;

    border:
        1px solid rgba(255,255,255,.6);

    border-radius:28px;

    box-shadow:var(--shadow);

    animation:
        float 8s ease-in-out infinite;
}

.hero-thinker-card{
    width:180px;
    height:240px;
    padding:0;
    transition:var(--transition);
    cursor:pointer;
}

.hero-thinker-card:hover{
    z-index:5;
    box-shadow:0 24px 60px rgba(0,0,0,.18);
}

.hero-thinker-photo{
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.hero-thinker-overlay{
    position:absolute;
    inset:0;
    z-index:2;
    pointer-events:none;
    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.82) 0%,
            rgba(0,0,0,.15) 55%,
            transparent 100%
        );
}

.hero-thinker-info{
    position:absolute;
    left:16px;
    right:16px;
    bottom:16px;
    z-index:3;
    pointer-events:none;
    color:white;
    display:flex;
    flex-direction:column;
    gap:4px;
}

.hero-thinker-info strong{
    font-size:1rem;
    font-weight:800;
    line-height:1.2;
}

.hero-thinker-info span:last-child{
    font-size:.72rem;
    opacity:.85;
    line-height:1.4;
}

.hero-thinker-match{
    display:inline-flex;
    width:max-content;
    padding:4px 10px;
    border-radius:999px;
    background:rgba(255,92,138,.9);
    font-size:.65rem;
    font-weight:800;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.card-a{
    top:20px;
    left:20px;
    transform:rotate(-6deg);
}

.card-b{
    top:120px;
    right:10px;
    transform:rotate(5deg);
    animation-delay:1s;
}

.card-c{
    bottom:30px;
    left:90px;
    transform:rotate(-3deg);
    animation-delay:2s;
}

@keyframes float{
    0%,100%{
        transform:translateY(0) rotate(var(--card-rotate, 0deg));
    }

    50%{
        transform:translateY(-18px) rotate(var(--card-rotate, 0deg));
    }
}

.card-a{ --card-rotate:-6deg; }
.card-b{ --card-rotate:5deg; }
.card-c{ --card-rotate:-3deg; }

.themes-section{
    padding:
        120px 8vw;
}

.section-header{
    margin-bottom:60px;
}

.section-header-wide{
    max-width:760px;
}

.section-badge{
    display:inline-flex;
    margin-bottom:16px;
    padding:8px 14px;
    border-radius:999px;
    background:var(--accent-light);
    color:var(--accent);
    font-size:.75rem;
    font-weight:700;
    letter-spacing:.06em;
    text-transform:uppercase;
}

.section-header h2{
    font-size:clamp(1.85rem,4.5vw,2.8rem);
    margin-bottom:12px;
}

.section-header p{
    color:var(--muted);
    line-height:1.8;
    font-size:1.05rem;
}

.themes-grid{
    display:grid;

    grid-template-columns:
        repeat(auto-fit,minmax(280px,1fr));

    gap:30px;
}

.theme-card{
    position:relative;

    overflow:hidden;

    border-radius:28px;

    cursor:pointer;

    background:var(--surface-solid);

    box-shadow:var(--shadow);

    transition:var(--transition);
}

.theme-card:hover{
    transform:
        translateY(-10px);
    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}

.theme-card:hover img{
    transform:scale(1.08);
}

.theme-image{
    height:260px;
    overflow:hidden;
}

.theme-image img{
    width:100%;
    height:100%;

    object-fit:cover;

    transition:
        transform .9s ease;
}

.theme-content{
    padding:28px;
}

.theme-meta{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.theme-count{
    font-size:.75rem;
    font-weight:700;
    color:var(--muted);
    white-space:nowrap;
}

.theme-tag{
    display:inline-flex;

    padding:
        8px 14px;

    border-radius:999px;

    background:
        var(--accent-light);

    color:var(--accent);

    font-size:.75rem;

    font-weight:700;
}

.theme-content h3{
    font-size:1.4rem;
    margin-bottom:12px;
}

.theme-content p{
    color:var(--muted);
    line-height:1.7;
}

.theme-thinkers{
    display:flex;
    align-items:center;
    margin-top:20px;
}

.theme-thinkers img,
.theme-thinkers-more{
    width:42px;
    height:42px;
    border-radius:50%;
    object-fit:cover;
    border:3px solid white;
    margin-left:-10px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.theme-thinkers img:first-child,
.theme-thinkers-more:first-child{
    margin-left:0;
}

.theme-thinkers-more{
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--accent-light);
    color:var(--accent);
    font-size:.75rem;
    font-weight:800;
}

.theme-hint{
    margin-top:12px !important;
    font-size:.82rem !important;
    font-weight:600;
    color:var(--text) !important;
    opacity:.65;
    line-height:1.5;
    word-break:break-word;
}

.thinker-item > div{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

.thinker-item{
    padding:20px;
    border-radius:20px;
    background:white;
    border:1px solid var(--border);
    cursor:pointer;
    transition:var(--transition);
}

.thinker-item:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow);
}

.thinker-item .thinker-row{
    display:flex;
    align-items:center;
    gap:16px;
    min-width:0;
    flex:1;
}

.thinker-item .thinker-row > div:last-child{
    min-width:0;
}

.thinker-item h3{
    font-size:1.1rem;
    font-weight:800;
    word-break:break-word;
}

.thinker-item .thinker-country{
    margin-top:4px;
    font-size:.88rem;
    color:var(--muted);
}

/* -------------------- */
/* REVEAL */
/* -------------------- */

.reveal{
    opacity:0;

    transform:
        translateY(60px);

    transition:
        .9s cubic-bezier(.22,.61,.36,1);
}

.reveal.active{
    opacity:1;
    transform:none;
}

/* -------------------- */
/* MODAL */
/* -------------------- */

.modal-overlay{
    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background:
        rgba(0,0,0,.35);

    backdrop-filter:blur(12px);

    opacity:0;
    visibility:hidden;

    transition:var(--transition);

    z-index:3000;
}

#thinkerModal{
    z-index:7000;
}

.modal-overlay.active{
    opacity:1;
    visibility:visible;
}

.modal-window{
    width:min(900px,92vw);

    max-height:85vh;

    overflow:auto;

    background:
        rgba(255,255,255,.88);

    backdrop-filter:blur(20px);

    border-radius:32px;

    padding:40px;

    box-shadow:
        0 40px 100px rgba(0,0,0,.18);

    transform:
        scale(.92);

    transition:var(--transition);
}

.modal-overlay.active .modal-window{
    transform:scale(1);
}

.thinker-window{
    width:min(820px,92vw);
}

/* -------------------- */
/* CLOSE */
/* -------------------- */

.close-modal{
    position:absolute;

    top:30px;
    right:30px;

    border:none;

    width:48px;
    height:48px;

    border-radius:50%;

    background:white;

    cursor:pointer;

    font-size:1.5rem;

    box-shadow:
        0 10px 20px rgba(0,0,0,.08);
}

/* -------------------- */
/* THINKER CARD */
/* -------------------- */

.thinker-photo{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.thinker-photo-placeholder{
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        linear-gradient(
            135deg,
            var(--accent-light),
            #ffffff
        );
    color:var(--accent);
    font-weight:800;
    letter-spacing:.04em;
    user-select:none;
}

.thinker-avatar .thinker-photo-placeholder{
    font-size:.72rem;
}

.thinker-profile-photo .thinker-photo-placeholder{
    font-size:2rem;
}

.theme-thinkers .thinker-photo-placeholder{
    width:42px;
    height:42px;
    border-radius:50%;
    font-size:.65rem;
    border:3px solid white;
    margin-left:-10px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.theme-thinkers .thinker-photo-placeholder:first-child{
    margin-left:0;
}

.hero-thinker-photo.thinker-photo-placeholder{
    position:absolute;
    inset:0;
    font-size:2.5rem;
}

.swipe-card .thinker-photo-placeholder{
    position:absolute;
    inset:0;
    font-size:4rem;
}

.thinker-avatar{
    width:64px;
    height:64px;
    flex-shrink:0;
    overflow:hidden;
    border-radius:18px;
    background:#f0f0f0;
}

.thinker-profile-header{
    display:flex;
    align-items:center;
    gap:24px;
}

.thinker-profile-photo{
    width:120px;
    height:120px;
    flex-shrink:0;
    overflow:hidden;
    border-radius:28px;
    background:#f0f0f0;
    box-shadow:var(--shadow);
}

.thinker-profile{
    display:grid;
    gap:24px;
}

.compatibility{
    display:inline-flex;

    align-items:center;

    padding:
        12px 18px;

    border-radius:999px;

    background:
        var(--accent-light);

    color:var(--accent);

    font-weight:700;
}

.info-block{
    background:white;

    padding:24px;

    border-radius:20px;

    border:
        1px solid var(--border);
}

.info-block h4{
    margin-bottom:12px;
}

.info-block ul{
    list-style:none;
}

.info-block ul:not(.profile-list) li{
    padding:8px 0;
    color:#333;
}

footer{
    padding:
        100px 8vw;
}

.footer-inner{
    border-top:
        1px solid rgba(0,0,0,.08);

    padding-top:50px;
}

.footer-inner h3{
    margin-bottom:10px;
}

.footer-inner p{
    color:var(--muted);
    max-width:520px;
    line-height:1.8;
}

.footer-links{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:24px;
    margin-top:28px;
}

.footer-links a{
    text-decoration:none;
    color:var(--text);
    font-weight:600;
    transition:var(--transition);
}

.footer-links a:hover{
    color:var(--accent);
}

.footer-cta{
    border:none;
    cursor:pointer;
    padding:12px 22px;
    border-radius:999px;
    background:var(--accent);
    color:white;
    font-family:inherit;
    font-weight:700;
    transition:var(--transition);
    box-shadow:0 10px 25px rgba(255,92,138,.25);
}

.footer-cta:hover{
    transform:translateY(-3px);
}

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:transparent;
}

::-webkit-scrollbar-thumb{
    background:
        rgba(0,0,0,.12);

    border-radius:999px;
}

.lasswell-section{
    padding:120px 8vw;
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255,92,138,.04) 50%,
            transparent
        );
}

.lasswell-quote{
    max-width:760px;
    margin:0 auto 50px;
    padding:32px 36px;
    border-left:4px solid var(--accent);
    border-radius:0 24px 24px 0;
    background:white;
    box-shadow:var(--shadow);
    font-size:1.25rem;
    line-height:1.7;
    font-weight:600;
    font-style:italic;
}

.lasswell-quote cite{
    display:block;
    margin-top:16px;
    font-size:.9rem;
    font-style:normal;
    font-weight:600;
    color:var(--muted);
}

.lasswell-chain{
    margin-top:10px;

    display:flex;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;

    gap:16px;
}

.chain-item{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:150px;
    max-width:190px;
    padding:22px 24px;

    background:white;

    border-radius:20px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);

    transition:var(--transition);
}

.chain-item:hover{
    transform:translateY(-6px);
}

.chain-item strong{
    font-size:1rem;
    font-weight:800;
}

.chain-item p{
    font-size:.82rem;
    line-height:1.5;
    color:var(--muted);
    font-weight:500;
}

.chain-step{
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    color:var(--accent);
}

.chain-arrow{
    display:flex;
    align-items:center;
    font-size:1.4rem;
    opacity:.45;
}

.lasswell-details{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin-top:50px;
}

.detail-card{
    padding:28px;
    background:white;
    border-radius:24px;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.detail-label{
    display:inline-flex;
    margin-bottom:12px;
    font-size:.72rem;
    font-weight:800;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--accent);
}

.detail-card p{
    color:var(--muted);
    line-height:1.75;
    font-size:.95rem;
}

.final-section{
    padding:
        140px 8vw;
}

.final-inner{
    max-width:1100px;

    margin:auto;

    text-align:center;
}

.final-inner h2{
    margin-top:10px;

    font-size:clamp(2rem,7vw,4rem);
    font-weight:800;
}

.final-inner p{
    max-width:850px;

    margin:
        25px auto;

    color:var(--muted);

    line-height:1.8;
}

.final-stats{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:24px;
    margin:40px auto;
    max-width:900px;
}

.final-stat{
    flex:1 1 180px;
    padding:28px 24px;
    background:white;
    border-radius:24px;
    box-shadow:var(--shadow);
}

.final-stat strong{
    display:block;
    font-size:2.4rem;
    font-weight:800;
    line-height:1;
    margin-bottom:8px;
}

.final-stat span{
    font-size:.88rem;
    color:var(--muted);
    font-weight:600;
}

.final-chain{
    margin-top:30px;

    display:flex;
    justify-content:center;
    align-items:stretch;
    flex-wrap:wrap;

    gap:16px;
}

.final-chain-item{
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:150px;
    max-width:190px;
    padding:22px 24px;
    background:white;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    text-align:left;
}

.final-chain-item strong{
    font-size:1rem;
    font-weight:800;
}

.final-chain-item p{
    margin:0 !important;
    font-size:.82rem;
    line-height:1.5;
    text-align:left;
}

.final-chain span{
    display:flex;
    align-items:center;
    font-size:1.5rem;
    opacity:.4;
}

.final-features{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    max-width:900px;
    margin:40px auto 0;
    text-align:left;
}

.final-description{
    margin-top:40px;
}

/* ===================================== */
/* SEARCH MODAL */
/* ===================================== */

.search-modal{
    position:fixed;

    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    opacity:0;
    visibility:hidden;

    transition:.45s;

    z-index:5000;
}

.search-modal.opened{
    opacity:1;
    visibility:visible;
}

.search-backdrop{
    position:absolute;

    inset:0;

    background:
        rgba(0,0,0,.55);

    backdrop-filter:blur(20px);
}

.search-container{

    position:relative;

    width:min(1100px,95vw);

    height:100vh;

    display:flex;
    flex-direction:column;

    justify-content:center;
    align-items:center;

    padding:

        80px
        0
        40px;

    z-index:2;
}

.search-header{
    text-align:center;

    margin-bottom:30px;
}

.search-header span{
    color:var(--accent);

    text-transform:uppercase;

    letter-spacing:.18em;

    font-size:.75rem;
}

.search-header h2{
    margin-top:10px;

    font-size:3.5rem;

    font-weight:800;
}

.search-header p{
    color:rgba(255,255,255,.8);

    margin-top:10px;
}

.search-close{
    position:absolute;

    top:20px;
    right:20px;

    width:58px;
    height:58px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    font-size:1.6rem;

    box-shadow:
        0 20px 50px rgba(0,0,0,.15);
}

/* ===================================== */
/* STACK */
/* ===================================== */

.cards-stack{

    flex:0 0 auto;

    display:flex;
    justify-content:center;
    align-items:center;

    margin:20px 0;
}

#cardsContainer{

    width:380px;
    height:540px;

    position:relative;

    display:flex;
    justify-content:center;
    align-items:center;
}

/* ===================================== */
/* CARD */
/* ===================================== */

.swipe-card{

    position:absolute;

    inset:0;

    border-radius:34px;

    overflow:hidden;

    background:white;

    cursor:grab;

    user-select:none;

    touch-action:none;

    box-shadow:
        0 50px 120px rgba(0,0,0,.22);

    will-change:
        transform;
}

.swipe-card > *{
    pointer-events:none;
}

.swipe-card .thinker-photo{

    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    object-fit:cover;
}

.swipe-overlay{

    position:absolute;

    inset:0;

    background:
    linear-gradient(
        to top,
        rgba(0,0,0,.88),
        rgba(0,0,0,.05)
    );
}

.swipe-info{

    position:absolute;

    left:30px;
    right:30px;
    bottom:30px;

    color:white;
}

.swipe-info h3{

    font-size:2.3rem;

    font-weight:800;
}

.swipe-info p{

    margin-top:10px;

    opacity:.85;
}

.swipe-open-hint{
    display:inline-flex;
    margin-top:16px;
    padding:6px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    border:1px solid rgba(255,255,255,.18);
    font-size:.72rem;
    font-weight:700;
    letter-spacing:.04em;
    text-transform:uppercase;
    opacity:.9;
}

/* ===================================== */
/* SWIPE TAGS */
/* ===================================== */

.swipe-tags{

    display:flex;
    flex-wrap:wrap;

    gap:10px;

    margin-top:18px;
}

.swipe-tags span{

    padding:
        8px 12px;

    border-radius:999px;

    backdrop-filter:blur(12px);

    background:
        rgba(255,255,255,.15);

    border:
        1px solid rgba(255,255,255,.15);

    font-size:.82rem;

    font-weight:600;
}

/* ===================================== */
/* LIKE / SKIP BADGES */
/* ===================================== */

.swipe-badge{

    position:absolute;

    top:35px;

    padding:
        12px 20px;

    border-radius:14px;

    font-size:1rem;
    font-weight:800;

    letter-spacing:.08em;

    opacity:0;

    transition:.2s ease;

    backdrop-filter:blur(12px);

    z-index:5;
}

.swipe-badge.like{

    right:30px;

    color:#0f9d58;

    border:
        2px solid #0f9d58;

    background:
        rgba(15,157,88,.08);

    transform:
        rotate(12deg);
}

.swipe-badge.skip{

    left:30px;

    color:#ea4335;

    border:
        2px solid #ea4335;

    background:
        rgba(234,67,53,.08);

    transform:
        rotate(-12deg);
}

.swipe-card.likeing .like{
    opacity:1;
}

.swipe-card.rejecting .skip{
    opacity:1;
}

/* ===================================== */
/* BUTTONS */
/* ===================================== */

.swipe-actions{

    display:flex;

    justify-content:center;
    align-items:center;

    gap:16px;

    margin-top:20px;

    position:relative;

    z-index:10;
}

.swipe-btn{

    border:none;

    cursor:pointer;

    border-radius:999px;

    padding:
        16px 30px;

    font-weight:700;

    transition:.3s ease;
}

.reject-btn{

    background:white;

    color:#111;

    box-shadow:
        0 10px 30px rgba(0,0,0,.12);
}

.reject-btn:hover{

    transform:
        translateY(-3px);
}

.accept-btn{

    background:var(--accent);

    color:white;

    box-shadow:
        0 10px 30px rgba(255,92,138,.35);
}

.accept-btn:hover{

    transform:
        translateY(-3px);
}

/* ===================================== */
/* RESULTS */
/* ===================================== */

.results-modal{

    position:fixed;

    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background:
        rgba(0,0,0,.55);

    backdrop-filter:blur(18px);

    opacity:0;
    visibility:hidden;

    transition:.4s ease;

    z-index:6000;
}

.results-modal.opened{

    opacity:1;
    visibility:visible;
}

.results-window{

    width:min(850px,92vw);

    max-height:85vh;

    overflow:auto;

    background:white;

    border-radius:32px;

    padding:45px;

    box-shadow:
        0 40px 100px rgba(0,0,0,.18);
}

.results-window h2{

    font-size:3rem;

    font-weight:800;

    margin-bottom:12px;
}

.results-window p{

    color:var(--muted);
}

.results-close{

    position:absolute;

    top:30px;
    right:30px;

    width:50px;
    height:50px;

    border:none;

    border-radius:50%;

    background:white;

    cursor:pointer;

    box-shadow:
        0 10px 20px rgba(0,0,0,.12);
}

#matchesList{

    display:grid;

    gap:16px;

    margin-top:30px;
}

.match-item{

    padding:24px;

    border-radius:22px;

    background:#f8f8f8;

    border:
        1px solid rgba(0,0,0,.05);

    cursor:pointer;

    transition:.3s ease;
}

.match-item-inner{
    display:flex;
    align-items:flex-start;
    gap:18px;
}

.match-item:hover{

    transform:
        translateY(-4px);

    background:white;
}

.match-item h3{

    font-size:1.3rem;

    font-weight:700;

    margin-bottom:8px;
}

.match-item p{

    color:var(--muted);

    line-height:1.7;
}

/* ===================================== */
/* THINKER PROFILE */
/* ===================================== */

.thinker-profile{

    display:grid;

    gap:22px;
}

.thinker-profile h2{

    font-size:3rem;

    font-weight:800;
}

.thinker-profile .subtitle{
    color:var(--muted);
    margin-top:4px;
}

.thinker-tagline{
    margin-top:8px;
    font-size:1.05rem;
    font-weight:700;
    color:var(--accent);
    line-height:1.4;
}

.thinker-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:14px;
}

.thinker-meta span{
    display:inline-flex;
    padding:6px 12px;
    border-radius:999px;
    background:var(--accent-light);
    color:var(--accent);
    font-size:.75rem;
    font-weight:700;
}

.thinker-profile-intro{
    min-width:0;
    flex:1;
}

.profile-list{
    list-style:none;
    margin:0;
    padding:0;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.profile-list li{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:0;
    color:#333;
    line-height:1.6;
}

.profile-list li::before{
    content:"";
    flex-shrink:0;
    width:6px;
    height:6px;
    margin-top:0.55em;
    border-radius:50%;
    background:var(--accent);
}

.info-block p{
    color:var(--muted);
    line-height:1.75;
}

.info-block p + p{
    margin-top:12px;
}

.profile-dating-row{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:16px;
}

.thinker-item .thinker-tagline-small{
    margin-top:2px;
    font-size:.82rem;
    font-weight:600;
    color:var(--accent);
    line-height:1.4;
}

.info-block{

    background:white;

    border:
        1px solid rgba(0,0,0,.06);

    border-radius:22px;

    padding:24px;
}

.info-block h4{

    font-size:1rem;

    font-weight:700;

    margin-bottom:14px;
}

.info-block ul{

    list-style:none;
}

.info-block ul:not(.profile-list) li{

    padding:8px 0;

    color:#333;
}

.compatibility{

    display:inline-flex;

    width:max-content;

    padding:
        12px 18px;

    border-radius:999px;

    background:
        var(--accent-light);

    color:
        var(--accent);

    font-weight:700;
}

/* ===================================== */
/* SMOOTH MODAL ANIMATION */
/* ===================================== */

.modal-window,
.results-window{

    animation:
        modalAppear .35s ease;
}

@keyframes modalAppear{

    from{

        opacity:0;

        transform:
            translateY(20px)
            scale(.96);
    }

    to{

        opacity:1;

        transform:
            translateY(0)
            scale(1);
    }
}

@media(max-width:900px){

    .navbar{
        padding:18px 20px;
    }

    .navbar nav{
        display:none;
    }

    .hero{
        flex-direction:column;
        justify-content:center;
        gap:48px;
        min-height:auto;
        padding:110px 20px 64px;
    }

    .hero-content{
        max-width:100%;
        width:100%;
    }

    .hero p{
        font-size:1rem;
    }

    .hero-stats{
        gap:16px 24px;
    }

    .hero-stat strong{
        font-size:1.5rem;
    }

    .primary-btn{
        width:100%;
        max-width:360px;
    }

    .hero-visual{
        width:100%;
        max-width:340px;
        height:300px;
        margin:0 auto;
    }

    .hero-thinker-card{
        width:132px;
        height:178px;
    }

    .hero-thinker-info strong{
        font-size:.9rem;
    }

    .hero-thinker-info span:last-child{
        font-size:.65rem;
    }

    .card-a{
        left:0;
        top:10px;
    }

    .card-b{
        right:0;
        top:72px;
    }

    .card-c{
        left:50%;
        margin-left:-66px;
        bottom:0;
    }

    .themes-section,
    .lasswell-section,
    .final-section{
        padding:80px 20px;
    }

    footer{
        padding:64px 20px;
    }

    .section-header{
        margin-bottom:40px;
    }

    .section-header-wide{
        max-width:100%;
    }

    .section-badge{
        font-size:.7rem;
        letter-spacing:.04em;
    }

    .themes-grid{
        grid-template-columns:1fr;
        gap:20px;
    }

    .theme-image{
        height:220px;
    }

    .theme-content{
        padding:22px;
    }

    .theme-meta{
        flex-wrap:wrap;
        gap:10px;
    }

    .theme-content h3{
        font-size:1.25rem;
    }

    .lasswell-quote{
        padding:22px 20px;
        font-size:1.05rem;
        border-radius:20px;
        margin-bottom:36px;
    }

    .lasswell-chain,
    .final-chain{
        flex-direction:column;
        align-items:stretch;
    }

    .chain-item,
    .final-chain-item{
        min-width:100%;
        max-width:100%;
    }

    .chain-arrow,
    .final-chain span{
        align-self:center;
        transform:rotate(90deg);
        line-height:1;
    }

    .lasswell-details,
    .final-features{
        grid-template-columns:1fr;
        gap:16px;
        margin-top:36px;
    }

    .detail-card{
        padding:22px;
    }

    .final-stats{
        flex-direction:column;
        gap:12px;
        margin:32px auto;
    }

    .final-stat{
        flex:1 1 auto;
        width:100%;
        padding:22px 20px;
    }

    .final-stat strong{
        font-size:2rem;
    }

    .footer-links{
        flex-direction:column;
        align-items:flex-start;
        gap:16px;
    }

    .footer-cta{
        width:100%;
        max-width:320px;
        text-align:center;
    }

    .modal-window,
    .thinker-window{
        width:min(900px,94vw);
        padding:28px 22px 32px;
        border-radius:24px;
        max-height:90vh;
    }

    .close-modal{
        top:16px;
        right:16px;
        width:42px;
        height:42px;
        font-size:1.3rem;
    }

    .thinker-profile h2{
        font-size:clamp(1.75rem,6vw,2.5rem);
    }

    .thinker-profile-header{
        flex-direction:column;
        align-items:flex-start;
        gap:18px;
    }

    .thinker-profile-photo{
        width:96px;
        height:96px;
        border-radius:22px;
    }

    .thinker-item{
        padding:16px;
    }

    .thinker-item > div{
        flex-direction:column;
        align-items:flex-start !important;
    }

    .profile-dating-row{
        grid-template-columns:1fr;
    }

    .thinker-tagline{
        font-size:.95rem;
    }

    .thinker-meta span{
        font-size:.7rem;
    }

    .search-container{
        width:100%;
        min-height:100dvh;
        height:auto;
        padding:72px 16px 24px;
        justify-content:flex-start;
        overflow-y:auto;
    }

    .search-header{
        margin-bottom:20px;
        padding:0 4px;
    }

    .search-header h2{
        font-size:clamp(1.75rem,7vw,2.2rem);
        line-height:1.1;
    }

    .search-header p{
        font-size:.92rem;
        line-height:1.5;
    }

    .search-close{
        top:14px;
        right:14px;
        width:48px;
        height:48px;
        font-size:1.4rem;
    }

    .cards-stack{
        width:100%;
        margin:12px 0;
    }

    #cardsContainer{
        width:min(92vw,360px);
        height:clamp(420px,62vh,540px);
        margin:0 auto;
    }

    .swipe-info{
        left:20px;
        right:20px;
        bottom:22px;
    }

    .swipe-info h3{
        font-size:clamp(1.5rem,6vw,1.8rem);
        line-height:1.15;
    }

    .swipe-tags{
        gap:8px;
        margin-top:14px;
    }

    .swipe-tags span{
        font-size:.75rem;
        padding:6px 10px;
    }

    .swipe-open-hint{
        margin-top:12px;
        font-size:.65rem;
    }

    .swipe-actions{
        width:100%;
        padding:0 16px;
        flex-direction:column;
        gap:12px;
        margin-top:16px;
    }

    .swipe-btn{
        width:100%;
        max-width:360px;
    }

    .results-window{
        width:94vw;
        padding:28px 22px 32px;
        border-radius:24px;
    }

    .results-window h2{
        font-size:clamp(1.75rem,6vw,2rem);
        padding-right:48px;
    }

    .results-close{
        top:16px;
        right:16px;
        width:42px;
        height:42px;
    }

    .match-item{
        padding:18px;
    }

    .match-item-inner{
        gap:14px;
    }

    .match-item h3{
        font-size:1.15rem;
    }
}

@media(max-width:480px){

    .hero{
        padding-top:96px;
        gap:36px;
    }

    .hero-label{
        font-size:.72rem;
        letter-spacing:.06em;
    }

    .hero-stats{
        display:grid;
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:12px;
    }

    .hero-stat span{
        font-size:.72rem;
    }

    .hero-visual{
        max-width:300px;
        height:260px;
    }

    .hero-thinker-card{
        width:112px;
        height:150px;
        border-radius:20px;
    }

    .card-a{
        left:2px;
    }

    .card-b{
        right:2px;
        top:58px;
    }

    .card-c{
        margin-left:-56px;
    }

    .hero-thinker-info{
        left:10px;
        right:10px;
        bottom:10px;
    }

    .hero-thinker-match{
        font-size:.58rem;
        padding:3px 8px;
    }

    .theme-thinkers img,
    .theme-thinkers .thinker-photo-placeholder{
        width:36px;
        height:36px;
        margin-left:-8px;
    }

    .theme-count{
        font-size:.7rem;
    }

    .chain-item,
    .final-chain-item{
        padding:18px 16px;
    }

    .info-block{
        padding:18px;
    }

    .compatibility{
        font-size:.85rem;
        padding:10px 14px;
    }

    #cardsContainer{
        width:94vw;
        height:clamp(380px,58vh,480px);
        border-radius:28px;
    }

    .swipe-card{
        border-radius:28px;
    }

    .swipe-badge{
        top:24px;
        padding:10px 14px;
        font-size:.85rem;
    }

    .swipe-badge.like{
        right:18px;
    }

    .swipe-badge.skip{
        left:18px;
    }
}

@media(max-width:900px) and (max-height:740px){

    .search-container{
        padding-top:64px;
        padding-bottom:16px;
    }

    .search-header{
        margin-bottom:12px;
    }

    .search-header h2{
        font-size:1.6rem;
    }

    #cardsContainer{
        height:clamp(340px,52vh,440px);
    }

    .swipe-actions{
        margin-top:10px;
    }
}

.swipe-card,
.theme-card,
.modal-window,
.results-window{

    backface-visibility:hidden;

    transform-style:
        preserve-3d;
}

.theme-card img{

    will-change:
        transform;
}

@media(max-height:850px){

    #cardsContainer{

        height:clamp(360px,55vh,480px);
    }

    .search-header h2{
        font-size:clamp(1.5rem,5vw,2rem);
    }

    .search-header{
        margin-bottom:12px;
    }

    .swipe-actions{
        margin-top:10px;
    }

}