/* ═══════════════════════════════════════════════════════
   Home Features — Spotify Life inspired
   ═══════════════════════════════════════════════════════ */

.home-features {
    display: none;
    width: 100%;
    padding-bottom: 100px;
}
body:not(.nav-crypto):not(.nav-hub):not(.nav-erasmus) .home-features {
    display: block;
}

.hf-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 40px 0;
}

/* ── Hero title ─────────────────────────────────────── */
.hf-hero-title {
    font-size: clamp(52px, 7.5vw, 112px);
    font-weight: 900;
    letter-spacing: -4px;
    color: var(--text-primary);
    margin: 0 0 48px;
    line-height: 1.0;
}

/* ── Card carousel ──────────────────────────────────── */
.hf-carousel {
    display: flex;
    gap: 10px;
    align-items: stretch;
    /* no overflow-x — all cards fill the row */
}

.hf-cc {
    flex: 1;
    min-width: 0;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 22px 20px;
    min-height: 340px;
    transition: flex 0.45s cubic-bezier(0.4,0,0.2,1),
                background 0.35s ease,
                color 0.35s ease,
                box-shadow 0.35s ease;
    cursor: pointer;
}
/* Large card gets slightly more base weight */
.hf-cc-large { flex: 1.6; }

/* Accordion on click — active card expands, siblings shrink */
.hf-carousel:has(.hf-cc--active) .hf-cc       { flex: 0.7; }
.hf-carousel:has(.hf-cc--active) .hf-cc-large { flex: 0.7; }
.hf-cc--active                                 { flex: 2.4 !important; box-shadow: 0 20px 50px rgba(0,0,0,0.4); }

/* Subtle hover cue — slight brightness, no expansion */
.hf-cc:not(.hf-cc--active):hover { filter: brightness(1.06); }

/* Solid color variants — default */
.hf-cc-white  { background: #ffffff; color: #111111; }
.hf-cc-teal   { background: #3ecfb8; color: #001a16; }
.hf-cc-amber  { background: #f5a623; color: #1a0a00; }
.hf-cc-lime   { background: #c4f135; color: #0e1400; }
.hf-cc-dark   { background: #161616; color: #ffffff; border: 1px solid rgba(255,255,255,0.08); }

/* Color inversion on active (clicked) */
.hf-cc-white.hf-cc--active  { background: #222222 !important; color: #f0f0f0 !important; }
.hf-cc-teal.hf-cc--active   { background: #0d3d35 !important; color: #5ee8d0 !important; }
.hf-cc-amber.hf-cc--active  { background: #3d2000 !important; color: #ffbb55 !important; }
.hf-cc-lime.hf-cc--active   { background: #1e2e00 !important; color: #d8f550 !important; }
.hf-cc-dark.hf-cc--active   { background: #f2f2f2 !important; color: #111111 !important; border-color: transparent; }

/* Arrow inversion to match active state */
.hf-cc-white.hf-cc--active .hf-cc-arrow  { background: #f0f0f0; color: #222222; }
.hf-cc-teal.hf-cc--active  .hf-cc-arrow  { background: #5ee8d0; color: #0d3d35; }
.hf-cc-amber.hf-cc--active .hf-cc-arrow  { background: #ffbb55; color: #3d2000; }
.hf-cc-lime.hf-cc--active  .hf-cc-arrow  { background: #d8f550; color: #1e2e00; }
.hf-cc-dark.hf-cc--active  .hf-cc-arrow  { background: #222222; color: #f2f2f2; }

.hf-cc-body { display: flex; flex-direction: column; height: 100%; justify-content: space-between; }

.hf-cc-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    opacity: 0.45;
    margin-bottom: 14px;
    display: block;
}
.hf-cc-h {
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin: 0;
}
.hf-cc-p {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.6;
    margin: 12px 0 0;
    max-width: 260px;
}
.hf-cc-bottom { margin-top: 32px; }

.hf-cc-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    cursor: pointer;
    transition: gap 0.2s;
}
.hf-cc:hover .hf-cc-cta { gap: 14px; }

.hf-cc-arrow {
    width: 38px; height: 38px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.hf-cc:hover .hf-cc-arrow { transform: scale(1.1) rotate(-8deg); }

.hf-cc-white .hf-cc-arrow,
.hf-cc-teal  .hf-cc-arrow,
.hf-cc-amber .hf-cc-arrow,
.hf-cc-lime  .hf-cc-arrow { background: #000000; color: #ffffff; }
.hf-cc-dark  .hf-cc-arrow { background: #ffffff; color: #000000; }

/* Ghost character decoration */
.hf-cc-ghost {
    position: absolute;
    bottom: -12px; right: 12px;
    font-size: 130px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.055;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    user-select: none;
    letter-spacing: -4px;
}
.hf-cc:hover .hf-cc-ghost { opacity: 0.1; transform: scale(1.04) rotate(3deg); }

/* ── Quick access rows ──────────────────────────────── */
.hf-ql { margin-top: 60px; }

.hf-section-title {
    font-size: clamp(36px, 4.5vw, 64px);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin: 0 0 24px;
    line-height: 1.0;
}

.hf-ql-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 20px 32px;
    border-radius: 100px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
    gap: 16px;
    user-select: none;
}
/* All rows dark by default; hovered row turns light blue */
.hf-ql-row--hi,
.hf-ql-row--dark { background: #1a1a1a; color: #fff; }
.hf-ql-row:hover { background: #add8e6 !important; color: #000 !important; transform: scale(1.01); }

.hf-ql-text {
    font-size: clamp(16px, 1.8vw, 20px);
    font-weight: 500;
    flex: 1;
}
.hf-ql-sub {
    font-size: 12px;
    opacity: 0.45;
    font-weight: 400;
    margin-left: 8px;
}

.hf-ql-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.hf-ql-row:hover .hf-ql-arrow { transform: translateX(6px); }
.hf-ql-row--hi   .hf-ql-arrow { background: #000; color: #fff; }
.hf-ql-row--dark .hf-ql-arrow { background: #add8e6; color: #000; }

/* ── Full-width feature cards ───────────────────────── */
.hf-features { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }

.hf-fc {
    border-radius: 28px;
    padding: clamp(52px, 7vw, 96px) clamp(32px, 6vw, 80px);
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
    overflow: hidden;
}
.hf-fc:hover { transform: scale(1.01); }
.hf-fc--lime   { background: #c4f135; color: #0e1400; }
.hf-fc--blue   { background: #1e3a5f; color: #ffffff; }

.hf-fc-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 20px;
    display: block;
}
.hf-fc-h {
    font-size: clamp(32px, 5vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin: 0 auto 20px;
    max-width: 840px;
}
.hf-fc-p {
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.7;
    opacity: 0.7;
    max-width: 520px;
    margin: 0 auto 36px;
}
.hf-fc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s;
}
.hf-fc-btn:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.hf-fc--lime .hf-fc-btn { background: #000; color: #fff; }
.hf-fc--blue .hf-fc-btn { background: #add8e6; color: #000; }

/* Subtle inner glow blob */
.hf-fc::before {
    content: '';
    position: absolute;
    inset: -40%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

/* ── CEO Quote ───────────────────────────────────────── */
.hf-ceo-quote {
    margin-top: 80px;
    padding: 80px 40px 100px;
    text-align: center;
}

.hf-ceo-text {
    font-size: clamp(36px, 5.5vw, 80px);
    font-weight: 900;
    letter-spacing: -2.5px;
    line-height: 1.08;
    color: var(--text-primary);
    margin: 0 auto 48px;
    max-width: 900px;
}

.hf-ceo-attribution {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hf-ceo-avatar {
    width: 110px;
    height: 110px;
    border-radius: 20px;
    object-fit: cover;
    object-position: center top;
}

.hf-ceo-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    opacity: 0.6;
}

/* ── Mission statement ──────────────────────────────── */
.hf-mission {
    text-align: center;
    padding: 80px 40px 72px;
}
.hf-mission-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.45;
    display: block;
    margin-bottom: 28px;
}
.hf-mission-text {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 500;
    line-height: 1.55;
    color: var(--text-primary);
    max-width: 780px;
    margin: 0 auto;
    opacity: 0.88;
}

/* ── Bot Influencers marquee ─────────────────────────── */
.hf-marquee-wrap {
    overflow: hidden;
    padding-bottom: 56px;
}
.hf-marquee-title {
    margin-bottom: 28px;
}

.hf-marquee-track {
    overflow: hidden;
    margin-bottom: 12px;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hf-marquee-inner {
    display: flex;
    gap: 12px;
    width: max-content;
}

.hf-marquee-track--fwd .hf-marquee-inner {
    animation: hf-mq-fwd 32s linear infinite;
}
.hf-marquee-track--rev .hf-marquee-inner {
    animation: hf-mq-rev 36s linear infinite;
}

@keyframes hf-mq-fwd {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes hf-mq-rev {
    from { transform: translateX(-50%); }
    to   { transform: translateX(0); }
}

.hf-mq-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 36px;
    height: 88px;
    border-radius: 20px;
    font-size: clamp(22px, 2.8vw, 38px);
    font-weight: 900;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    user-select: none;
}

/* Card color variants — reuse site palette */
.hf-mq--white { background: #ffffff; color: #111111; }
.hf-mq--teal  { background: #3ecfb8; color: #001a16; }
.hf-mq--amber { background: #f5a623; color: #1a0a00; }
.hf-mq--lime  { background: #c4f135; color: #0e1400; }
.hf-mq--dark  { background: #1e1e1e; color: #ffffff; border: 1px solid rgba(255,255,255,0.08); }

[data-theme="light"] .hf-mq--dark,
[data-theme="system"] .hf-mq--dark { background: #ececec; color: #111; border-color: transparent; }

/* Pause on hover */
.hf-marquee-track:hover .hf-marquee-inner { animation-play-state: paused; }

/* ── Scroll color-shift panels ─────────────────────── */
.hf-colorshift {
    height: 400vh;
    position: relative;
}

.hf-cs-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #f5a623;
    transition: background-color 0.65s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-cs-panel {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.hf-cs-panel.hf-cs--active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.hf-cs-inner {
    text-align: center;
    padding: 0 48px;
    max-width: 860px;
}

.hf-cs-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.5;
    display: block;
    margin-bottom: 20px;
}

.hf-cs-h {
    font-size: clamp(56px, 10vw, 148px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 0.93;
    margin: 0 0 28px;
    text-transform: uppercase;
}

.hf-cs-p {
    font-size: clamp(14px, 1.4vw, 18px);
    line-height: 1.7;
    opacity: 0.72;
    max-width: 500px;
    margin: 0 auto 32px;
}

.hf-cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #000;
    color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
}
.hf-cs-btn:hover { transform: scale(1.04); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

/* Panel color themes */
.hf-cs--amber { color: #1a0a00; }
.hf-cs--lime  { color: #0e1400; }
.hf-cs--teal  { color: #001a16; }
.hf-cs--green { color: #a8f0c8; }
.hf-cs--green .hf-cs-btn { background: #a8f0c8; color: #0e2418; }

/* ── CTA blob section ───────────────────────────────── */
.hf-cta-section {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 80px 80px 120px;
    max-width: 1280px;
    margin: 0 auto;
}

.hf-cta-circle {
    flex-shrink: 0;
    width: clamp(200px, 20vw, 300px);
    height: clamp(200px, 20vw, 300px);
    border-radius: 50%;
    background: #add8e6;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hf-cta-circle span {
    font-size: clamp(26px, 3.2vw, 48px);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.hf-cta-mid {
    flex: 1;
    background: #add8e6;
    color: #000;
    border-radius: 24px;
    padding: 32px 28px;
    align-self: stretch;
    display: flex;
    align-items: center;
}
.hf-cta-mid p {
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.7;
    margin: 0;
}

.hf-cta-links {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

.hf-cta-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    background: #ffffff;
    color: #000;
    gap: 16px;
    transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
}
.hf-cta-link-row:hover { transform: scale(1.03); }

.hf-cta-link-arrow {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Light theme ─────────────────────────────────────── */
[data-theme="light"] .hf-hero-title,
[data-theme="system"] .hf-hero-title { color: #0a0a0a; }
[data-theme="light"] .hf-section-title,
[data-theme="system"] .hf-section-title { color: #0a0a0a; }
[data-theme="light"] .hf-ql-row--dark,
[data-theme="system"] .hf-ql-row--dark { background: #ececec; color: #0a0a0a; }
[data-theme="light"] .hf-ql-row--dark .hf-ql-arrow,
[data-theme="system"] .hf-ql-row--dark .hf-ql-arrow { background: #000; color: #fff; }
[data-theme="light"] .hf-cc-dark,
[data-theme="system"] .hf-cc-dark { background: #f0f0f0; color: #111; border-color: transparent; }
[data-theme="light"] .hf-cc-dark .hf-cc-arrow,
[data-theme="system"] .hf-cc-dark .hf-cc-arrow { background: #000; color: #fff; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hf-inner { padding: 40px 16px 0; }
    .hf-hero-title { font-size: 40px; letter-spacing: -1.5px; margin-bottom: 32px; }

    /* Vertical stack on mobile */
    .hf-carousel { flex-direction: column; gap: 10px; }
    .hf-carousel:has(.hf-cc:hover) .hf-cc,
    .hf-carousel:has(.hf-cc:hover) .hf-cc-large { flex: 1; }
    .hf-cc:hover { flex: 1 !important; }
    .hf-cc-large { flex: 1; }
    .hf-cc { min-height: 200px; padding: 22px 20px 20px; }
    .hf-cc-ghost { font-size: 80px; }

    .hf-ql { margin-top: 40px; }
    .hf-ql-row { padding: 14px 16px 14px 22px; border-radius: 60px; }
    .hf-ql-text { font-size: 14px; }
    .hf-ql-arrow { width: 36px; height: 36px; }
    .hf-fc { padding: 44px 24px; }
    .hf-fc-h { font-size: 26px; letter-spacing: -1px; }
    .hf-features { margin-top: 10px; gap: 10px; }
    .hf-ceo-quote { margin-top: 48px; padding: 48px 16px 64px; }
    .hf-ceo-text { letter-spacing: -1.5px; }
    .hf-ceo-avatar { width: 88px; height: 88px; }

    .hf-mission { padding: 56px 16px 48px; }
    .hf-mq-card { height: 68px; padding: 0 24px; border-radius: 16px; }
    .hf-cs-h { letter-spacing: -2px; }
    .hf-cs-inner { padding: 0 24px; }

    .hf-cta-section { flex-direction: column; padding: 48px 16px 80px; }
    .hf-cta-circle { width: 180px; height: 180px; }
    .hf-cta-mid { align-self: auto; }
    .hf-cta-links { width: 100%; min-width: 0; }
}
